38 #ifndef FCL_COLLISION_GEOMETRY_H 39 #define FCL_COLLISION_GEOMETRY_H 43 #include "fcl/common/deprecated.h" 44 #include "fcl/math/bv/AABB.h" 45 #include "fcl/math/motion/motion_base.h" 51 enum OBJECT_TYPE {OT_UNKNOWN, OT_BVH, OT_GEOM, OT_OCTREE, OT_COUNT};
54 enum NODE_TYPE {BV_UNKNOWN, BV_AABB, BV_OBB, BV_RSS, BV_kIOS, BV_OBBRSS, BV_KDOP16, BV_KDOP18, BV_KDOP24,
55 GEOM_BOX, GEOM_SPHERE, GEOM_ELLIPSOID, GEOM_CAPSULE, GEOM_CONE, GEOM_CYLINDER, GEOM_CONVEX, GEOM_PLANE, GEOM_HALFSPACE, GEOM_TRIANGLE, GEOM_OCTREE, NODE_COUNT};
130 #include "fcl/geometry/collision_geometry-inl.h" Vector3< S > aabb_center
AABB center in local coordinate.
Definition: collision_geometry.h:91
virtual Vector3< S > computeCOM() const
compute center of mass
Definition: collision_geometry-inl.h:121
virtual OBJECT_TYPE getObjectType() const
get the type of the object
Definition: collision_geometry-inl.h:72
NODE_TYPE
traversal node type: bounding volume (AABB, OBB, RSS, kIOS, OBBRSS, KDOP16, KDOP18, kDOP24), basic shape (box, sphere, ellipsoid, capsule, cone, cylinder, convex, plane, halfspace, triangle), and octree
Definition: collision_geometry.h:54
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
virtual Matrix3< S > computeMomentofInertia() const
compute the inertia matrix, related to the origin
Definition: collision_geometry-inl.h:128
S aabb_radius
AABB radius.
Definition: collision_geometry.h:94
void * getUserData() const
get user data in geometry
Definition: collision_geometry-inl.h:86
void * user_data
pointer to user defined data specific to this object
Definition: collision_geometry.h:100
S threshold_free
threshold for free (<= is free)
Definition: collision_geometry.h:109
virtual void computeLocalAABB()=0
compute the AABB for object in local coordinate
bool isFree() const
whether the object is completely free
Definition: collision_geometry-inl.h:107
bool isUncertain() const
whether the object has some uncertainty
Definition: collision_geometry-inl.h:114
The geometry for the object for collision or distance computation.
Definition: collision_geometry.h:59
S threshold_occupied
threshold for occupied ( >= is occupied)
Definition: collision_geometry.h:106
OBJECT_TYPE
object type: BVH (mesh, points), basic geometry, octree
Definition: collision_geometry.h:51
AABB< S > aabb_local
AABB in local coordinate, used for tight AABB when only translation transform.
Definition: collision_geometry.h:97
void setUserData(void *data)
set user data in geometry
Definition: collision_geometry-inl.h:93
S cost_density
collision cost for unit volume
Definition: collision_geometry.h:103
virtual S computeVolume() const
compute the volume
Definition: collision_geometry-inl.h:135
virtual NODE_TYPE getNodeType() const
get the node type
Definition: collision_geometry-inl.h:79
bool isOccupied() const
whether the object is completely occupied
Definition: collision_geometry-inl.h:100
virtual Matrix3< S > computeMomentofInertiaRelatedToCOM() const
compute the inertia matrix, related to the com
Definition: collision_geometry-inl.h:142