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

Revision history [back]

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.