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

#include <Message_data.h>

Inheritance diagram for clearpath::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 187 of file Message_data.h.


Member Enumeration Documentation

Enumerator:
LEFT_SPEED 
RIGHT_SPEED 
LEFT_ACCEL 
RIGHT_ACCEL 
PAYLOAD_LEN 

Definition at line 190 of file Message_data.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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


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


husky_base
Author(s): Mike Purvis , Paul Bovbel
autogenerated on Sat Jun 8 2019 18:26:01