SDF
===
Introduction
-------------
The `SDF format `_ is an extension of URDF extensively used in ROS.
* When using SDF, frames will be exported as ```` items.
* The links and joints always using ``relative_to`` attribute to specify the parent frame, keeping the same coordinates system as in URDF.
* Additionally to the ``robot.sdf`` file, a ``model.config`` file will be produced, adding metadata useful for Gazebo.
``config.json`` entries (SDF)
-----------------------------
Here is an example of complete ``config.json`` file, with details below:
.. code-block:: javascript
{
"url": "document-url",
"output_format": "sdf",
// ...
// General import options (see config.json documentation)
// ...
// Additional XML file to be included in the URDF (default: "")
"additional_xml": "my_custom_file.xml",
// Override joint properties (default: {})
"joint_properties": {
// Default properties for all joints
"*": {
"max_effort": 10.0,
"max_velocity": 6.0,
"friction": 0.5
},
// Set the properties for a specific joint
"joint_name": {
"max_effort": 20.0,
"max_velocity": 10.0,
"friction": 0.1,
"limits": [0.5, 1.2]
},
"wheel": {
"type": "continuous"
}
},
}
``joint_properties`` *(default: {})*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Allow to specify the properties of the joints produced in the URDF output. The key should be joint names. The special ``default`` key will set default values for each joints.
Possible values are:
* ``max_effort``: The maximum effort that can be applied to the joint (added in the ```` tag)
* ``max_velocity``: The maximum velocity of the joint (added in the ```` tag)
* ``friction``: The friction of the joint (added in the ```` tag)
* ``type``: Sets the joint type (changing the ```` tag)
* ``limits``: Override the joint limits, should be a list of two values (min, max)
``additional_xml`` *(default: "")*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you want to include additional XML in the URDF, you can specify the path to the file here. This file will be included in the produced SDF file.
.. note::
Alternatively, ``additional_xml`` can be a list of files