modify for Hydro version

Dependencies:   MODSERIAL

Fork of rosserial_mbed_lib by nucho

Revision:
5:8cd48977ec68
Parent:
4:684f39d0c346
Child:
6:3c54bc7badd4
--- a/geometry_msgs/Polygon.h	Wed Feb 29 23:00:21 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-#ifndef _ROS_geometry_msgs_Polygon_h
-#define _ROS_geometry_msgs_Polygon_h
-
-#include <stdint.h>
-#include <string.h>
-#include <stdlib.h>
-#include "ros/msg.h"
-#include "geometry_msgs/Point32.h"
-
-namespace geometry_msgs
-{
-
-  class Polygon : public ros::Msg
-  {
-    public:
-      uint8_t points_length;
-      geometry_msgs::Point32 st_points;
-      geometry_msgs::Point32 * points;
-
-    virtual int serialize(unsigned char *outbuffer) const
-    {
-      int offset = 0;
-      *(outbuffer + offset++) = points_length;
-      *(outbuffer + offset++) = 0;
-      *(outbuffer + offset++) = 0;
-      *(outbuffer + offset++) = 0;
-      for( uint8_t i = 0; i < points_length; i++){
-      offset += this->points[i].serialize(outbuffer + offset);
-      }
-      return offset;
-    }
-
-    virtual int deserialize(unsigned char *inbuffer)
-    {
-      int offset = 0;
-      uint8_t points_lengthT = *(inbuffer + offset++);
-      if(points_lengthT > points_length)
-        this->points = (geometry_msgs::Point32*)realloc(this->points, points_lengthT * sizeof(geometry_msgs::Point32));
-      offset += 3;
-      points_length = points_lengthT;
-      for( uint8_t i = 0; i < points_length; i++){
-      offset += this->st_points.deserialize(inbuffer + offset);
-        memcpy( &(this->points[i]), &(this->st_points), sizeof(geometry_msgs::Point32));
-      }
-     return offset;
-    }
-
-    virtual const char * getType(){ return "geometry_msgs/Polygon"; };
-    virtual const char * getMD5(){ return "cd60a26494a087f577976f0329fa120e"; };
-
-  };
-
-}
-#endif
\ No newline at end of file