#include <Message_data.h>
Public Types | |
enum | payloadOffsets { LEFT_SPEED = 0, RIGHT_SPEED = 2, LEFT_ACCEL = 4, RIGHT_ACCEL = 6, PAYLOAD_LEN = 8 } |
Public Member Functions | |
DataDifferentialSpeed (void *input, size_t msg_len) | |
DataDifferentialSpeed (const DataDifferentialSpeed &other) | |
double | getLeftAccel () |
double | getLeftSpeed () |
double | getRightAccel () |
double | getRightSpeed () |
virtual std::ostream & | printMessage (std::ostream &stream=std::cout) |
Static Public Member Functions | |
static enum MessageTypes | getTypeID () |
static DataDifferentialSpeed * | getUpdate (double timeout=0) |
static DataDifferentialSpeed * | popNext () |
static void | subscribe (uint16_t freq) |
static DataDifferentialSpeed * | waitNext (double timeout=0) |
Definition at line 187 of file Message_data.h.
Definition at line 190 of file Message_data.h.
clearpath::DataDifferentialSpeed::DataDifferentialSpeed | ( | void * | input, |
size_t | msg_len | ||
) |
Definition at line 214 of file Message_data.cpp.
Definition at line 209 of file Message_data.cpp.
Definition at line 224 of file Message_data.cpp.
Definition at line 219 of file Message_data.cpp.
static enum MessageTypes clearpath::DataDifferentialSpeed::getTypeID | ( | ) | [static] |
static DataDifferentialSpeed* clearpath::DataDifferentialSpeed::getUpdate | ( | double | timeout = 0 | ) | [static] |
static DataDifferentialSpeed* clearpath::DataDifferentialSpeed::popNext | ( | ) | [static] |
Reimplemented from clearpath::Message.
ostream & clearpath::DataDifferentialSpeed::printMessage | ( | std::ostream & | stream = std::cout | ) | [virtual] |
Reimplemented from clearpath::Message.
Definition at line 229 of file Message_data.cpp.
static void clearpath::DataDifferentialSpeed::subscribe | ( | uint16_t | freq | ) | [static] |
static DataDifferentialSpeed* clearpath::DataDifferentialSpeed::waitNext | ( | double | timeout = 0 | ) | [static] |
Reimplemented from clearpath::Message.