voice_recognition_alg_node.h
Go to the documentation of this file.
00001 // Copyright (C) 2010-2011 Institut de Robotica i Informatica Industrial, CSIC-UPC.
00002 // Author 
00003 // All rights reserved.
00004 //
00005 // This file is part of iri-ros-pkg
00006 // iri-ros-pkg is free software: you can redistribute it and/or modify
00007 // it under the terms of the GNU Lesser General Public License as published by
00008 // the Free Software Foundation, either version 3 of the License, or
00009 // at your option) any later version.
00010 //
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public License
00017 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 // 
00019 // IMPORTANT NOTE: This code has been generated through a script from the 
00020 // iri_ros_scripts. Please do NOT delete any comments to guarantee the correctness
00021 // of the scripts. ROS topics can be easly add by using those scripts. Please
00022 // refer to the IRI wiki page for more information:
00023 // http://wikiri.upc.es/index.php/Robotics_Lab
00024 
00025 #ifndef _voice_recognition_alg_node_h_
00026 #define _voice_recognition_alg_node_h_
00027 
00028 #include <iri_base_algorithm/iri_base_algorithm.h>
00029 #include "voice_recognition_alg.h"
00030 
00031 // [publisher subscriber headers]
00032 
00033 // [service client headers]
00034 
00035 // [action server client headers]
00036 #include <iri_action_server/iri_action_server.h>
00037 #include <iri_perception_msgs/voiceRecognitionAction.h>
00038 
00043 class VoiceRecognitionAlgNode : public algorithm_base::IriBaseAlgorithm<VoiceRecognitionAlgorithm>
00044 {
00045   private:
00046     // [publisher attributes]
00047 
00048     // [subscriber attributes]
00049 
00050     // [service attributes]
00051 
00052     // [client attributes]
00053 
00054     // [action server attributes]
00055     IriActionServer<iri_perception_msgs::voiceRecognitionAction> voice_recognition_aserver_;
00056     void voice_recognitionStartCallback(const iri_perception_msgs::voiceRecognitionGoalConstPtr& goal);
00057     void voice_recognitionStopCallback(void);
00058     bool voice_recognitionIsFinishedCallback(void);
00059     bool voice_recognitionHasSucceedCallback(void);
00060     void voice_recognitionGetResultCallback(iri_perception_msgs::voiceRecognitionResultPtr& result);
00061     void voice_recognitionGetFeedbackCallback(iri_perception_msgs::voiceRecognitionFeedbackPtr& feedback);
00062 
00063     // [action client attributes]
00064     
00065     std::string filePath_;
00066     
00067     std::string answer_;
00068     bool start_;
00069     bool done_;
00070     int status_;
00071 
00072   public:
00079     VoiceRecognitionAlgNode(void);
00080 
00087     ~VoiceRecognitionAlgNode(void);
00088 
00089   protected:
00102     void mainNodeThread(void);
00103 
00116     void node_config_update(Config &config, uint32_t level);
00117 
00124     void addNodeDiagnostics(void);
00125 
00126     // [diagnostic functions]
00127     
00128     // [test functions]
00129 };
00130 
00131 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


iri_voice_recognition
Author(s): fherrero
autogenerated on Mon Jan 14 2013 13:02:57