catchrobo2022 / Mbed 2 deprecated catchrobo2022_mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers OctomapWithPose.h Source File

OctomapWithPose.h

00001 #ifndef _ROS_octomap_msgs_OctomapWithPose_h
00002 #define _ROS_octomap_msgs_OctomapWithPose_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 #include "std_msgs/Header.h"
00009 #include "geometry_msgs/Pose.h"
00010 #include "octomap_msgs/Octomap.h"
00011 
00012 namespace octomap_msgs
00013 {
00014 
00015   class OctomapWithPose : public ros::Msg
00016   {
00017     public:
00018       typedef std_msgs::Header _header_type;
00019       _header_type header;
00020       typedef geometry_msgs::Pose _origin_type;
00021       _origin_type origin;
00022       typedef octomap_msgs::Octomap _octomap_type;
00023       _octomap_type octomap;
00024 
00025     OctomapWithPose():
00026       header(),
00027       origin(),
00028       octomap()
00029     {
00030     }
00031 
00032     virtual int serialize(unsigned char *outbuffer) const
00033     {
00034       int offset = 0;
00035       offset += this->header.serialize(outbuffer + offset);
00036       offset += this->origin.serialize(outbuffer + offset);
00037       offset += this->octomap.serialize(outbuffer + offset);
00038       return offset;
00039     }
00040 
00041     virtual int deserialize(unsigned char *inbuffer)
00042     {
00043       int offset = 0;
00044       offset += this->header.deserialize(inbuffer + offset);
00045       offset += this->origin.deserialize(inbuffer + offset);
00046       offset += this->octomap.deserialize(inbuffer + offset);
00047      return offset;
00048     }
00049 
00050     virtual const char * getType(){ return "octomap_msgs/OctomapWithPose"; };
00051     virtual const char * getMD5(){ return "20b380aca6a508a657e95526cddaf618"; };
00052 
00053   };
00054 
00055 }
00056 #endif