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 Line.h Source File

Line.h

00001 #ifndef _ROS_opencv_apps_Line_h
00002 #define _ROS_opencv_apps_Line_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 Line : public ros::Msg
00014   {
00015     public:
00016       opencv_apps::Point2D pt1;
00017       opencv_apps::Point2D pt2;
00018 
00019     Line():
00020       pt1(),
00021       pt2()
00022     {
00023     }
00024 
00025     virtual int serialize(unsigned char *outbuffer) const
00026     {
00027       int offset = 0;
00028       offset += this->pt1.serialize(outbuffer + offset);
00029       offset += this->pt2.serialize(outbuffer + offset);
00030       return offset;
00031     }
00032 
00033     virtual int deserialize(unsigned char *inbuffer)
00034     {
00035       int offset = 0;
00036       offset += this->pt1.deserialize(inbuffer + offset);
00037       offset += this->pt2.deserialize(inbuffer + offset);
00038      return offset;
00039     }
00040 
00041     const char * getType(){ return "opencv_apps/Line"; };
00042     const char * getMD5(){ return "a1419010b3fc4549e3f450018363d000"; };
00043 
00044   };
00045 
00046 }
00047 #endif