naoqidriver
|
GlobalRecorder concept interface. More...
#include <audio.hpp>
Public Member Functions | |
AudioEventRegister () | |
Constructor for recorder interface. More... | |
AudioEventRegister (const std::string &name, const float &frequency, const qi::SessionPtr &session) | |
~AudioEventRegister () | |
void | resetPublisher (ros::NodeHandle &nh) |
void | resetRecorder (boost::shared_ptr< naoqi::recorder::GlobalRecorder > gr) |
void | startProcess () |
void | stopProcess () |
void | writeDump (const ros::Time &time) |
void | setBufferDuration (float duration) |
void | isRecording (bool state) |
void | isPublishing (bool state) |
void | isDumping (bool state) |
void | processRemote (int nbOfChannels, int samplesByChannel, qi::AnyValue altimestamp, qi::AnyValue buffer) |
Private Member Functions | |
void | registerCallback () |
void | unregisterCallback () |
void | onEvent () |
Private Attributes | |
boost::shared_ptr< converter::AudioEventConverter > | converter_ |
boost::shared_ptr< publisher::BasicPublisher< naoqi_bridge_msgs::AudioBuffer > > | publisher_ |
boost::shared_ptr< recorder::BasicEventRecorder< naoqi_bridge_msgs::AudioBuffer > > | recorder_ |
qi::SessionPtr | session_ |
qi::AnyObject | p_audio_ |
qi::AnyObject | p_robot_model_ |
qi::FutureSync< qi::AnyObject > | p_audio_extractor_request |
std::vector< uint8_t > | channelMap |
unsigned int | serviceId |
boost::mutex | mutex_ |
bool | isStarted_ |
bool | isPublishing_ |
bool | isRecording_ |
bool | isDumping_ |
GlobalRecorder concept interface.
naoqi::AudioEventRegister::AudioEventRegister | ( | ) |
Constructor for recorder interface.
naoqi::AudioEventRegister::AudioEventRegister | ( | const std::string & | name, |
const float & | frequency, | ||
const qi::SessionPtr & | session | ||
) |
naoqi::AudioEventRegister::~AudioEventRegister | ( | ) |
void naoqi::AudioEventRegister::isDumping | ( | bool | state | ) |
void naoqi::AudioEventRegister::isPublishing | ( | bool | state | ) |
void naoqi::AudioEventRegister::isRecording | ( | bool | state | ) |
|
private |
void naoqi::AudioEventRegister::processRemote | ( | int | nbOfChannels, |
int | samplesByChannel, | ||
qi::AnyValue | altimestamp, | ||
qi::AnyValue | buffer | ||
) |
|
private |
void naoqi::AudioEventRegister::resetPublisher | ( | ros::NodeHandle & | nh | ) |
void naoqi::AudioEventRegister::resetRecorder | ( | boost::shared_ptr< naoqi::recorder::GlobalRecorder > | gr | ) |
void naoqi::AudioEventRegister::setBufferDuration | ( | float | duration | ) |
void naoqi::AudioEventRegister::startProcess | ( | ) |
void naoqi::AudioEventRegister::stopProcess | ( | ) |
|
private |
void naoqi::AudioEventRegister::writeDump | ( | const ros::Time & | time | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |