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

fix uninitialized RobotState transforms #1271

Merged
merged 2 commits into from
Dec 19, 2018

Conversation

rhaschke
Copy link
Contributor

With #1096, 6cc3d62, I slightly improved FK in RobotState, exploiting the fact that the last row of the transform matrix is always [0 0 0 1], performing a 3x4 * 4x4 matrix multiplication. However, this improvement also requires an initialization of this row, once.
This PR fixes this and also improves the corresponding timing tests.

@rhaschke rhaschke changed the title fix uninitialized transforms fix uninitialized RobotState transforms Dec 16, 2018
This was referenced Dec 16, 2018
Since 6cc3d62, the last row of transformation matrices,
which is [0 0 0 1], is not touched during transform updates anymore. Hence, it needs explicit initialization.

Also include initialization of dirty flag for transforms into new method initTransforms()
- utilize ScopedTimer helper class to reduce boiler plate code
- use volatile variables to avoid compiler optimization of timing loop
@rhaschke
Copy link
Contributor Author

@v4hn Done.

@v4hn v4hn merged commit 21df883 into moveit:melodic-devel Dec 19, 2018
@v4hn
Copy link
Contributor

v4hn commented Dec 19, 2018

Merged, thanks!

I hate to say it, but this is another critical bugfix from my perspective.
Can we push out another fixup release before Christmas?

@rhaschke
Copy link
Contributor Author

Can we push out another fixup release before Christmas?

It's already scheduled: #1225 (comment)

@rhaschke rhaschke deleted the fix-isometry branch December 19, 2018 18:05
sjahr pushed a commit to sjahr/moveit that referenced this pull request Jun 21, 2024
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.

None yet

3 participants