Add moveLinkFramesToBeCompatibleWithURDFWithGivenBaseLink function #1193
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Until now, if you exported a
iDynTree::Model
that did not respected the URDF constraint of the child link frame origin being on the joint axis, you only got an error during the URDF export process, something like:This PR does not modify this behaviour to avoid confusion in the export of URDF, but it adds a new
iDynTree::moveLinkFramesToBeCompatibleWithURDFWithGivenBaseLink
function to generate a URDF compatible model from a non-URDF compatible model, so for example if a code like:was reporting an error, you can modify it like:
to actually export a model that is identical to the original one, but with the link frames moved to comply with URDF constraints.
Fix #847 .