base
Public Member Functions | List of all members
base::JointLimits Struct Reference

#include <JointLimits.hpp>

Inheritance diagram for base::JointLimits:
base::NamedVector< JointLimitRange >

Public Member Functions

bool isValid (const base::samples::Joints &joints) const
 
void validate (const base::samples::Joints &joints) const
 
- Public Member Functions inherited from base::NamedVector< JointLimitRange >
bool hasNames () const
 
const JointLimitRangegetElementByName (std::string name) const
 
const JointLimitRangeoperator[] (std::string name) const
 
JointLimitRangeoperator[] (std::string name)
 
const JointLimitRangeoperator[] (size_t index) const
 
JointLimitRangeoperator[] (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

- Public Attributes inherited from base::NamedVector< JointLimitRange >
std::vector< std::string > names
 
std::vector< JointLimitRangeelements
 

Member Function Documentation

◆ isValid()

bool base::JointLimits::isValid ( const base::samples::Joints joints) const

◆ validate()

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.


The documentation for this struct was generated from the following files: