38 #ifndef FCL_COLLISION_OBJECT_H 39 #define FCL_COLLISION_OBJECT_H 43 #include "fcl/geometry/collision_geometry.h" 57 const Transform3<S>& tf);
105 void setTransform(
const Matrix3<S>& R,
const Vector3<S>& T);
108 void setTransform(
const Quaternion<S>& q,
const Vector3<S>& T);
143 std::shared_ptr<CollisionGeometry<S>> cgeom;
144 std::shared_ptr<const CollisionGeometry<S>> cgeom_const;
156 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
164 #include "fcl/narrowphase/collision_object-inl.h" NODE_TYPE getNodeType() const
get the node type
Definition: collision_object-inl.h:104
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
bool isFree() const
whether the object is completely free
Definition: collision_object-inl.h:271
void setRotation(const Matrix3< S > &R)
set object's rotation matrix
Definition: collision_object-inl.h:177
Main namespace.
Definition: broadphase_bruteforce-inl.h:45
AABB< S > aabb
AABB<S> in global coordinate.
Definition: collision_object.h:149
bool isIdentityTransform() const
whether the object is in local coordinate
Definition: collision_object-inl.h:221
S getCostDensity() const
get object's cost density
Definition: collision_object-inl.h:250
void setQuatRotation(const Quaternion< S > &q)
set object's quatenrion rotation
Definition: collision_object-inl.h:191
const Matrix3< S > getRotation() const
get matrix rotation of the object
Definition: collision_object-inl.h:156
void * user_data
pointer to user defined data specific to this object
Definition: collision_object.h:152
void setCostDensity(S c)
set object's cost density
Definition: collision_object-inl.h:257
void setTranslation(const Vector3< S > &T)
set object's translation
Definition: collision_object-inl.h:184
void setTransform(const Matrix3< S > &R, const Vector3< S > &T)
set object's transform
Definition: collision_object-inl.h:198
The geometry for the object for collision or distance computation.
Definition: collision_geometry.h:59
void setIdentityTransform()
set the object in local coordinate
Definition: collision_object-inl.h:228
void computeAABB()
compute the AABB in world space
Definition: collision_object-inl.h:118
OBJECT_TYPE
object type: BVH (mesh, points), basic geometry, octree
Definition: collision_geometry.h:51
const Transform3< S > & getTransform() const
get object's transform
Definition: collision_object-inl.h:170
const std::shared_ptr< const CollisionGeometry< S > > & collisionGeometry() const
get geometry from the object instance
Definition: collision_object-inl.h:243
const AABB< S > & getAABB() const
get the AABB in world space
Definition: collision_object-inl.h:111
the object for collision or distance computation, contains the geometry and the transform information...
Definition: collision_object.h:51
bool isOccupied() const
whether the object is completely occupied
Definition: collision_object-inl.h:264
bool isUncertain() const
whether the object is uncertain
Definition: collision_object-inl.h:278
OBJECT_TYPE getObjectType() const
get the type of the object
Definition: collision_object-inl.h:97
const Quaternion< S > getQuatRotation() const
get quaternion rotation of the object
Definition: collision_object-inl.h:163
const Vector3< S > getTranslation() const
get translation of the object
Definition: collision_object-inl.h:149
void * getUserData() const
get user data in object
Definition: collision_object-inl.h:135
void setUserData(void *data)
set user data in object
Definition: collision_object-inl.h:142
FCL_DEPRECATED const CollisionGeometry< S > * getCollisionGeometry() const
get geometry from the object instance
Definition: collision_object-inl.h:235