hpp-core
4.9.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... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Constraint &) |
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::ConfigProjector, and hpp::core::ConstraintSet.
|
protectedpure virtual |
User defined implementation of the constraint.
Implemented in hpp::core::ConfigProjector, and hpp::core::ConstraintSet.
|
inlineprotected |
Store shared pointer to itself.
|
pure virtual |
Check whether a configuration statisfies the constraint.
config | the configuration to check |
Implemented in hpp::core::ConfigProjector, and hpp::core::ConstraintSet.
|
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::ConfigProjector, and hpp::core::ConstraintSet.
|
inline |
Get name of constraint.
|
friend |