![]() |
Hekateros
3.4.3
RoadNarrows Robotics Robot Arm Project
|
The Hekateros namespace encapsulates all Hekateros related constructs. More...
Classes | |
| class | HekCalib |
| Hekateros robotic manipulator calibration abstract base class. More... | |
| class | HekCalibStretch |
| Hekateros robotic manipulator calibration by stretching class. More... | |
| class | HekDesc |
| Hekateros robotic manipulator full description class. More... | |
| class | HekDescArm |
| Hekateros robotic arm (manipulator) description class. More... | |
| class | HekDescEE |
| Hekateros end effector tool description class. More... | |
| class | HekJointOptical |
| Operational robotic joint optical limits class. More... | |
| class | HekJointState |
| Joint state class. More... | |
| class | HekJointStatePoint |
| Joint state point class. More... | |
| class | HekJointTraj |
| Joint trajectory class. More... | |
| class | HekJointTrajectoryFeedback |
| Joint trajectory feedback class. More... | |
| class | HekJointTrajectoryPoint |
| Joint trajectory point class. More... | |
| class | HekKinematics |
| class | HekKinJoint |
| Hekateros powered joint dynamics and kinematics control class. More... | |
| class | HekKinJointWristRot |
| Special wrist rotation joint kinematics and dynamics class. More... | |
| class | HekMonitor |
| Hekateros power, joint limits, and alarm monitoring class. More... | |
| struct | HekOpticalLimit_T |
| Optical limit switch. More... | |
| class | HekPid |
| class | HekRobot |
| Hekateros robotic manipulator plus accesories class. More... | |
| class | HekRobotJoint |
| Operational robotic joint description class. More... | |
| class | HekRobotState |
| Robot overall state. More... | |
| class | HekServoHealth |
| Robot servo health. More... | |
| class | HekSpec |
| Robotic specification. More... | |
| struct | HekSpecJoint_T |
| Robotic joint specification. More... | |
| struct | HekSpecLink_T |
| Robotic link specification. More... | |
| struct | HekSpecServo_T |
| Robotic servo specification. More... | |
| class | HekSysBoard |
| class | HekTunes |
| Hekateros tuning data class. More... | |
| class | HekTunesJoint |
| Hekateros tuning per joint data class. More... | |
| class | HekUno |
| class | HekXmlCfg |
| HekXmlCfg Hekateros XML configuration class. More... | |
| class | HekXmlTune |
| HekXmlTune Hekateros XML tuning class. More... | |
| class | SyncMoveMsgs |
| Container class to hold Dynamixel synchronous messages data. More... | |
| class | VelSpeedLookupTbl |
| Joint velocity/ servo speed lookup table class. More... | |
| class | VelSpeedTuple |
| Joint velocity to servo speed tuple class. More... | |
Functions | |
| static byte_t | getDarkOpticalLimits (byte_t byBits, byte_t byMask) |
| Test if any of the optical limits have been triggered (occluded). More... | |
| static byte_t | getLitOpticalLimits (byte_t byBits, byte_t byMask) |
| Test if any of the optical limits are lit (not occluded). More... | |
| uint_t | strToVersion (const std::string &str) |
| Convert version dotted string to integer equivalent. More... | |
| const char * | getStrError (const int ecode) |
| Get the error string describing the Hekateros error code. More... | |
| const char * | boolstr (bool b) |
| Boolean to string. More... | |
| double | degToRad (double d) |
| Convert degrees to radians. More... | |
| double | radToDeg (double r) |
| Convert radians to degrees. More... | |
| int | iabs (int a) |
| Integer absolute value. More... | |
| double | fcap (double a, double min, double max) |
| Cap value within limits [min, max]. More... | |
| int | cap (int a, int min, int max) |
| Cap value within limits [min, max]. More... | |
| double | signof (double a) |
| Sign of a. More... | |
| int | signof (int a) |
| Sign of a. More... | |
| bool | operator< (const struct timeval &lhs, const struct timeval &rhs) |
| Compare operator to test if left hand side time is earlier than the right hand side time. More... | |
| bool | operator== (const struct timeval &lhs, const struct timeval &rhs) |
| Compare operator to test if left hand side time equals the right hand side time. More... | |
| bool | operator> (const struct timeval &lhs, const struct timeval &rhs) |
| Compare operator to test if left hand side time is later than the right hand side time. More... | |
| struct timeval | operator+ (const struct timeval &op1, const struct timeval &op2) |
| Addition operator. More... | |
| struct timeval | operator- (const struct timeval &op1, const struct timeval &op2) |
| Subtraction operator. More... | |
| long | dt_usec (struct timeval &t1, struct timeval &t0) |
| Calculate delta time in microseconds. More... | |
| double | dt (struct timeval &t1, struct timeval &t0) |
| Calculate delta time. More... | |
| bool | operator< (const struct timespec &lhs, const struct timespec &rhs) |
| Compare operator to test if left hand side time is earlier than the right hand side time. More... | |
| bool | operator== (const struct timespec &lhs, const struct timespec &rhs) |
| Compare operator to test if left hand side time equals the right hand side time. More... | |
| bool | operator> (const struct timespec &lhs, const struct timespec &rhs) |
| Compare operator to test if left hand side time is later than the right hand side time. More... | |
| struct timespec | operator+ (const struct timespec &op1, const struct timespec &op2) |
| Addition operator. More... | |
| struct timespec | operator- (const struct timespec &op1, const struct timespec &op2) |
| Subtraction operator. More... | |
| long long | dt_nsec (struct timespec &t1, struct timespec &t0) |
| Calculate delta time in nanoseconds. More... | |
| double | dt (struct timespec &t1, struct timespec &t0) |
| Calculate delta time. More... | |
| std::string | getRealDeviceName (const std::string &strDevName) |
| Get real device name. More... | |
| std::vector< std::string > & | split (const std::string &s, char delim, std::vector< std::string > &elems) |
| Split string at the delimiter character. More... | |
| std::vector< std::string > | split (const std::string &s, char delim) |
| Split string at the delimiter character. More... | |
The Hekateros namespace encapsulates all Hekateros related constructs.
|
inline |
Boolean to string.
| b | Boolean value. |
Definition at line 108 of file hekUtils.h.
Referenced by hekateros::HekKinJoint::resetServoOdometer().
|
inline |
Cap value within limits [min, max].
| a | Value. |
| min | Minimum. |
| max | Maximum. |
Definition at line 177 of file hekUtils.h.
Referenced by hekateros::HekKinJoint::addServoMsgEntries(), hekateros::HekKinJoint::estimateServoTgtSpeedSimple(), hekateros::VelSpeedLookupTbl::hash(), and hekateros::HekKinJoint::moveServo().
|
inline |
Convert degrees to radians.
| d | Degrees. |
Definition at line 125 of file hekUtils.h.
References M_TAU.
Referenced by hekateros::HekMonitor::addJointLimitsToMonitor(), hekateros::HekRobot::addRobotJoint(), hekateros::HekCalibStretch::calibByLimitsFinal(), hekateros::HekCalibStretch::calibrateJointByLimits(), hekateros::HekCalibStretch::calibrateJointByTorqueLimits(), hekateros::HekCalibStretch::calibrateJointTopDeadCenter(), hekateros::HekRobot::closeGripper(), hekateros::HekCalibStretch::fineTuneLimit(), hekateros::HekCalibStretch::fineTuneTDC(), hekateros::HekTunes::getPidMaxDeltaV(), hekateros::HekTunes::getToleranceParams(), hekateros::HekRobot::gotoBalancedPos(), hekateros::HekRobot::gotoParkedPos(), hekateros::HekRobot::gotoZeroPtPos(), hekateros::HekKinJoint::HekKinJoint(), hekateros::HekTunes::HekTunes(), hekateros::HekTunesJoint::HekTunesJoint(), hekateros::HekMonitor::monJointLimits(), hekateros::HekRobot::openGripper(), hekateros::HekXmlTune::setGlobalTrajTunes(), hekateros::HekXmlTune::setJointPidTunes(), hekateros::HekXmlTune::setJointTunes(), and testHekRobot().
| double hekateros::dt | ( | struct timeval & | t1, |
| struct timeval & | t0 | ||
| ) |
Calculate delta time.
t1 - t0
| t1 | Time 1. |
| t0 | Time 0. |
Referenced by hekateros::HekKinJoint::delta_t(), and signof().
| double hekateros::dt | ( | struct timespec & | t1, |
| struct timespec & | t0 | ||
| ) |
Calculate delta time.
t1 - t0
| t1 | Time 1. |
| t0 | Time 0. |
| long long hekateros::dt_nsec | ( | struct timespec & | t1, |
| struct timespec & | t0 | ||
| ) |
Calculate delta time in nanoseconds.
t1 - t0, t1 ≥ t0
| t1 | Later time. |
| t0 | Earlier time. |
Referenced by signof().
| long hekateros::dt_usec | ( | struct timeval & | t1, |
| struct timeval & | t0 | ||
| ) |
Calculate delta time in microseconds.
t1 - t0, t1 ≥ t0
| t1 | Later time. |
| t0 | Earlier time. |
Referenced by signof().
|
inline |
Cap value within limits [min, max].
| a | Value. |
| min | Minimum. |
| max | Maximum. |
Definition at line 163 of file hekUtils.h.
Referenced by hekateros::HekRobot::addRobotJoint(), hekateros::HekKinematics::setHz(), and hekateros::HekPid::toOutput().
| std::string hekateros::getRealDeviceName | ( | const std::string & | strDevName | ) |
Get real device name.
If the given device name is a symbolic link, then the real device the link references is returned. Otherwise the given device name is returned.
| strDevName | Given device name. |
Referenced by hekateros::HekRobot::connect(), and signof().
| const char* hekateros::getStrError | ( | const int | ecode | ) |
Get the error string describing the Hekateros error code.
The absolute value of the error code is taken prior retrieving the string. An unknown or out-of-range error code will be mapped to HEK_ECODE_BADEC.
| ecode | Instance of Hekateros Error Codes. |
|
inline |
Integer absolute value.
| a | Integer value. |
Definition at line 149 of file hekUtils.h.
Referenced by hekateros::HekKinJoint::addServoMsgEntries(), hekateros::HekKinJoint::dejitterServoPos(), hekateros::HekRobot::getRobotState(), hekateros::HekRobot::isInMotion(), hekateros::HekKinJoint::moveServo(), hekateros::HekKinJoint::senseDynamics(), and hekateros::VelSpeedLookupTbl::update().
| struct timeval hekateros::operator+ | ( | const struct timeval & | op1, |
| const struct timeval & | op2 | ||
| ) |
Addition operator.
op1 + op2
| op1 | Left hand side time. |
| op2 | Right hand side time. |
| struct timespec hekateros::operator+ | ( | const struct timespec & | op1, |
| const struct timespec & | op2 | ||
| ) |
Addition operator.
op1 + op2
| op1 | Left hand side time. |
| op2 | Right hand side time. |
| struct timeval hekateros::operator- | ( | const struct timeval & | op1, |
| const struct timeval & | op2 | ||
| ) |
Subtraction operator.
op1 - op2, op1 ≥ op2.
| op1 | Left hand side time. |
| op2 | Right hand side time. |
| struct timespec hekateros::operator- | ( | const struct timespec & | op1, |
| const struct timespec & | op2 | ||
| ) |
Subtraction operator.
op1 - op2, op1 ≥ op2.
| op1 | Left hand side time. |
| op2 | Right hand side time. |
| bool hekateros::operator< | ( | const struct timeval & | lhs, |
| const struct timeval & | rhs | ||
| ) |
Compare operator to test if left hand side time is earlier than the right hand side time.
lhs < rhs
| lhs | Left hand side time. |
| rhs | Right hand side time. |
Referenced by signof().
| bool hekateros::operator< | ( | const struct timespec & | lhs, |
| const struct timespec & | rhs | ||
| ) |
Compare operator to test if left hand side time is earlier than the right hand side time.
lhs < rhs
| lhs | Left hand side time. |
| rhs | Right hand side time. |
| bool hekateros::operator== | ( | const struct timeval & | lhs, |
| const struct timeval & | rhs | ||
| ) |
Compare operator to test if left hand side time equals the right hand side time.
lhs == rhs
| lhs | Left hand side time. |
| rhs | Right hand side time. |
Referenced by signof().
| bool hekateros::operator== | ( | const struct timespec & | lhs, |
| const struct timespec & | rhs | ||
| ) |
Compare operator to test if left hand side time equals the right hand side time.
lhs == rhs
| lhs | Left hand side time. |
| rhs | Right hand side time. |
| bool hekateros::operator> | ( | const struct timeval & | lhs, |
| const struct timeval & | rhs | ||
| ) |
Compare operator to test if left hand side time is later than the right hand side time.
lhs > rhs
| lhs | Left hand side time. |
| rhs | Right hand side time. |
Referenced by signof().
| bool hekateros::operator> | ( | const struct timespec & | lhs, |
| const struct timespec & | rhs | ||
| ) |
Compare operator to test if left hand side time is later than the right hand side time.
lhs > rhs
| lhs | Left hand side time. |
| rhs | Right hand side time. |
|
inline |
Convert radians to degrees.
| r | Radians. |
Definition at line 137 of file hekUtils.h.
References M_TAU.
Referenced by hekateros::HekCalibStretch::calibByLimitsFinal(), hekateros::HekCalibStretch::calibrateJointByLimits(), hekateros::HekCalibStretch::calibrateJointByTorqueLimits(), hekateros::HekCalibStretch::calibrateJointByTrust(), hekateros::HekCalibStretch::calibrateJointTopDeadCenter(), hekateros::VelSpeedLookupTbl::dumpTable(), hekateros::HekCalibStretch::fineTuneLimit(), hekateros::HekCalibStretch::fineTuneTDC(), hekateros::HekCalib::moveToDark(), hekateros::HekCalib::moveToLight(), hekateros::HekCalib::moveToTorqueLimit(), hekateros::HekCalib::moveWait(), hekateros::HekKinJoint::nlspecifyMove(), and hekateros::VelSpeedLookupTbl::update().
|
inline |
Sign of a.
Definition at line 187 of file hekUtils.h.
Referenced by hekateros::HekKinJoint::estimateServoTgtSpeed().
|
inline |
Sign of a.
Definition at line 197 of file hekUtils.h.
References dt(), dt_nsec(), dt_usec(), getRealDeviceName(), operator<(), operator==(), operator>(), and split().
| std::vector<std::string>& hekateros::split | ( | const std::string & | s, |
| char | delim, | ||
| std::vector< std::string > & | elems | ||
| ) |
Split string at the delimiter character.
| s | String to split. | |
| delem | Delimiter character. | |
| [out] | elems | Vector of split strings. |
Referenced by hekateros::HekXmlCfg::load(), hekateros::HekXmlTune::load(), and signof().
| std::vector<std::string> hekateros::split | ( | const std::string & | s, |
| char | delim | ||
| ) |
Split string at the delimiter character.
| s | String to split. |
| delem | Delimiter character. |
| uint_t hekateros::strToVersion | ( | const std::string & | str | ) |
Convert version dotted string to integer equivalent.
| str | Dotted version string "M[.m[.R]]". |
Referenced by hekateros::HekRobot::getVersion(), hekateros::HekRobot::getVersionNum(), hekateros::HekDescArm::HekDescArm(), and hekateros::HekDescEE::HekDescEE().