RobWorkProject
23.9.11-
|
Class for managing the collision geometries associated to a frame. More...
#include <ProximityModel.hpp>
Inherited by ProximityStrategyRW::RWProximityModel, ProximityStrategyBullet::ProximityModelBullet, ProximityStrategyFCL::FCLProximityModel, ProximityStrategyPQP::PQPProximityModel, and ContactModel.
Public Types | |
typedef rw::core::Ptr< ProximityModel > | Ptr |
smart pointer type to this class | |
Public Member Functions | |
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::Frame * | getFrame () |
return pointer to the associated frame | |
void | setFrame (rw::core::Ptr< rw::kinematics::Frame > frame) |
sets the associated frame More... | |
Public Attributes | |
ProximityStrategy * | owner |
Class for managing the collision geometries associated to a frame.
|
inline |
Constructor.
pOwner | the ProximityStrategy owning this ProximityModel |
bool addGeometry | ( | const rw::geometry::Geometry & | geom | ) |
adds geometry
geom | the geometry to add |
bool addGeometry | ( | rw::core::Ptr< rw::geometry::Geometry > | geom, |
bool | forceCopy = false |
||
) |
adds geometry using pointer
geom | [in] the geometry to add |
forceCopy | [in] |
std::vector<rw::core::Ptr<rw::geometry::Geometry> > getGeometries | ( | ) |
get the associated Geometries
bool removeGeometry | ( | const std::string & | geoid | ) |
|
inline |
sets the associated frame
frame | frame to set |