Public Member Functions | Private Types | Private Attributes | List of all members
naoqi::converter::SonarConverter Class Reference

#include <sonar.hpp>

Inheritance diagram for naoqi::converter::SonarConverter:
Inheritance graph
[legend]

Public Member Functions

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

Private Types

typedef boost::function< void(std::vector< sensor_msgs::Range > &)> Callback_t
 

Private Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 37 of file converters/sonar.hpp.

Member Typedef Documentation

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

Definition at line 40 of file converters/sonar.hpp.

Constructor & Destructor Documentation

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

Definition at line 35 of file converters/sonar.cpp.

naoqi::converter::SonarConverter::~SonarConverter ( )

Definition at line 75 of file converters/sonar.cpp.

Member Function Documentation

void naoqi::converter::SonarConverter::callAll ( const std::vector< message_actions::MessageAction > &  actions)

Definition at line 89 of file converters/sonar.cpp.

void naoqi::converter::SonarConverter::registerCallback ( message_actions::MessageAction  action,
Callback_t  cb 
)

Definition at line 84 of file converters/sonar.cpp.

void naoqi::converter::SonarConverter::reset ( )

Definition at line 118 of file converters/sonar.cpp.

Member Data Documentation

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

Definition at line 56 of file converters/sonar.hpp.

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

The frames of the sonars

Definition at line 68 of file converters/sonar.hpp.

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

Key describeing whether we are subscribed to the ALSonar module

Definition at line 63 of file converters/sonar.hpp.

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

The memory keys of the sonars

Definition at line 66 of file converters/sonar.hpp.

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

Pre-filled messges that are sent

Definition at line 70 of file converters/sonar.hpp.

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

Memory (Proxy) configurations

Definition at line 61 of file converters/sonar.hpp.

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

Sonar (Proxy) configurations

Definition at line 59 of file converters/sonar.hpp.


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


naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Feb 15 2020 03:24:26