ROS Serial library for Mbed platforms for ROS Indigo Igloo. Check http://wiki.ros.org/rosserial_mbed/ for more information

Dependencies:   BufferedSerial

Dependents:   rosserial_mbed_hello_world_publisher rtos_base_control rosserial_mbed_F64MA ROS-RTOS ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Flow.h Source File

Flow.h

00001 #ifndef _ROS_opencv_apps_Flow_h
00002 #define _ROS_opencv_apps_Flow_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 #include "opencv_apps/Point2D.h"
00009 
00010 namespace opencv_apps
00011 {
00012 
00013   class Flow : public ros::Msg
00014   {
00015     public:
00016       opencv_apps::Point2D point;
00017       opencv_apps::Point2D velocity;
00018 
00019     Flow():
00020       point(),
00021       velocity()
00022     {
00023     }
00024 
00025     virtual int serialize(unsigned char *outbuffer) const
00026     {
00027       int offset = 0;
00028       offset += this->point.serialize(outbuffer + offset);
00029       offset += this->velocity.serialize(outbuffer + offset);
00030       return offset;
00031     }
00032 
00033     virtual int deserialize(unsigned char *inbuffer)
00034     {
00035       int offset = 0;
00036       offset += this->point.deserialize(inbuffer + offset);
00037       offset += this->velocity.deserialize(inbuffer + offset);
00038      return offset;
00039     }
00040 
00041     const char * getType(){ return "opencv_apps/Flow"; };
00042     const char * getMD5(){ return "dd9a9efd88ba39035e78af697593d751"; };
00043 
00044   };
00045 
00046 }
00047 #endif