Public Member Functions | Static Public Member Functions | List of all members
ros::Msg Class Referenceabstract

#include <msg.h>

Public Member Functions

virtual int deserialize (unsigned char *data)=0
 
virtual const char * getMD5 ()=0
 
virtual const char * getType ()=0
 
virtual int serialize (unsigned char *outbuffer) const =0
 

Static Public Member Functions

template<typename V , typename A >
static void arrToVar (V &var, const A arr)
 
static int deserializeAvrFloat64 (const unsigned char *inbuffer, float *f)
 This tricky function handles demoting a 64bit double to a 32bit float, so that AVR can understand messages containing float64 fields, despite AVR having no native support for double. More...
 
static int serializeAvrFloat64 (unsigned char *outbuffer, const float f)
 This tricky function handles promoting a 32bit float to a 64bit double, so that AVR can publish messages containing float64 fields, despite AVV having no native support for double. More...
 
template<typename A , typename V >
static void varToArr (A arr, const V var)
 

Detailed Description

Definition at line 45 of file msg.h.

Member Function Documentation

template<typename V , typename A >
static void ros::Msg::arrToVar ( V &  var,
const A  arr 
)
inlinestatic

Definition at line 137 of file msg.h.

virtual int ros::Msg::deserialize ( unsigned char *  data)
pure virtual
static int ros::Msg::deserializeAvrFloat64 ( const unsigned char *  inbuffer,
float *  f 
)
inlinestatic

This tricky function handles demoting a 64bit double to a 32bit float, so that AVR can understand messages containing float64 fields, despite AVR having no native support for double.

Parameters
[in]inbufferpointer for buffer to deserialize from.
[out]fpointer to place the deserialized value in.
Returns
number of bytes to advance the buffer pointer.

Definition at line 102 of file msg.h.

virtual const char* ros::Msg::getMD5 ( )
pure virtual
virtual const char* ros::Msg::getType ( )
pure virtual
virtual int ros::Msg::serialize ( unsigned char *  outbuffer) const
pure virtual
static int ros::Msg::serializeAvrFloat64 ( unsigned char *  outbuffer,
const float  f 
)
inlinestatic

This tricky function handles promoting a 32bit float to a 64bit double, so that AVR can publish messages containing float64 fields, despite AVV having no native support for double.

Parameters
[out]outbufferpointer for buffer to serialize to.
[in]fvalue to serialize.
Returns
number of bytes to advance the buffer pointer.

Definition at line 64 of file msg.h.

template<typename A , typename V >
static void ros::Msg::varToArr ( arr,
const V  var 
)
inlinestatic

Definition at line 129 of file msg.h.


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


rosserial_client
Author(s): Michael Ferguson, Adam Stambler
autogenerated on Mon Jun 10 2019 14:53:19