Ask Your Question
1

Displaying multiple pcd pointclouds in rviz

asked 2013-04-11 14:55:32 -0500

mdegges gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2013-04-11 19:40:33 -0500

dgossow gravatar image

This is a collision of node names, which are independent of topic or frame names. Use the special parameter __name to fix this:

 pcd_to_pointcloud first_pc.pcd .1 /cloud_pcd:=first_pc __name:=first_pc
 pcd_to_pointcloud second_pc.pcd .1 /cloud_pcd:=second_pc __name:=second_pc
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

Stats

Asked: 2013-04-11 14:55:32 -0500

Seen: 1,549 times

Last updated: Apr 11 '13