Just changed OUTPUT_SIZE and INPUT_SIZE in ros/node_handle.h
Dependents: WRS2020_mecanum_node
nav_msgs/GetMap.h@0:04ac6be8229a, 2019-11-08 (annotated)
- Committer:
- Gary Servin
- Date:
- Fri Nov 08 14:38:09 2019 -0300
- Revision:
- 0:04ac6be8229a
Initial commit, generated based on a clean melodic-desktop-full
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Gary Servin |
0:04ac6be8229a | 1 | #ifndef _ROS_SERVICE_GetMap_h |
Gary Servin |
0:04ac6be8229a | 2 | #define _ROS_SERVICE_GetMap_h |
Gary Servin |
0:04ac6be8229a | 3 | #include <stdint.h> |
Gary Servin |
0:04ac6be8229a | 4 | #include <string.h> |
Gary Servin |
0:04ac6be8229a | 5 | #include <stdlib.h> |
Gary Servin |
0:04ac6be8229a | 6 | #include "ros/msg.h" |
Gary Servin |
0:04ac6be8229a | 7 | #include "nav_msgs/OccupancyGrid.h" |
Gary Servin |
0:04ac6be8229a | 8 | |
Gary Servin |
0:04ac6be8229a | 9 | namespace nav_msgs |
Gary Servin |
0:04ac6be8229a | 10 | { |
Gary Servin |
0:04ac6be8229a | 11 | |
Gary Servin |
0:04ac6be8229a | 12 | static const char GETMAP[] = "nav_msgs/GetMap"; |
Gary Servin |
0:04ac6be8229a | 13 | |
Gary Servin |
0:04ac6be8229a | 14 | class GetMapRequest : public ros::Msg |
Gary Servin |
0:04ac6be8229a | 15 | { |
Gary Servin |
0:04ac6be8229a | 16 | public: |
Gary Servin |
0:04ac6be8229a | 17 | |
Gary Servin |
0:04ac6be8229a | 18 | GetMapRequest() |
Gary Servin |
0:04ac6be8229a | 19 | { |
Gary Servin |
0:04ac6be8229a | 20 | } |
Gary Servin |
0:04ac6be8229a | 21 | |
Gary Servin |
0:04ac6be8229a | 22 | virtual int serialize(unsigned char *outbuffer) const |
Gary Servin |
0:04ac6be8229a | 23 | { |
Gary Servin |
0:04ac6be8229a | 24 | int offset = 0; |
Gary Servin |
0:04ac6be8229a | 25 | return offset; |
Gary Servin |
0:04ac6be8229a | 26 | } |
Gary Servin |
0:04ac6be8229a | 27 | |
Gary Servin |
0:04ac6be8229a | 28 | virtual int deserialize(unsigned char *inbuffer) |
Gary Servin |
0:04ac6be8229a | 29 | { |
Gary Servin |
0:04ac6be8229a | 30 | int offset = 0; |
Gary Servin |
0:04ac6be8229a | 31 | return offset; |
Gary Servin |
0:04ac6be8229a | 32 | } |
Gary Servin |
0:04ac6be8229a | 33 | |
Gary Servin |
0:04ac6be8229a | 34 | const char * getType(){ return GETMAP; }; |
Gary Servin |
0:04ac6be8229a | 35 | const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; |
Gary Servin |
0:04ac6be8229a | 36 | |
Gary Servin |
0:04ac6be8229a | 37 | }; |
Gary Servin |
0:04ac6be8229a | 38 | |
Gary Servin |
0:04ac6be8229a | 39 | class GetMapResponse : public ros::Msg |
Gary Servin |
0:04ac6be8229a | 40 | { |
Gary Servin |
0:04ac6be8229a | 41 | public: |
Gary Servin |
0:04ac6be8229a | 42 | typedef nav_msgs::OccupancyGrid _map_type; |
Gary Servin |
0:04ac6be8229a | 43 | _map_type map; |
Gary Servin |
0:04ac6be8229a | 44 | |
Gary Servin |
0:04ac6be8229a | 45 | GetMapResponse(): |
Gary Servin |
0:04ac6be8229a | 46 | map() |
Gary Servin |
0:04ac6be8229a | 47 | { |
Gary Servin |
0:04ac6be8229a | 48 | } |
Gary Servin |
0:04ac6be8229a | 49 | |
Gary Servin |
0:04ac6be8229a | 50 | virtual int serialize(unsigned char *outbuffer) const |
Gary Servin |
0:04ac6be8229a | 51 | { |
Gary Servin |
0:04ac6be8229a | 52 | int offset = 0; |
Gary Servin |
0:04ac6be8229a | 53 | offset += this->map.serialize(outbuffer + offset); |
Gary Servin |
0:04ac6be8229a | 54 | return offset; |
Gary Servin |
0:04ac6be8229a | 55 | } |
Gary Servin |
0:04ac6be8229a | 56 | |
Gary Servin |
0:04ac6be8229a | 57 | virtual int deserialize(unsigned char *inbuffer) |
Gary Servin |
0:04ac6be8229a | 58 | { |
Gary Servin |
0:04ac6be8229a | 59 | int offset = 0; |
Gary Servin |
0:04ac6be8229a | 60 | offset += this->map.deserialize(inbuffer + offset); |
Gary Servin |
0:04ac6be8229a | 61 | return offset; |
Gary Servin |
0:04ac6be8229a | 62 | } |
Gary Servin |
0:04ac6be8229a | 63 | |
Gary Servin |
0:04ac6be8229a | 64 | const char * getType(){ return GETMAP; }; |
Gary Servin |
0:04ac6be8229a | 65 | const char * getMD5(){ return "6cdd0a18e0aff5b0a3ca2326a89b54ff"; }; |
Gary Servin |
0:04ac6be8229a | 66 | |
Gary Servin |
0:04ac6be8229a | 67 | }; |
Gary Servin |
0:04ac6be8229a | 68 | |
Gary Servin |
0:04ac6be8229a | 69 | class GetMap { |
Gary Servin |
0:04ac6be8229a | 70 | public: |
Gary Servin |
0:04ac6be8229a | 71 | typedef GetMapRequest Request; |
Gary Servin |
0:04ac6be8229a | 72 | typedef GetMapResponse Response; |
Gary Servin |
0:04ac6be8229a | 73 | }; |
Gary Servin |
0:04ac6be8229a | 74 | |
Gary Servin |
0:04ac6be8229a | 75 | } |
Gary Servin |
0:04ac6be8229a | 76 | #endif |