naoqidriver
Public Member Functions | Private Types | Private Member Functions | Private Attributes
naoqi::converter::MemoryFloatConverter Class Reference

#include <float.hpp>

Inheritance diagram for naoqi::converter::MemoryFloatConverter:
naoqi::converter::BaseConverter< MemoryFloatConverter >

Public Member Functions

 MemoryFloatConverter (const std::string &name, const float &frequency, const qi::SessionPtr &session, const std::string &memory_key)
 
void reset ()
 
void registerCallback (const message_actions::MessageAction action, Callback_t cb)
 
void callAll (const std::vector< message_actions::MessageAction > &actions)
 
- Public Member Functions inherited from naoqi::converter::BaseConverter< MemoryFloatConverter >
 BaseConverter (const std::string &name, float frequency, qi::SessionPtr session)
 
virtual ~BaseConverter ()
 
std::string name () const
 
float frequency () const
 

Private Types

typedef boost::function< void(naoqi_bridge_msgs::FloatStamped &)> Callback_t
 

Private Member Functions

bool convert ()
 

Private Attributes

std::string memory_key_
 
qi::AnyObject p_memory_
 
std::map< message_actions::MessageAction, Callback_tcallbacks_
 
naoqi_bridge_msgs::FloatStamped msg_
 

Additional Inherited Members

- Protected Attributes inherited from naoqi::converter::BaseConverter< MemoryFloatConverter >
std::string name_
 
float frequency_
 
const robot::Robotrobot_
 
qi::SessionPtr session_
 
bool record_enabled_
 

Member Typedef Documentation

typedef boost::function<void(naoqi_bridge_msgs::FloatStamped&)> naoqi::converter::MemoryFloatConverter::Callback_t
private

Constructor & Destructor Documentation

naoqi::converter::MemoryFloatConverter::MemoryFloatConverter ( const std::string &  name,
const float &  frequency,
const qi::SessionPtr &  session,
const std::string &  memory_key 
)

Member Function Documentation

void naoqi::converter::MemoryFloatConverter::callAll ( const std::vector< message_actions::MessageAction > &  actions)
bool naoqi::converter::MemoryFloatConverter::convert ( )
private
void naoqi::converter::MemoryFloatConverter::registerCallback ( const message_actions::MessageAction  action,
Callback_t  cb 
)
void naoqi::converter::MemoryFloatConverter::reset ( )

Field Documentation

std::map<message_actions::MessageAction, Callback_t> naoqi::converter::MemoryFloatConverter::callbacks_
private
std::string naoqi::converter::MemoryFloatConverter::memory_key_
private

Memory key to retrieve data

naoqi_bridge_msgs::FloatStamped naoqi::converter::MemoryFloatConverter::msg_
private
qi::AnyObject naoqi::converter::MemoryFloatConverter::p_memory_
private

Memory (Proxy) configurations


The documentation for this class was generated from the following files: