Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
audio_transport::RosGstCapture Class Reference

Public Member Functions

void exitOnMainThread (int code)
 
void publish (const audio_common_msgs::AudioData &msg)
 
 RosGstCapture ()
 
 ~RosGstCapture ()
 

Static Public Member Functions

static gboolean onMessage (GstBus *bus, GstMessage *message, gpointer userData)
 
static GstFlowReturn onNewBuffer (GstAppSink *appsink, gpointer userData)
 

Private Attributes

int _bitrate
 
GstBus * _bus
 
int _channels
 
GstElement * _convert
 
int _depth
 
GstElement * _encode
 
GstElement * _filter
 
std::string _format
 
boost::thread _gst_thread
 
GMainLoop * _loop
 
ros::NodeHandle _nh
 
GstElement * _pipeline
 
ros::Publisher _pub
 
ros::Publisher _pub_info
 
std::string _sample_format
 
int _sample_rate
 
GstElement * _sink
 
GstElement * _source
 

Detailed Description

Definition at line 13 of file audio_capture.cpp.

Constructor & Destructor Documentation

audio_transport::RosGstCapture::RosGstCapture ( )
inline

Definition at line 16 of file audio_capture.cpp.

audio_transport::RosGstCapture::~RosGstCapture ( )
inline

Definition at line 157 of file audio_capture.cpp.

Member Function Documentation

void audio_transport::RosGstCapture::exitOnMainThread ( int  code)
inline

Definition at line 165 of file audio_capture.cpp.

static gboolean audio_transport::RosGstCapture::onMessage ( GstBus *  bus,
GstMessage *  message,
gpointer  userData 
)
inlinestatic

Definition at line 199 of file audio_capture.cpp.

static GstFlowReturn audio_transport::RosGstCapture::onNewBuffer ( GstAppSink *  appsink,
gpointer  userData 
)
inlinestatic

Definition at line 175 of file audio_capture.cpp.

void audio_transport::RosGstCapture::publish ( const audio_common_msgs::AudioData &  msg)
inline

Definition at line 170 of file audio_capture.cpp.

Member Data Documentation

int audio_transport::RosGstCapture::_bitrate
private

Definition at line 223 of file audio_capture.cpp.

GstBus* audio_transport::RosGstCapture::_bus
private

Definition at line 222 of file audio_capture.cpp.

int audio_transport::RosGstCapture::_channels
private

Definition at line 223 of file audio_capture.cpp.

GstElement * audio_transport::RosGstCapture::_convert
private

Definition at line 221 of file audio_capture.cpp.

int audio_transport::RosGstCapture::_depth
private

Definition at line 223 of file audio_capture.cpp.

GstElement * audio_transport::RosGstCapture::_encode
private

Definition at line 221 of file audio_capture.cpp.

GstElement * audio_transport::RosGstCapture::_filter
private

Definition at line 221 of file audio_capture.cpp.

std::string audio_transport::RosGstCapture::_format
private

Definition at line 225 of file audio_capture.cpp.

boost::thread audio_transport::RosGstCapture::_gst_thread
private

Definition at line 219 of file audio_capture.cpp.

GMainLoop* audio_transport::RosGstCapture::_loop
private

Definition at line 224 of file audio_capture.cpp.

ros::NodeHandle audio_transport::RosGstCapture::_nh
private

Definition at line 215 of file audio_capture.cpp.

GstElement* audio_transport::RosGstCapture::_pipeline
private

Definition at line 221 of file audio_capture.cpp.

ros::Publisher audio_transport::RosGstCapture::_pub
private

Definition at line 216 of file audio_capture.cpp.

ros::Publisher audio_transport::RosGstCapture::_pub_info
private

Definition at line 217 of file audio_capture.cpp.

std::string audio_transport::RosGstCapture::_sample_format
private

Definition at line 225 of file audio_capture.cpp.

int audio_transport::RosGstCapture::_sample_rate
private

Definition at line 223 of file audio_capture.cpp.

GstElement * audio_transport::RosGstCapture::_sink
private

Definition at line 221 of file audio_capture.cpp.

GstElement * audio_transport::RosGstCapture::_source
private

Definition at line 221 of file audio_capture.cpp.


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


audio_capture
Author(s): Nate Koenig
autogenerated on Fri Apr 9 2021 02:41:14