Validate a configuration with respect to collision. More...
#include <hpp/core/config-validations.hh>
Public Member Functions | |
virtual bool | validate (const Configuration_t &config, ValidationReportPtr_t &validationReport) |
Compute whether the configuration is valid. More... | |
void | add (const ConfigValidationPtr_t &configValidation) |
Add a configuration validation object. More... | |
virtual void | addObstacle (const CollisionObjectConstPtr_t &object) |
Add an obstacle. More... | |
virtual void | removeObstacleFromJoint (const JointPtr_t &joint, const CollisionObjectConstPtr_t &obstacle) |
Remove a collision pair between a joint and an obstacle. More... | |
void | filterCollisionPairs (const RelativeMotion::matrix_type &matrix) |
Filter collision pairs. More... | |
size_type | numberConfigValidations () const |
Return the number of config validations. More... | |
void | clear () |
![]() | |
virtual | ~ConfigValidation () |
Static Public Member Functions | |
static ConfigValidationsPtr_t | create () |
Protected Member Functions | |
ConfigValidations () | |
![]() | |
ConfigValidation () | |
Validate a configuration with respect to collision.
|
protected |
void hpp::core::ConfigValidations::add | ( | const ConfigValidationPtr_t & | configValidation | ) |
Add a configuration validation object.
|
virtual |
Add an obstacle.
object | obstacle added Store obstacle and build a collision pair with each body of the robot. |
Reimplemented from hpp::core::ConfigValidation.
void hpp::core::ConfigValidations::clear | ( | ) |
|
static |
|
virtual |
Filter collision pairs.
Remove pairs of object that cannot be in collision when these constraints are statisfied. This effectively disables collision detection between objects that have no possible relative motion due to the constraints.
square | symmetric matrix of RelativeMotionType of size numberDof x numberDof |
Reimplemented from hpp::core::ConfigValidation.
size_type hpp::core::ConfigValidations::numberConfigValidations | ( | ) | const |
Return the number of config validations.
|
virtual |
Remove a collision pair between a joint and an obstacle.
the | joint that holds the inner objects, |
the | obstacle to remove. |
Reimplemented from hpp::core::ConfigValidation.
|
virtual |
Compute whether the configuration is valid.
config | the config to check for validity, |
validationReport | report on validation. If non valid, a validation report will be allocated and returned via this shared pointer. |
Implements hpp::core::ConfigValidation.