ami-iit / rod

The ultimate Python tool for RObot Descriptions processing.
https://pypi.org/project/rod/
BSD 3-Clause "New" or "Revised" License
13 stars 3 forks source link

Evaluate support of SDF → URDF conversion #6

Closed diegoferigo closed 1 year ago

diegoferigo commented 1 year ago

Currently rod supports URDF indirectly by performing a under-the-hood conversion to SDF, assuming that Gazebo Sim and sdformat are found in the system.

However, some of our libraries (e.g. iDynTree) do not yet support SDF, and this is the reason why most of our code still relies on URDF files. While waiting that SDF support propagates, it might be a good idea to implement a SDF → URDF conversion.

The URDF structure is much simpler than SDF, and converting rod.* objects would be pretty easy. Of course, there would be some information getting lost.

Extra care would be however necessary in the following cases:

diegoferigo commented 1 year ago

This should be quite simple with the FrameConvention.Urdf introduced in https://github.com/ami-iit/rod/pull/16.