Kobuki 1.0.0
C++ API for the Kobuki research robot
Loading...
Searching...
No Matches
kobuki::Current Class Reference

#include <current.hpp>

Inheritance diagram for kobuki::Current:
Collaboration diagram for kobuki::Current:

Classes

struct  Data
 

Public Member Functions

bool serialise (ecl::PushAndPop< unsigned char > &byteStream)
 
bool deserialise (ecl::PushAndPop< unsigned char > &byteStream)
 
bool constrain ()
 
void showMe ()
 
- Public Member Functions inherited from packet_handler::payloadBase
 payloadBase (const bool is_dynamic_=false, const unsigned char length_=0)
 

Public Attributes

struct kobuki::Current::Data data
 
- Public Attributes inherited from packet_handler::payloadBase
bool yes
 
const bool is_dynamic
 
const unsigned char length
 

Additional Inherited Members

- Protected Member Functions inherited from packet_handler::payloadBase
template<typename T >
void buildVariable (T &V, ecl::PushAndPop< unsigned char > &buffer)
 
template<typename T >
void buildBytes (const T &V, ecl::PushAndPop< unsigned char > &buffer)
 

Detailed Description

This comes back in the streamed feedback. It has two values (left and right) indicating the supplied current which can be useful for detecting when the robot is blocked.

Member Function Documentation

◆ deserialise()

bool kobuki::Current::deserialise ( ecl::PushAndPop< unsigned char > &  byteStream)
inlinevirtual

◆ serialise()

bool kobuki::Current::serialise ( ecl::PushAndPop< unsigned char > &  byteStream)
inlinevirtual

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