catchrobo2022 mbed LPC1768 メインプログラム

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GetPositionIK.h Source File

GetPositionIK.h

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       typedef moveit_msgs::PositionIKRequest _ik_request_type;
00020       _ik_request_type ik_request;
00021 
00022     GetPositionIKRequest():
00023       ik_request()
00024     {
00025     }
00026 
00027     virtual int serialize(unsigned char *outbuffer) const
00028     {
00029       int offset = 0;
00030       offset += this->ik_request.serialize(outbuffer + offset);
00031       return offset;
00032     }
00033 
00034     virtual int deserialize(unsigned char *inbuffer)
00035     {
00036       int offset = 0;
00037       offset += this->ik_request.deserialize(inbuffer + offset);
00038      return offset;
00039     }
00040 
00041     virtual const char * getType(){ return GETPOSITIONIK; };
00042     virtual const char * getMD5(){ return "a67dc7e99d15c1dca32a77c22bc2d93b"; };
00043 
00044   };
00045 
00046   class GetPositionIKResponse : public ros::Msg
00047   {
00048     public:
00049       typedef moveit_msgs::RobotState _solution_type;
00050       _solution_type solution;
00051       typedef moveit_msgs::MoveItErrorCodes _error_code_type;
00052       _error_code_type error_code;
00053 
00054     GetPositionIKResponse():
00055       solution(),
00056       error_code()
00057     {
00058     }
00059 
00060     virtual int serialize(unsigned char *outbuffer) const
00061     {
00062       int offset = 0;
00063       offset += this->solution.serialize(outbuffer + offset);
00064       offset += this->error_code.serialize(outbuffer + offset);
00065       return offset;
00066     }
00067 
00068     virtual int deserialize(unsigned char *inbuffer)
00069     {
00070       int offset = 0;
00071       offset += this->solution.deserialize(inbuffer + offset);
00072       offset += this->error_code.deserialize(inbuffer + offset);
00073      return offset;
00074     }
00075 
00076     virtual const char * getType(){ return GETPOSITIONIK; };
00077     virtual const char * getMD5(){ return "ad50fe5fa0ddb482909be313121ea148"; };
00078 
00079   };
00080 
00081   class GetPositionIK {
00082     public:
00083     typedef GetPositionIKRequest Request;
00084     typedef GetPositionIKResponse Response;
00085   };
00086 
00087 }
00088 #endif