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

Revision history [back]

click to hide/show revision 1
initial version

As @jarvisschultz mentioned, you need to change the type also. A subscriber can only subscribe to messages of a specifc type. E. g. for C++ you need to bind your subcriber to a callback that can handle pointCloud2 msgs. An example for such callback including conversion to the native PCL type you need for accessing the data is given here:

http://answers.ros.org/question/136916/conversion-from-sensor_msgspointcloud2-to-pclpointcloudt/