catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GetTransformableMarkerFocus.h Source File

GetTransformableMarkerFocus.h

00001 #ifndef _ROS_SERVICE_GetTransformableMarkerFocus_h
00002 #define _ROS_SERVICE_GetTransformableMarkerFocus_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 GETTRANSFORMABLEMARKERFOCUS[] = "jsk_interactive_marker/GetTransformableMarkerFocus";
00012 
00013   class GetTransformableMarkerFocusRequest : public ros::Msg
00014   {
00015     public:
00016 
00017     GetTransformableMarkerFocusRequest()
00018     {
00019     }
00020 
00021     virtual int serialize(unsigned char *outbuffer) const
00022     {
00023       int offset = 0;
00024       return offset;
00025     }
00026 
00027     virtual int deserialize(unsigned char *inbuffer)
00028     {
00029       int offset = 0;
00030      return offset;
00031     }
00032 
00033     virtual const char * getType(){ return GETTRANSFORMABLEMARKERFOCUS; };
00034     virtual const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; };
00035 
00036   };
00037 
00038   class GetTransformableMarkerFocusResponse : public ros::Msg
00039   {
00040     public:
00041       typedef const char* _target_name_type;
00042       _target_name_type target_name;
00043 
00044     GetTransformableMarkerFocusResponse():
00045       target_name("")
00046     {
00047     }
00048 
00049     virtual int serialize(unsigned char *outbuffer) const
00050     {
00051       int offset = 0;
00052       uint32_t length_target_name = strlen(this->target_name);
00053       varToArr(outbuffer + offset, length_target_name);
00054       offset += 4;
00055       memcpy(outbuffer + offset, this->target_name, length_target_name);
00056       offset += length_target_name;
00057       return offset;
00058     }
00059 
00060     virtual int deserialize(unsigned char *inbuffer)
00061     {
00062       int offset = 0;
00063       uint32_t length_target_name;
00064       arrToVar(length_target_name, (inbuffer + offset));
00065       offset += 4;
00066       for(unsigned int k= offset; k< offset+length_target_name; ++k){
00067           inbuffer[k-1]=inbuffer[k];
00068       }
00069       inbuffer[offset+length_target_name-1]=0;
00070       this->target_name = (char *)(inbuffer + offset-1);
00071       offset += length_target_name;
00072      return offset;
00073     }
00074 
00075     virtual const char * getType(){ return GETTRANSFORMABLEMARKERFOCUS; };
00076     virtual const char * getMD5(){ return "2008933b3c7227647cbe00c74682331a"; };
00077 
00078   };
00079 
00080   class GetTransformableMarkerFocus {
00081     public:
00082     typedef GetTransformableMarkerFocusRequest Request;
00083     typedef GetTransformableMarkerFocusResponse Response;
00084   };
00085 
00086 }
00087 #endif