#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 161 of file Message_data.h.
Definition at line 164 of file Message_data.h.
sawyer::DataDifferentialSpeed::DataDifferentialSpeed | ( | void * | input, |
size_t | msg_len | ||
) |
double sawyer::DataDifferentialSpeed::getLeftAccel | ( | ) |
Definition at line 176 of file Message_data.cpp.
double sawyer::DataDifferentialSpeed::getLeftSpeed | ( | ) |
Definition at line 171 of file Message_data.cpp.
double sawyer::DataDifferentialSpeed::getRightAccel | ( | ) |
Definition at line 186 of file Message_data.cpp.
double sawyer::DataDifferentialSpeed::getRightSpeed | ( | ) |
Definition at line 181 of file Message_data.cpp.
static enum MessageTypes sawyer::DataDifferentialSpeed::getTypeID | ( | ) | [static] |
static DataDifferentialSpeed* sawyer::DataDifferentialSpeed::getUpdate | ( | double | timeout = 0 | ) | [static] |
static DataDifferentialSpeed* sawyer::DataDifferentialSpeed::popNext | ( | ) | [static] |
Reimplemented from sawyer::Message.
ostream & sawyer::DataDifferentialSpeed::printMessage | ( | std::ostream & | stream = std::cout | ) | [virtual] |
Reimplemented from sawyer::Message.
Definition at line 191 of file Message_data.cpp.
static void sawyer::DataDifferentialSpeed::subscribe | ( | uint16_t | freq | ) | [static] |
static DataDifferentialSpeed* sawyer::DataDifferentialSpeed::waitNext | ( | double | timeout = 0 | ) | [static] |
Reimplemented from sawyer::Message.