Fastlio测试velodyne时出错:Failed+to+find+match+for+field+'intensity'.
时间: 2024-01-09 07:23:26 浏览: 80
根据引用[1]中提到的报错信息"Failed to find match for field 'intensity'",这个错误通常是由于雷达输出的数据中激光强度信息的类型不匹配导致的。为了解决这个问题,你可以尝试以下几种方法:
1. 检查雷达输出的数据格式:确保激光强度信息的类型与程序中期望的类型一致。如果类型不匹配,可以尝试将数据转换为正确的类型。
2. 更新驱动程序或固件:有时,更新雷达的驱动程序或固件可以解决数据类型不匹配的问题。请查看雷达的官方网站或文档,以获取最新的驱动程序或固件版本。
3. 与同行交流:与使用相同型号的雷达的同行交流,了解他们是否遇到过类似的问题,并询问他们是如何解决的。
4. 查阅相关文档和论坛:查阅雷达的官方文档、论坛或社区,寻找关于该错误的更多信息和解决方案。
请注意,以上方法仅为一般性建议,具体解决方法可能因不同的情况而异。建议你根据具体情况进行调试和尝试。
相关问题
root@in_dev_docker:/apollo# bash scripts/msf_create_lossless_map.sh /apollo/hdmap/pcd_apollo/ 50 /apollo/hdmap/ /apollo/bazel-bin WARNING: Logging before InitGoogleLogging() is written to STDERR E0715 22:08:35.399576 6436 lossless_map_creator.cc:162] num_trials = 1 Pcd folders are as follows: /apollo/hdmap/pcd_apollo/ Resolution: 0.125 Dataset: /apollo/hdmap/pcd_apollo Dataset: /apollo/hdmap/pcd_apollo/ Loaded the map configuration from: /apollo/hdmap//lossless_map/config.xml. Saved the map configuration to: /apollo/hdmap//lossless_map/config.xml. Saved the map configuration to: /apollo/hdmap//lossless_map/config.xml. E0715 22:08:35.767315 6436 lossless_map_creator.cc:264] ieout_poses = 1706 Failed to find match for field 'intensity'. Failed to find match for field 'timestamp'. E0715 22:08:35.769896 6436 velodyne_utility.cc:46] Un-organized-point-cloud E0715 22:08:35.781770 6436 lossless_map_creator.cc:275] Loaded 245443D Points at Trial: 0 Frame: 0. F0715 22:08:35.781791 6436 base_map_node_index.cc:101] Check failed: false *** Check failure stack trace: *** scripts/msf_create_lossless_map.sh: line 11: 6436 Aborted (core dumped) $APOLLO_BIN_PREFIX/modules/localization/msf/local_tool/map_creation/lossless_map_creator --use_plane_inliers_only true --pcd_folders $1 --pose_files $2 --map_folder $IN_FOLDER --zone_id $ZONE_ID --coordinate_type UTM --map_resolution_type single root@in_dev_docker:/apollo# bash scripts/msf_create_lossless_map.sh /apollo/hdmap/pcd_apollo/ 50 /apollo/hdmap/
根据提供的信息,执行脚本 `scripts/msf_create_lossless_map.sh` 时出现了错误。具体的错误信息如:
```
E0715 22:08:35.399576 6436 lossless_map_creator.cc:162] num_trials = 1
Pcd folders are as follows:
/apollo/hdmap/pcd_apollo/
Resolution: 0.125
Dataset: /apollo/hdmap/pcd_apollo
Dataset: /apollo/hdmap/pcd_apollo/
Loaded the map configuration from: /apollo/hdmap//lossless_map/config.xml.
Saved the map configuration to: /apollo/hdmap//lossless_map/config.xml.
Saved the map configuration to: /apollo/hdmap//lossless_map/config.xml.
E0715 22:08:35.767315 6436 lossless_map_creator.cc:264] ieout_poses = 1706
Failed to find match for field 'intensity'.
Failed to find match for field 'timestamp'.
E0715 22:08:35.769896 6436 velodyne_utility.cc:46] Un-organized-point-cloud
E0715 22:08:35.781770 6436 lossless_map_creator.cc:275] Loaded 245443D Points at Trial: 0 Frame: 0.
F0715 22:08:35.781791 6436 base_map_node_index.cc:101] Check failed: false
*** Check failure stack trace: ***
scripts/msf_create_lossless_map.sh: line 11: 6436 Aborted (core dumped) $APOLLO_BIN_PREFIX/modules/localization/msf/local_tool/map_creation/lossless_map_creator --use_plane_inliers_only true --pcd_folders $1 --pose_files $2 --map_folder $IN_FOLDER --zone_id $ZONE_ID --coordinate_type UTM --map_resolution_type single
```
这段错误信息表明在执行脚本时发生了一个检查失败的情况。错误的具体位置在 `base_map_node_index.cc:101`。可能的原因包括:
1. 数据不匹配:脚本中使用的数据可能存在不匹配的情况,例如字段名或者数据格式不正确。
2. 数据文件缺失:脚本所需的某些数据文件可能不存在或者路径不正确。
3. 依赖问题:脚本所依赖的某些组件或库可能缺失或者版本不兼容。
请检查脚本 `scripts/msf_create_lossless_map.sh` 中的相关代码,确保数据文件和依赖项的正确性。如果问题仍然存在,您可以提供更多的上下文信息,以便我们能够更好地帮助您解决问题。
/apollo/bazel-bin WARNING: Logging before InitGoogleLogging() is written to STDERR E0607 13:23:56.281872 47757 lossless_map_creator.cc:162] num_trials = 1 Pcd folders are as follows: /apollo/hdmap/air/pcd_apollo/ Resolution: 0.125 Dataset: /apollo/hdmap/air/pcd_apollo/ Dataset: /apollo/hdmap/air/pcd_apollo/ Dataset: /apollo/hdmap/air/pcd_apollo/ Loaded the map configuration from: /apollo/hdmap/air//lossless_map/config.xml. Saved the map configuration to: /apollo/hdmap/air//lossless_map/config.xml. Saved the map configuration to: /apollo/hdmap/air//lossless_map/config.xml. E0607 13:23:56.706698 47757 lossless_map_creator.cc:264] ieout_poses = 2186 Failed to find match for field 'intensity'. Failed to find match for field 'timestamp'. E0607 13:23:56.708952 47757 velodyne_utility.cc:46] Un-organized-point-cloud E0607 13:23:56.719892 47757 lossless_map_creator.cc:275] Loaded 144353D Points at Trial: 0 Frame: 0. F0607 13:23:56.719911 47757 base_map_node_index.cc:101] Check failed: false *** Check failure stack trace: *** scripts/msf_create_lossless_map.sh: line 11: 47757 Aborted (core dumped) $APOLLO_BIN_PREFIX/modules/localization/msf/local_tool/map_creation/lossless_map_creator --use_plane_inliers_only true --pcd_folders $1 --pose_files $2 --map_folder $IN_FOLDER --zone_id $ZONE_ID --coordinate_type UTM --map_resolution_type single
这段代码似乎是关于自动驾驶系统中的地图构建和定位相关的内容,其中使用了Velodyne激光雷达获取点云数据,并将其加载到地图中。但是在处理过程中出现了一些错误,如无法匹配点云数据中的“强度”和“时间戳”字段等。最终,程序在执行到 base_map_node_index.cc 文件的第101行时,因为检查失败而发生了错误。需要进一步分析代码和数据,找出具体的问题所在并进行修复。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)