Public Member Functions | Private Member Functions | Private Attributes | List of all members
picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType > Class Template Referenceabstract

#include <recognizer_node.h>

Public Member Functions

 RecognizerNode (const std::string &name, const std::string &action_name, const typename RecognizerDataType::Parameters &parameters)
 RecognizerNode Recognizer node that exposes an action interface for a recognizer. More...
 

Private Member Functions

void executeCallback (const typename ActionType::_action_goal_type::_goal_type::ConstPtr &goal)
 
virtual void updateParameters (const typename ActionType::_action_goal_type::_goal_type &goal, typename RecognizerDataType::Parameters &parameters)=0
 
virtual void updateResult (const typename RecognizerDataType::Result &result, typename ActionType::_action_result_type::_result_type &action_result)=0
 

Private Attributes

actionlib::SimpleActionServer< ActionType > action_server_
 
ddynamic_reconfigure::DDynamicReconfigure dynamic_reconfigure_server_
 
RecognizerDataType::Parameters parameters_
 
RecognizerType recognizer_
 

Detailed Description

template<typename RecognizerDataType, typename RecognizerType, typename ActionType>
class picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >

Definition at line 33 of file recognizer_node.h.

Constructor & Destructor Documentation

◆ RecognizerNode()

template<typename RecognizerDataType , typename RecognizerType , typename ActionType >
picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >::RecognizerNode ( const std::string &  name,
const std::string &  action_name,
const typename RecognizerDataType::Parameters &  parameters 
)
inline

RecognizerNode Recognizer node that exposes an action interface for a recognizer.

Parameters
nameRecognizer name
action_nameRecognizer action name
parametersInitial recognizer parameters

Definition at line 42 of file recognizer_node.h.

Member Function Documentation

◆ executeCallback()

template<typename RecognizerDataType , typename RecognizerType , typename ActionType >
void picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >::executeCallback ( const typename ActionType::_action_goal_type::_goal_type::ConstPtr &  goal)
inlineprivate

Definition at line 79 of file recognizer_node.h.

◆ updateParameters()

template<typename RecognizerDataType , typename RecognizerType , typename ActionType >
virtual void picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >::updateParameters ( const typename ActionType::_action_goal_type::_goal_type &  goal,
typename RecognizerDataType::Parameters &  parameters 
)
privatepure virtual

◆ updateResult()

template<typename RecognizerDataType , typename RecognizerType , typename ActionType >
virtual void picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >::updateResult ( const typename RecognizerDataType::Result &  result,
typename ActionType::_action_result_type::_result_type &  action_result 
)
privatepure virtual

Member Data Documentation

◆ action_server_

template<typename RecognizerDataType , typename RecognizerType , typename ActionType >
actionlib::SimpleActionServer<ActionType> picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >::action_server_
private

Definition at line 78 of file recognizer_node.h.

◆ dynamic_reconfigure_server_

template<typename RecognizerDataType , typename RecognizerType , typename ActionType >
ddynamic_reconfigure::DDynamicReconfigure picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >::dynamic_reconfigure_server_
private

Definition at line 69 of file recognizer_node.h.

◆ parameters_

template<typename RecognizerDataType , typename RecognizerType , typename ActionType >
RecognizerDataType::Parameters picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >::parameters_
private

Definition at line 68 of file recognizer_node.h.

◆ recognizer_

template<typename RecognizerDataType , typename RecognizerType , typename ActionType >
RecognizerType picovoice_driver::RecognizerNode< RecognizerDataType, RecognizerType, ActionType >::recognizer_
private

Definition at line 71 of file recognizer_node.h.


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


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:20