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

Public Member Functions

void init (const std::string &sigslots_namespace)
 
void update (const CoreSensors::Data &new_state, const std::vector< uint16_t > &cliff_data)
 
void update (const uint16_t &digital_input)
 
void update (bool is_plugged, bool is_alive)
 

Member Function Documentation

◆ update() [1/3]

void kobuki::EventManager::update ( bool  is_plugged,
bool  is_alive 
)

Emit events if the robot gets online/offline.

Parameters
is_pluggedIs the USB cable connected?.
is_aliveIs the robot alive?.

◆ update() [2/3]

void kobuki::EventManager::update ( const CoreSensors::Data new_state,
const std::vector< uint16_t > &  cliff_data 
)

Update with incoming data and emit events if necessary.

Parameters
new_stateUpdated core sensors state
cliff_dataCliff sensors readings (we include them as an extra information on cliff events)

◆ update() [3/3]

void kobuki::EventManager::update ( const uint16_t &  new_digital_input)

Emit events if something changed in the digital input port.

Parameters
new_digital_inputNew values on digital input port.

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