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_;
std::string name() const
Definition: converter_base.hpp:54
qi::AnyObject p_sonar_
Definition: sonar.hpp:59
float frequency() const
Definition: converter_base.hpp:59
qi::AnyObject p_memory_
Definition: sonar.hpp:61
MessageAction
Definition: message_actions.h:9
SonarConverter(const std::string &name, const float &frequency, const qi::SessionPtr &session)
Definition: sonar.cpp:35
std::vector< std::string > frames_
Definition: sonar.hpp:68
void registerCallback(message_actions::MessageAction action, Callback_t cb)
Definition: sonar.cpp:84
bool is_subscribed_
Definition: sonar.hpp:63
~SonarConverter()
Definition: sonar.cpp:75
boost::function< void(std::vector< sensor_msgs::Range > &)> Callback_t
Definition: sonar.hpp:40
void callAll(const std::vector< message_actions::MessageAction > &actions)
Definition: sonar.cpp:89
void reset()
Definition: sonar.cpp:118
Definition: converter_base.hpp:40
std::vector< std::string > keys_
Definition: sonar.hpp:66
std::map< message_actions::MessageAction, Callback_t > callbacks_
Definition: sonar.hpp:56
std::vector< sensor_msgs::Range > msgs_
Definition: sonar.hpp:70