Public Member Functions | Private Member Functions | Private Attributes
naoqi::AudioEventRegister Class Reference

GlobalRecorder concept interface. More...

#include <audio.hpp>

Inheritance diagram for naoqi::AudioEventRegister:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AudioEventRegister ()
 Constructor for recorder interface.
 AudioEventRegister (const std::string &name, const float &frequency, const qi::SessionPtr &session)
void isDumping (bool state)
void isPublishing (bool state)
void isRecording (bool state)
void processRemote (int nbOfChannels, int samplesByChannel, qi::AnyValue altimestamp, qi::AnyValue buffer)
void resetPublisher (ros::NodeHandle &nh)
void resetRecorder (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr)
void setBufferDuration (float duration)
void startProcess ()
void stopProcess ()
void writeDump (const ros::Time &time)
 ~AudioEventRegister ()

Private Member Functions

void onEvent ()
void registerCallback ()
void unregisterCallback ()

Private Attributes

std::vector< uint8_t > channelMap
boost::shared_ptr
< converter::AudioEventConverter
converter_
bool isDumping_
bool isPublishing_
bool isRecording_
bool isStarted_
qi::AnyObject p_audio_
qi::FutureSync< qi::AnyObject > p_audio_extractor_request
qi::AnyObject p_robot_model_
boost::mutex processing_mutex_
boost::shared_ptr
< publisher::BasicPublisher
< naoqi_bridge_msgs::AudioBuffer > > 
publisher_
boost::shared_ptr
< recorder::BasicEventRecorder
< naoqi_bridge_msgs::AudioBuffer > > 
recorder_
unsigned int serviceId
qi::SessionPtr session_
boost::mutex subscription_mutex_

Detailed Description

GlobalRecorder concept interface.

Note:
this defines an private concept struct, which each instance has to implement
a type erasure pattern in implemented here to avoid strict inheritance, thus each possible publisher instance has to implement the virtual functions mentioned in the concept

Definition at line 53 of file event/audio.hpp.


Constructor & Destructor Documentation

Constructor for recorder interface.

Definition at line 35 of file event/audio.cpp.

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

Definition at line 39 of file event/audio.cpp.

Definition at line 72 of file event/audio.cpp.


Member Function Documentation

Definition at line 149 of file event/audio.cpp.

Definition at line 143 of file event/audio.cpp.

Definition at line 137 of file event/audio.cpp.

void naoqi::AudioEventRegister::processRemote ( int  nbOfChannels,
int  samplesByChannel,
qi::AnyValue  altimestamp,
qi::AnyValue  buffer 
)

Definition at line 163 of file event/audio.cpp.

Definition at line 155 of file event/audio.cpp.

Definition at line 77 of file event/audio.cpp.

Definition at line 82 of file event/audio.cpp.

Definition at line 132 of file event/audio.cpp.

Definition at line 87 of file event/audio.cpp.

Definition at line 109 of file event/audio.cpp.

Definition at line 159 of file event/audio.cpp.

Definition at line 124 of file event/audio.cpp.


Member Data Documentation

std::vector<uint8_t> naoqi::AudioEventRegister::channelMap [private]

Definition at line 94 of file event/audio.hpp.

Definition at line 86 of file event/audio.hpp.

Definition at line 103 of file event/audio.hpp.

Definition at line 101 of file event/audio.hpp.

Definition at line 102 of file event/audio.hpp.

Definition at line 100 of file event/audio.hpp.

qi::AnyObject naoqi::AudioEventRegister::p_audio_ [private]

Definition at line 91 of file event/audio.hpp.

qi::FutureSync<qi::AnyObject> naoqi::AudioEventRegister::p_audio_extractor_request [private]

Definition at line 93 of file event/audio.hpp.

Definition at line 92 of file event/audio.hpp.

Definition at line 98 of file event/audio.hpp.

boost::shared_ptr<publisher::BasicPublisher<naoqi_bridge_msgs::AudioBuffer> > naoqi::AudioEventRegister::publisher_ [private]

Definition at line 87 of file event/audio.hpp.

boost::shared_ptr<recorder::BasicEventRecorder<naoqi_bridge_msgs::AudioBuffer> > naoqi::AudioEventRegister::recorder_ [private]

Definition at line 88 of file event/audio.hpp.

unsigned int naoqi::AudioEventRegister::serviceId [private]

Definition at line 95 of file event/audio.hpp.

qi::SessionPtr naoqi::AudioEventRegister::session_ [private]

Definition at line 90 of file event/audio.hpp.

Definition at line 97 of file event/audio.hpp.


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


naoqi_driver
Author(s): Karsten Knese
autogenerated on Tue Jul 9 2019 03:21:56