18 #ifndef TOUCH_EVENT_CONVERTER_HPP 19 #define TOUCH_EVENT_CONVERTER_HPP 30 #include <naoqi_bridge_msgs/Bumper.h> 31 #include <naoqi_bridge_msgs/HandTouch.h> 32 #include <naoqi_bridge_msgs/HeadTouch.h> 37 #include <qi/anymodule.hpp> 58 void callAll(
const std::vector<message_actions::MessageAction>& actions, T& msg);
62 std::map<message_actions::MessageAction, Callback_t>
callbacks_;
70 #endif // TOUCH_CONVERTER_HPP
TouchEventConverter(const std::string &name, const float &frequency, const qi::SessionPtr &session)
std::map< message_actions::MessageAction, Callback_t > callbacks_
void registerCallback(const message_actions::MessageAction action, Callback_t cb)
void callAll(const std::vector< message_actions::MessageAction > &actions, T &msg)
boost::function< void(T &) > Callback_t