ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Concatenate Pointcloud

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

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 1,030 times

Last updated: Dec 05 '18