23#ifndef WHISPER_NODE_HPP
24#define WHISPER_NODE_HPP
28#include <std_msgs/msg/float32_multi_array.hpp>
29#include <std_srvs/srv/empty.hpp>
31#include "whisper_msgs/msg/transcription.hpp"
32#include "whisper_msgs/srv/set_grammar.hpp"
33#include "whisper_msgs/srv/set_init_prompt.hpp"
47 rclcpp::Publisher<whisper_msgs::msg::Transcription>::SharedPtr
publisher_;
48 rclcpp::Subscription<std_msgs::msg::Float32MultiArray>::SharedPtr
51 rclcpp::Service<whisper_msgs::srv::SetGrammar>::SharedPtr
54 rclcpp::Service<whisper_msgs::srv::SetInitPrompt>::SharedPtr
58 void vad_callback(
const std_msgs::msg::Float32MultiArray::SharedPtr msg);
60 const std::shared_ptr<whisper_msgs::srv::SetGrammar::Request> request,
61 std::shared_ptr<whisper_msgs::srv::SetGrammar::Response> response);
63 const std::shared_ptr<std_srvs::srv::Empty::Request> request,
64 std::shared_ptr<std_srvs::srv::Empty::Response> response);
66 const std::shared_ptr<whisper_msgs::srv::SetInitPrompt::Request> request,
67 std::shared_ptr<whisper_msgs::srv::SetInitPrompt::Response> response);
69 const std::shared_ptr<std_srvs::srv::Empty::Request> request,
70 std::shared_ptr<std_srvs::srv::Empty::Response> response);
Definition whisper_base_node.hpp:38
Definition whisper_node.hpp:38
WhisperNode()
Definition whisper_node.cpp:32
void set_grammar_service_callback(const std::shared_ptr< whisper_msgs::srv::SetGrammar::Request > request, std::shared_ptr< whisper_msgs::srv::SetGrammar::Response > response)
Definition whisper_node.cpp:91
rclcpp::Publisher< whisper_msgs::msg::Transcription >::SharedPtr publisher_
Definition whisper_node.hpp:47
rclcpp::Service< whisper_msgs::srv::SetInitPrompt >::SharedPtr set_init_prompt_service_
Definition whisper_node.hpp:55
void reset_init_prompt_service_callback(const std::shared_ptr< std_srvs::srv::Empty::Request > request, std::shared_ptr< std_srvs::srv::Empty::Response > response)
Definition whisper_node.cpp:120
rclcpp::Service< whisper_msgs::srv::SetGrammar >::SharedPtr set_grammar_service_
Definition whisper_node.hpp:52
rclcpp::Service< std_srvs::srv::Empty >::SharedPtr reset_grammar_service_
Definition whisper_node.hpp:53
rclcpp::Subscription< std_msgs::msg::Float32MultiArray >::SharedPtr subscription_
Definition whisper_node.hpp:49
void vad_callback(const std_msgs::msg::Float32MultiArray::SharedPtr msg)
Definition whisper_node.cpp:84
void reset_grammar_service_callback(const std::shared_ptr< std_srvs::srv::Empty::Request > request, std::shared_ptr< std_srvs::srv::Empty::Response > response)
Definition whisper_node.cpp:102
rclcpp::Service< std_srvs::srv::Empty >::SharedPtr reset_init_prompt_service_
Definition whisper_node.hpp:56
void set_init_prompt_service_callback(const std::shared_ptr< whisper_msgs::srv::SetInitPrompt::Request > request, std::shared_ptr< whisper_msgs::srv::SetInitPrompt::Response > response)
Definition whisper_node.cpp:112
void activate_ros_interfaces()
Definition whisper_node.cpp:36
void deactivate_ros_interfaces()
Definition whisper_node.cpp:63
Definition whisper.hpp:45