![]() |
Hekateros
3.4.3
RoadNarrows Robotics Robot Arm Project
|
Joint state point class. More...
#include <hekJoint.h>
Public Member Functions | |
| HekJointStatePoint () | |
| Default constructor. | |
| HekJointStatePoint (const HekJointStatePoint &src) | |
| Copy constructor. | |
| ~HekJointStatePoint () | |
| Destructor. | |
| HekJointStatePoint | operator= (const HekJointStatePoint &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 HekJointState &jointState) |
| Append joint state to end of joint state point. More... | |
| HekJointState & | operator[] (const size_t i) |
| Subscript operator to get reference to joint point at the given index. More... | |
| HekJointState & | 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< HekJointState > | 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 344 of file hekJoint.h.
|
inline |
Append joint state to end of joint state point.
| jointState | Joint state to append. |
Definition at line 429 of file hekJoint.h.
Referenced by hekateros::HekRobot::getJointState().
|
inline |
Get the kinematic chain name.
Definition at line 390 of file hekJoint.h.
|
inline |
Get the number of joint states in joint state point.
Definition at line 410 of file hekJoint.h.
Referenced by hekateros::HekRobot::getTrajectoryState().
| bool HekJointStatePoint::hasJoint | ( | const std::string & | strJointName | ) |
Test if joint is a member of the joint state.
| strJointName | Joint name. |
Definition at line 287 of file hekJoint.cxx.
|
inline |
Assignment operator.
| rhs | Right hand side object. |
Definition at line 377 of file hekJoint.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 444 of file hekJoint.h.
| HekJointState& hekateros::HekJointStatePoint::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 400 of file hekJoint.h.
Referenced by hekateros::HekRobot::getJointState().