catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Segment.h Source File

Segment.h

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