New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed parenting of SDF model and link entity transforms #591
Merged
adamdbrw
merged 2 commits into
o3de:development
from
aws-lumberyard-dev:sdf-model-transform-fixes
Oct 30, 2023
Merged
Fixed parenting of SDF model and link entity transforms #591
adamdbrw
merged 2 commits into
o3de:development
from
aws-lumberyard-dev:sdf-model-transform-fixes
Oct 30, 2023
Conversation
This file contains 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
The pose information from the SDF is a value relative to it's attached frame. The `GetLocalTransfromURDF` function was misnamed and returning the a local transform for any SDF link supplied to the function. Also the `PrefabMakerUtils::SetEntityParent` function which is used to attach a child entity to a parent entity, preserves the world transform of the child entity. Therefore any pose information on child entities such as nested models or links on a model would be set in world space and not in local space. Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
lemonade-dm
requested review from
michalpelka,
adamdbrw,
mbalfour-amzn and
jhanca-robotecai
October 25, 2023 02:53
mbalfour-amzn
approved these changes
Oct 25, 2023
mbalfour-amzn
requested changes
Oct 25, 2023
The parent child hierarchy is established through an SDF joint element which references a child and a parent link. The hieararchy itself shouldn't be used to adjust the world transform between the two links, only to have the child link entity to be under parent link entity for organization purposes. Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
lemonade-dm
force-pushed
the
sdf-model-transform-fixes
branch
from
October 25, 2023 16:30
bb4101a
to
65fbddd
Compare
mbalfour-amzn
approved these changes
Oct 25, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
michalpelka
approved these changes
Oct 27, 2023
mbalfour-amzn
pushed a commit
to aws-lumberyard-dev/o3de-extras
that referenced
this pull request
Nov 9, 2023
* Fixed parenting of SDF model and link entity transforms The pose information from the SDF is a value relative to it's attached frame. The `GetLocalTransfromURDF` function was misnamed and returning the a local transform for any SDF link supplied to the function. Also the `PrefabMakerUtils::SetEntityParent` function which is used to attach a child entity to a parent entity, preserves the world transform of the child entity. Therefore any pose information on child entities such as nested models or links on a model would be set in world space and not in local space. * Fixed the setup of the parent child entity hierarchy between SDF links The parent child hierarchy is established through an SDF joint element which references a child and a parent link. The hieararchy itself shouldn't be used to adjust the world transform between the two links, only to have the child link entity to be under parent link entity for organization purposes. --------- Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
michalpelka
pushed a commit
to RobotecAI/o3de-extras
that referenced
this pull request
Nov 17, 2023
* Fixed parenting of SDF model and link entity transforms The pose information from the SDF is a value relative to it's attached frame. The `GetLocalTransfromURDF` function was misnamed and returning the a local transform for any SDF link supplied to the function. Also the `PrefabMakerUtils::SetEntityParent` function which is used to attach a child entity to a parent entity, preserves the world transform of the child entity. Therefore any pose information on child entities such as nested models or links on a model would be set in world space and not in local space. * Fixed the setup of the parent child entity hierarchy between SDF links The parent child hierarchy is established through an SDF joint element which references a child and a parent link. The hieararchy itself shouldn't be used to adjust the world transform between the two links, only to have the child link entity to be under parent link entity for organization purposes. --------- Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
michalpelka
pushed a commit
that referenced
this pull request
Dec 6, 2023
* Fixed parenting of SDF model and link entity transforms The pose information from the SDF is a value relative to it's attached frame. The `GetLocalTransfromURDF` function was misnamed and returning the a local transform for any SDF link supplied to the function. Also the `PrefabMakerUtils::SetEntityParent` function which is used to attach a child entity to a parent entity, preserves the world transform of the child entity. Therefore any pose information on child entities such as nested models or links on a model would be set in world space and not in local space. * Fixed the setup of the parent child entity hierarchy between SDF links The parent child hierarchy is established through an SDF joint element which references a child and a parent link. The hieararchy itself shouldn't be used to adjust the world transform between the two links, only to have the child link entity to be under parent link entity for organization purposes. --------- Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
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.
The pose information from the SDF is a value relative to it's attached frame. The
GetLocalTransfromURDF
function was misnamed and returning the a local transform for any SDF link supplied to the function.Also the
PrefabMakerUtils::SetEntityParent
function which is used to attach a child entity to a parent entity, preserves the world transform of the child entity. Therefore any pose information on child entities such as nested models or links on a model would be set in world space and not in local space.How was this PR tested?
Verified that the nested model entities and link entities were transformed relative to the parent model entity