![]() |
Kuon
1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
|
Joint state point class. More...
#include <kuonJoint.h>
Public Member Functions | |
| KuonJointStatePoint () | |
| Default constructor. | |
| KuonJointStatePoint (const KuonJointStatePoint &src) | |
| Copy constructor. | |
| ~KuonJointStatePoint () | |
| Destructor. | |
| KuonJointStatePoint | operator= (const KuonJointStatePoint &rhs) |
| Assignment operator. More... | |
| std::string | getKinematicChainName () |
| Get the kinematic chain name. More... | |
| void | setKinematicChainName (std::string strKinName) |
| Set the kinematic chain name. More... | |
| size_t | getNumPoints () |
| Get the number of joint states in joint state point. More... | |
| bool | hasJoint (const std::string &strJointName) |
| Test if joint is a member of the joint state. More... | |
| void | append (const KuonJointState &jointState) |
| Append joint state to end of joint state point. More... | |
| KuonJointState & | operator[] (const size_t i) |
| Subscript operator to get reference to joint point at the given index. More... | |
| KuonJointState & | operator[] (const std::string &strJointName) |
| Key subscript operator to get reference to joint point at the given index. More... | |
| void | clear () |
| Clear all state data. | |
Protected Attributes | |
| std::string | m_strKinName |
| name of kinematic chain | |
| std::vector< KuonJointState > | m_jointState |
| vector of joint states | |
Joint state point class.
This class encapsulates the current state of all joints in a kinematic chain.
A joint state point (J0, J1, ..., Jn-1) specifies the current dynamic state of a set of joints (kinematic chain) Ji, i=0,n-1.
Definition at line 217 of file kuonJoint.h.
|
inline |
Append joint state to end of joint state point.
| jointState | Joint state to append. |
Definition at line 302 of file kuonJoint.h.
Referenced by kuon::KuonRobot::getJointState().
|
inline |
Get the kinematic chain name.
Definition at line 263 of file kuonJoint.h.
|
inline |
Get the number of joint states in joint state point.
Definition at line 283 of file kuonJoint.h.
| bool KuonJointStatePoint::hasJoint | ( | const std::string & | strJointName | ) |
Test if joint is a member of the joint state.
| strJointName | Joint name. |
Definition at line 193 of file kuonJoint.cxx.
|
inline |
Assignment operator.
| rhs | Right hand side object. |
Definition at line 250 of file kuonJoint.h.
References m_jointState, and m_strKinName.
|
inline |
Subscript operator to get reference to joint point at the given index.
Big boy warranty. No out of bound checks are made.
| i | Index. |
Definition at line 317 of file kuonJoint.h.
| KuonJointState& kuon::KuonJointStatePoint::operator[] | ( | const std::string & | strJointName | ) |
Key subscript operator to get reference to joint point at the given index.
Big boy warranty. No out of bound checks are made.
| strJointName | Joint name. |
|
inline |
Set the kinematic chain name.
| String. |
Definition at line 273 of file kuonJoint.h.
Referenced by kuon::KuonRobot::getJointState().