0
$\begingroup$

Rosanswers logo

hi, i have a bagfile with velodyne packets in it. I want to convert this point cloud into an image or a range image. Anyone please help me how to convert it.

i went through the documentation in Tutorials/CloudToImage for converting pointcloud to image.I used the node "convert_pointcloud_to_image" But when i tried it i get an error :-

Error in converting cloud to image message: No rgb field!!

please help me out with this error.Is there any documentation for converting to range image ?


Originally posted by KARTHIK MURUGAN on ROS Answers with karma: 48 on 2012-12-08

Post score: 2


Original comments

Comment by benabruzzo on 2015-02-20:
Followup: is it possible to generate a greyscale image?

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

From the pcl::toROSMsg documentation:

Copy the RGB fields of a PointCloud2 msg into sensor_msgs::Image format.

It appears your pointcloud has no RGB data attached to it. How did you record it?


Originally posted by Ivan Dryanovski with karma: 4954 on 2012-12-08

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.