From 155d2f8dc3653c36ea582a22fbd8488936c24b63 Mon Sep 17 00:00:00 2001 From: Gabriele Buondonno <gbuondon@laas.fr> Date: Fri, 15 Nov 2019 09:53:01 +0100 Subject: [PATCH] [CollisionGeometry] Fix computeCOM and computeMomentofInertia --- include/hpp/fcl/collision_object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hpp/fcl/collision_object.h b/include/hpp/fcl/collision_object.h index 1e743dbd..2c8b84b7 100644 --- a/include/hpp/fcl/collision_object.h +++ b/include/hpp/fcl/collision_object.h @@ -125,10 +125,10 @@ public: FCL_REAL threshold_free; /// @brief compute center of mass - virtual Vec3f computeCOM() const { return Vec3f(); } + virtual Vec3f computeCOM() const { return Vec3f::Zero(); } /// @brief compute the inertia matrix, related to the origin - virtual Matrix3f computeMomentofInertia() const { return Matrix3f(); } + virtual Matrix3f computeMomentofInertia() const { return Matrix3f::Zero(); } /// @brief compute the volume virtual FCL_REAL computeVolume() const { return 0; } -- GitLab