snowboy_ros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
snowboy_ros::HotwordDetectorNode Class Reference

The HotwordDetectorNode class Wraps the C++ 11 Snowboy detector in a ROS node. More...

Public Member Functions

 HotwordDetectorNode ()
 
bool initialize ()
 

Private Member Functions

void audioCallback (const audio_common_msgs::AudioDataConstPtr &msg)
 audioCallback Audio stream callback More...
 
void reconfigureCallback (SnowboyReconfigureConfig cfg, uint32_t)
 reconfigureCallback Reconfigure update for sensitiviy and audio level More...
 

Private Attributes

ros::Subscriber audio_sub_
 audio_sub_ Subscriber to incoming audio feed More...
 
HotwordDetector detector_
 detector_ C++ 11 Wrapped Snowboy detect More...
 
dynamic_reconfigure::Server< SnowboyReconfigureConfig > dynamic_reconfigure_server_
 dynamic_reconfigure_server_ In order to online tune the sensitivity and audio gain More...
 
ros::Publisher hotword_pub_
 hotword_pub_ hotword publisher More...
 
std::string hotword_string_
 hotword_string_ String to be published when hotword is detected More...
 
ros::NodeHandle nh_
 nh_ Global nodehandle for topics More...
 
ros::NodeHandle nh_p_
 nh_p_ Local nodehandle for parameters More...
 

Detailed Description

The HotwordDetectorNode class Wraps the C++ 11 Snowboy detector in a ROS node.

Definition at line 19 of file hotword_detector_node.cpp.

Constructor & Destructor Documentation

◆ HotwordDetectorNode()

snowboy_ros::HotwordDetectorNode::HotwordDetectorNode ( )
inline

Definition at line 22 of file hotword_detector_node.cpp.

Member Function Documentation

◆ audioCallback()

void snowboy_ros::HotwordDetectorNode::audioCallback ( const audio_common_msgs::AudioDataConstPtr &  msg)
inlineprivate

audioCallback Audio stream callback

Parameters
msgThe audo data

Definition at line 133 of file hotword_detector_node.cpp.

◆ initialize()

bool snowboy_ros::HotwordDetectorNode::initialize ( )
inline

Definition at line 28 of file hotword_detector_node.cpp.

◆ reconfigureCallback()

void snowboy_ros::HotwordDetectorNode::reconfigureCallback ( SnowboyReconfigureConfig  cfg,
uint32_t   
)
inlineprivate

reconfigureCallback Reconfigure update for sensitiviy and audio level

Parameters
cfgThe updated config

Definition at line 123 of file hotword_detector_node.cpp.

Member Data Documentation

◆ audio_sub_

ros::Subscriber snowboy_ros::HotwordDetectorNode::audio_sub_
private

audio_sub_ Subscriber to incoming audio feed

Definition at line 97 of file hotword_detector_node.cpp.

◆ detector_

HotwordDetector snowboy_ros::HotwordDetectorNode::detector_
private

detector_ C++ 11 Wrapped Snowboy detect

Definition at line 117 of file hotword_detector_node.cpp.

◆ dynamic_reconfigure_server_

dynamic_reconfigure::Server<SnowboyReconfigureConfig> snowboy_ros::HotwordDetectorNode::dynamic_reconfigure_server_
private

dynamic_reconfigure_server_ In order to online tune the sensitivity and audio gain

Definition at line 107 of file hotword_detector_node.cpp.

◆ hotword_pub_

ros::Publisher snowboy_ros::HotwordDetectorNode::hotword_pub_
private

hotword_pub_ hotword publisher

Definition at line 102 of file hotword_detector_node.cpp.

◆ hotword_string_

std::string snowboy_ros::HotwordDetectorNode::hotword_string_
private

hotword_string_ String to be published when hotword is detected

Definition at line 112 of file hotword_detector_node.cpp.

◆ nh_

ros::NodeHandle snowboy_ros::HotwordDetectorNode::nh_
private

nh_ Global nodehandle for topics

Definition at line 87 of file hotword_detector_node.cpp.

◆ nh_p_

ros::NodeHandle snowboy_ros::HotwordDetectorNode::nh_p_
private

nh_p_ Local nodehandle for parameters

Definition at line 92 of file hotword_detector_node.cpp.


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