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