LAB

Dependencies:   BufferedSerial

Dependents:   ROS_Remote_Car

Fork of ros_lib_indigo by Gary Servin

opencv_apps/Flow.h

Committer:
garyservin
Date:
2016-03-31
Revision:
0:fd24f7ca9688

File content as of revision 0:fd24f7ca9688:

#ifndef _ROS_opencv_apps_Flow_h
#define _ROS_opencv_apps_Flow_h

#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "opencv_apps/Point2D.h"

namespace opencv_apps
{

  class Flow : public ros::Msg
  {
    public:
      opencv_apps::Point2D point;
      opencv_apps::Point2D velocity;

    Flow():
      point(),
      velocity()
    {
    }

    virtual int serialize(unsigned char *outbuffer) const
    {
      int offset = 0;
      offset += this->point.serialize(outbuffer + offset);
      offset += this->velocity.serialize(outbuffer + offset);
      return offset;
    }

    virtual int deserialize(unsigned char *inbuffer)
    {
      int offset = 0;
      offset += this->point.deserialize(inbuffer + offset);
      offset += this->velocity.deserialize(inbuffer + offset);
     return offset;
    }

    const char * getType(){ return "opencv_apps/Flow"; };
    const char * getMD5(){ return "dd9a9efd88ba39035e78af697593d751"; };

  };

}
#endif