audio_common for ROS 2
Loading...
Searching...
No Matches
audio_common::AudioCapturerNode Class Reference

#include <audio_capturer_node.hpp>

Inheritance diagram for audio_common::AudioCapturerNode:
Collaboration diagram for audio_common::AudioCapturerNode:

Public Member Functions

 AudioCapturerNode ()
 
 ~AudioCapturerNode () override
 
void work ()
 

Private Member Functions

template<typename T>
std::vector< T > read_data ()
 

Private Attributes

PaStream * stream_
 
int format_
 
int channels_
 
int rate_
 
int chunk_
 
std::string frame_id_
 
rclcpp::Publisher< audio_common_msgs::msg::AudioStamped >::SharedPtr audio_pub_
 

Constructor & Destructor Documentation

◆ AudioCapturerNode()

AudioCapturerNode::AudioCapturerNode ( )

◆ ~AudioCapturerNode()

AudioCapturerNode::~AudioCapturerNode ( )
override

Member Function Documentation

◆ read_data()

template<typename T>
std::vector< T > AudioCapturerNode::read_data ( )
private

◆ work()

void AudioCapturerNode::work ( )

Member Data Documentation

◆ audio_pub_

rclcpp::Publisher<audio_common_msgs::msg::AudioStamped>::SharedPtr audio_common::AudioCapturerNode::audio_pub_
private

◆ channels_

int audio_common::AudioCapturerNode::channels_
private

◆ chunk_

int audio_common::AudioCapturerNode::chunk_
private

◆ format_

int audio_common::AudioCapturerNode::format_
private

◆ frame_id_

std::string audio_common::AudioCapturerNode::frame_id_
private

◆ rate_

int audio_common::AudioCapturerNode::rate_
private

◆ stream_

PaStream* audio_common::AudioCapturerNode::stream_
private

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