Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Displaying multiple pcd pointclouds in rviz

Is there a way to display multiple, separate pcd pointclouds (from pcd_to_pointcloud) on the same rviz screen?

I published the first pointcloud by doing: $ pcd_to_pointcloud first_pc.pcd .1 /cloud_pcd:=first_pc

The frame_id for this is base_link, so the pointcloud appears when I put /base_link as the fixed frame (under global options) and first_pc as the topic.

Then I try to publish the second pointcloud by doing: $ pcd_to_pointcloud second_pc.pcd .1 /cloud_pcd:=second_pc

When I run this, the first pointcloud stops publishing and I get an error saying 'New node registered with the same name'- I think because both pointclouds are being published on the same fixed_frame, /base_link- although they are publishing on different topics.

But when I try to change the frame id (to something like _frame_id:=/odom), I have to change the fixed frame to /odom to see the pointcloud in rviz, which is not good. I want to see all pointclouds (first_pc, second_pc, etc) on one rviz screen. Is that possible?