The geometry for the object for collision or distance computation. More...
#include <collision_object.h>
Public Member Functions | |
virtual CollisionGeometry * | clone () const =0 |
Clone *this into a new CollisionGeometry. More... | |
CollisionGeometry () | |
CollisionGeometry (const CollisionGeometry &other)=default | |
Copy constructor. More... | |
virtual Vec3s | computeCOM () const |
compute center of mass More... | |
virtual void | computeLocalAABB ()=0 |
compute the AABB for object in local coordinate More... | |
virtual Matrix3s | computeMomentofInertia () const |
compute the inertia matrix, related to the origin More... | |
virtual Matrix3s | computeMomentofInertiaRelatedToCOM () const |
compute the inertia matrix, related to the com More... | |
virtual CoalScalar | computeVolume () const |
compute the volume More... | |
virtual NODE_TYPE | getNodeType () const |
get the node type More... | |
virtual OBJECT_TYPE | getObjectType () const |
get the type of the object More... | |
void * | getUserData () const |
get user data in geometry More... | |
bool | isFree () const |
whether the object is completely free More... | |
bool | isOccupied () const |
whether the object is completely occupied More... | |
bool | isUncertain () const |
whether the object has some uncertainty More... | |
bool | operator!= (const CollisionGeometry &other) const |
Difference operator. More... | |
bool | operator== (const CollisionGeometry &other) const |
Equality operator. More... | |
void | setUserData (void *data) |
set user data in geometry More... | |
virtual | ~CollisionGeometry () |
Public Attributes | |
Vec3s | aabb_center |
AABB center in local coordinate. More... | |
AABB | aabb_local |
AABB in local coordinate, used for tight AABB when only translation transform. More... | |
CoalScalar | aabb_radius |
AABB radius. More... | |
CoalScalar | cost_density |
collision cost for unit volume More... | |
CoalScalar | threshold_free |
threshold for free (<= is free) More... | |
CoalScalar | threshold_occupied |
threshold for occupied ( >= is occupied) More... | |
void * | user_data |
pointer to user defined data specific to this object More... | |
Private Member Functions | |
virtual bool | isEqual (const CollisionGeometry &other) const =0 |
equal operator with another object of derived type. More... | |
virtual bool | isNotEqual (const CollisionGeometry &other) const |
not equal operator with another object of derived type. More... | |
The geometry for the object for collision or distance computation.
Definition at line 94 of file coal/collision_object.h.