Coloring of pcd-pointcloud in Rviz
Hi!
I am very new to ROS, so please take that into account when answering :) (Ubuntu 14.04 64bit in a VirtualBox with Windows Host, ROS Indigo)
What I did:
I used
rosrun pcl_ros pcd_to_pointcloud myFilename.pcd 0.1
to publish a topic containing my pcl-pointcloud as a PointCloud2 message. The output of this call is:
[ INFO] [1449049889.334492450]: Publishing data on topic /cloud_pcd with frame_id /base_link. [ INFO] [1449049889.438294770]: Loaded a point cloud with 307200 points (total size is 4915200) and the following channels: x y z rgba.
As one can correctly see, the pointcloud also contains color information. I now tried to visualize the point cloud using Rviz. For this purpose I set the Fixed Frame to "/base_link" and added a "PointCloud2"-Display whose topic I set to "/cloud_pcd".
Problem description:
I was only able to see the point cloud when setting the color to something else than RGB8. Why? There should be color information and I'd like my point cloud nicely colored :) How can I fix this?
this seems to be related with the fact that my pointcloud contains rgba and not only rgb. Indeed, the latter case works. According to https://github.com/ros-visualization/... this is a known issue. Is there a way to resolve it by now?
Looking again, the issue should have been resolved on 6th of Aug (I am not really familiar with the issue-tracking system of github). I tried to confirm that I have the fixed version by checking the "Modified" date of point_cloud_common.h in my ros-folder (which is 06.August.2015). Fix did not work?
The only (rather unsatisfying way) I have found so far is to write an own pcd-file reader that puts the pointcloud into a pcl::PointCloud<pcl::pointxyzrgb> object. Still hoping for a better solution here!! ;-)