ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

gazebo failing with .model

asked 2012-06-20 03:55:30 -0600

Gen_Robotino gravatar image

updated 2012-06-20 04:46:26 -0600

I am working with the objects wihin gazebo_worlds, and whenever I try and spawn .model into gazebo using the command

rosrun gazebo spawn_model -file name.model -gazebo -model thing

My gazebo gets the error

[empty_world_server-1] process has died [pid 17337, exit code 134, cmd /opt/ros/fuerte/stacks/simulator_gazebo/gazebo/scripts/gazebo /opt/ros/fuerte/stacks/simulator_gazebo/gazebo_worlds/worlds/ __name:=empty_world_server __log:=/home/carol/.ros/log/715ceed4-bad5-11e1-9ffc-00268297df80/empty_world_server-1.log]. log file: /home/carol/.ros/log/715ceed4-bad5-11e1-9ffc-00268297df80/empty_world_server-1*.log

I am wondering if this is a common problem and if there is a fix to it by any chance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-06-25 21:41:31 -0600

updated 2012-06-27 09:36:19 -0600


Kindly provide a little more detail about the model file, I am assuming you have gone through the tutorial at :

as your command is correct. Let me know if this command works:-

rosrun gazebo spawn_model -gazebo -file `rospack find gazebo_worlds`/objects/coffee_cup.model -model coffee_cup -x 1.2 -z 1 

Also from the folder where I have desk4.model,

rosrun gazebo spawn_model -gazebo -file desk4.model -model mydesk2

is able to spawn the table.

edit flag offensive delete link more


I guess you should add `for rospack find. rosrun gazebo spawn_model -gazebo -filerospack find gazebo_worlds`/objects/coffee_cup.model -model coffee_cup -x 1.2 -z 1

cagatay gravatar image cagatay  ( 2012-06-26 00:56:48 -0600 )edit

Yuup rospack find gazebo_worlds should be in quotes. But is this command able to spawn the coffee_cup.model file?

aknirala gravatar image aknirala  ( 2012-06-27 09:39:28 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-06-20 03:55:30 -0600

Seen: 839 times

Last updated: Jun 27 '12