catchrobo2022 mbed LPC1768 メインプログラム
Dependencies: mbed
RobotPickupReleasePoint.h
00001 #ifndef _ROS_SERVICE_RobotPickupReleasePoint_h 00002 #define _ROS_SERVICE_RobotPickupReleasePoint_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 #include "std_msgs/Header.h" 00008 #include "geometry_msgs/Point.h" 00009 00010 namespace jsk_recognition_msgs 00011 { 00012 00013 static const char ROBOTPICKUPRELEASEPOINT[] = "jsk_recognition_msgs/RobotPickupReleasePoint"; 00014 00015 class RobotPickupReleasePointRequest : public ros::Msg 00016 { 00017 public: 00018 typedef std_msgs::Header _header_type; 00019 _header_type header; 00020 typedef geometry_msgs::Point _target_point_type; 00021 _target_point_type target_point; 00022 typedef int8_t _pick_or_release_type; 00023 _pick_or_release_type pick_or_release; 00024 00025 RobotPickupReleasePointRequest(): 00026 header(), 00027 target_point(), 00028 pick_or_release(0) 00029 { 00030 } 00031 00032 virtual int serialize(unsigned char *outbuffer) const 00033 { 00034 int offset = 0; 00035 offset += this->header.serialize(outbuffer + offset); 00036 offset += this->target_point.serialize(outbuffer + offset); 00037 union { 00038 int8_t real; 00039 uint8_t base; 00040 } u_pick_or_release; 00041 u_pick_or_release.real = this->pick_or_release; 00042 *(outbuffer + offset + 0) = (u_pick_or_release.base >> (8 * 0)) & 0xFF; 00043 offset += sizeof(this->pick_or_release); 00044 return offset; 00045 } 00046 00047 virtual int deserialize(unsigned char *inbuffer) 00048 { 00049 int offset = 0; 00050 offset += this->header.deserialize(inbuffer + offset); 00051 offset += this->target_point.deserialize(inbuffer + offset); 00052 union { 00053 int8_t real; 00054 uint8_t base; 00055 } u_pick_or_release; 00056 u_pick_or_release.base = 0; 00057 u_pick_or_release.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00058 this->pick_or_release = u_pick_or_release.real; 00059 offset += sizeof(this->pick_or_release); 00060 return offset; 00061 } 00062 00063 virtual const char * getType(){ return ROBOTPICKUPRELEASEPOINT; }; 00064 virtual const char * getMD5(){ return "deed053f0da0bc3c530cdf92dcf06642"; }; 00065 00066 }; 00067 00068 class RobotPickupReleasePointResponse : public ros::Msg 00069 { 00070 public: 00071 typedef bool _success_type; 00072 _success_type success; 00073 00074 RobotPickupReleasePointResponse(): 00075 success(0) 00076 { 00077 } 00078 00079 virtual int serialize(unsigned char *outbuffer) const 00080 { 00081 int offset = 0; 00082 union { 00083 bool real; 00084 uint8_t base; 00085 } u_success; 00086 u_success.real = this->success; 00087 *(outbuffer + offset + 0) = (u_success.base >> (8 * 0)) & 0xFF; 00088 offset += sizeof(this->success); 00089 return offset; 00090 } 00091 00092 virtual int deserialize(unsigned char *inbuffer) 00093 { 00094 int offset = 0; 00095 union { 00096 bool real; 00097 uint8_t base; 00098 } u_success; 00099 u_success.base = 0; 00100 u_success.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00101 this->success = u_success.real; 00102 offset += sizeof(this->success); 00103 return offset; 00104 } 00105 00106 virtual const char * getType(){ return ROBOTPICKUPRELEASEPOINT; }; 00107 virtual const char * getMD5(){ return "358e233cde0c8a8bcfea4ce193f8fc15"; }; 00108 00109 }; 00110 00111 class RobotPickupReleasePoint { 00112 public: 00113 typedef RobotPickupReleasePointRequest Request; 00114 typedef RobotPickupReleasePointResponse Response; 00115 }; 00116 00117 } 00118 #endif
Generated on Mon Sep 26 2022 13:47:03 by
1.7.2