Problem analysis: this problem usually occurs when the point cloud type with intensity field (such as PointXYZI) is used to load the point cloud without intensity information. The point cloud data structure downloaded from Kitti data set is (x, y, Z, I) which contains intensity information, so the above problem may be caused by the loss of point cloud intensity information when bin file is converted to bag file?
Solution:
- Modify kitti2bag.
- Generate new bag.
Modification steps:
enter whereis kitti2bag in the terminal to find the path of the file.
whereis kitti2bag
Open the file vim/gedit in this path and change ‘i’ to ‘intensity’
Modified
# fill pcl msg
fields = [PointField('x', 0, PointField.FLOAT32, 1),
PointField('y', 4, PointField.FLOAT32, 1),
PointField('z', 8, PointField.FLOAT32, 1),
PointField('intensity', 12, PointField.FLOAT32, 1)]
pcl_msg = pcl2.create_cloud(header, fields, scan)
#Before
# fill pcl msg
fields = [PointField('x', 0, PointField.FLOAT32, 1),
PointField('y', 4, PointField.FLOAT32, 1),
PointField('z', 8, PointField.FLOAT32, 1),
PointField('i', 12, PointField.FLOAT32, 1)]
pcl_msg = pcl2.create_cloud(header, fields, scan)i
Re-convert bag file.
Read More:
- No match for ‘operator =’ both ends of the equal sign do not match
- Failed to transform file ‘xxx‘ to match attributes [How to Solve]
- [Solved] Canal Error: CanalParseException: column size is not match,parse row data failed
- [Solved] Failed to find glog – Could not find glog include directory, set…
- [Solved] Git Common Error: error: src refspec xxx does not match any/error: failed to push some refs to
- [Solved] Flutter compile error: Failed to find Build Tools revision 29.0.2
- How to Solve Error: Unsupported field: HourOfDay
- Failed to find Build Tools revision 30.0.3 [How to Solve]
- [Solved] C# Access Mongodb Database Error: command find failed: Command find requires authentication
- Eclipse Graphical Layout Error: Failed to find the style corresponding to the id 2130772027
- How to Solve Loadrunner Error: Failed to find .cfg file
- [Solved] VScode Error: find_package(catkin) failed
- C++ Primer Program in VsCode error: no match for call to ‘(std::__cxx11::string…)
- [Solved] MindSpore Error: ValueError: Minimum inputs size 0 does not match…
- [Solved] Flinkcdc error: tried to access field com.mysql.cj.CharsetMapping.COLLATION_INDEX_TO_COLLATION_NAME…
- [Solved] Error creating bean with name rController‘: Unsatisfied dependency expressed through field
- [Solved] Eureka Startup Error: Root name (‘timestamp‘) does not match expected type EurekaApplications
- error: src refspec master does not match any [How to Solve]
- Oracle prompt text does not match format string
- [How to Solve] Content with element type ‘mapper’ must match