|
@@ -47,10 +47,10 @@ namespace snowboy_wakeup
|
|
|
}
|
|
|
all_param = pre_param + beep_filename;
|
|
|
|
|
|
- std::string asr_topic;
|
|
|
- if (!nh_p_.getParam("asr_topic", asr_topic))
|
|
|
+ std::string wakeup_topic;
|
|
|
+ if (!nh_p_.getParam("wakeup_topic", wakeup_topic))
|
|
|
{
|
|
|
- ROS_ERROR("Mandatory parameter 'asr_topic' not present on the parameter server");
|
|
|
+ ROS_ERROR("Mandatory parameter 'wakeup_topic' not present on the parameter server");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -62,7 +62,7 @@ namespace snowboy_wakeup
|
|
|
}
|
|
|
|
|
|
audio_sub_ = nh_.subscribe(audio_topic, 1000, &HotwordDetectorNode::audioCallback, this);
|
|
|
- hotword_pub_ = nh_.advertise<std_msgs::Int32>(asr_topic, 1);
|
|
|
+ hotword_pub_ = nh_.advertise<std_msgs::Int32>(wakeup_topic, 1);
|
|
|
|
|
|
detector_.initialize(resource_filename.c_str(), model_filename.c_str());
|
|
|
dynamic_reconfigure_server_.setCallback(boost::bind(&HotwordDetectorNode::reconfigureCallback, this, _1, _2));
|
|
@@ -143,7 +143,6 @@ namespace snowboy_wakeup
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
}
|
|
|
|
|
|
//click btn ISR function
|