2

kitt2bag 解决“Failed to find match for field intensity”问题

 1 year ago
source link: https://blog.csdn.net/qq_38608777/article/details/123848524?spm=1001.2101.3001.6650.17&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EESLANDING%7Edefault-17-123848524-blog-111909905.pc_relevant_landingrelevant&utm_relevant_index=18
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

kitt2bag 解决“Failed to find match for field intensity”问题

original.png
Hertz.gd newCurrentTime2.png 于 2022-03-30 15:58:59 发布 articleReadEyes2.png 215

问题重述:将kitti数据集中的点云bin文件转为bag包文件后参考方法,ros节点处理bag包中的点云数据,运行时出现“Failed to find match for field 'intensity'.”问题。

问题分析:该问题出现一般为采用含有强度字段的点云类型(如:PointXYZI)加载了没有强度信息的点云。而从kitti数据集中下载的点云数据结构为(x,y,z,i)是含有强度信息的,那么上述问题可能是bin文件转bag文件时点云强度(intensity)信息丢失导致?

解决方法:

  1. 修改kitti2bag
  2. 从新生成bag

修改步骤:

  1. 在终端中输入whereis kitti2bag找到该文件的路径。
    whereis kitti2bag
  2. 打开该路径的文件vim/gedit修改将 'i'改为'intensity'
    newCodeMoreWhite.png
  3. 重新转换bag文件
文章知识点与官方知识档案匹配,可进一步学习相关知识

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK