18 #ifndef SONAR_CONVERTER_HPP 19 #define SONAR_CONVERTER_HPP 30 #include <sensor_msgs/Range.h> 40 typedef boost::function<void(std::vector<sensor_msgs::Range>&)>
Callback_t;
52 void callAll(
const std::vector<message_actions::MessageAction>& actions );
56 std::map<message_actions::MessageAction, Callback_t>
callbacks_;
70 std::vector<sensor_msgs::Range>
msgs_;
SonarConverter(const std::string &name, const float &frequency, const qi::SessionPtr &session)
std::vector< std::string > frames_
void registerCallback(message_actions::MessageAction action, Callback_t cb)
boost::function< void(std::vector< sensor_msgs::Range > &)> Callback_t
void callAll(const std::vector< message_actions::MessageAction > &actions)
std::vector< std::string > keys_
std::map< message_actions::MessageAction, Callback_t > callbacks_
std::vector< sensor_msgs::Range > msgs_