Public Member Functions | Private Member Functions | Private Attributes | List of all members
NLPModuleRos Class Reference

#include <xbot_talker_ros.h>

Public Member Functions

bool init ()
 
 NLPModuleRos ()
 
void pubStartRecog (bool is_awaken, bool enable_chat)
 
 ~NLPModuleRos ()
 

Private Member Functions

void advertiseService ()
 
void advertiseTopics ()
 
void pubArmControl (const int robot_action)
 
void pubMoveControl (const int robot_action)
 
void pubStartAwaken (bool enable_awake)
 
void pubWelcomeKp (const std::string kp_name)
 
void pubWelcomeYes (bool enable_welcome)
 
bool requestDialogConfig (xbot_talker::nlpdialog_config::Request &req, xbot_talker::nlpdialog_config::Response &res)
 
void subscribeOfflineRecogResult (const xbot_talker::recog_result)
 
void subscribeOnlineRecogResult (const xbot_talker::online_asr_result)
 
void subscribeTopics ()
 

Private Attributes

int audio_channel
 
ros::Subscriber awaken_result_sub
 
std::string base_path
 
std::string config_path
 
ros::ServiceServer dialog_config_service
 
bool enable_chat_ = true
 
int fail_count_ = 0
 
ros::Publisher left_get_pub
 
ros::Publisher left_grip_pub
 
ros::Publisher left_put_pub
 
int log_count_ = 0
 
std::string log_path
 
ros::Publisher mov_control_pub
 
std::string nlp_config_path
 
ros::NodeHandle nlp_nodehandle
 
ros::Subscriber online_result_sub
 
ros::Subscriber recog_result_sub
 
ResultFeedback result_handle
 
ros::Publisher right_get_pub
 
ros::Publisher right_grip_pub
 
ros::Publisher right_put_pub
 
ros::Publisher start_awaken_pub
 
ros::Publisher start_recog_pub
 
std::string tuling_answer_text_
 
TuLingRobot tuling_robot
 
ros::Publisher welcome_kp_pub
 
ros::Publisher welcome_yes_pub
 

Detailed Description

Definition at line 105 of file xbot_talker_ros.h.

Constructor & Destructor Documentation

NLPModuleRos::NLPModuleRos ( )

Definition at line 360 of file xbot_talker_ros.cpp.

NLPModuleRos::~NLPModuleRos ( )

Definition at line 363 of file xbot_talker_ros.cpp.

Member Function Documentation

void NLPModuleRos::advertiseService ( )
private

Definition at line 417 of file xbot_talker_ros.cpp.

void NLPModuleRos::advertiseTopics ( )
private

Definition at line 392 of file xbot_talker_ros.cpp.

bool NLPModuleRos::init ( )

Definition at line 366 of file xbot_talker_ros.cpp.

void NLPModuleRos::pubArmControl ( const int  robot_action)
private

Definition at line 472 of file xbot_talker_ros.cpp.

void NLPModuleRos::pubMoveControl ( const int  robot_action)
private

Definition at line 524 of file xbot_talker_ros.cpp.

void NLPModuleRos::pubStartAwaken ( bool  enable_awake)
private

Definition at line 464 of file xbot_talker_ros.cpp.

void NLPModuleRos::pubStartRecog ( bool  is_awaken,
bool  enable_chat 
)

Definition at line 457 of file xbot_talker_ros.cpp.

void NLPModuleRos::pubWelcomeKp ( const std::string  kp_name)
private

Definition at line 516 of file xbot_talker_ros.cpp.

void NLPModuleRos::pubWelcomeYes ( bool  enable_welcome)
private

Definition at line 509 of file xbot_talker_ros.cpp.

bool NLPModuleRos::requestDialogConfig ( xbot_talker::nlpdialog_config::Request &  req,
xbot_talker::nlpdialog_config::Response &  res 
)
private

Definition at line 423 of file xbot_talker_ros.cpp.

void NLPModuleRos::subscribeOfflineRecogResult ( const xbot_talker::recog_result  msg)
private

Definition at line 557 of file xbot_talker_ros.cpp.

void NLPModuleRos::subscribeOnlineRecogResult ( const xbot_talker::online_asr_result  msg)
private

Definition at line 694 of file xbot_talker_ros.cpp.

void NLPModuleRos::subscribeTopics ( )
private

Definition at line 409 of file xbot_talker_ros.cpp.

Member Data Documentation

int NLPModuleRos::audio_channel
private

Definition at line 169 of file xbot_talker_ros.h.

ros::Subscriber NLPModuleRos::awaken_result_sub
private

Definition at line 153 of file xbot_talker_ros.h.

std::string NLPModuleRos::base_path
private

Definition at line 165 of file xbot_talker_ros.h.

std::string NLPModuleRos::config_path
private

Definition at line 167 of file xbot_talker_ros.h.

ros::ServiceServer NLPModuleRos::dialog_config_service
private

Definition at line 138 of file xbot_talker_ros.h.

bool NLPModuleRos::enable_chat_ = true
private

Definition at line 170 of file xbot_talker_ros.h.

int NLPModuleRos::fail_count_ = 0
private

Definition at line 171 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::left_get_pub
private

Definition at line 129 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::left_grip_pub
private

Definition at line 132 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::left_put_pub
private

Definition at line 126 of file xbot_talker_ros.h.

int NLPModuleRos::log_count_ = 0
private

Definition at line 172 of file xbot_talker_ros.h.

std::string NLPModuleRos::log_path
private

Definition at line 168 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::mov_control_pub
private

Definition at line 125 of file xbot_talker_ros.h.

std::string NLPModuleRos::nlp_config_path
private

Definition at line 166 of file xbot_talker_ros.h.

ros::NodeHandle NLPModuleRos::nlp_nodehandle
private

Definition at line 114 of file xbot_talker_ros.h.

ros::Subscriber NLPModuleRos::online_result_sub
private

Definition at line 154 of file xbot_talker_ros.h.

ros::Subscriber NLPModuleRos::recog_result_sub
private

Definition at line 152 of file xbot_talker_ros.h.

ResultFeedback NLPModuleRos::result_handle
private

Definition at line 174 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::right_get_pub
private

Definition at line 130 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::right_grip_pub
private

Definition at line 133 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::right_put_pub
private

Definition at line 127 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::start_awaken_pub
private

Definition at line 123 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::start_recog_pub
private

Definition at line 124 of file xbot_talker_ros.h.

std::string NLPModuleRos::tuling_answer_text_
private

Definition at line 173 of file xbot_talker_ros.h.

TuLingRobot NLPModuleRos::tuling_robot
private

Definition at line 175 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::welcome_kp_pub
private

Definition at line 135 of file xbot_talker_ros.h.

ros::Publisher NLPModuleRos::welcome_yes_pub
private

Definition at line 136 of file xbot_talker_ros.h.


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


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54