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

Revision history [back]

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.