It has only one change from original one. I added robotfeedback message on it.
Dependents: RobotFeedback mobileRobotITU
Fork of ros_lib_indigo by
Diff: opencv_apps/Line.h
- Revision:
- 0:fd24f7ca9688
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/opencv_apps/Line.h Thu Mar 31 14:22:59 2016 +0000 @@ -0,0 +1,47 @@ +#ifndef _ROS_opencv_apps_Line_h +#define _ROS_opencv_apps_Line_h + +#include <stdint.h> +#include <string.h> +#include <stdlib.h> +#include "ros/msg.h" +#include "opencv_apps/Point2D.h" + +namespace opencv_apps +{ + + class Line : public ros::Msg + { + public: + opencv_apps::Point2D pt1; + opencv_apps::Point2D pt2; + + Line(): + pt1(), + pt2() + { + } + + virtual int serialize(unsigned char *outbuffer) const + { + int offset = 0; + offset += this->pt1.serialize(outbuffer + offset); + offset += this->pt2.serialize(outbuffer + offset); + return offset; + } + + virtual int deserialize(unsigned char *inbuffer) + { + int offset = 0; + offset += this->pt1.deserialize(inbuffer + offset); + offset += this->pt2.deserialize(inbuffer + offset); + return offset; + } + + const char * getType(){ return "opencv_apps/Line"; }; + const char * getMD5(){ return "a1419010b3fc4549e3f450018363d000"; }; + + }; + +} +#endif \ No newline at end of file