![]() |
Kobuki 1.0.0
C++ API for the Kobuki research robot
|
Provides base class for payloads. More...
#include <payload_base.hpp>
Public Member Functions | |
payloadBase (const bool is_dynamic_=false, const unsigned char length_=0) | |
virtual bool | serialise (ecl::PushAndPop< unsigned char > &byteStream)=0 |
virtual bool | deserialise (ecl::PushAndPop< unsigned char > &byteStream)=0 |
Public Attributes | |
bool | yes |
const bool | is_dynamic |
const unsigned char | length |
Provides base class for payloads.
|
pure virtual |
Implemented in kobuki::Command.
const bool packet_handler::payloadBase::is_dynamic |
it indicates the type of derived packet. if packet type is dynamic, length of packet can be changed during communication session. Ohterwise can not.
const unsigned char packet_handler::payloadBase::length |
it indicates length of data part of packet, except header and length field. if packet is fixed type, this value should be matched with length field. if packet is dynamic type, this value indicates minimal value of length field.
bool packet_handler::payloadBase::yes |
this is simple magic to write the flag, when we get the packet from the host or when we want to send the data