Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@diegoferigo
Copy link
Member

@diegoferigo diegoferigo commented Feb 8, 2023

This PR implements the SDF -> URDF conversion by exporting the in-memory model to URDF. Closes #6.

  • Links and joints are converted directly to URDF exploiting the already existing FrameConvention.Urdf that expresses the poses of a model compatibly with URDF1
  • Frames are converted to (fixed_joint->fake_link) pairs and attached to the first suitable frame parent
  • Gazebo elements are included for preventing lumping frames in case the exported URDF is converted back to SDF2
  • The URDF exporter accepts a list of fixed joints to keep for the same reason, and the proper Gazebo elements are included in the resulting URDF
  • Not all SDF features can be converted to URDF, e.g. links must have a trivial pose w.r.t. their parent joint
  • The root of the URDF model is the canonical link, therefore the `model frame of SDF is ignored

Footnotes

  1. Add utilities to handle SDF models as a directed trees #16

  2. this might be removed in the future if sdformat start recognizing them as frames when an URDF is loaded

@diegoferigo diegoferigo self-assigned this Feb 8, 2023
@DanielePucci
Copy link
Member

CC @ami-iit/ergocub @ami-iit/alpha-delta-tau

@diegoferigo diegoferigo force-pushed the feature/sdf_to_urdf branch 4 times, most recently from dbb40a9 to d893b9a Compare February 8, 2023 18:40
@diegoferigo diegoferigo merged commit 8809412 into main Feb 8, 2023
@diegoferigo diegoferigo deleted the feature/sdf_to_urdf branch February 8, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Evaluate support of SDF → URDF conversion

3 participants