dynamixel_gripper_driver_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 _dynamixel_gripper_driver_node_h_
00026 #define _dynamixel_gripper_driver_node_h_
00027 
00028 #include <iri_base_driver/iri_base_driver_node.h>
00029 #include "dynamixel_gripper_driver.h"
00030 
00031 // [publisher subscriber headers]
00032 
00033 // [service client headers]
00034 
00035 // [action server client headers]
00036 #include <iri_dynamixel_gripper/openAction.h>
00037 #include <iri_action_server/iri_action_server.h>
00038 #include <iri_dynamixel_gripper/closeAction.h>
00039 
00057 class DynamixelGripperDriverNode : public iri_base_driver::IriBaseNodeDriver<DynamixelGripperDriver>
00058 {
00059   private:
00060     // [publisher attributes]
00061 
00062     // [subscriber attributes]
00063 
00064     // [service attributes]
00065 
00066     // [client attributes]
00067 
00068     // [action server attributes]
00069     void close_action_StartCallback(const iri_dynamixel_gripper::closeGoalConstPtr& goal);
00070     void close_action_StopCallback(void);
00071     bool close_action_IsFinishedCallback(void);
00072     bool close_action_HasSucceedCallback(void);
00073     void close_action_GetResultCallback(iri_dynamixel_gripper::closeResultPtr& result);
00074     void close_action_GetFeedbackCallback(iri_dynamixel_gripper::closeFeedbackPtr& feedback);
00075 
00076     void open_action_StartCallback(const iri_dynamixel_gripper::openGoalConstPtr& goal);
00077     bool open_action_IsFinishedCallback(void);
00078     void open_action_GetResultCallback(iri_dynamixel_gripper::openResultPtr& result);
00079     void open_action_GetFeedbackCallback(iri_dynamixel_gripper::openFeedbackPtr& feedback);
00080 
00081 
00082     IriActionServer<iri_dynamixel_gripper::closeAction> close_action__aserver_;
00083     IriActionServer<iri_dynamixel_gripper::openAction> open_action__aserver_;
00084     int max_torque_it_;
00085     bool last_action_successful_;
00086 
00087     // [action client attributes]
00088 
00096     void postNodeOpenHook(void);
00097 
00098   public:
00116     DynamixelGripperDriverNode(ros::NodeHandle& nh);
00117 
00124     ~DynamixelGripperDriverNode(void);
00125 
00126   protected:
00139     void mainNodeThread(void);
00140 
00141     // [diagnostic functions]
00142 
00153     void addNodeDiagnostics(void);
00154 
00155     // [driver test functions]
00156 
00166     void addNodeOpenedTests(void);
00167 
00177     void addNodeStoppedTests(void);
00178 
00188     void addNodeRunningTests(void);
00189 
00197     void reconfigureNodeHook(int level);
00198 
00199 };
00200 
00201 #endif


iri_dynamixel_gripper
Author(s): Jose Luis Rivero
autogenerated on Fri Dec 6 2013 20:13:59