Gazebo | Ignition | Community
Ask Your Question

How does gazebo load a urdf file WITHOUT Ros?

asked 2017-11-30 05:03:23 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I want to use gazebo load my robot model (a urdf file),but do not want to install ros. Is there any kind of tool to make my urdf file be load by gazebo? Is there any way to do this ? Is there any document example or tutorials about this? Please help. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-11-30 21:53:08 -0600

Francisco gravatar image

updated 2017-12-03 21:10:52 -0600

You can use the command line. Here a MWE:

# Download the URDF and convert it to SDF
$ wget
$ gz sdf --print rrbot.xacro.urdf > rrbot.sdf
# Start gazebo
$ gazebo
# Open another terminal, and spawn the model
$ gz model --spawn-file=rrbot.sdf --model-name=rrbot

Tested on Ubuntu 16.04 (Xenial):

$ gazebo --version
Gazebo multi-robot simulator, version 7.0.0
Copyright (C) 2012-2016 Open Source Robotics Foundation.
Released under the Apache 2 License.


Thanks to @nkoenig comment, you can spawn directly URDF models. Here a MWE:

# Download the URDF
$ wget
# Start gazebo
$ gazebo
# Open another terminal, and spawn the model
$ gz model --spawn-file=rrbot.xacro.urdf --model-name=rrbot
edit flag offensive delete link more


Gazebo uses libsdformat, which can read both SDF and URDF files.

nkoenig gravatar imagenkoenig ( 2017-12-01 10:30:39 -0600 )edit

it works ,thanks!

xianxjm gravatar imagexianxjm ( 2017-12-03 20:24:58 -0600 )edit
Login/Signup to Answer

Question Tools



Asked: 2017-11-30 05:03:23 -0600

Seen: 2,565 times

Last updated: Dec 03 '17