tomas789 / kitti2bag

Convert KITTI dataset to ROS bag file the easy way!
MIT License
733 stars 262 forks source link

set custom name for fields of point cloud data #29

Open kargarisaac opened 5 years ago

kargarisaac commented 5 years ago

Hello, I converted the kitti data to bag file using kitti2bag. When I want to use it in ros and using the following command: pcl::PointCloud::Ptr current_sensor_cloud_ptr(new pcl::PointCloud); pcl::fromROSMsg(in_sensor_cloud, *current_sensor_cloud_ptr);

it says that "Failed to find match for field 'intensity'.". When I print names of filed of point cloud data I see that the third filed name is "i". how can I change the name or set the name manually to "intensity"?

lucasjinreal commented 5 years ago

@kargarisaac Seems this package does not solve the intensity feild which is very useful to build point cloud recognition features.