00001 #ifndef _ROS_SERVICE_GetPositionIK_h 00002 #define _ROS_SERVICE_GetPositionIK_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 #include "moveit_msgs/MoveItErrorCodes.h" 00008 #include "moveit_msgs/PositionIKRequest.h" 00009 #include "moveit_msgs/RobotState.h" 00010 00011 namespace moveit_msgs 00012 { 00013 00014 static const char GETPOSITIONIK[] = "moveit_msgs/GetPositionIK"; 00015 00016 class GetPositionIKRequest : public ros::Msg 00017 { 00018 public: 00019 moveit_msgs::PositionIKRequest ik_request; 00020 00021 virtual int serialize(unsigned char *outbuffer) const 00022 { 00023 int offset = 0; 00024 offset += this->ik_request.serialize(outbuffer + offset); 00025 return offset; 00026 } 00027 00028 virtual int deserialize(unsigned char *inbuffer) 00029 { 00030 int offset = 0; 00031 offset += this->ik_request.deserialize(inbuffer + offset); 00032 return offset; 00033 } 00034 00035 const char * getType(){ return GETPOSITIONIK; }; 00036 const char * getMD5(){ return "a67dc7e99d15c1dca32a77c22bc2d93b"; }; 00037 00038 }; 00039 00040 class GetPositionIKResponse : public ros::Msg 00041 { 00042 public: 00043 moveit_msgs::RobotState solution; 00044 moveit_msgs::MoveItErrorCodes error_code; 00045 00046 virtual int serialize(unsigned char *outbuffer) const 00047 { 00048 int offset = 0; 00049 offset += this->solution.serialize(outbuffer + offset); 00050 offset += this->error_code.serialize(outbuffer + offset); 00051 return offset; 00052 } 00053 00054 virtual int deserialize(unsigned char *inbuffer) 00055 { 00056 int offset = 0; 00057 offset += this->solution.deserialize(inbuffer + offset); 00058 offset += this->error_code.deserialize(inbuffer + offset); 00059 return offset; 00060 } 00061 00062 const char * getType(){ return GETPOSITIONIK; }; 00063 const char * getMD5(){ return "ad50fe5fa0ddb482909be313121ea148"; }; 00064 00065 }; 00066 00067 class GetPositionIK { 00068 public: 00069 typedef GetPositionIKRequest Request; 00070 typedef GetPositionIKResponse Response; 00071 }; 00072 00073 } 00074 #endif