ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Change this line
pcl::fromROSMsg(pc2_raw,*pcl_cloud);
to
pcl::fromROSMsg(pc2_raw, pcl_cloud);
See the API of pcl::fromROSMsg
, for details. It needs a pointer and you already have that.