spawning different robot models kills gazebo [closed]
I am trying to run a heterogeneous robot team in gazebo (fuerte, ubuntu 12.04). But whenever I try to spawn two different robot models, gazebo crashes.
The only error output I get is: Segmentation fault (core dumped) [gazebo-2] process has died [pid 10430, exit code 139 The log files don't contain any errors.
If I spawn only one of the robots (either the turtlebot or the quadrotor) it works without any problems.
Can anybody reproduce this error, or tell me what I am doing wrong?
<launch>
<node name="gazebo" type="gazebo" pkg="gazebo" args="$(find gazebo_worlds)/worlds/empty_throttled.world"/>
<node name="gazebo_gui" pkg="gazebo" type="gui" respawn="false"/>
<arg name="model_turtle" default="$(find turtlebot_description)/urdf/turtlebot.urdf.xacro"/>
<arg name="model_drone" default="$(find hector_quadrotor_urdf)/urdf/quadrotor_hokuyo_utm30lx.urdf.xacro"/>
<node name="spawn_turtle" pkg="gazebo" type="spawn_model" args="-param /robot_description_turtle
-urdf
-x -1 -z 0.2
-model turtle" respawn="false" output="screen"/>
<node name="spawn_drone" pkg="gazebo" type="spawn_model" args="-param /robot_description_drone
-urdf
-z 0.5
-model drone" respawn="false" output="screen"/>
</launch>
Did you actually set the two parameters containing the robot description (e.g. by adding <param name="robot_description_drone" command="$(find xacro)/xacro.py $(arg model_drone)" /> to your launch file? Could you post a stack trace? Run gazebo with rosrun gazebo debug and enter bt after the segfault
Yes, I think I did. I'm not on fuerte anymore, therefore I cannot reproduce the error right now. But thanks for your comment!