13 #ifndef KOBUKI_BUTTON_EVENT_HPP_ 14 #define KOBUKI_BUTTON_EVENT_HPP_ 89 PluggedToDockbase = 2,
115 last_state.buttons = 0;
116 last_state.bumper = 0;
117 last_state.cliff = 0;
118 last_state.wheel_drop = 0;
119 last_state.charger = 0;
120 last_state.battery = 0;
121 last_digital_input = 0;
125 void init(
const std::string &sigslots_namespace);
126 void update(
const CoreSensors::Data &new_state,
const std::vector<uint16_t> &cliff_data);
127 void update(
const uint16_t &digital_input);
128 void update(
bool is_plugged,
bool is_alive);
ecl::Signal< const InputEvent & > sig_input_event
ecl::Signal< const ButtonEvent & > sig_button_event
ecl::Signal< const CliffEvent & > sig_cliff_event
ecl::Signal< const RobotEvent & > sig_robot_event
CoreSensors::Data last_state
RobotEvent::State last_robot_state
Macros for kobuki_driver.
ecl::Signal< const WheelEvent & > sig_wheel_event
Core sensor packet payloads.
ecl::Signal< const BumperEvent & > sig_bumper_event
uint16_t last_digital_input
ecl::Signal< const PowerEvent & > sig_power_event