Ask Your Question
0

gazebo failing with .model

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

Gen_Robotino gravatar image

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

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/empty.world __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
0

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

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

Hi,

Kindly provide a little more detail about the model file, I am assuming you have gone through the tutorial at : http://www.ros.org/wiki/simulator_gazebo/Tutorials/SpawningObjectInSimulation

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

Comments

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 -0500 )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 -0500 )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

Stats

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

Seen: 758 times

Last updated: Jun 27 '12