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

Concatenate Pointcloud

asked 2018-12-04 19:25:55 -0500

patrobot gravatar image

I am using the pcl::concatenatePointCloud function to merge two pointclouds(PCL2). The output pointcloud does not seem to have the header.frame_id set. The 2 input pointclouds have the same frame id. How do I solve this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-05 04:02:03 -0500

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.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-12-04 19:25:55 -0500

Seen: 1,233 times

Last updated: Dec 05 '18