Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
collision_detection::FCLShapeCache Struct Reference

Cache for an arbitrary type of shape. It is assigned during the execution of createCollisionGeometry(). More...

Public Types

using ShapeKey = shapes::ShapeConstWeakPtr
 
using ShapeMap = std::map< ShapeKey, FCLGeometryConstPtr, std::owner_less< ShapeKey > >
 

Public Member Functions

void bumpUseCount (bool force=false)
 
 FCLShapeCache ()
 

Public Attributes

unsigned int clean_count_
 Counts cache usage and triggers clearing of cache when MAX_CLEAN_COUNT is exceeded. More...
 
ShapeMap map_
 Map of weak pointers to the FCLGeometry. More...
 

Static Public Attributes

static const unsigned int MAX_CLEAN_COUNT = 100
 

Detailed Description

Cache for an arbitrary type of shape. It is assigned during the execution of createCollisionGeometry().

Only a single cache per thread and object type is created as it is a quasi-singleton instance.

Definition at line 402 of file fcl/src/collision_common.cpp.

Member Typedef Documentation

◆ ShapeKey

using collision_detection::FCLShapeCache::ShapeKey = shapes::ShapeConstWeakPtr

Definition at line 404 of file fcl/src/collision_common.cpp.

◆ ShapeMap

using collision_detection::FCLShapeCache::ShapeMap = std::map<ShapeKey, FCLGeometryConstPtr, std::owner_less<ShapeKey> >

Definition at line 405 of file fcl/src/collision_common.cpp.

Constructor & Destructor Documentation

◆ FCLShapeCache()

collision_detection::FCLShapeCache::FCLShapeCache ( )
inline

Definition at line 407 of file fcl/src/collision_common.cpp.

Member Function Documentation

◆ bumpUseCount()

void collision_detection::FCLShapeCache::bumpUseCount ( bool  force = false)
inline

Definition at line 411 of file fcl/src/collision_common.cpp.

Member Data Documentation

◆ clean_count_

unsigned int collision_detection::FCLShapeCache::clean_count_

Counts cache usage and triggers clearing of cache when MAX_CLEAN_COUNT is exceeded.

Definition at line 440 of file fcl/src/collision_common.cpp.

◆ map_

ShapeMap collision_detection::FCLShapeCache::map_

Map of weak pointers to the FCLGeometry.

Definition at line 437 of file fcl/src/collision_common.cpp.

◆ MAX_CLEAN_COUNT

const unsigned int collision_detection::FCLShapeCache::MAX_CLEAN_COUNT = 100
static

Definition at line 434 of file fcl/src/collision_common.cpp.


The documentation for this struct was generated from the following file:


moveit_core
Author(s): Ioan Sucan , Sachin Chitta , Acorn Pooley
autogenerated on Tue Dec 24 2024 03:27:15