Abstraction of configuration validation. More...
#include <hpp/core/config-validation.hh>
Public Member Functions | |
virtual bool | validate (const Configuration_t &config, bool throwIfInValid)=0 |
Compute whether the configuration is valid. | |
virtual bool | validate (const Configuration_t &config, ValidationReport &validationReport, bool throwIfInValid)=0 |
Compute whether the configuration is valid. | |
virtual void | addObstacle (const CollisionObjectPtr_t &) |
Add an obstacle. | |
virtual void | removeObstacleFromJoint (const JointPtr_t &, const CollisionObjectPtr_t &) |
Remove a collision pair between a joint and an obstacle. | |
Protected Member Functions | |
ConfigValidation () |
Abstraction of configuration validation.
Instances of this class validate configurations with respect to some criteria
hpp::core::ConfigValidation::ConfigValidation | ( | ) | [inline, protected] |
virtual void hpp::core::ConfigValidation::addObstacle | ( | const CollisionObjectPtr_t & | ) | [inline, virtual] |
Add an obstacle.
object | obstacle added collision configuration validation needs to know about obstacles. This virtual method does nothing for configuration validation methods that do not care about obstacles. |
Reimplemented in hpp::core::CollisionValidation, and hpp::core::ConfigValidations.
virtual void hpp::core::ConfigValidation::removeObstacleFromJoint | ( | const JointPtr_t & | , |
const CollisionObjectPtr_t & | |||
) | [inline, 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 in hpp::core::CollisionValidation, and hpp::core::ConfigValidations.
virtual bool hpp::core::ConfigValidation::validate | ( | const Configuration_t & | config, |
bool | throwIfInValid | ||
) | [pure virtual] |
Compute whether the configuration is valid.
config | the config to check for validity, |
throwIfInValid | if true throw an exception if config is invalid. |
Implemented in hpp::core::JointBoundValidation, hpp::core::CollisionValidation, and hpp::core::ConfigValidations.
virtual bool hpp::core::ConfigValidation::validate | ( | const Configuration_t & | config, |
ValidationReport & | validationReport, | ||
bool | throwIfInValid | ||
) | [pure virtual] |
Compute whether the configuration is valid.
config | the config to check for validity, |
validationReport | report on validation. This object may be specialized by derived implementation to report specific information. |
throwIfInValid | if true throw an exception if config is invalid. |
Implemented in hpp::core::CollisionValidation, and hpp::core::ConfigValidations.