This is a fork from the original, including a small change in the buffer size of the hardware interface (increased to 2048) and decreasing the number of publishers and subscribers to 5. Besides, the library about the message Adc.h was modified so as to increase the number of available Adc channels to be read ( from 6 to 7 ) For this modification, a change in checksum was required
Fork of ros_lib_kinetic by
map_msgs/PointCloud2Update.h
- Committer:
- jacobepfl1692
- Date:
- 2017-10-17
- Revision:
- 2:9114cc24ddcf
- Parent:
- 0:9e9b7db60fd5
File content as of revision 2:9114cc24ddcf:
#ifndef _ROS_map_msgs_PointCloud2Update_h #define _ROS_map_msgs_PointCloud2Update_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "std_msgs/Header.h" #include "sensor_msgs/PointCloud2.h" namespace map_msgs { class PointCloud2Update : public ros::Msg { public: typedef std_msgs::Header _header_type; _header_type header; typedef uint32_t _type_type; _type_type type; typedef sensor_msgs::PointCloud2 _points_type; _points_type points; enum { ADD = 0 }; enum { DELETE = 1 }; PointCloud2Update(): header(), type(0), points() { } virtual int serialize(unsigned char *outbuffer) const { int offset = 0; offset += this->header.serialize(outbuffer + offset); *(outbuffer + offset + 0) = (this->type >> (8 * 0)) & 0xFF; *(outbuffer + offset + 1) = (this->type >> (8 * 1)) & 0xFF; *(outbuffer + offset + 2) = (this->type >> (8 * 2)) & 0xFF; *(outbuffer + offset + 3) = (this->type >> (8 * 3)) & 0xFF; offset += sizeof(this->type); offset += this->points.serialize(outbuffer + offset); return offset; } virtual int deserialize(unsigned char *inbuffer) { int offset = 0; offset += this->header.deserialize(inbuffer + offset); this->type = ((uint32_t) (*(inbuffer + offset))); this->type |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); this->type |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); this->type |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); offset += sizeof(this->type); offset += this->points.deserialize(inbuffer + offset); return offset; } const char * getType(){ return "map_msgs/PointCloud2Update"; }; const char * getMD5(){ return "6c58e4f249ae9cd2b24fb1ee0f99195e"; }; }; } #endif