Urdf and sdf - Whan to use which?

What is the difference between urdf and sdf and when do you use which?

Hi,

URDF is essentially the format that ROS supports better.
SDF is a gazebo format. A lot of the systems related to ROS use URDF and XACRO, so I would say use URDF/XACRO when possible.
BUT there are some things that URDF cant do, like closed chains. IN that case, SDFs have better support, especially for gazebo-related systems.

So I would say:

  • For ONLY GAzebo models ( The element doesn’t use ROS directly ), use SDFS.
  • For robots using ROS, URDF/XACRO. Your life will be easier.
1 Like

Thanks @duckfrost. What are closed chains?

I found example sdf elements (robots, postbox, etc.) at this link http://models.gazebosim.org/
Are there any links where I can get urdf/xacro robot models?

Hi,

Sure ! A lot of our simulations are made in URDF XACRO and all of them are open to use. Here are some examples:

Hexapod: Bitbucket

Mars Rover: Bitbucket

Garbage Collector: Bitbucket

PR2: Bitbucket

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.