wam_tcp_ik_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 _wam_tcp_ik_alg_node_h_
00026 #define _wam_tcp_ik_alg_node_h_
00027 
00028 #include <iri_base_algorithm/iri_base_algorithm.h>
00029 #include "wam_tcp_ik_alg.h"
00030 
00031 // [publisher subscriber headers]
00032 
00033 // [service client headers]
00034 #include <iri_wam_common_msgs/wamInverseKinematics.h>
00035 #include <iri_wam_common_msgs/wamGetRobotPoseFromToolPose.h>
00036 
00037 // [action server client headers]
00038 
00039 #include <tf/transform_listener.h>
00040 #include <string>
00041 
00042 
00047 class WamTcpIkAlgNode : public algorithm_base::IriBaseAlgorithm<WamTcpIkAlgorithm>
00048 {
00049   private:
00050 
00051     //Dynamic reconfigure
00052     std::string robot_base_str_;
00053     std::string robot_tcp_str_;
00054     std::string tool_tcp_str_;
00055 
00056     tf::TransformListener listener_; 
00057     tf::StampedTransform tcp_H_wam7_;
00058     tf::StampedTransform world_H_wam7_;
00059     iri_wam_common_msgs::wamInverseKinematics base_pose_msg_;
00060 
00061     // [publisher attributes]
00062 
00063     // [subscriber attributes]
00064 
00065     // [service attributes]
00066     ros::ServiceServer get_ik_server_;
00067     bool get_ikCallback(iri_wam_common_msgs::wamInverseKinematics::Request &req, iri_wam_common_msgs::wamInverseKinematics::Response &res);
00068     CMutex get_ik_mutex_;
00069 
00070     ros::ServiceServer get_robot_pose_server_;
00071     bool get_robotPoseCallback(iri_wam_common_msgs::wamGetRobotPoseFromToolPose::Request &req, iri_wam_common_msgs::wamGetRobotPoseFromToolPose::Response &res);
00072     CMutex get_robot_pose_mutex_;
00073 
00074     // [client attributes]
00075     ros::ServiceClient get_ik_client_;
00076     iri_wam_common_msgs::wamInverseKinematics get_ik_srv_;
00077 
00078     // [action server attributes]
00079 
00080     // [action client attributes]
00081 
00082   public:
00089     WamTcpIkAlgNode(void);
00090 
00097     ~WamTcpIkAlgNode(void);
00098 
00099   protected:
00112     void mainNodeThread(void);
00113 
00126     void node_config_update(Config &config, uint32_t level);
00127 
00134     void addNodeDiagnostics(void);
00135 
00136     // [diagnostic functions]
00137     
00138     // [test functions]
00139 };
00140 
00141 #endif


iri_wam_tcp_ik
Author(s): sfoix
autogenerated on Fri Dec 6 2013 20:09:18