![]() |
Kuon
1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
|
The Kuon namespace encapsulates all Kuon related constructs. More...
Classes | |
| class | KuonDesc |
| Kuon robotic manipulator full description class. More... | |
| class | KuonDescBase |
| Kuon robotic mobile base escription class. More... | |
| class | KuonJointState |
| Joint state class. More... | |
| class | KuonJointStatePoint |
| Joint state point class. More... | |
| class | KuonMotorHealth |
| Robot motor health. More... | |
| class | KuonRobot |
| Kuon robotic manipulator plus accesories class. More... | |
| class | KuonRobotJoint |
| Operational robotic joint class. More... | |
| class | KuonRobotStatus |
| Robot global status. More... | |
| class | KuonSpec |
| Robotic specification. More... | |
| struct | KuonSpecMotor_T |
| Robotic motor specification. More... | |
| class | KuonWheelTraj |
| Wheel trajectory class. More... | |
| class | KuonWheelTrajectoryFeedback |
| Wheel trajectory feedback class. More... | |
| class | KuonWheelTrajectoryPoint |
| Wheel trajectory point class. More... | |
| class | KuonXmlCfg |
| KuonXmlCfg Kuon XML configuration class. More... | |
Functions | |
| 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 error code. 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 | icap (int a, int min, int max) |
| Cap value within limits [min, max]. More... | |
| const char * | boolstr (bool b) |
| Boolean to string. 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... | |
| std::string | getRealDeviceName (const std::string &strDevName) |
| Get real device name. More... | |
Variables | |
| static const int | KUON_OK = 0 |
| not an error, success | |
| static const int | KUON_ECODE_GEN = 1 |
| general, unspecified error | |
| static const int | KUON_ECODE_SYS = 2 |
| system (errno) error | |
| static const int | KUON_ECODE_INTERNAL = 3 |
| internal error (bug) | |
| static const int | KUON_ECODE_BAD_VAL = 4 |
| bad value general error | |
| static const int | KUON_ECODE_TOO_BIG = 5 |
| value/list/size too big | |
| static const int | KUON_ECODE_TOO_SMALL = 6 |
| value/list/size too small | |
| static const int | KUON_ECODE_RANGE = 7 |
| value out-of-range | |
| static const int | KUON_ECODE_BAD_OP = 8 |
| invalid operation error | |
| static const int | KUON_ECODE_TIMEDOUT = 9 |
| operation timed out error | |
| static const int | KUON_ECODE_NO_DEV = 10 |
| device not found error | |
| static const int | KUON_ECODE_NO_RSRC = 11 |
| no resource available error | |
| static const int | KUON_ECODE_BUSY = 12 |
| resource busy error | |
| static const int | KUON_ECODE_NO_EXEC = 13 |
| cannot execute error | |
| static const int | KUON_ECODE_PERM = 14 |
| no permissions error | |
| static const int | KUON_ECODE_MOTOR = 15 |
| motor error | |
| static const int | KUON_ECODE_MOT_CTLR = 16 |
| motor controller error | |
| static const int | KUON_ECODE_BATT = 17 |
| battery error | |
| static const int | KUON_ECODE_FORMAT = 18 |
| bad format | |
| static const int | KUON_ECODE_BOTSENSE = 19 |
| botsense error | |
| static const int | KUON_ECODE_NO_FILE = 20 |
| file not found | |
| static const int | KUON_ECODE_XML = 21 |
| XML error. | |
| static const int | KUON_ECODE_ALARMED = 22 |
| robot is alarmed | |
| static const int | KUON_ECODE_INTR = 23 |
| operation interrupted | |
| static const int | KUON_ECODE_COLLISION = 24 |
| robot link(s) in collision | |
| static const int | KUON_ECODE_ESTOP = 25 |
| robot emergency stopped | |
| static const int | KUON_ECODE_BADEC = 26 |
| bad error code | |
| static const int | KUON_ECODE_NUMOF = 27 |
| number of error codes | |
| static const int | KUON_ALARM_NONE = 0x00 |
| no alarms | |
| static const int | KUON_ALARM_VOLTAGE = 0x01 |
| under/over voltage | |
| static const int | KUON_ALARM_TEMP = 0x02 |
| under/over temperature | |
| static const int | KUON_ALARM_COMM = 0x04 |
| communication | |
| const char *const | KuonProdFamily = "Kuon" |
| product family name | |
| static const int | KuonProdIdUnknown = 0 |
| unknown/undefined product id | |
| static const int | KuonProdIdStd = 1 |
| standard Kuon product id | |
| static const int | KuonProdIdNarrow = 2 |
| narrow Kuon product id | |
| const char *const | KuonProdModelStd = "Standard" |
| standard model | |
| const char *const | KuonProdModelNarrow = "Narrow" |
| narrow model | |
| const char *const | KuonImageDir = "/usr/local/share/Kuon/images" |
| image directory | |
| const char *const | KuonIconDir = "/usr/local/share/Kuon/images/icons" |
| icon directory | |
| const char *const | KuonEtcCfg = "/etc/kuon/kuon.conf" |
| const char *const | KuonXslUrl |
| xml configuration file More... | |
| const char *const | KuonXsiUrl |
| xml schema instance url More... | |
| const char *const | KuonDevMotorCtlr0 = "/dev/kmot0" |
| motor controller 0 device name | |
| const char *const | KuonDevMotorCtlr1 = "/dev/kmot1" |
| motor controller 1 device name | |
| const int | KuonBaudRateMotorCtlr = 38400 |
| motor controllers baud rate | |
| static const int | KuonMotorIdNone = -1 |
| no motor id | |
| static const int | KuonMotorIdLF = 0 |
| left front | |
| static const int | KuonMotorIdRF = 1 |
| right front | |
| static const int | KuonMotorIdLR = 2 |
| left rear | |
| static const int | KuonMotorIdRR = 3 |
| right rear | |
| static const int | KuonMotorCtlrIdNone = -1 |
| no motor controller id | |
| static const int | KuonMotorCtlrId0 = 0 |
| motor controller id 0 | |
| static const int | KuonMotorCtlrId1 = 1 |
| motor controller id 1 | |
| static const int | KuonMotorDirUnknown = 0 |
| unknown | |
| static const int | KuonMotorDirCcw = 1 |
| counter-clockwise | |
| static const int | KuonMotorDirCw = -1 |
| clockwise | |
| const int | KuonProdBaseStdVersion = KUON_VERSION(1, 0, 0) |
| hw version | |
| const int | KuonProdBaseStdNumMotors = 4 |
| number of motors | |
| const KuonSpecMotor_T | KuonProdBaseStdSpecMotors [] |
| Specification of servos. More... | |
The Kuon namespace encapsulates all Kuon related constructs.
| enum kuon::KuonJointType |
Supported joint/wheel types. Not really used for now.
Definition at line 75 of file kuonSpec.h.
| enum kuon::KuonLimitType |
Joint/wheel limit detection types. Not really used for now.
A joint may have more than one type.
Definition at line 91 of file kuonSpec.h.
|
inline |
Boolean to string.
| b | Boolean value. |
Definition at line 166 of file kuonUtils.h.
|
inline |
Convert degrees to radians.
| d | Degrees. |
Definition at line 102 of file kuonUtils.h.
References M_TAU.
|
inline |
Cap value within limits [min, max].
| a | Value. |
| min | Minimum. |
| max | Maximum. |
Definition at line 140 of file kuonUtils.h.
Referenced by kuon::KuonRobot::setBrake(), kuon::KuonRobot::setGovernor(), kuon::KuonRobot::setSlew(), and kuon::KuonRobot::velocityToRawSpeed().
| std::string kuon::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 kuon::KuonRobot::connect(), getStrError(), and operator==().
| const char * kuon::getStrError | ( | const int | ecode | ) |
Get the error string describing the 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 hek_ecodes. |
Definition at line 126 of file kuonUtils.cxx.
References EcodeStrTbl, getRealDeviceName(), KUON_ECODE_BADEC, KUON_VERSION, and strToVersion().
|
inline |
Integer absolute value.
| a | Integer value. |
Definition at line 126 of file kuonUtils.h.
|
inline |
Cap value within limits [min, max].
| a | Value. |
| min | Minimum. |
| max | Maximum. |
Definition at line 154 of file kuonUtils.h.
Referenced by kuon::KuonRobot::setBrake(), kuon::KuonRobot::setSlew(), and kuon::KuonRobot::setSpeed().
|
inline |
Compare operator to test if left hand side time is earlier than the right hand side time.
lhs < rhs <==> lhs is an earlier time than rhs.
| lhs | Left hand side time. |
| rhs | Right hand side time. |
Definition at line 182 of file kuonUtils.h.
|
inline |
Compare operator to test if left hand side time equals the right hand side time.
lhs == rhs <==> lhs time is the same time as the rhs.
| lhs | Left hand side time. |
| rhs | Right hand side time. |
Definition at line 209 of file kuonUtils.h.
References getRealDeviceName().
|
inline |
Convert radians to degrees.
| r | Radians. |
Definition at line 114 of file kuonUtils.h.
References M_TAU.
| uint_t kuon::strToVersion | ( | const std::string & | str | ) |
Convert version dotted string to integer equivalent.
| str | Dotted version string "M[.m[.R]]". |
Referenced by getStrError(), kuon::KuonRobot::getVersion(), and kuon::KuonDescBase::KuonDescBase().
| const KuonSpecMotor_T kuon::KuonProdBaseStdSpecMotors |
Specification of servos.
Default specification of motors, wheels, and tires.
Definition at line 70 of file kuonProdBaseStd.cxx.
Referenced by kuon::KuonSpec::set().