RobWorkProject  23.9.11-
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
ContactModelGeometry< A, B > Class Template Reference

Generic contact model for strategies that find contacts between two different types of geometry. More...

#include <ContactModelGeometry.hpp>

Inherits ContactModel.

Classes

struct  GeometryModel
 Model for each geometry. More...
 

Public Types

typedef rw::core::Ptr< ContactModelGeometry< A, B > > Ptr
 smart pointer type to this class
 
typedef GeometryModel< A > TypeA
 The type of GeometryModel for geometry A.
 
typedef GeometryModel< B > TypeB
 The type of GeometryModel for geometry B.
 
- Public Types inherited from ContactModel
typedef rw::core::Ptr< ContactModelPtr
 smart pointer type to this class
 
- Public Types inherited from ProximityModel
typedef rw::core::Ptr< ProximityModelPtr
 smart pointer type to this class
 

Public Member Functions

 ContactModelGeometry (ContactStrategy *owner)
 Construct new model for contacts between geometries. More...
 
virtual ~ContactModelGeometry ()
 Destructor.
 
virtual std::string getName () const
 Get name of model as a string. More...
 
- Public Member Functions inherited from ContactModel
 ContactModel (rw::proximity::ProximityStrategy *pOwner)
 Construct new contact model. More...
 
virtual ~ContactModel ()
 Destruct the model.
 
- Public Member Functions inherited from ProximityModel
 ProximityModel (ProximityStrategy *pOwner)
 Constructor. More...
 
std::vector< std::string > getGeometryIDs ()
 return vector of names for the geometries added to this ProximityModel
 
std::vector< rw::core::Ptr< rw::geometry::Geometry > > getGeometries ()
 get the associated Geometries More...
 
bool addGeometry (const rw::geometry::Geometry &geom)
 adds geometry More...
 
bool addGeometry (rw::core::Ptr< rw::geometry::Geometry > geom, bool forceCopy=false)
 adds geometry using pointer More...
 
bool removeGeometry (const std::string &geoid)
 removes a geometry from the ProximityModel More...
 
rw::kinematics::FramegetFrame ()
 return pointer to the associated frame
 
void setFrame (rw::core::Ptr< rw::kinematics::Frame > frame)
 sets the associated frame More...
 

Public Attributes

std::vector< GeometryModel< A > > modelsA
 List of geometry models belonging to this model.
 
std::vector< GeometryModel< B > > modelsB
 List of hole models belonging to this model.
 
- Public Attributes inherited from ProximityModel
ProximityStrategyowner
 

Detailed Description

template<class A, class B>
class rwsim::contacts::ContactModelGeometry< A, B >

Generic contact model for strategies that find contacts between two different types of geometry.

Constructor & Destructor Documentation

◆ ContactModelGeometry()

Construct new model for contacts between geometries.

Parameters
owner[in] the strategy that owns this model.

Member Function Documentation

◆ getName()

virtual std::string getName ( ) const
inlinevirtual

Get name of model as a string.

Returns
name of model.

Implements ContactModel.


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