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
GetRobotStateFromWarehouse.h
00001 #ifndef _ROS_SERVICE_GetRobotStateFromWarehouse_h 00002 #define _ROS_SERVICE_GetRobotStateFromWarehouse_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 #include "moveit_msgs/RobotState.h" 00008 00009 namespace moveit_msgs 00010 { 00011 00012 static const char GETROBOTSTATEFROMWAREHOUSE[] = "moveit_msgs/GetRobotStateFromWarehouse"; 00013 00014 class GetRobotStateFromWarehouseRequest : public ros::Msg 00015 { 00016 public: 00017 typedef const char* _name_type; 00018 _name_type name; 00019 typedef const char* _robot_type; 00020 _robot_type robot; 00021 00022 GetRobotStateFromWarehouseRequest(): 00023 name(""), 00024 robot("") 00025 { 00026 } 00027 00028 virtual int serialize(unsigned char *outbuffer) const 00029 { 00030 int offset = 0; 00031 uint32_t length_name = strlen(this->name); 00032 varToArr(outbuffer + offset, length_name); 00033 offset += 4; 00034 memcpy(outbuffer + offset, this->name, length_name); 00035 offset += length_name; 00036 uint32_t length_robot = strlen(this->robot); 00037 varToArr(outbuffer + offset, length_robot); 00038 offset += 4; 00039 memcpy(outbuffer + offset, this->robot, length_robot); 00040 offset += length_robot; 00041 return offset; 00042 } 00043 00044 virtual int deserialize(unsigned char *inbuffer) 00045 { 00046 int offset = 0; 00047 uint32_t length_name; 00048 arrToVar(length_name, (inbuffer + offset)); 00049 offset += 4; 00050 for(unsigned int k= offset; k< offset+length_name; ++k){ 00051 inbuffer[k-1]=inbuffer[k]; 00052 } 00053 inbuffer[offset+length_name-1]=0; 00054 this->name = (char *)(inbuffer + offset-1); 00055 offset += length_name; 00056 uint32_t length_robot; 00057 arrToVar(length_robot, (inbuffer + offset)); 00058 offset += 4; 00059 for(unsigned int k= offset; k< offset+length_robot; ++k){ 00060 inbuffer[k-1]=inbuffer[k]; 00061 } 00062 inbuffer[offset+length_robot-1]=0; 00063 this->robot = (char *)(inbuffer + offset-1); 00064 offset += length_robot; 00065 return offset; 00066 } 00067 00068 virtual const char * getType(){ return GETROBOTSTATEFROMWAREHOUSE; }; 00069 virtual const char * getMD5(){ return "dab44354403f811c40b84964e068219c"; }; 00070 00071 }; 00072 00073 class GetRobotStateFromWarehouseResponse : public ros::Msg 00074 { 00075 public: 00076 typedef moveit_msgs::RobotState _state_type; 00077 _state_type state; 00078 00079 GetRobotStateFromWarehouseResponse(): 00080 state() 00081 { 00082 } 00083 00084 virtual int serialize(unsigned char *outbuffer) const 00085 { 00086 int offset = 0; 00087 offset += this->state.serialize(outbuffer + offset); 00088 return offset; 00089 } 00090 00091 virtual int deserialize(unsigned char *inbuffer) 00092 { 00093 int offset = 0; 00094 offset += this->state.deserialize(inbuffer + offset); 00095 return offset; 00096 } 00097 00098 virtual const char * getType(){ return GETROBOTSTATEFROMWAREHOUSE; }; 00099 virtual const char * getMD5(){ return "219fdfe7af6da3c7935fb948e6d5c637"; }; 00100 00101 }; 00102 00103 class GetRobotStateFromWarehouse { 00104 public: 00105 typedef GetRobotStateFromWarehouseRequest Request; 00106 typedef GetRobotStateFromWarehouseResponse Response; 00107 }; 00108 00109 } 00110 #endif
Generated on Mon Sep 26 2022 13:47:00 by
