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

Bug in SpatialInertia shift() method, and composite body inertias #334

Closed
sherm1 opened this issue Feb 6, 2015 · 1 comment
Closed

Bug in SpatialInertia shift() method, and composite body inertias #334

sherm1 opened this issue Feb 6, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@sherm1
Copy link
Member

sherm1 commented Feb 6, 2015

The SpatialInertia::shift() method does not work correctly for a SpatialInertia with a non-zero COM offset. This method is used in calcCompositeBodyInertias() and related methods so those are also wrong. Neither of these is commonly used.

The problem was reported for Simbody 3.5.1 by Gordon Deane in this forum post.

There was a regression test for this but it had a zero COM offset so didn't detect the bug; that should be changed.

@sherm1 sherm1 added the bug label Feb 6, 2015
@sherm1 sherm1 self-assigned this Feb 6, 2015
@sherm1 sherm1 added this to the Simbody 4.0 milestone Feb 6, 2015
sherm1 added a commit that referenced this issue Feb 6, 2015
…so broke composite body inertias.

Added a regression test for SpatialInertia.
Improved composite body inertia regression to use non-zero COM offset.
Added comments clarifying that the ArticulatedInertia::shift() method actually shifts by the *negative* of the given vector.
sherm1 added a commit that referenced this issue Feb 6, 2015
…so broke composite body inertias.

Added a regression test for SpatialInertia.
Improved composite body inertia regression to use non-zero COM offset.
Added comments clarifying that the ArticulatedInertia::shift() method actually shifts by the *negative* of the given vector.

(cherry picked from commit 934cbc7)
@sherm1
Copy link
Member Author

sherm1 commented Feb 6, 2015

Fixed in Simbody 3.6 and 4.0.

@sherm1 sherm1 closed this as completed Feb 6, 2015
sherm1 added a commit that referenced this issue Jun 14, 2015
…so broke composite body inertias.

Added a regression test for SpatialInertia.
Improved composite body inertia regression to use non-zero COM offset.
Added comments clarifying that the ArticulatedInertia::shift() method actually shifts by the *negative* of the given vector.

(cherry picked from commit 934cbc7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant