ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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);