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

Revision history [back]

According to the compile error messages, the problem is that your arguments are not of the right type. The first argument expects a reference to a PointCloud, and you're passing a PointCloudPtr. You just need to de-reference the shared pointer.

This should work:

pcl::toROSMsg(*world,cloud);