ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 1 | initial version |
You should be able to use the Boost make_shared
function to create a pointer to the existing cloud.
sensor_msgs::PointCloud2 p;
const sensor_msgs::PointCloud2ConstPtr& input = boost::make_shared<sensor_msgs::PointCloud2>(p);