the object for collision or distance computation, contains the geometry and the transform information More...
#include <hpp/fcl/collision_object.h>
Public Member Functions | |
CollisionObject (const boost::shared_ptr< CollisionGeometry > &cgeom_) | |
CollisionObject (const boost::shared_ptr< CollisionGeometry > &cgeom_, const Transform3f &tf) | |
CollisionObject (const boost::shared_ptr< CollisionGeometry > &cgeom_, const Matrix3f &R, const Vec3f &T) | |
~CollisionObject () | |
OBJECT_TYPE | getObjectType () const |
get the type of the object More... | |
NODE_TYPE | getNodeType () const |
get the node type More... | |
const AABB & | getAABB () const |
get the AABB in world space More... | |
void | computeAABB () |
compute the AABB in world space More... | |
void * | getUserData () const |
get user data in object More... | |
void | setUserData (void *data) |
set user data in object More... | |
const Vec3f & | getTranslation () const |
get translation of the object More... | |
const Matrix3f & | getRotation () const |
get matrix rotation of the object More... | |
const Quaternion3f & | getQuatRotation () const |
get quaternion rotation of the object More... | |
const Transform3f & | getTransform () const |
get object's transform More... | |
void | setRotation (const Matrix3f &R) |
set object's rotation matrix More... | |
void | setTranslation (const Vec3f &T) |
set object's translation More... | |
void | setQuatRotation (const Quaternion3f &q) |
set object's quatenrion rotation More... | |
void | setTransform (const Matrix3f &R, const Vec3f &T) |
set object's transform More... | |
void | setTransform (const Quaternion3f &q, const Vec3f &T) |
set object's transform More... | |
void | setTransform (const Transform3f &tf) |
set object's transform More... | |
bool | isIdentityTransform () const |
whether the object is in local coordinate More... | |
void | setIdentityTransform () |
set the object in local coordinate More... | |
const CollisionGeometry * | getCollisionGeometry () const FCL_DEPRECATED |
get geometry from the object instance More... | |
const boost::shared_ptr< const CollisionGeometry > & | collisionGeometry () const |
get geometry from the object instance More... | |
const boost::shared_ptr < CollisionGeometry > & | collisionGeometry () |
get geometry from the object instance More... | |
FCL_REAL | getCostDensity () const |
get object's cost density More... | |
void | setCostDensity (FCL_REAL c) |
set object's cost density More... | |
bool | isOccupied () const |
whether the object is completely occupied More... | |
bool | isFree () const |
whether the object is completely free More... | |
bool | isUncertain () const |
whether the object is uncertain More... | |
Protected Attributes | |
boost::shared_ptr < CollisionGeometry > | cgeom |
boost::shared_ptr< const CollisionGeometry > | cgeom_const |
Transform3f | t |
AABB | aabb |
AABB in global coordinate. More... | |
void * | user_data |
pointer to user defined data specific to this object More... | |
the object for collision or distance computation, contains the geometry and the transform information
|
inline |
References cgeom, and computeAABB().
|
inline |
References cgeom, and computeAABB().
|
inline |
References cgeom, and computeAABB().
|
inline |
|
inline |
get geometry from the object instance
References cgeom_const.
|
inline |
get geometry from the object instance
References cgeom.
|
inline |
compute the AABB in world space
References aabb, cgeom, fcl::Transform3f::getQuatRotation(), fcl::Transform3f::getTranslation(), fcl::Quaternion3f::isIdentity(), fcl::AABB::max_, fcl::AABB::min_, t, fcl::Transform3f::transform(), and fcl::translate().
Referenced by CollisionObject().
|
inline |
get the AABB in world space
References aabb.
Referenced by fcl::SpatialHashingCollisionManager< HashTable >::collide_(), fcl::SpatialHashingCollisionManager< HashTable >::distance_(), fcl::SpatialHashingCollisionManager< HashTable >::registerObject(), fcl::SpatialHashingCollisionManager< HashTable >::unregisterObject(), and fcl::SpatialHashingCollisionManager< HashTable >::update().
|
inline |
get geometry from the object instance
References cgeom.
|
inline |
get object's cost density
References cgeom.
|
inline |
get the type of the object
References cgeom.
|
inline |
get quaternion rotation of the object
References fcl::Transform3f::getQuatRotation(), and t.
|
inline |
get matrix rotation of the object
References fcl::Transform3f::getRotation(), and t.
|
inline |
get object's transform
References t.
|
inline |
get translation of the object
References fcl::Transform3f::getTranslation(), and t.
|
inline |
get user data in object
References user_data.
|
inline |
whether the object is completely free
References cgeom.
|
inline |
whether the object is in local coordinate
References fcl::Transform3f::isIdentity(), and t.
|
inline |
whether the object is completely occupied
References cgeom.
|
inline |
whether the object is uncertain
References cgeom.
|
inline |
set object's cost density
References cgeom.
|
inline |
set the object in local coordinate
References fcl::Transform3f::setIdentity(), and t.
|
inline |
set object's quatenrion rotation
References fcl::Transform3f::setQuatRotation(), and t.
|
inline |
set object's rotation matrix
References fcl::Transform3f::setRotation(), and t.
set object's transform
References fcl::Transform3f::setTransform(), and t.
|
inline |
set object's transform
References fcl::Transform3f::setTransform(), and t.
|
inline |
set object's transform
References t.
|
inline |
set object's translation
References fcl::Transform3f::setTranslation(), and t.
|
inline |
set user data in object
References user_data.
|
mutableprotected |
AABB in global coordinate.
Referenced by computeAABB(), and getAABB().
|
protected |
|
protected |
Referenced by collisionGeometry().
|
protected |
|
protected |
pointer to user defined data specific to this object
Referenced by getUserData(), and setUserData().