#include <event_manager.hpp>
Definition at line 112 of file event_manager.hpp.
kobuki::EventManager::EventManager |
( |
| ) |
|
|
inline |
void kobuki::EventManager::init |
( |
const std::string & |
sigslots_namespace | ) |
|
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 43 of file event_manager.cpp.
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 261 of file event_manager.cpp.
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 283 of file event_manager.cpp.
uint16_t kobuki::EventManager::last_digital_input |
|
private |
ecl::Signal<const BumperEvent&> kobuki::EventManager::sig_bumper_event |
|
private |
ecl::Signal<const ButtonEvent&> kobuki::EventManager::sig_button_event |
|
private |
ecl::Signal<const CliffEvent&> kobuki::EventManager::sig_cliff_event |
|
private |
ecl::Signal<const InputEvent&> kobuki::EventManager::sig_input_event |
|
private |
ecl::Signal<const PowerEvent&> kobuki::EventManager::sig_power_event |
|
private |
ecl::Signal<const RobotEvent&> kobuki::EventManager::sig_robot_event |
|
private |
ecl::Signal<const WheelEvent&> kobuki::EventManager::sig_wheel_event |
|
private |
The documentation for this class was generated from the following files: