ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Spawning Problems with Fuerte Ubuntu 12.04

asked 2012-08-16 12:41:20 -0500

ncr7 gravatar image

updated 2012-08-16 16:03:19 -0500

joq gravatar image

so I see there has been issues with spawning urdf or models in Gazebo here

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

just doesn't spawn anything... it just adds it in the models list. Is this happening for most people? or is it an issue that can be fixed somehow?

Is there perhaps a different way to spawn objects in gazebo for Fuerte?

edit retag flag offensive close merge delete


you set your node name on startup of the launch file correct? If so that is already set to

<node name="gazebo" pkg="gazebo" type="gazebo" args="$(find r2_gazebo)/gazebo/" output="screen" /

ncr7 gravatar image ncr7  ( 2012-08-17 05:48:17 -0500 )edit

I figured out you can spawn .xacro files. I was able to get simple_sphere.urdf files to spawn if you change the extension to simple_sphere.xacro.

ncr7 gravatar image ncr7  ( 2012-08-22 10:27:37 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-08-16 19:33:38 -0500

hsu gravatar image

updated 2012-08-16 19:42:16 -0500

There were some bugs in the spawn_model script, waiting for services in the wrong namespace. This should be fixed by the next release 1.6.13.

For now, things should work if you change your gazebo node name to gazebo, e.g.:

<node name="gazebo" pkg="gazebo" type="gazebo" args="..."/>
edit flag offensive delete link more

answered 2012-08-22 10:28:30 -0500

ncr7 gravatar image

I then used the following code to spawn the file, rosrun gazebo spawn_model -file /opt/ros/fuerte/stacks/simulator_gazebo/gazebo_worlds/objects/simple_sphere.xacro -urdf -model sphere1 -x 1 -y 1 -z 1

edit flag offensive delete link more

Question Tools


Asked: 2012-08-16 12:41:20 -0500

Seen: 465 times

Last updated: Aug 16 '12