13 #ifndef KOBUKI_HW_DATA_HPP__ 14 #define KOBUKI_HW_DATA_HPP__ 20 #include "../packet_handler/payload_base.hpp" 21 #include "../packet_handler/payload_headers.hpp" 60 unsigned char header_id, length_packed;
64 if( length_packed != 2 and length_packed != 4)
return false;
68 if (length_packed == 2)
70 uint16_t old_style_version = 0;
73 if (old_style_version == 104)
bool deserialise(ecl::PushAndPop< unsigned char > &byteStream)
unsigned int size() const
const unsigned char length
Provides base class for payloads.
payloadBase(const bool is_dynamic_=false, const unsigned char length_=0)
void buildVariable(T &V, ecl::PushAndPop< unsigned char > &buffer)
void buildBytes(const T &V, ecl::PushAndPop< unsigned char > &buffer)
struct kobuki::Hardware::Data data
bool serialise(ecl::PushAndPop< unsigned char > &byteStream)