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

Visualize 2 robots with same URDF in rviz

asked 2018-03-28 00:44:27 -0600

updated 2018-03-28 00:45:12 -0600

Hi,

I am running the turtlesim_tf2 demo/tutorial with 2 turtles as instructed. I followed the instructions - both turtle1 and turtle2 are broadcasting TF. Also implemented the tf2_listener which implements turtle2 following turtle1.

Additionally, I created a simple URDF with the top link named "turtle1".

IE

<robot name="myfirst">
  <link name="turtle1">
...
  </link>
</robot>

This allows me to visualize "turtle1" in rviz with its correct pose in relationship to world.

The easy hack for me to visualize "turtle2" is to copy that URDF to another file and simply replace the link name with "turtle2" in the copy.

But I want to use the same URDF to visualize turtle2. For that single URDF, how can I effectively "remap" the "turtle1" top link name to "turtle2" to visualize both turtle1 and turtl2 in rviz?? Is that possible?

Thanks Jack

edit retag flag offensive close merge delete

Comments

Is this related to #q222283 ?

Delb gravatar image Delb  ( 2018-03-28 01:24:04 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-30 03:12:25 -0600

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-03-28 00:44:27 -0600

Seen: 414 times

Last updated: Sep 30 '20