hpp-core
4.9.0
Implement basic classes for canonical path planning for kinematic chains.
|
Stores a set of obstacles (movable or static). More...
#include <hpp/core/obstacle-user.hh>
Public Types | |
typedef std::pair< CollisionObjectConstPtr_t, CollisionObjectConstPtr_t > | CollisionPair_t |
typedef std::vector< CollisionPair_t > | CollisionPairs_t |
typedef std::vector< fcl::CollisionRequest > | CollisionRequests_t |
Public Member Functions | |
virtual | ~ObstacleUser () |
const CollisionPairs_t & | pairs () const |
CollisionPairs_t & | pairs () |
const CollisionRequests_t & | requests () const |
CollisionRequests_t & | requests () |
fcl::CollisionRequest & | defaultRequest () |
void | setRequests (const fcl::CollisionRequest &r) |
virtual void | addObstacle (const CollisionObjectConstPtr_t &object) |
virtual void | addObstacleToJoint (const CollisionObjectConstPtr_t &object, const JointPtr_t &joint, const bool includeChildren) |
virtual void | removeObstacleFromJoint (const JointPtr_t &joint, const CollisionObjectConstPtr_t &object) |
virtual void | filterCollisionPairs (const RelativeMotion::matrix_type &relMotion) |
virtual void | setSecurityMargins (const matrix_t &securityMatrix) |
Public Member Functions inherited from hpp::core::ObstacleUserInterface | |
virtual | ~ObstacleUserInterface () |
Static Public Member Functions | |
static bool | collide (const CollisionPairs_t &pairs, const CollisionRequests_t &reqs, fcl::CollisionResult &res, std::size_t &i, pinocchio::DeviceData &data) |
Protected Member Functions | |
ObstacleUser (DevicePtr_t robot) | |
Constructor of body pair collision. More... | |
ObstacleUser (const ObstacleUser &other) | |
Copy constructor. More... | |
void | addRobotCollisionPairs () |
Protected Attributes | |
DevicePtr_t | robot_ |
fcl::CollisionRequest | defaultRequest_ |
CollisionPairs_t | cPairs_ |
CollisionPairs_t | pPairs_ |
Active collision pairs. More... | |
CollisionPairs_t | dPairs_ |
Parameterized collision pairs. More... | |
CollisionRequests_t | cRequests_ |
Disabled collision pairs. More... | |
CollisionRequests_t | pRequests_ |
Active collision requests. More... | |
CollisionRequests_t | dRequests_ |
Parameterized collision requests. More... | |
Stores a set of obstacles (movable or static).
typedef std::pair<CollisionObjectConstPtr_t, CollisionObjectConstPtr_t> hpp::core::ObstacleUser::CollisionPair_t |
typedef std::vector<CollisionPair_t> hpp::core::ObstacleUser::CollisionPairs_t |
typedef std::vector<fcl::CollisionRequest> hpp::core::ObstacleUser::CollisionRequests_t |
|
inlinevirtual |
|
inlineprotected |
Constructor of body pair collision.
|
inlineprotected |
Copy constructor.
|
virtual |
|
virtual |
Add an obstacle to a specific joint
object | obstacle added |
joint | concerned with obstacle addition |
includeChildren | whether to add obstacle to joint children Store obstacle and build a collision pair with each body of the robot. |
|
protected |
|
static |
|
inline |
|
virtual |
Filter collision pairs.
Remove pairs of object that cannot be in collision. This effectively disables collision detection between objects that have no possible relative motion due to the constraints.
relMotion | square symmetric matrix of RelativeMotionType of size numberDof x numberDof |
Implements hpp::core::ObstacleUserInterface.
|
inline |
|
inline |
|
virtual |
Remove a collision pair between a joint and an obstacle
joint | that holds the inner objects, |
obstacle | to remove. |
Implements hpp::core::ObstacleUserInterface.
|
inline |
|
inline |
void hpp::core::ObstacleUser::setRequests | ( | const fcl::CollisionRequest & | r | ) |
|
virtual |
Set different security margins for collision pairs
This method enables users to choose different security margins for each pair of robot body or each pair robot body - obstacle.
Implements hpp::core::ObstacleUserInterface.
|
protected |
|
protected |
Disabled collision pairs.
|
protected |
|
protected |
Parameterized collision pairs.
|
protected |
Parameterized collision requests.
|
protected |
Active collision pairs.
|
protected |
Active collision requests.
|
protected |