Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
PointCloud2Update.h
00001 #ifndef _ROS_map_msgs_PointCloud2Update_h 00002 #define _ROS_map_msgs_PointCloud2Update_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 "sensor_msgs/PointCloud2.h" 00010 00011 namespace map_msgs 00012 { 00013 00014 class PointCloud2Update : public ros::Msg 00015 { 00016 public: 00017 typedef std_msgs::Header _header_type; 00018 _header_type header; 00019 typedef uint32_t _type_type; 00020 _type_type type; 00021 typedef sensor_msgs::PointCloud2 _points_type; 00022 _points_type points; 00023 enum { ADD = 0 }; 00024 enum { DELETE = 1 }; 00025 00026 PointCloud2Update(): 00027 header(), 00028 type(0), 00029 points() 00030 { 00031 } 00032 00033 virtual int serialize(unsigned char *outbuffer) const 00034 { 00035 int offset = 0; 00036 offset += this->header.serialize(outbuffer + offset); 00037 *(outbuffer + offset + 0) = (this->type >> (8 * 0)) & 0xFF; 00038 *(outbuffer + offset + 1) = (this->type >> (8 * 1)) & 0xFF; 00039 *(outbuffer + offset + 2) = (this->type >> (8 * 2)) & 0xFF; 00040 *(outbuffer + offset + 3) = (this->type >> (8 * 3)) & 0xFF; 00041 offset += sizeof(this->type); 00042 offset += this->points.serialize(outbuffer + offset); 00043 return offset; 00044 } 00045 00046 virtual int deserialize(unsigned char *inbuffer) 00047 { 00048 int offset = 0; 00049 offset += this->header.deserialize(inbuffer + offset); 00050 this->type = ((uint32_t) (*(inbuffer + offset))); 00051 this->type |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00052 this->type |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00053 this->type |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00054 offset += sizeof(this->type); 00055 offset += this->points.deserialize(inbuffer + offset); 00056 return offset; 00057 } 00058 00059 const char * getType(){ return "map_msgs/PointCloud2Update"; }; 00060 const char * getMD5(){ return "6c58e4f249ae9cd2b24fb1ee0f99195e"; }; 00061 00062 }; 00063 00064 } 00065 #endif
Generated on Wed Jul 13 2022 23:30:18 by
