This is a wrapper around FCL Collision Object Class which allows you to expand the AABB by the contact dist. More...
#include <fcl_collision_object_wrapper.h>
Public Member Functions | |
double | getContactDistanceThreshold () const |
Get the collision objects contact distance threshold. More... | |
int | getShapeIndex () const |
Get the shape index. This is the geometries index in the urdf. More... | |
void | setContactDistanceThreshold (double contact_distance) |
Set the collision objects contact distance threshold. More... | |
void | setShapeIndex (int index) |
Set the shape index. This is the geometries index in the urdf. More... | |
void | updateAABB () |
Update the internal AABB. This must be called instead of the base class computeAABB(). More... | |
![]() | |
const std::shared_ptr< const CollisionGeometry< S > > & | collisionGeometry () const |
CollisionObject (const std::shared_ptr< CollisionGeometry< S >> &cgeom) | |
CollisionObject (const std::shared_ptr< CollisionGeometry< S >> &cgeom, const Matrix3< S > &R, const Vector3< S > &T) | |
CollisionObject (const std::shared_ptr< CollisionGeometry< S >> &cgeom, const Transform3< S > &tf) | |
void | computeAABB () |
const AABB< S > & | getAABB () const |
const FCL_DEPRECATED CollisionGeometry< S > * | getCollisionGeometry () const |
S | getCostDensity () const |
NODE_TYPE | getNodeType () const |
OBJECT_TYPE | getObjectType () const |
const Quaternion< S > | getQuatRotation () const |
const Matrix3< S > | getRotation () const |
const Transform3< S > & | getTransform () const |
const Vector3< S > | getTranslation () const |
void * | getUserData () const |
bool | isFree () const |
bool | isIdentityTransform () const |
bool | isOccupied () const |
bool | isUncertain () const |
void | setCostDensity (S c) |
void | setIdentityTransform () |
void | setQuatRotation (const Quaternion< S > &q) |
void | setRotation (const Matrix3< S > &R) |
void | setTransform (const Matrix3< S > &R, const Vector3< S > &T) |
void | setTransform (const Quaternion< S > &q, const Vector3< S > &T) |
void | setTransform (const Transform3< S > &tf) |
void | setTranslation (const Vector3< S > &T) |
void | setUserData (void *data) |
~CollisionObject () | |
Protected Attributes | |
double | contact_distance_ { 0 } |
The contact distance threshold. More... | |
int | shape_index_ { -1 } |
The shape index, which is the geometries index in the urdf. More... | |
![]() | |
AABB< S > | aabb |
std::shared_ptr< CollisionGeometry< S > > | cgeom |
std::shared_ptr< const CollisionGeometry< S > > | cgeom_const |
Transform3< S > | t |
void * | user_data |
This is a wrapper around FCL Collision Object Class which allows you to expand the AABB by the contact dist.
This significantly improves performance when making distance requests if performing a contact tests type FIRST.
Definition at line 41 of file fcl_collision_object_wrapper.h.
double tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::getContactDistanceThreshold | ( | ) | const |
Get the collision objects contact distance threshold.
Definition at line 37 of file fcl_collision_object_wrapper.cpp.
int tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::getShapeIndex | ( | ) | const |
Get the shape index. This is the geometries index in the urdf.
Definition at line 59 of file fcl_collision_object_wrapper.cpp.
void tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::setContactDistanceThreshold | ( | double | contact_distance | ) |
Set the collision objects contact distance threshold.
This automatically calls updateAABB() which increases the AABB by the contact distance.
contact_distance | The contact distance threshold. |
Definition at line 31 of file fcl_collision_object_wrapper.cpp.
void tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::setShapeIndex | ( | int | index | ) |
Set the shape index. This is the geometries index in the urdf.
index | The index |
Definition at line 57 of file fcl_collision_object_wrapper.cpp.
void tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::updateAABB | ( | ) |
Update the internal AABB. This must be called instead of the base class computeAABB().
After setting the collision objects transform this must be called.
Definition at line 39 of file fcl_collision_object_wrapper.cpp.
|
protected |
The contact distance threshold.
Definition at line 80 of file fcl_collision_object_wrapper.h.
|
protected |
The shape index, which is the geometries index in the urdf.
Definition at line 83 of file fcl_collision_object_wrapper.h.