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

ROS Gazebo error on open URDF (roslaunch error)

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

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 https://gist.github.com/anonymous/5e5...

So I openned my .launch file: https://gist.github.com/anonymous/244...

And change some lines, getting this: https://gist.github.com/anonymous/57f...

And now it is returning the following error: https://gist.github.com/anonymous/6f6...

Someone know waht should i do?

edit retag flag offensive close merge delete

Comments

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 image gvdhoorn  ( 2014-12-16 14:22:21 -0500 )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 image Airuno2L  ( 2014-12-17 09:03:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

Airuno2L gravatar image

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

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

<node 
name="spawn_model" 
pkg="gazebo_ros" 
type="spawn_model" 
args="-file ../robots/hexapod_launch.URDF -urdf -model hexapod_launch" 
output="screen" />
edit flag offensive delete link more

Comments

Marcio Montenegro gravatar image Marcio Montenegro  ( 2015-02-03 09:40:02 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 962 times

Last updated: Dec 17 '14