catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SetTransformableMarkerFocus.h Source File

SetTransformableMarkerFocus.h

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