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
SetParentMarker.h
00001 #ifndef _ROS_SERVICE_SetParentMarker_h 00002 #define _ROS_SERVICE_SetParentMarker_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 00008 namespace jsk_interactive_marker 00009 { 00010 00011 static const char SETPARENTMARKER[] = "jsk_interactive_marker/SetParentMarker"; 00012 00013 class SetParentMarkerRequest : public ros::Msg 00014 { 00015 public: 00016 typedef const char* _parent_topic_name_type; 00017 _parent_topic_name_type parent_topic_name; 00018 typedef const char* _parent_marker_name_type; 00019 _parent_marker_name_type parent_marker_name; 00020 typedef const char* _child_marker_name_type; 00021 _child_marker_name_type child_marker_name; 00022 00023 SetParentMarkerRequest(): 00024 parent_topic_name(""), 00025 parent_marker_name(""), 00026 child_marker_name("") 00027 { 00028 } 00029 00030 virtual int serialize(unsigned char *outbuffer) const 00031 { 00032 int offset = 0; 00033 uint32_t length_parent_topic_name = strlen(this->parent_topic_name); 00034 varToArr(outbuffer + offset, length_parent_topic_name); 00035 offset += 4; 00036 memcpy(outbuffer + offset, this->parent_topic_name, length_parent_topic_name); 00037 offset += length_parent_topic_name; 00038 uint32_t length_parent_marker_name = strlen(this->parent_marker_name); 00039 varToArr(outbuffer + offset, length_parent_marker_name); 00040 offset += 4; 00041 memcpy(outbuffer + offset, this->parent_marker_name, length_parent_marker_name); 00042 offset += length_parent_marker_name; 00043 uint32_t length_child_marker_name = strlen(this->child_marker_name); 00044 varToArr(outbuffer + offset, length_child_marker_name); 00045 offset += 4; 00046 memcpy(outbuffer + offset, this->child_marker_name, length_child_marker_name); 00047 offset += length_child_marker_name; 00048 return offset; 00049 } 00050 00051 virtual int deserialize(unsigned char *inbuffer) 00052 { 00053 int offset = 0; 00054 uint32_t length_parent_topic_name; 00055 arrToVar(length_parent_topic_name, (inbuffer + offset)); 00056 offset += 4; 00057 for(unsigned int k= offset; k< offset+length_parent_topic_name; ++k){ 00058 inbuffer[k-1]=inbuffer[k]; 00059 } 00060 inbuffer[offset+length_parent_topic_name-1]=0; 00061 this->parent_topic_name = (char *)(inbuffer + offset-1); 00062 offset += length_parent_topic_name; 00063 uint32_t length_parent_marker_name; 00064 arrToVar(length_parent_marker_name, (inbuffer + offset)); 00065 offset += 4; 00066 for(unsigned int k= offset; k< offset+length_parent_marker_name; ++k){ 00067 inbuffer[k-1]=inbuffer[k]; 00068 } 00069 inbuffer[offset+length_parent_marker_name-1]=0; 00070 this->parent_marker_name = (char *)(inbuffer + offset-1); 00071 offset += length_parent_marker_name; 00072 uint32_t length_child_marker_name; 00073 arrToVar(length_child_marker_name, (inbuffer + offset)); 00074 offset += 4; 00075 for(unsigned int k= offset; k< offset+length_child_marker_name; ++k){ 00076 inbuffer[k-1]=inbuffer[k]; 00077 } 00078 inbuffer[offset+length_child_marker_name-1]=0; 00079 this->child_marker_name = (char *)(inbuffer + offset-1); 00080 offset += length_child_marker_name; 00081 return offset; 00082 } 00083 00084 virtual const char * getType(){ return SETPARENTMARKER; }; 00085 virtual const char * getMD5(){ return "0fbeb5790154b3ebc3c1cc4917de6fcc"; }; 00086 00087 }; 00088 00089 class SetParentMarkerResponse : public ros::Msg 00090 { 00091 public: 00092 00093 SetParentMarkerResponse() 00094 { 00095 } 00096 00097 virtual int serialize(unsigned char *outbuffer) const 00098 { 00099 int offset = 0; 00100 return offset; 00101 } 00102 00103 virtual int deserialize(unsigned char *inbuffer) 00104 { 00105 int offset = 0; 00106 return offset; 00107 } 00108 00109 virtual const char * getType(){ return SETPARENTMARKER; }; 00110 virtual const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; 00111 00112 }; 00113 00114 class SetParentMarker { 00115 public: 00116 typedef SetParentMarkerRequest Request; 00117 typedef SetParentMarkerResponse Response; 00118 }; 00119 00120 } 00121 #endif
Generated on Mon Sep 26 2022 13:47:03 by
