Irfan Tito Kurniawan / ros_lib
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BoundingBox.h Source File

BoundingBox.h

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