Skip to content
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

Follow-Up on Connected Body Changes #1479

Merged
merged 7 commits into from
Dec 22, 2024

Conversation

Puttichai
Copy link
Collaborator

Description

  • @cielavenir discovered a problem in the newly introduced _UpdateConnectedBodyInfo function. I added a check to skip resolved joint names that are empty strings.

  • Some other tests are failing due to unrelated reasons. In the function _UpdateFromInfo, there are codes that check and compare two transforms (of links, geometries, etc.) to see if the original body should be updated according to the given infos. The current check, which is done via CompareTransform does not take into account the fact that quat and -quat represents the same rotation. This results in the update function returning UFIR_RequireReinitialize instead of UFIR_NoChange.

    The function that compares two transforms (for the purpose of checking for updates) was originally implemented similar to TransformDistanceFast. The function implementation (as well as the function name itself) was changed in Fix Updating Link Transform #955. The later implementation directly compare values one by one.

if( resolvedJointName.empty() ) {
// Can be empty after being deinitialized
continue;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you~

@rdiankov rdiankov merged commit 72db427 into production Dec 22, 2024
1 check passed
@rdiankov rdiankov deleted the connected_body_callback_20241216 branch December 22, 2024 15:37
@rdiankov
Copy link
Owner

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants