![]() |
Kuon
1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
|
Robotic specification. More...
#include <kuonSpec.h>
Public Member Functions | |
| KuonSpec () | |
| Constructor. | |
| ~KuonSpec () | |
| Destructor. | |
| int | set (int eProdId, uint_t uHwVer, double fFrontTireRadius, double fRearTireRadius) |
| Set product fixed specification. More... | |
| void | clear () |
| Clear product fixed specification. | |
| int | getProdId () |
| Get specification's product id. More... | |
| uint_t | getProdHwVer () |
| Get specification's product hardware version number. More... | |
| int | getNumMotors () |
| Get specification's number of motors. More... | |
| KuonSpecMotor_T * | getMotorSpecAt (int index) |
| Get motor spec at the given index. More... | |
| KuonSpecMotor_T * | getMotorSpec (const std::string &strName) |
| Get motor spec associated motor name. More... | |
| KuonSpecMotor_T * | getMotorSpec (int nMotorId) |
| Get motor spec associated with motor id. More... | |
| bool | hasMotor (int nMotorId) |
| Test if motor id is in the motor specifications. More... | |
| void | getTireSizes (double &fFrontTireRadius, double &fRearTireRadius) |
| Get front and rear tire radii (mm). More... | |
Protected Attributes | |
| int | m_eProdId |
| product id | |
| uint_t | m_uHwVer |
| hardware version | |
| int | m_nNumMotors |
| number of drive motors | |
| double | m_fFrontTireRadius |
| front tire radius (mm) | |
| double | m_fRearTireRadius |
| rear tire radius (mm) | |
| std::vector< KuonSpecMotor_T > | m_vecSpecMotors |
| vector of motor specs | |
Friends | |
| class | KuonDesc |
| class | KuonRobot |
Robotic specification.
Definition at line 151 of file kuonSpec.h.
| KuonSpecMotor_T* kuon::KuonSpec::getMotorSpec | ( | const std::string & | strName | ) |
Get motor spec associated motor name.
| strName | Motor name (primary key). |
| KuonSpecMotor_T * KuonSpec::getMotorSpec | ( | int | nMotorId | ) |
Get motor spec associated with motor id.
| nMotorId | Motor id (secondary key). |
Definition at line 166 of file kuonSpec.cxx.
|
inline |
Get motor spec at the given index.
| index | Motor index. |
Definition at line 221 of file kuonSpec.h.
Referenced by kuon::KuonRobot::convertSpecs().
|
inline |
Get specification's number of motors.
Definition at line 209 of file kuonSpec.h.
Referenced by kuon::KuonDescBase::getNumMotors().
|
inline |
Get specification's product hardware version number.
Definition at line 199 of file kuonSpec.h.
|
inline |
Get specification's product id.
Definition at line 189 of file kuonSpec.h.
| void kuon::KuonSpec::getTireSizes | ( | double & | fFrontTireRadius, |
| double & | fRearTireRadius | ||
| ) |
Get front and rear tire radii (mm).
| [out] | fFrontTireRadius | Front tires. |
| [out] | fRearTireRadius | Rear tires. |
|
inline |
Test if motor id is in the motor specifications.
Definition at line 249 of file kuonSpec.h.
Referenced by kuon::KuonDescBase::hasMotor(), and kuon::KuonDesc::hasMotor().
| int KuonSpec::set | ( | int | eProdId, |
| uint_t | uHwVer, | ||
| double | fFrontTireRadius, | ||
| double | fRearTireRadius | ||
| ) |
Set product fixed specification.
| eProdId |
Definition at line 80 of file kuonSpec.cxx.
References kuon::KUON_OK, kuon::KuonMotorIdLF, kuon::KuonMotorIdLR, kuon::KuonMotorIdRF, kuon::KuonMotorIdRR, kuon::KuonProdBaseStdNumMotors, kuon::KuonProdBaseStdSpecMotors, kuon::KuonProdIdNarrow, kuon::KuonProdIdStd, and kuon::KuonSpecMotor_T::m_fTireRadius.
Referenced by kuon::KuonDescBase::KuonDescBase().