|
hpp-core
6.0.0
Implement basic classes for canonical path planning for kinematic chains.
|
#include <hpp/core/constraint.hh>

Public Member Functions | |
| bool | apply (ConfigurationOut_t configuration) |
| const std::string & | name () const |
| Get name of constraint. More... | |
| virtual bool | isSatisfied (ConfigurationIn_t config)=0 |
| virtual bool | isSatisfied (ConfigurationIn_t config, vector_t &error)=0 |
| virtual ConstraintPtr_t | copy () const =0 |
| return shared pointer to copy More... | |
| virtual | ~Constraint () |
Protected Member Functions | |
| virtual bool | impl_compute (ConfigurationOut_t configuration)=0 |
| User defined implementation of the constraint. More... | |
| Constraint (const std::string &name) | |
| Constructor. More... | |
| Constraint (const Constraint &constraint) | |
| void | init (const ConstraintPtr_t &self) |
| Store shared pointer to itself. More... | |
Constraint applicable to a robot configuration
Constraint::apply takes as input a configuration and changes it into a configuration satisfying the constraint.
User should define impl_compute in derived classes.
|
inlinevirtual |
|
inlineprotected |
Constructor.
|
inlineprotected |
| bool hpp::core::Constraint::apply | ( | ConfigurationOut_t | configuration | ) |
Function that applies the constraint
| configuration | initial configuration and result |
|
pure virtual |
return shared pointer to copy
Implemented in hpp::core::ConstraintSet, and hpp::core::ConfigProjector.
|
protectedpure virtual |
User defined implementation of the constraint.
Implemented in hpp::core::ConstraintSet, and hpp::core::ConfigProjector.
|
inlineprotected |
Store shared pointer to itself.
|
pure virtual |
Check whether a configuration statisfies the constraint.
| config | the configuration to check |
Implemented in hpp::core::ConstraintSet, and hpp::core::ConfigProjector.
|
pure virtual |
Check whether a configuration statisfies the constraint.
| config | the configuration to check |
| error | error expressed as a vector. Size and content depends on implementations |
Implemented in hpp::core::ConstraintSet, and hpp::core::ConfigProjector.
|
inline |
Get name of constraint.