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

Revision history [back]

click to hide/show revision 1
initial version

If the documentation for pcl::concatenatePointCloud() is correct, you cannot provide cloud as a const input and also as the output. You must provide a third cloud to be filled in the function. Then, you can set cloud = third_cloud.

If the documentation for pcl::concatenatePointCloud() is correct, you cannot provide cloud as a const input and also as the output. You must provide a third cloud to be filled in the function. Then, you can set cloud = third_cloud.

sensor_msgs::PointCloud2 temp_cloud;
pcl::concatenatePointCloud(cloud, c_tmp, temp_cloud);
cloud = temp_cloud;