Skip to content

fix uninitialized RobotState transforms - #1271

Merged
v4hn merged 2 commits into
moveit:melodic-develfrom
ubi-agni:fix-isometry
Dec 19, 2018
Merged

v4hn merged 2 commits into
moveit:melodic-develfrom
ubi-agni:fix-isometry

Conversation

@rhaschke

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@v4hn Done.

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

v4hn commented Dec 19, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

3 participants