ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I've just come across this question, while doing the same thing myself. So just in case anyone else finds this question I'll describe the solution.

If you need a point cloud to represent some custom point type beyond the standard options built into PCL (XYZ, XYZRGB, XYZI, etc) You have to define a custom PCL point type with the same behaviours as the built in types. Luckily there is a good tutorial showing you how to do this here:

PCL Custom Point Type Tutorial

If you follow this fairly straightforward tutorial then create and publish a point cloud with this new type this it will be shown in RVIZ fine including a drop down of the addition variables which are now stored for your custom point type.