#include <types.h>
Public Member Functions | |
float | getAxleLength () const |
unsigned int | getBaud () const |
uint32_t | getId () const |
float | getMaxVelocity () const |
ProtocolVersion | getVersion () const |
float | getWheelDiameter () const |
operator uint32_t () const | |
bool | operator== (RobotModel &other) const |
Static Public Attributes | |
static RobotModel | CREATE_1 |
Compatible with Create 1 or Roomba 500 series. | |
static RobotModel | CREATE_2 |
Compatible with Create 2 or Roomba 600 series and greater. | |
static RobotModel | ROOMBA_400 |
Compatible with Roomba 400 series and earlier. | |
Private Member Functions | |
RobotModel (const ProtocolVersion version, const float axleLength, const unsigned int baud, const float maxVelocity=0.5, const float wheelDiameter=0.078) | |
Private Attributes | |
float | axleLength |
unsigned int | baud |
uint32_t | id |
float | maxVelocity |
ProtocolVersion | version |
float | wheelDiameter |
Static Private Attributes | |
static uint32_t | nextId = 1 |
create::RobotModel::RobotModel | ( | const ProtocolVersion | version, |
const float | axleLength, | ||
const unsigned int | baud, | ||
const float | maxVelocity = 0.5 , |
||
const float | wheelDiameter = 0.078 |
||
) | [private] |
float create::RobotModel::getAxleLength | ( | ) | const |
unsigned int create::RobotModel::getBaud | ( | ) | const |
uint32_t create::RobotModel::getId | ( | ) | const |
float create::RobotModel::getMaxVelocity | ( | ) | const |
float create::RobotModel::getWheelDiameter | ( | ) | const |
bool create::RobotModel::operator== | ( | RobotModel & | other | ) | const |
float create::RobotModel::axleLength [private] |
unsigned int create::RobotModel::baud [private] |
RobotModel create::RobotModel::CREATE_1 [static] |
RobotModel create::RobotModel::CREATE_2 [static] |
uint32_t create::RobotModel::id [private] |
float create::RobotModel::maxVelocity [private] |
uint32_t create::RobotModel::nextId = 1 [static, private] |
RobotModel create::RobotModel::ROOMBA_400 [static] |
ProtocolVersion create::RobotModel::version [private] |
float create::RobotModel::wheelDiameter [private] |