Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
create::RobotModel Class Reference

#include <types.h>

List of all members.

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

Detailed Description

Definition at line 48 of file types.h.


Constructor & Destructor Documentation

create::RobotModel::RobotModel ( const ProtocolVersion  version,
const float  axleLength,
const unsigned int  baud,
const float  maxVelocity = 0.5,
const float  wheelDiameter = 0.078 
) [private]

Definition at line 5 of file types.cpp.


Member Function Documentation

Definition at line 31 of file types.cpp.

unsigned int create::RobotModel::getBaud ( ) const

Definition at line 35 of file types.cpp.

uint32_t create::RobotModel::getId ( ) const

Definition at line 23 of file types.cpp.

Definition at line 39 of file types.cpp.

Definition at line 27 of file types.cpp.

Definition at line 43 of file types.cpp.

create::RobotModel::operator uint32_t ( ) const

Definition at line 19 of file types.cpp.

bool create::RobotModel::operator== ( RobotModel other) const

Definition at line 15 of file types.cpp.


Member Data Documentation

Definition at line 78 of file types.h.

unsigned int create::RobotModel::baud [private]

Definition at line 79 of file types.h.

Compatible with Create 1 or Roomba 500 series.

Definition at line 68 of file types.h.

Compatible with Create 2 or Roomba 600 series and greater.

Definition at line 73 of file types.h.

uint32_t create::RobotModel::id [private]

Definition at line 76 of file types.h.

Definition at line 80 of file types.h.

uint32_t create::RobotModel::nextId = 1 [static, private]

Definition at line 84 of file types.h.

Compatible with Roomba 400 series and earlier.

Definition at line 63 of file types.h.

Definition at line 77 of file types.h.

Definition at line 81 of file types.h.


The documentation for this class was generated from the following files:


libcreate
Author(s): Jacob Perron
autogenerated on Sat Nov 26 2016 03:41:46