catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers OrientedBoundingBox.h Source File

OrientedBoundingBox.h

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