ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The pcl::PointCloud
object has a header with almost the same structure as a ROS message, so you can manually set the frame_id to be the same as one of the original point clouds, as below:
newPointCloud.header.frame_id = oldPointCloud.header.frame_id;
Hope this helps.