InteractiveMarkerPose.h
Go to the documentation of this file.
00001 #ifndef _ROS_visualization_msgs_InteractiveMarkerPose_h
00002 #define _ROS_visualization_msgs_InteractiveMarkerPose_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 #include "std_msgs/Header.h"
00009 #include "geometry_msgs/Pose.h"
00010 
00011 namespace visualization_msgs
00012 {
00013 
00014   class InteractiveMarkerPose : public ros::Msg
00015   {
00016     public:
00017       std_msgs::Header header;
00018       geometry_msgs::Pose pose;
00019       const char* name;
00020 
00021     virtual int serialize(unsigned char *outbuffer) const
00022     {
00023       int offset = 0;
00024       offset += this->header.serialize(outbuffer + offset);
00025       offset += this->pose.serialize(outbuffer + offset);
00026       uint32_t length_name = strlen(this->name);
00027       memcpy(outbuffer + offset, &length_name, sizeof(uint32_t));
00028       offset += 4;
00029       memcpy(outbuffer + offset, this->name, length_name);
00030       offset += length_name;
00031       return offset;
00032     }
00033 
00034     virtual int deserialize(unsigned char *inbuffer)
00035     {
00036       int offset = 0;
00037       offset += this->header.deserialize(inbuffer + offset);
00038       offset += this->pose.deserialize(inbuffer + offset);
00039       uint32_t length_name;
00040       memcpy(&length_name, (inbuffer + offset), sizeof(uint32_t));
00041       offset += 4;
00042       for(unsigned int k= offset; k< offset+length_name; ++k){
00043           inbuffer[k-1]=inbuffer[k];
00044       }
00045       inbuffer[offset+length_name-1]=0;
00046       this->name = (char *)(inbuffer + offset-1);
00047       offset += length_name;
00048      return offset;
00049     }
00050 
00051     const char * getType(){ return "visualization_msgs/InteractiveMarkerPose"; };
00052     const char * getMD5(){ return "a6e6833209a196a38d798dadb02c81f8"; };
00053 
00054   };
00055 
00056 }
00057 #endif


ric_mc
Author(s): RoboTiCan
autogenerated on Fri May 20 2016 03:48:55