Helper for maintaining joint limits. More...
#include <MotionLimiter.h>
Public Member Functions | |
| double | getLimit (unsigned int index) const |
| getLimit get limit | |
| const std::vector< double > & | getLimits () const |
| bool | getPositiveOnly () const |
| JointMotionLimitHelper (bool positiveOnly_in=true) | |
| JointMotionLimitHelper (const JointMotionLimitHelper &tocopy) | |
| void | setLimit (double lim) |
| set limit for all joints | |
| void | setLimits (const std::vector< double > &limArray_in) |
| set limit for each joint | |
| virtual | ~JointMotionLimitHelper () |
Private Attributes | |
| std::vector< double > | limArray |
| bool | positiveOnly |
Helper for maintaining joint limits.
Definition at line 23 of file MotionLimiter.h.
| JointMotionLimitHelper::JointMotionLimitHelper | ( | bool | positiveOnly_in = true | ) |
Definition at line 3 of file MotionLimiter.cpp.
| JointMotionLimitHelper::JointMotionLimitHelper | ( | const JointMotionLimitHelper & | tocopy | ) |
Definition at line 8 of file MotionLimiter.cpp.
| JointMotionLimitHelper::~JointMotionLimitHelper | ( | ) | [virtual] |
Definition at line 14 of file MotionLimiter.cpp.
| double JointMotionLimitHelper::getLimit | ( | unsigned int | index | ) | const |
getLimit get limit
| std:out_of_range | if index is invalid |
Definition at line 48 of file MotionLimiter.cpp.
| const std::vector<double>& JointMotionLimitHelper::getLimits | ( | ) | const [inline] |
Definition at line 50 of file MotionLimiter.h.
| bool JointMotionLimitHelper::getPositiveOnly | ( | ) | const [inline] |
Definition at line 51 of file MotionLimiter.h.
| void JointMotionLimitHelper::setLimit | ( | double | lim | ) |
set limit for all joints
| lim | is limit to set |
Definition at line 18 of file MotionLimiter.cpp.
| void JointMotionLimitHelper::setLimits | ( | const std::vector< double > & | limArray_in | ) |
set limit for each joint
| limArray_in | limit array for joints |
sets an array of joint limits.
Definition at line 32 of file MotionLimiter.cpp.
std::vector<double> JointMotionLimitHelper::limArray [private] |
Definition at line 54 of file MotionLimiter.h.
bool JointMotionLimitHelper::positiveOnly [private] |
Definition at line 55 of file MotionLimiter.h.