Launching different robots in Gazebo at the same time
Hi guys,
I'm trying to write a launch file to simulate two different robots in gazebo at the same time. I've tried many things and changes in my launch file but I can get it working. Sometimes I get two (visual) copies of the same robot. This is part of my launch file
<arg name="model" default="$(find hector_quadrotor_urdf)/urdf/quadrotor.urdf.xacro"/>
<node name="spawn_robot" pkg="gazebo" type="spawn_model" args="-param quadrotor_description -urdf -z 0.5 -model quadrotor" respawn="false" output="screen"/>
<node name="spawn_object" pkg="gazebo" type="spawn_model" args="-urdf -param ugv_description -x 2.0 -y 0.0 -z 0.6 -model summit_xl" respawn="false" output="screen"/>
Is the parameter "robot_description" unique or something like that so that just one robot description parameter can be set? Am I missing something? I've tried to include parameters such as:
<node pkg="robot_state_publisher" type="state_publisher" name="quadrotor_state_pulisher" output="screen" >="" <param="" name="publish_frequency" type="double" value="50.0"/> <remap from="robot_description" to="quadrotor_description"/> <remap from="joint_states" to="quadrotor_joint_states"/> </node>
Also tried to create different groups for each robot (<group ns="quadrotor"> xxxxxx </group>, and include "-namespace quadrotor" in the spawn node parameters, but nothing.
Any help?