![]() |
Kuon
1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
|
Kuon robotic mobile base escription class. More...
#include <kuonDescBase.h>
Public Member Functions | |
| KuonDescBase () | |
| ~KuonDescBase () | |
| void | setDesc (int eProdId, const std::string &strProdName="", const std::string &strProdBrief="", const std::string &strHwVer="1.0.0", double fFrontTireRadius=0.0, double fRearTireRadius=0.0) |
| void | resetDesc () |
| Reset base description to the "unitialized" values. | |
| bool | isDescribed () |
| Test if required base description is adequately described. More... | |
| int | getProdId () |
| Get this base description's base product id. More... | |
| std::string | getProdName () |
| Get this base description's name. More... | |
| std::string | getProdBrief () |
| Get this base description's brief. More... | |
| std::string | getProdHwVer () |
| Get this base description's hardware version. More... | |
| int | getNumMotors () |
| Get the number of expected and required motors. More... | |
| bool | hasMotor (int nMotorId) |
| Test if motor id is in the list of motors. More... | |
Static Public Member Functions | |
| static const char * | getProdName (int eProdId) |
| Get the Kuon product name string given the product id. More... | |
| static const char * | getProdBrief (int eProdId) |
| Get the Kuon product one-line brief description string given the product id. More... | |
Protected Attributes | |
| int | m_eProdId |
| base product id | |
| std::string | m_strProdFamily |
| product name | |
| std::string | m_strProdName |
| product name | |
| std::string | m_strProdBrief |
| product brief | |
| std::string | m_strProdHwVer |
| product hardware version string | |
| uint_t | m_uProdHwVer |
| product hardware version number | |
| KuonSpec | m_spec |
| fixed specification | |
Friends | |
| class | KuonDesc |
| class | KuonRobot |
Kuon robotic mobile base escription class.
Definition at line 79 of file kuonDescBase.h.
| KuonDescBase::KuonDescBase | ( | ) |
Default constructor.
Definition at line 75 of file kuonDescBase.cxx.
References getProdBrief(), getProdName(), kuon::KuonProdIdUnknown, m_eProdId, m_spec, m_strProdBrief, m_strProdHwVer, m_strProdName, m_uProdHwVer, kuon::KuonSpec::set(), and kuon::strToVersion().
|
inline |
|
inline |
Get the number of expected and required motors.
Definition at line 176 of file kuonDescBase.h.
References kuon::KuonSpec::getNumMotors(), and m_spec.
Referenced by kuon::KuonRobot::convertSpecs(), and kuon::KuonDesc::getNumMotors().
|
inline |
Get this base description's brief.
Definition at line 156 of file kuonDescBase.h.
References m_strProdBrief.
Referenced by hasMotor(), and KuonDescBase().
|
static |
Get the Kuon product one-line brief description string given the product id.
| eProdId | Supported product id. See KuonProdId. |
Definition at line 123 of file kuonDescBase.cxx.
References kuon::KuonProdIdNarrow, and kuon::KuonProdIdStd.
|
inline |
Get this base description's hardware version.
Definition at line 166 of file kuonDescBase.h.
References m_strProdHwVer.
Referenced by kuon::KuonRobot::getVersion().
|
inline |
Get this base description's base product id.
Definition at line 136 of file kuonDescBase.h.
References m_eProdId.
Referenced by kuon::KuonDesc::getProdId(), kuon::KuonRobot::getProdId(), and kuon::KuonDesc::isDescribed().
|
inline |
Get this base description's name.
Definition at line 146 of file kuonDescBase.h.
References m_strProdName.
Referenced by kuon::KuonRobot::getProdName(), hasMotor(), and KuonDescBase().
|
static |
Get the Kuon product name string given the product id.
| eProdId | Supported product id. See KuonProdId. |
Definition at line 110 of file kuonDescBase.cxx.
References kuon::KuonProdIdNarrow, and kuon::KuonProdIdStd.
|
inline |
Test if motor id is in the list of motors.
| nMotorId | Motor id. |
Definition at line 188 of file kuonDescBase.h.
References getProdBrief(), getProdName(), kuon::KuonSpec::hasMotor(), and m_spec.
|
inline |
Test if required base description is adequately described.
Definition at line 126 of file kuonDescBase.h.
References kuon::KuonProdIdUnknown, and m_eProdId.