|
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) |
|
◆ update() [1/3]
void kobuki::EventManager::update |
( |
bool |
is_plugged, |
|
|
bool |
is_alive |
|
) |
| |
Emit events if the robot gets online/offline.
- Parameters
-
is_plugged | Is the USB cable connected?. |
is_alive | Is 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_state | Updated core sensors state |
cliff_data | Cliff 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_input | New values on digital input port. |
The documentation for this class was generated from the following files:
- /github/workspace/include/kobuki_core/event_manager.hpp
- /github/workspace/src/driver/event_manager.cpp