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

#include <tts_node.hpp>

Inheritance diagram for audio_common::TtsNode:
Collaboration diagram for audio_common::TtsNode:

Public Types

using TTS = audio_common_msgs::action::TTS
 
using GoalHandleTTS = rclcpp_action::ServerGoalHandle<TTS>
 

Public Member Functions

 TtsNode ()
 

Private Member Functions

rclcpp_action::GoalResponse handle_goal (const rclcpp_action::GoalUUID &uuid, std::shared_ptr< const TTS::Goal > goal)
 
rclcpp_action::CancelResponse handle_cancel (const std::shared_ptr< GoalHandleTTS > goal_handle)
 
void handle_accepted (const std::shared_ptr< GoalHandleTTS > goal_handle)
 
void execute_callback (const std::shared_ptr< GoalHandleTTS > goal_handle)
 

Private Attributes

int chunk_
 
std::string frame_id_
 
rclcpp::Publisher< audio_common_msgs::msg::AudioStamped >::SharedPtr player_pub_
 
rclcpp_action::Server< TTS >::SharedPtr action_server_
 
std::mutex goal_lock_
 
std::shared_ptr< GoalHandleTTSgoal_handle_
 

Member Typedef Documentation

◆ GoalHandleTTS

using audio_common::TtsNode::GoalHandleTTS = rclcpp_action::ServerGoalHandle<TTS>

◆ TTS

using audio_common::TtsNode::TTS = audio_common_msgs::action::TTS

Constructor & Destructor Documentation

◆ TtsNode()

TtsNode::TtsNode ( )

Member Function Documentation

◆ execute_callback()

void TtsNode::execute_callback ( const std::shared_ptr< GoalHandleTTS > goal_handle)
private

◆ handle_accepted()

void TtsNode::handle_accepted ( const std::shared_ptr< GoalHandleTTS > goal_handle)
private

◆ handle_cancel()

rclcpp_action::CancelResponse TtsNode::handle_cancel ( const std::shared_ptr< GoalHandleTTS > goal_handle)
private

◆ handle_goal()

rclcpp_action::GoalResponse TtsNode::handle_goal ( const rclcpp_action::GoalUUID & uuid,
std::shared_ptr< const TTS::Goal > goal )
private

Member Data Documentation

◆ action_server_

rclcpp_action::Server<TTS>::SharedPtr audio_common::TtsNode::action_server_
private

◆ chunk_

int audio_common::TtsNode::chunk_
private

◆ frame_id_

std::string audio_common::TtsNode::frame_id_
private

◆ goal_handle_

std::shared_ptr<GoalHandleTTS> audio_common::TtsNode::goal_handle_
private

◆ goal_lock_

std::mutex audio_common::TtsNode::goal_lock_
private

◆ player_pub_

rclcpp::Publisher<audio_common_msgs::msg::AudioStamped>::SharedPtr audio_common::TtsNode::player_pub_
private

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