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

#include <imu.hpp>

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

Public Member Functions

 ImuConverter (const std::string &name, const IMU::Location &location, const float &frequency, const qi::SessionPtr &session)
 
 ~ImuConverter ()
 
virtual void reset ()
 
void registerCallback (const message_actions::MessageAction action, Callback_t cb)
 
virtual void callAll (const std::vector< message_actions::MessageAction > &actions)
 
- Public Member Functions inherited from naoqi::converter::BaseConverter< ImuConverter >
 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(sensor_msgs::Imu &) > Callback_t
 

Private Attributes

sensor_msgs::Imu msg_imu_
 
qi::AnyObject p_memory_
 
std::vector< std::string > data_names_list_
 
std::map< message_actions::MessageAction, Callback_tcallbacks_
 

Additional Inherited Members

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

Member Typedef Documentation

typedef boost::function<void(sensor_msgs::Imu&) > naoqi::converter::ImuConverter::Callback_t
private

Constructor & Destructor Documentation

naoqi::converter::ImuConverter::ImuConverter ( const std::string &  name,
const IMU::Location location,
const float &  frequency,
const qi::SessionPtr &  session 
)
naoqi::converter::ImuConverter::~ImuConverter ( )

Member Function Documentation

void naoqi::converter::ImuConverter::callAll ( const std::vector< message_actions::MessageAction > &  actions)
virtual
void naoqi::converter::ImuConverter::registerCallback ( const message_actions::MessageAction  action,
Callback_t  cb 
)
void naoqi::converter::ImuConverter::reset ( )
virtual

Field Documentation

std::map<message_actions::MessageAction, Callback_t> naoqi::converter::ImuConverter::callbacks_
private

Registered Callbacks

std::vector<std::string> naoqi::converter::ImuConverter::data_names_list_
private
sensor_msgs::Imu naoqi::converter::ImuConverter::msg_imu_
private
qi::AnyObject naoqi::converter::ImuConverter::p_memory_
private

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