14 #include "../../include/kobuki_driver/event_manager.hpp"
15 #include "../../include/kobuki_driver/modules/battery.hpp"
16 #include "../../include/kobuki_driver/packets/core_sensors.hpp"
31 sig_cliff_event.connect(sigslots_namespace + std::string(
"/cliff_event"));
33 sig_power_event.connect(sigslots_namespace + std::string(
"/power_event"));
34 sig_input_event.connect(sigslots_namespace + std::string(
"/input_event"));
35 sig_robot_event.connect(sigslots_namespace + std::string(
"/robot_event"));
143 event.bottom = cliff_data[
event.sensor];
154 event.bottom = cliff_data[
event.sensor];
165 event.bottom = cliff_data[
event.sensor];
209 if (battery_last.charging_state != battery_new.charging_state)
212 switch (battery_new.charging_state)
236 if (battery_last.level() != battery_new.level())
239 switch (battery_new.level())
267 event.
values[0] = new_digital_input&0x0001;
268 event.values[1] = new_digital_input&0x0002;
269 event.values[2] = new_digital_input&0x0004;
270 event.values[3] = new_digital_input&0x0008;
290 event.
state = robot_state;