Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
CheckIfRobotStateExistsInWarehouse.h
00001 #ifndef _ROS_SERVICE_CheckIfRobotStateExistsInWarehouse_h 00002 #define _ROS_SERVICE_CheckIfRobotStateExistsInWarehouse_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 00008 namespace moveit_msgs 00009 { 00010 00011 static const char CHECKIFROBOTSTATEEXISTSINWAREHOUSE[] = "moveit_msgs/CheckIfRobotStateExistsInWarehouse"; 00012 00013 class CheckIfRobotStateExistsInWarehouseRequest : public ros::Msg 00014 { 00015 public: 00016 typedef const char* _name_type; 00017 _name_type name; 00018 typedef const char* _robot_type; 00019 _robot_type robot; 00020 00021 CheckIfRobotStateExistsInWarehouseRequest(): 00022 name(""), 00023 robot("") 00024 { 00025 } 00026 00027 virtual int serialize(unsigned char *outbuffer) const 00028 { 00029 int offset = 0; 00030 uint32_t length_name = strlen(this->name); 00031 varToArr(outbuffer + offset, length_name); 00032 offset += 4; 00033 memcpy(outbuffer + offset, this->name, length_name); 00034 offset += length_name; 00035 uint32_t length_robot = strlen(this->robot); 00036 varToArr(outbuffer + offset, length_robot); 00037 offset += 4; 00038 memcpy(outbuffer + offset, this->robot, length_robot); 00039 offset += length_robot; 00040 return offset; 00041 } 00042 00043 virtual int deserialize(unsigned char *inbuffer) 00044 { 00045 int offset = 0; 00046 uint32_t length_name; 00047 arrToVar(length_name, (inbuffer + offset)); 00048 offset += 4; 00049 for(unsigned int k= offset; k< offset+length_name; ++k){ 00050 inbuffer[k-1]=inbuffer[k]; 00051 } 00052 inbuffer[offset+length_name-1]=0; 00053 this->name = (char *)(inbuffer + offset-1); 00054 offset += length_name; 00055 uint32_t length_robot; 00056 arrToVar(length_robot, (inbuffer + offset)); 00057 offset += 4; 00058 for(unsigned int k= offset; k< offset+length_robot; ++k){ 00059 inbuffer[k-1]=inbuffer[k]; 00060 } 00061 inbuffer[offset+length_robot-1]=0; 00062 this->robot = (char *)(inbuffer + offset-1); 00063 offset += length_robot; 00064 return offset; 00065 } 00066 00067 virtual const char * getType(){ return CHECKIFROBOTSTATEEXISTSINWAREHOUSE; }; 00068 virtual const char * getMD5(){ return "dab44354403f811c40b84964e068219c"; }; 00069 00070 }; 00071 00072 class CheckIfRobotStateExistsInWarehouseResponse : public ros::Msg 00073 { 00074 public: 00075 typedef bool _exists_type; 00076 _exists_type exists; 00077 00078 CheckIfRobotStateExistsInWarehouseResponse(): 00079 exists(0) 00080 { 00081 } 00082 00083 virtual int serialize(unsigned char *outbuffer) const 00084 { 00085 int offset = 0; 00086 union { 00087 bool real; 00088 uint8_t base; 00089 } u_exists; 00090 u_exists.real = this->exists; 00091 *(outbuffer + offset + 0) = (u_exists.base >> (8 * 0)) & 0xFF; 00092 offset += sizeof(this->exists); 00093 return offset; 00094 } 00095 00096 virtual int deserialize(unsigned char *inbuffer) 00097 { 00098 int offset = 0; 00099 union { 00100 bool real; 00101 uint8_t base; 00102 } u_exists; 00103 u_exists.base = 0; 00104 u_exists.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00105 this->exists = u_exists.real; 00106 offset += sizeof(this->exists); 00107 return offset; 00108 } 00109 00110 virtual const char * getType(){ return CHECKIFROBOTSTATEEXISTSINWAREHOUSE; }; 00111 virtual const char * getMD5(){ return "e8c90de4adc1219c86af9c2874c0c1b5"; }; 00112 00113 }; 00114 00115 class CheckIfRobotStateExistsInWarehouse { 00116 public: 00117 typedef CheckIfRobotStateExistsInWarehouseRequest Request; 00118 typedef CheckIfRobotStateExistsInWarehouseResponse Response; 00119 }; 00120 00121 } 00122 #endif
Generated on Mon Sep 26 2022 13:47:00 by
