18 #ifndef MEMORY_FLOAT_CONVERTER_HPP
19 #define MEMORY_FLOAT_CONVERTER_HPP
24 #include "../converter_base.hpp"
30 #include <naoqi_bridge_msgs/FloatStamped.h>
39 typedef boost::function<void(naoqi_bridge_msgs::FloatStamped&)>
Callback_t;
49 void callAll(
const std::vector<message_actions::MessageAction>& actions );
60 std::map<message_actions::MessageAction, Callback_t>
callbacks_;
61 naoqi_bridge_msgs::FloatStamped
msg_;
void registerCallback(const message_actions::MessageAction action, Callback_t cb)
Definition: float.cpp:40
std::string name() const
Definition: converter_base.hpp:54
float frequency() const
Definition: converter_base.hpp:59
MemoryFloatConverter(const std::string &name, const float &frequency, const qi::SessionPtr &session, const std::string &memory_key)
Definition: float.cpp:34
std::string memory_key_
Definition: float.hpp:56
std::map< message_actions::MessageAction, Callback_t > callbacks_
Definition: float.hpp:60
MessageAction
Definition: message_actions.h:9
boost::function< void(naoqi_bridge_msgs::FloatStamped &)> Callback_t
Definition: float.hpp:39
Definition: converter_base.hpp:40
bool convert()
Definition: float.cpp:45
void reset()
Definition: float.cpp:73
naoqi_bridge_msgs::FloatStamped msg_
Definition: float.hpp:61
void callAll(const std::vector< message_actions::MessageAction > &actions)
Definition: float.cpp:63
qi::AnyObject p_memory_
Definition: float.hpp:58