AGX Dynamics  2.35.0.1
agxModel::SuctionCupSensorFilter Class Reference

Class for filtering objects of interest nearby a suction cup. More...

#include <SuctionGripper.h>

+ Inheritance diagram for agxModel::SuctionCupSensorFilter:

Public Member Functions

 SuctionCupSensorFilter ()
 
void addGeometry (agxCollide::Geometry *geometry)
 
const agxCollide::GeometryRefVector & getGeometries () const
 
virtual bool match (const agxCollide::Geometry *g0, const agxCollide::Geometry *g1) const override
 Inherited from agxSDK::ExecuteFilter. More...
 
- Public Member Functions inherited from agxSDK::ExecuteFilter
virtual bool match (const agxCollide::GeometryContact &gc) const
 Called when narrow phase tests have determined overlap (when we have detailed intersection between the actual geometries). More...
 
virtual bool match (const agxCollide::GeometryPair &geometryPair) const
 Called once when narrow phase no longer finds overlaps between the two geometries. More...
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Protected Member Functions

virtual ~SuctionCupSensorFilter ()
 
- Protected Member Functions inherited from agxSDK::ExecuteFilter
 ExecuteFilter ()
 Default, hidden constructor. More...
 
virtual ~ExecuteFilter ()
 Destructor. More...
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

agxCollide::GeometryRefVector m_collisionGeometries
 
agxCollide::GeometryRefVector m_sensors
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 

Detailed Description

Class for filtering objects of interest nearby a suction cup.

It will filter all contact involving geometries in either the m_sensors or the m_collisionGeometries vector.

Definition at line 51 of file SuctionGripper.h.

Constructor & Destructor Documentation

◆ SuctionCupSensorFilter()

agxModel::SuctionCupSensorFilter::SuctionCupSensorFilter ( )
inline

Definition at line 55 of file SuctionGripper.h.

◆ ~SuctionCupSensorFilter()

virtual agxModel::SuctionCupSensorFilter::~SuctionCupSensorFilter ( )
inlineprotectedvirtual

Definition at line 87 of file SuctionGripper.h.

References agx::Vector< T, Allocator >::clear(), and m_collisionGeometries.

Member Function Documentation

◆ addGeometry()

void agxModel::SuctionCupSensorFilter::addGeometry ( agxCollide::Geometry *  geometry)
inline

◆ getGeometries()

const agxCollide::GeometryRefVector& agxModel::SuctionCupSensorFilter::getGeometries ( ) const
inline

Definition at line 63 of file SuctionGripper.h.

References m_collisionGeometries.

◆ match()

virtual bool agxModel::SuctionCupSensorFilter::match ( const agxCollide::Geometry *  g0,
const agxCollide::Geometry *  g1 
) const
inlineoverridevirtual

Inherited from agxSDK::ExecuteFilter.

Reimplemented from agxSDK::ExecuteFilter.

Definition at line 69 of file SuctionGripper.h.

References m_collisionGeometries, and agx::Container::size().

Member Data Documentation

◆ m_collisionGeometries

agxCollide::GeometryRefVector agxModel::SuctionCupSensorFilter::m_collisionGeometries
protected

Definition at line 95 of file SuctionGripper.h.

Referenced by ~SuctionCupSensorFilter(), addGeometry(), getGeometries(), and match().

◆ m_sensors

agxCollide::GeometryRefVector agxModel::SuctionCupSensorFilter::m_sensors
protected

Definition at line 94 of file SuctionGripper.h.


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