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