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

#include <sonar.hpp>

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

Public Member Functions

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

Private Attributes

std::map< message_actions::MessageAction, Callback_tcallbacks_
 
qi::AnyObject p_sonar_
 
qi::AnyObject p_memory_
 
bool is_subscribed_
 
std::vector< std::string > keys_
 
std::vector< std::string > frames_
 
std::vector< sensor_msgs::Range > msgs_
 

Additional Inherited Members

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

Member Typedef Documentation

typedef boost::function<void(std::vector<sensor_msgs::Range>&)> naoqi::converter::SonarConverter::Callback_t
private

Constructor & Destructor Documentation

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

Member Function Documentation

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

Field Documentation

std::map<message_actions::MessageAction, Callback_t> naoqi::converter::SonarConverter::callbacks_
private
std::vector<std::string> naoqi::converter::SonarConverter::frames_
private

The frames of the sonars

bool naoqi::converter::SonarConverter::is_subscribed_
private

Key describeing whether we are subscribed to the ALSonar module

std::vector<std::string> naoqi::converter::SonarConverter::keys_
private

The memory keys of the sonars

std::vector<sensor_msgs::Range> naoqi::converter::SonarConverter::msgs_
private

Pre-filled messges that are sent

qi::AnyObject naoqi::converter::SonarConverter::p_memory_
private

Memory (Proxy) configurations

qi::AnyObject naoqi::converter::SonarConverter::p_sonar_
private

Sonar (Proxy) configurations


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