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

Clean up Convex geometry (including fixing AABB computation error) #325

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* Switched to Eigen for math operations: [#96](https://github.com/flexible-collision-library/fcl/issues/96), [#150](https://github.com/flexible-collision-library/fcl/pull/150)
* fcl::Transform defined to be an Isometry to facilitate inverses [#318](https://github.com/flexible-collision-library/fcl/pull/318)

* Geometry

* Simplified Convex class, deprecating old constructor in favor of simpler, documented constructor: [#325](https://github.com/flexible-collision-library/fcl/pull/325)

* Broadphase

* Fixed redundant pair checking of SpatialHashingCollisionManager: [#156](https://github.com/flexible-collision-library/fcl/pull/156)
Expand Down
7 changes: 7 additions & 0 deletions include/fcl/geometry/collision_geometry-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ S CollisionGeometry<S>::computeVolume() const
template <typename S>
Matrix3<S> CollisionGeometry<S>::computeMomentofInertiaRelatedToCOM() const
{
// TODO(SeanCurtis-TRI): This is *horribly* inefficient. In complex cases,
// this will require computing volume integrals three times. The
// CollisionGeometry class should have a single virtual function that will
// return all three quantities in one call so that particular sub-classes can
// override this to process this answer more efficiently. The default
// implementation can be exactly these three calls.
// See: https://github.com/flexible-collision-library/fcl/issues/327.
Matrix3<S> C = computeMomentofInertia();
Vector3<S> com = computeCOM();
S V = computeVolume();
Expand Down
Loading