This is a strategy wrapper for the distance and collision library Gimpact from the Bullet physicsengine.
More...
|
| ProximityStrategyBullet () |
| Constructor.
|
|
virtual rw::proximity::ProximityModel::Ptr | createModel () |
| creates an empty ProximityModel More...
|
|
void | destroyModel (rw::proximity::ProximityModel *model) |
| deallocates the memory used for model More...
|
|
bool | addGeometry (rw::proximity::ProximityModel *model, const rw::geometry::Geometry &geom) |
|
bool | addGeometry (rw::proximity::ProximityModel *model, rw::core::Ptr< rw::geometry::Geometry > geom, bool forceCopy=false) |
|
bool | removeGeometry (rw::proximity::ProximityModel *model, const std::string &geomId) |
| removes a geometry from a specific proximity model More...
|
|
std::vector< std::string > | getGeometryIDs (rw::proximity::ProximityModel *model) |
| the list of all geometry ids that are associated to the proximity model model is returned More...
|
|
virtual | ~CollisionStrategy () |
| Destroys object.
|
|
bool | inCollision (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, QueryType type=FirstContact) |
| Checks to see if two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \) are in collision. More...
|
|
bool | inCollision (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, class ProximityStrategyData &data, QueryType type=FirstContact) |
| Checks to see if two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \) are in collision. More...
|
|
bool | inCollision (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, ProximityStrategyData &data) |
| Checks to see if two proximity models are in collision. More...
|
|
virtual void | getCollisionContacts (std::vector< CollisionStrategy::Contact > &contacts, ProximityStrategyData &data)=0 |
| this method interprets the collision query result and calculates a list of contacts to represent the collision geometry between the colliding geometries. More...
|
|
virtual | ~ProximityStrategy () |
| Destructor.
|
|
virtual bool | addModel (rw::core::Ptr< rw::models::Object > object) |
| Adds a Proximity model of a frame to this strategy. More...
|
|
virtual bool | addModel (const rw::core::Ptr< rw::kinematics::Frame > frame, const rw::geometry::Geometry &faces) |
| Adds a Proximity model to a frame where the geometry is copied in the underlying proximity strategy. More...
|
|
virtual bool | addModel (const rw::core::Ptr< rw::kinematics::Frame > frame, rw::core::Ptr< rw::geometry::Geometry > faces, bool forceCopy=false) |
| Adds a Proximity model to a frame. More...
|
|
virtual bool | hasModel (const rw::core::Ptr< rw::kinematics::Frame > frame) |
| Tells whether the frame has a proximity model in the strategy. More...
|
|
virtual void | clearFrame (const rw::core::Ptr< rw::kinematics::Frame > frame) |
| Clear (remove all) model information for frame frame.
|
|
virtual void | clearFrames () |
| Clear (remove all) model information for all frames.
|
|
ProximityModel::Ptr | getModel (const rw::core::Ptr< rw::kinematics::Frame > frame) |
| get the proximitymodel associated to frame. If no model has been associated to frame then NULL is returned. More...
|
|
virtual std::vector< rw::core::Ptr< rw::geometry::Geometry > > | getGeometries (rw::proximity::ProximityModel *model)=0 |
| the list of all geometry that are associated to the proximity model model is returned More...
|
|
| DEPRECATED ("This function is deprecated due to a spelling mistake, use the correct " "spelling \"getGeometries\" instead") std |
|
virtual void | clear ()=0 |
| Clears any stored model information.
|
|
void | useThreads (int threads) |
| setNumber of threads the strategy may use More...
|
|
virtual | ~CollisionToleranceStrategy () |
| Destroys object.
|
|
bool | isWithinDistance (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, double tolerance) |
| Checks to see if the geometry attached to two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \) are closer than the specified tolerance. More...
|
|
bool | isWithinDistance (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, double distance, class ProximityStrategyData &data) |
| Checks to see if the geometry attached to two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \) are closer than the specified tolerance. Result is cached in data. More...
|
|
bool | isWithinDistance (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, double tolerance, class ProximityStrategyData &data) |
| Checks to see if two proximity models \( \mathcal{F}_a \) and \( \mathcal{F}_b \) are closer than the specified tolerance. Result is cached in data. More...
|
|
virtual | ~DistanceStrategy () |
| Destroys object.
|
|
Result | distance (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb) |
| Calculates the distance between two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \). More...
|
|
Result & | distance (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, class ProximityStrategyData &data) |
| Calculates the distance between two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \). More...
|
|
Result & | distance (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, class ProximityStrategyData &data) |
| Calculates the distance between two proximity models \( \mathcal{a} \) and \( \mathcal{b} \). More...
|
|
Result | distance (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, double threshold) |
| Calculates the distance between two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \) if the distance are within threshold. If the distance between the frames are larger than the threshold, the result will be inaccurate. More...
|
|
DistanceStrategy::Result & | distance (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, double threshold, ProximityStrategyData &data) |
| Calculates the distance between two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \) if the distance are within threshold. If the distance between the frames are larger than the threshold, the result will be inaccurate. More...
|
|
DistanceStrategy::Result & | distance (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, double threshold, ProximityStrategyData &data) |
| Calculates the distance between two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \) if the distance are within threshold. If the distance between the frames are larger than the threshold, the result will be inaccurate. More...
|
|
virtual | ~DistanceMultiStrategy () |
| Destroys object.
|
|
Result | distances (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, double tolerance) |
| Calculates all distances between geometry of two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \). More...
|
|
Result & | distances (const rw::core::Ptr< kinematics::Frame > a, const math::Transform3D< double > &wTa, const rw::core::Ptr< kinematics::Frame > b, const math::Transform3D< double > &wTb, double tolerance, class ProximityStrategyData &data) |
| Calculates all distances between geometry of two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \). More...
|
|
Result & | distances (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, double tolerance, class ProximityStrategyData &data) |
| Calculates all distances between two given objects \( \mathcal{F}_a \) and \( \mathcal{F}_b \) where the distances are below a certain threshold. More...
|
|
virtual std::pair< rw::math::Vector3D< double >, rw::math::Vector3D< double > > | getSurfaceNormals (rw::proximity::DistanceMultiStrategy::Result &res, int idx)=0 |
| Get the Surface Normals. More...
|
|
|
static CollisionStrategy::Ptr | make (rw::core::Ptr< CollisionToleranceStrategy > strategy, double tolerance) |
| A collision strategy constructed from a collision tolerance strategy and a resolution. More...
|
|
static CollisionStrategy::Ptr | make (rw::core::Ptr< CollisionToleranceStrategy > strategy, const rw::kinematics::FrameMap< double > &frameToTolerance, double defaultTolerance) |
| A collision strategy constructed from a collision tolerance strategy and a resolution. More...
|
|
virtual bool | doInCollision (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, ProximityStrategyData &data)=0 |
| Checks to see if two proximity models are in collision. More...
|
|
| CollisionStrategy () |
| Creates object.
|
|
| ProximityStrategy () |
| Creates object.
|
|
virtual bool | doIsWithinDistance (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, double tolerance, class ProximityStrategyData &data)=0 |
| Checks to see if two proximity models \( \mathcal{F}_a \) and \( \mathcal{F}_b \) are closer than the specified tolerance. Result is cached in data. More...
|
|
| CollisionToleranceStrategy () |
| Creates object.
|
|
virtual Result & | doDistance (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, class ProximityStrategyData &data)=0 |
| Calculates the distance between two proximity models \( \mathcal{a} \) and \( \mathcal{b} \). More...
|
|
virtual DistanceStrategy::Result & | doDistanceThreshold (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, double threshold, ProximityStrategyData &data) |
| Calculates the distance between two given frames \( \mathcal{F}_a \) and \( \mathcal{F}_b \) if the distance are within threshold. If the distance between the frames are larger than the threshold, the result will be inaccurate. More...
|
|
| DistanceStrategy () |
| Creates object.
|
|
virtual Result & | doDistances (ProximityModel::Ptr a, const math::Transform3D< double > &wTa, ProximityModel::Ptr b, const math::Transform3D< double > &wTb, double tolerance, class ProximityStrategyData &data)=0 |
| Calculates all distances between two given objects \( \mathcal{F}_a \) and \( \mathcal{F}_b \) where the distances are below a certain threshold. More...
|
|
| DistanceMultiStrategy () |
| Creates object.
|
|
size_t | _threads |
| the number of threads the strategy may use
|
|
This is a strategy wrapper for the distance and collision library Gimpact from the Bullet physicsengine.