Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
111cb159
Commit
111cb159
authored
Nov 15, 2019
by
Gabriele Buondonno
Browse files
[CollisionGeometry] Initialize default inertia to NaN
parent
6b23932f
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/fcl/collision_object.h
View file @
111cb159
...
@@ -128,7 +128,7 @@ public:
...
@@ -128,7 +128,7 @@ public:
virtual
Vec3f
computeCOM
()
const
{
return
Vec3f
::
Zero
();
}
virtual
Vec3f
computeCOM
()
const
{
return
Vec3f
::
Zero
();
}
/// @brief compute the inertia matrix, related to the origin
/// @brief compute the inertia matrix, related to the origin
virtual
Matrix3f
computeMomentofInertia
()
const
{
return
Matrix3f
::
Zero
(
);
}
virtual
Matrix3f
computeMomentofInertia
()
const
{
return
Matrix3f
::
Constant
(
NAN
);
}
/// @brief compute the volume
/// @brief compute the volume
virtual
FCL_REAL
computeVolume
()
const
{
return
0
;
}
virtual
FCL_REAL
computeVolume
()
const
{
return
0
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment