Translate poses of nested models inside other nested models (sdf6)#596
Merged
Translate poses of nested models inside other nested models (sdf6)#596
Conversation
When addNestedModel function is called, it processes links and joints to translate the pose accordingly to parent pose. This was not done for nested models inside the SDF being processed. The change includes nested models in the same way that is doing for links and add a test that fails without the change. Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
scpeters
approved these changes
Jun 22, 2021
Member
scpeters
left a comment
There was a problem hiding this comment.
this looks good to me
I tried running this test on the sdf9 branch, and it fails since it looks only at the <pose> values without considering the //pose/@relative_to attribute. I believe sdf9 is doing the right thing though, and that the test would pass if the pose values are calculated with the SemanticPose API
I believe an equivalent fix was merged to sdf10 in #399 and then back-ported to sdf9 in #424
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
2 tasks
added 2 commits
June 30, 2021 14:36
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Merged
|
This pull request has been mentioned on Gazebo Community. There might be relevant details there: https://community.gazebosim.org/t/new-ignition-releases-2022-03-25-fortress-edifice-citadel/1343/1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When
addNestedModelfunction is called, it processes links and joints to translate the pose accordingly to parent pose. This was not done for nested models inside the SDF being processed by the function, hence they were not aware of parent pose.This PR includes nested models in the same way that is doing for links and add a test that fails without the change.
The change was proposed by @azeey. If we are not wrong, the change is not present in newer versions of sdformat after the implementation of frame semantics.