Validate a configuration with respect to collision. More...
#include <hpp/core/config-validations.hh>
Public Member Functions | |
virtual bool | validate (const Configuration_t &config, bool throwIfInValid=false) |
Compute whether the configuration is valid. | |
virtual bool | validate (const Configuration_t &config, ValidationReport &validationReport, bool throwIfInValid=false) |
Compute whether the configuration is valid. | |
void | add (const ConfigValidationPtr_t &configValidation) |
Add a configuration validation object. | |
virtual void | addObstacle (const CollisionObjectPtr_t &object) |
Add an obstacle. | |
virtual void | removeObstacleFromJoint (const JointPtr_t &joint, const CollisionObjectPtr_t &obstacle) |
Remove a collision pair between a joint and an obstacle. | |
Static Public Member Functions | |
static ConfigValidationsPtr_t | create () |
Protected Member Functions | |
ConfigValidations () |
Validate a configuration with respect to collision.
hpp::core::ConfigValidations::ConfigValidations | ( | ) | [protected] |
void hpp::core::ConfigValidations::add | ( | const ConfigValidationPtr_t & | configValidation | ) |
Add a configuration validation object.
virtual void hpp::core::ConfigValidations::addObstacle | ( | const CollisionObjectPtr_t & | 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.
static ConfigValidationsPtr_t hpp::core::ConfigValidations::create | ( | ) | [static] |
virtual void hpp::core::ConfigValidations::removeObstacleFromJoint | ( | const JointPtr_t & | joint, |
const CollisionObjectPtr_t & | obstacle | ||
) | [virtual] |
Remove a collision pair between a joint and an obstacle.
the | joint that holds the inner objects, |
the | obstacle to remove. collision configuration validation needs to know about obstacles. This virtual method does nothing for configuration validation methods that do not care about obstacles. |
Reimplemented from hpp::core::ConfigValidation.
virtual bool hpp::core::ConfigValidations::validate | ( | const Configuration_t & | config, |
bool | throwIfInValid = false |
||
) | [virtual] |
Compute whether the configuration is valid.
config | the config to check for validity, |
throwIfInValid | if true throw an exception if config is invalid. |
Implements hpp::core::ConfigValidation.
virtual bool hpp::core::ConfigValidations::validate | ( | const Configuration_t & | config, |
ValidationReport & | validationReport, | ||
bool | throwIfInValid = false |
||
) | [virtual] |
Compute whether the configuration is valid.
config | the config to check for validity, |
throwIfInValid | if true throw an exception if config is invalid. |
validationReport | report on validation |
Implements hpp::core::ConfigValidation.