Open scpeters-test opened 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:
Original comment by Steve Peters (Bitbucket: Steven Peters).
Issue #163 was marked as a duplicate of this issue.
Original comment by Silvio Traversaro (Bitbucket: traversaro).
Thanks @scpeters , I did not noticed #163.
Other relevant info:
Line of code were the joint axis is rotated to be in the parent model frame: https://github.com/scpeters-test/sdformat/blob/ef889105d2512cd42999c55a1d9facecf1f348c6/src/parser_urdf.cc#L2914
Changes from SDF protocol from 1.5 to 1.6 : https://github.com/scpeters-test/sdformat/blob/master/Migration.md
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 optionuse_parent_model_frame
set to 1. It would be great if SDF could produce a URDF with theuse_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