23#ifndef AUDIO_COMMON__TTS_NODE
24#define AUDIO_COMMON__TTS_NODE
38#include <rclcpp/rclcpp.hpp>
39#include <rclcpp_action/rclcpp_action.hpp>
42#include "audio_common_msgs/action/tts.hpp"
43#include "audio_common_msgs/msg/audio_stamped.hpp"
49 using TTS = audio_common_msgs::action::TTS;
57 rclcpp::Publisher<audio_common_msgs::msg::AudioStamped>::SharedPtr
64 rclcpp_action::GoalResponse
66 std::shared_ptr<const TTS::Goal> goal);
67 rclcpp_action::CancelResponse
68 handle_cancel(
const std::shared_ptr<GoalHandleTTS> goal_handle);
rclcpp_action::ServerGoalHandle< TTS > GoalHandleTTS
Definition tts_node.hpp:50
rclcpp_action::GoalResponse handle_goal(const rclcpp_action::GoalUUID &uuid, std::shared_ptr< const TTS::Goal > goal)
Definition tts_node.cpp:65
audio_common_msgs::action::TTS TTS
Definition tts_node.hpp:49
std::shared_ptr< GoalHandleTTS > goal_handle_
Definition tts_node.hpp:61
rclcpp::Publisher< audio_common_msgs::msg::AudioStamped >::SharedPtr player_pub_
Definition tts_node.hpp:58
void handle_accepted(const std::shared_ptr< GoalHandleTTS > goal_handle)
Definition tts_node.cpp:78
std::mutex goal_lock_
Definition tts_node.hpp:60
TtsNode()
Definition tts_node.cpp:43
rclcpp_action::CancelResponse handle_cancel(const std::shared_ptr< GoalHandleTTS > goal_handle)
Definition tts_node.cpp:72
void execute_callback(const std::shared_ptr< GoalHandleTTS > goal_handle)
Definition tts_node.cpp:91
std::string frame_id_
Definition tts_node.hpp:56
int chunk_
Definition tts_node.hpp:55
rclcpp_action::Server< TTS >::SharedPtr action_server_
Definition tts_node.hpp:59
Definition audio_capturer_node.hpp:32