Ask Your Question

Revision history [back]

Two PR2 simulation in gazebo

I am on ROS Fuerte, I am using PR2 simulations in gazebo with the pr2_gazebo package,

roslaunch pr2_gazebo pr2_empty_world.launch

I wish to work on two PR2 robots, I tried to add a second robot with the following line in the pr2_empty_world.launch.

  <!-- start pr2 robot -->
  <include file="$(find pr2_gazebo)/launch/pr2.launch"/>

Which gave the following error;

roslaunch file contains multiple nodes named [/spawn_pr2_model].
Please check all <node> 'name' attributes to make sure they are unique.
Also check that $(anon id) use different ids.

Apparently it is a trivial issue, and I have been tinkering with launch files but that has not solved the issue. Any help here would be most welcome.