Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::collision::fcl_internal::FCLCollisionObjectWrapper Class Reference

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>

Inheritance diagram for tesseract::collision::fcl_internal::FCLCollisionObjectWrapper:

Public Member Functions

void setContactDistanceThreshold (double contact_distance)
 Set the collision objects contact distance threshold.
double getContactDistanceThreshold () const
 Get the collision objects contact distance threshold.
void updateAABB ()
 Update the internal AABB. This must be called instead of the base class computeAABB().
void setShapeIndex (int index)
 Set the shape index. This is the geometries index in the urdf.
int getShapeIndex () const
 Get the shape index. This is the geometries index in the urdf.

Protected Attributes

double contact_distance_ { 0 }
 The contact distance threshold.
int shape_index_ { -1 }
 The shape index, which is the geometries index in the urdf.

Detailed Description

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.

Member Function Documentation

◆ setContactDistanceThreshold()

void tesseract::collision::fcl_internal::FCLCollisionObjectWrapper::setContactDistanceThreshold ( double contact_distance)

Set the collision objects contact distance threshold.

This automatically calls updateAABB() which increases the AABB by the contact distance.

Parameters
contact_distanceThe contact distance threshold.

◆ getContactDistanceThreshold()

double tesseract::collision::fcl_internal::FCLCollisionObjectWrapper::getContactDistanceThreshold ( ) const

Get the collision objects contact distance threshold.

Returns
The contact distance threshold.

◆ updateAABB()

void tesseract::collision::fcl_internal::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.

◆ setShapeIndex()

void tesseract::collision::fcl_internal::FCLCollisionObjectWrapper::setShapeIndex ( int index)

Set the shape index. This is the geometries index in the urdf.

Parameters
indexThe index

◆ getShapeIndex()

int tesseract::collision::fcl_internal::FCLCollisionObjectWrapper::getShapeIndex ( ) const

Get the shape index. This is the geometries index in the urdf.

Returns
The shape index