All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
fcl::CollisionObject Class Reference

the object for collision or distance computation, contains the geometry and the transform information More...

#include <collision_object.h>

Inheritance diagram for fcl::CollisionObject:
Inheritance graph
[legend]

List of all members.

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 ()
void computeAABB ()
 compute the AABB in world space
const AABBgetAABB () const
 get the AABB in world space
const CollisionGeometrygetCollisionGeometry () const
 get geometry from the object instance
FCL_REAL getCostDensity () const
 get object's cost density
NODE_TYPE getNodeType () const
 get the node type
OBJECT_TYPE getObjectType () const
 get the type of the object
const Quaternion3fgetQuatRotation () const
 get quaternion rotation of the object
const Matrix3fgetRotation () const
 get matrix rotation of the object
const Transform3fgetTransform () const
 get object's transform
const Vec3fgetTranslation () const
 get translation of the object
void * getUserData () const
 get user data in object
bool isFree () const
 whether the object is completely free
bool isIdentityTransform () const
 whether the object is in local coordinate
bool isOccupied () const
 whether the object is completely occupied
bool isUncertain () const
 whether the object is uncertain
void setCostDensity (FCL_REAL c)
 set object's cost density
void setIdentityTransform ()
 set the object in local coordinate
void setQuatRotation (const Quaternion3f &q)
 set object's quatenrion rotation
void setRotation (const Matrix3f &R)
 set object's rotation matrix
void setTransform (const Matrix3f &R, const Vec3f &T)
 set object's transform
void setTransform (const Quaternion3f &q, const Vec3f &T)
 set object's transform
void setTransform (const Transform3f &tf)
 set object's transform
void setTranslation (const Vec3f &T)
 set object's translation
void setUserData (void *data)
 set user data in object
 ~CollisionObject ()

Protected Attributes

AABB aabb
 AABB in global coordinate.
boost::shared_ptr
< CollisionGeometry
cgeom
Transform3f t
void * user_data
 pointer to user defined data specific to this object

Detailed Description

the object for collision or distance computation, contains the geometry and the transform information

Definition at line 120 of file collision_object.h.


Constructor & Destructor Documentation

fcl::CollisionObject::CollisionObject ( const boost::shared_ptr< CollisionGeometry > &  cgeom_) [inline]

Definition at line 123 of file collision_object.h.

fcl::CollisionObject::CollisionObject ( const boost::shared_ptr< CollisionGeometry > &  cgeom_,
const Transform3f tf 
) [inline]

Definition at line 129 of file collision_object.h.

fcl::CollisionObject::CollisionObject ( const boost::shared_ptr< CollisionGeometry > &  cgeom_,
const Matrix3f R,
const Vec3f T 
) [inline]

Definition at line 135 of file collision_object.h.

Definition at line 142 of file collision_object.h.

Definition at line 146 of file collision_object.h.


Member Function Documentation

compute the AABB in world space

Definition at line 169 of file collision_object.h.

const AABB& fcl::CollisionObject::getAABB ( ) const [inline]

get the AABB in world space

Definition at line 163 of file collision_object.h.

get geometry from the object instance

Definition at line 269 of file collision_object.h.

get object's cost density

Definition at line 275 of file collision_object.h.

get the node type

Definition at line 157 of file collision_object.h.

get the type of the object

Definition at line 151 of file collision_object.h.

get quaternion rotation of the object

Definition at line 209 of file collision_object.h.

const Matrix3f& fcl::CollisionObject::getRotation ( ) const [inline]

get matrix rotation of the object

Definition at line 203 of file collision_object.h.

get object's transform

Definition at line 215 of file collision_object.h.

const Vec3f& fcl::CollisionObject::getTranslation ( ) const [inline]

get translation of the object

Definition at line 197 of file collision_object.h.

void* fcl::CollisionObject::getUserData ( ) const [inline]

get user data in object

Definition at line 185 of file collision_object.h.

bool fcl::CollisionObject::isFree ( ) const [inline]

whether the object is completely free

Definition at line 293 of file collision_object.h.

whether the object is in local coordinate

Definition at line 257 of file collision_object.h.

bool fcl::CollisionObject::isOccupied ( ) const [inline]

whether the object is completely occupied

Definition at line 287 of file collision_object.h.

bool fcl::CollisionObject::isUncertain ( ) const [inline]

whether the object is uncertain

Definition at line 299 of file collision_object.h.

set object's cost density

Definition at line 281 of file collision_object.h.

set the object in local coordinate

Definition at line 263 of file collision_object.h.

set object's quatenrion rotation

Definition at line 233 of file collision_object.h.

void fcl::CollisionObject::setRotation ( const Matrix3f R) [inline]

set object's rotation matrix

Definition at line 221 of file collision_object.h.

void fcl::CollisionObject::setTransform ( const Matrix3f R,
const Vec3f T 
) [inline]

set object's transform

Definition at line 239 of file collision_object.h.

void fcl::CollisionObject::setTransform ( const Quaternion3f q,
const Vec3f T 
) [inline]

set object's transform

Definition at line 245 of file collision_object.h.

void fcl::CollisionObject::setTransform ( const Transform3f tf) [inline]

set object's transform

Definition at line 251 of file collision_object.h.

void fcl::CollisionObject::setTranslation ( const Vec3f T) [inline]

set object's translation

Definition at line 227 of file collision_object.h.

void fcl::CollisionObject::setUserData ( void *  data) [inline]

set user data in object

Definition at line 191 of file collision_object.h.


Member Data Documentation

AABB fcl::CollisionObject::aabb [mutable, protected]

AABB in global coordinate.

Definition at line 311 of file collision_object.h.

boost::shared_ptr<CollisionGeometry> fcl::CollisionObject::cgeom [protected]

Definition at line 306 of file collision_object.h.

Definition at line 308 of file collision_object.h.

pointer to user defined data specific to this object

Definition at line 314 of file collision_object.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


fcl
Author(s): Jia Pan
autogenerated on Tue Jan 15 2013 16:05:31