#include <event_manager.hpp>
Definition at line 118 of file event_manager.hpp.
◆ EventManager()
kobuki::EventManager::EventManager |
( |
| ) |
|
|
inline |
◆ init()
void kobuki::EventManager::init |
( |
const std::string & |
sigslots_namespace | ) |
|
◆ 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?. |
Definition at line 287 of file event_manager.cpp.
◆ 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) |
Definition at line 47 of file event_manager.cpp.
◆ 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. |
Definition at line 265 of file event_manager.cpp.
◆ last_digital_input
uint16_t kobuki::EventManager::last_digital_input |
|
private |
◆ last_robot_state
◆ last_state
◆ sig_bumper_event
◆ sig_button_event
◆ sig_cliff_event
◆ sig_input_event
◆ sig_power_event
◆ sig_robot_event
◆ sig_wheel_event
The documentation for this class was generated from the following files: