base
|
#include <JointLimits.hpp>
Public Member Functions | |
bool | isValid (const base::samples::Joints &joints) const |
void | validate (const base::samples::Joints &joints) const |
![]() | |
bool | hasNames () const |
const JointLimitRange & | getElementByName (std::string name) const |
const JointLimitRange & | operator[] (std::string name) const |
JointLimitRange & | operator[] (std::string name) |
const JointLimitRange & | operator[] (size_t index) const |
JointLimitRange & | operator[] (size_t index) |
void | resize (size_t size) |
size_t | size () const |
bool | empty () const |
void | clear () |
size_t | mapNameToIndex (std::string const &name) const |
Additional Inherited Members | |
![]() | |
std::vector< std::string > | names |
std::vector< JointLimitRange > | elements |
bool base::JointLimits::isValid | ( | const base::samples::Joints & | joints | ) | const |
void base::JointLimits::validate | ( | const base::samples::Joints & | joints | ) | const |
Makes sure that all jointstate are within their respective limits
Will throw if this is not the case. Will also throw if there are no limits for a particular joint.