Ask Your Question

ROS Gazebo error on open URDF (roslaunch error)

asked 2014-12-16 13:46:34 -0600

Marcio Montenegro gravatar image

Hi guys, I'm working with an hexapod in a project, so i need to import it from solid works to gazebo. I tried to use an URDF exporter, and it generated an folder with 2 launchs (gazebo.launch & display.launch). I tried to execute the gazebo.launch with roslaunch. It bring me an error

So I openned my .launch file:

And change some lines, getting this:

And now it is returning the following error:

Someone know waht should i do?

edit retag flag offensive close merge delete


Do you have gazebo installed? And the ROS components? The error message that you linked to suggests you don't (or at least: ROS can't find the gazebo_worlds package).

gvdhoorn gravatar imagegvdhoorn ( 2014-12-16 14:22:21 -0600 )edit

For future reference, it is probably better if you post code and the relevant errors directly on this page so people that are searching for answers to similar problems will find them here.

Airuno2L gravatar imageAiruno2L ( 2014-12-17 09:03:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-17 08:42:10 -0600

Airuno2L gravatar image

updated 2014-12-17 09:00:29 -0600

It looks like you are using ROS Hydro, there is no package called "gazebo" in Hydro, it has been replaced with gazebo_ros. Additionally, this page has really good information about how to launch a URDF in gazebo from ROS. Here is their example:

<!-- Spawn a robot into Gazebo --> <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-file $(find baxter_description)/urdf/baxter.urdf -urdf -z 1 -model baxter" />

It looks like what you are doing should work, you're just using the wrong "pkg". Also I notice you have ../robots/hexapod_launch.URDF-urdf" There should be a space between .URDF and -urdf.

Long story short, try this

args="-file ../robots/hexapod_launch.URDF -urdf -model hexapod_launch" 
output="screen" />
edit flag offensive delete link more


Marcio Montenegro gravatar imageMarcio Montenegro ( 2015-02-03 09:40:02 -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

1 follower


Asked: 2014-12-16 13:46:34 -0600

Seen: 768 times

Last updated: Dec 17 '14