scpeters-test / sdformat

Simulation Description Format (SDF) parser and description files.
http://sdformat.org
Other
1 stars 0 forks source link

Convert URDF files to SDF with use_parent_model_frame set to 0 #189

Open scpeters-test opened 6 years ago

scpeters-test commented 6 years ago

Original report (archived issue) by Silvio Traversaro (Bitbucket: traversaro).


The use_parent_model_frame option was added in SDF as part of https://bitbucket.org/osrf/gazebo/issues/494/make-joint-axis-reference-frame-relative and the related PRs .

As the URDF --> SDF converted was written before that time, all the SDF generated from URDF files by gz sdf -c model.urdf > model.sdf contain the option use_parent_model_frame set to 1. It would be great if SDF could produce a URDF with the use_parent_model_frame option set to 0.

This is due to the fact that the URDF is actually converted in [1] to a SDF 1.4, and then converted to a SDF 1.6 using the SDF conversion rules.

Related issue: https://github.com/bulletphysics/bullet3/issues/1707

[1] : https://github.com/scpeters-test/sdformat/blob/master/src/parser_urdf.cc

scpeters-test commented 6 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters).


This has more info that #163, so I'll mark that one as duplicate.

Here's the line of code where the sdf version is set:

https://github.com/scpeters-test/sdformat/blob/ef889105d2512cd42999c55a1d9facecf1f348c6/src/parser_urdf.cc#L3155

scpeters-test commented 6 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters).


Issue #163 was marked as a duplicate of this issue.

scpeters-test commented 6 years ago

Original comment by Silvio Traversaro (Bitbucket: traversaro).


Thanks @scpeters , I did not noticed #163.

Other relevant info: