13 #ifndef KOBUKI_COMMAND_DATA_HPP__ 14 #define KOBUKI_COMMAND_DATA_HPP__ 20 #include <ecl/containers.hpp> 37 typedef ecl::PushAndPop<unsigned char>
Buffer;
45 BaseControl = 1, Sound = 3, SoundSequence = 4, RequestExtra = 9, ChangeFrame = 10, RequestEeprom = 11,
46 SetDigitalOut = 12, SetController = 13, GetController = 14
69 : command(BaseControl),
speed(0),
radius(0), request_flags(0), gp_out(0x00f0)
70 , type(0), p_gain(1000), i_gain(1000), d_gain(1000)
117 static Command GetVersionInfo();
120 static Command SetControllerGain(
const unsigned char &type,
121 const unsigned int &p_gain,
122 const unsigned int &i_gain,
123 const unsigned int &d_gain);
124 static Command GetControllerGain();
128 void resetBuffer(Buffer &buffer);
129 bool serialise(ecl::PushAndPop<unsigned char> & byteStream);
130 bool deserialise(ecl::PushAndPop<unsigned char> & byteStream) {
return true; }
Definitions for manipulating the led's.
static const unsigned char header1
unsigned char segment_name
Provides base class for payloads.
Convenience header for modules.
Macros for kobuki_driver.
ecl::Stencil< Buffer > BufferStencil
Data structure containing data for commands.
static const unsigned char header0
ecl::PushAndPop< unsigned char > Buffer
bool deserialise(ecl::PushAndPop< unsigned char > &byteStream)