It has only one change from original one. I added robotfeedback message on it.

Dependencies:   BufferedSerial

Dependents:   RobotFeedback mobileRobotITU

Fork of ros_lib_indigo by Gary Servin

Revision:
0:fd24f7ca9688
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/opencv_apps/RotatedRectArrayStamped.h	Thu Mar 31 14:22:59 2016 +0000
@@ -0,0 +1,64 @@
+#ifndef _ROS_opencv_apps_RotatedRectArrayStamped_h
+#define _ROS_opencv_apps_RotatedRectArrayStamped_h
+
+#include <stdint.h>
+#include <string.h>
+#include <stdlib.h>
+#include "ros/msg.h"
+#include "std_msgs/Header.h"
+#include "opencv_apps/RotatedRect.h"
+
+namespace opencv_apps
+{
+
+  class RotatedRectArrayStamped : public ros::Msg
+  {
+    public:
+      std_msgs::Header header;
+      uint8_t rects_length;
+      opencv_apps::RotatedRect st_rects;
+      opencv_apps::RotatedRect * rects;
+
+    RotatedRectArrayStamped():
+      header(),
+      rects_length(0), rects(NULL)
+    {
+    }
+
+    virtual int serialize(unsigned char *outbuffer) const
+    {
+      int offset = 0;
+      offset += this->header.serialize(outbuffer + offset);
+      *(outbuffer + offset++) = rects_length;
+      *(outbuffer + offset++) = 0;
+      *(outbuffer + offset++) = 0;
+      *(outbuffer + offset++) = 0;
+      for( uint8_t i = 0; i < rects_length; i++){
+      offset += this->rects[i].serialize(outbuffer + offset);
+      }
+      return offset;
+    }
+
+    virtual int deserialize(unsigned char *inbuffer)
+    {
+      int offset = 0;
+      offset += this->header.deserialize(inbuffer + offset);
+      uint8_t rects_lengthT = *(inbuffer + offset++);
+      if(rects_lengthT > rects_length)
+        this->rects = (opencv_apps::RotatedRect*)realloc(this->rects, rects_lengthT * sizeof(opencv_apps::RotatedRect));
+      offset += 3;
+      rects_length = rects_lengthT;
+      for( uint8_t i = 0; i < rects_length; i++){
+      offset += this->st_rects.deserialize(inbuffer + offset);
+        memcpy( &(this->rects[i]), &(this->st_rects), sizeof(opencv_apps::RotatedRect));
+      }
+     return offset;
+    }
+
+    const char * getType(){ return "opencv_apps/RotatedRectArrayStamped"; };
+    const char * getMD5(){ return "89a2d4a7db2d2945ca46c25a3bd8c7c5"; };
+
+  };
+
+}
+#endif
\ No newline at end of file