Public Types | Public Member Functions | Static Public Member Functions
sawyer::DataDifferentialSpeed Class Reference

#include <Message_data.h>

Inheritance diagram for sawyer::DataDifferentialSpeed:
Inheritance graph
[legend]

List of all members.

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 DataDifferentialSpeedgetUpdate (double timeout=0)
static DataDifferentialSpeedpopNext ()
static void subscribe (uint16_t freq)
static DataDifferentialSpeedwaitNext (double timeout=0)

Detailed Description

Definition at line 161 of file Message_data.h.


Member Enumeration Documentation

Enumerator:
LEFT_SPEED 
RIGHT_SPEED 
LEFT_ACCEL 
RIGHT_ACCEL 
PAYLOAD_LEN 

Definition at line 164 of file Message_data.h.


Constructor & Destructor Documentation

sawyer::DataDifferentialSpeed::DataDifferentialSpeed ( void *  input,
size_t  msg_len 
)

Member Function Documentation

Definition at line 176 of file Message_data.cpp.

Definition at line 171 of file Message_data.cpp.

Definition at line 186 of file Message_data.cpp.

Definition at line 181 of file Message_data.cpp.

static DataDifferentialSpeed* sawyer::DataDifferentialSpeed::getUpdate ( double  timeout = 0) [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.


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


roch_base
Author(s): Mike Purvis , Paul Bovbel , Carl
autogenerated on Sat Jun 8 2019 20:32:33