Just changed OUTPUT_SIZE and INPUT_SIZE in ros/node_handle.h
Dependents: WRS2020_mecanum_node
map_msgs/GetPointMap.h@2:5d429be7d0aa, 2020-11-02 (annotated)
- Committer:
- sgrsn
- Date:
- Mon Nov 02 09:00:01 2020 +0000
- Revision:
- 2:5d429be7d0aa
- Parent:
- 0:04ac6be8229a
Change INPUT_SIZE and OUTPUT_SIZE on node_handle.h to pub sub
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Gary Servin |
0:04ac6be8229a | 1 | #ifndef _ROS_SERVICE_GetPointMap_h |
Gary Servin |
0:04ac6be8229a | 2 | #define _ROS_SERVICE_GetPointMap_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 "sensor_msgs/PointCloud2.h" |
Gary Servin |
0:04ac6be8229a | 8 | |
Gary Servin |
0:04ac6be8229a | 9 | namespace map_msgs |
Gary Servin |
0:04ac6be8229a | 10 | { |
Gary Servin |
0:04ac6be8229a | 11 | |
Gary Servin |
0:04ac6be8229a | 12 | static const char GETPOINTMAP[] = "map_msgs/GetPointMap"; |
Gary Servin |
0:04ac6be8229a | 13 | |
Gary Servin |
0:04ac6be8229a | 14 | class GetPointMapRequest : public ros::Msg |
Gary Servin |
0:04ac6be8229a | 15 | { |
Gary Servin |
0:04ac6be8229a | 16 | public: |
Gary Servin |
0:04ac6be8229a | 17 | |
Gary Servin |
0:04ac6be8229a | 18 | GetPointMapRequest() |
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 GETPOINTMAP; }; |
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 GetPointMapResponse : public ros::Msg |
Gary Servin |
0:04ac6be8229a | 40 | { |
Gary Servin |
0:04ac6be8229a | 41 | public: |
Gary Servin |
0:04ac6be8229a | 42 | typedef sensor_msgs::PointCloud2 _map_type; |
Gary Servin |
0:04ac6be8229a | 43 | _map_type map; |
Gary Servin |
0:04ac6be8229a | 44 | |
Gary Servin |
0:04ac6be8229a | 45 | GetPointMapResponse(): |
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 GETPOINTMAP; }; |
Gary Servin |
0:04ac6be8229a | 65 | const char * getMD5(){ return "b84fbb39505086eb6a62d933c75cb7b4"; }; |
Gary Servin |
0:04ac6be8229a | 66 | |
Gary Servin |
0:04ac6be8229a | 67 | }; |
Gary Servin |
0:04ac6be8229a | 68 | |
Gary Servin |
0:04ac6be8229a | 69 | class GetPointMap { |
Gary Servin |
0:04ac6be8229a | 70 | public: |
Gary Servin |
0:04ac6be8229a | 71 | typedef GetPointMapRequest Request; |
Gary Servin |
0:04ac6be8229a | 72 | typedef GetPointMapResponse Response; |
Gary Servin |
0:04ac6be8229a | 73 | }; |
Gary Servin |
0:04ac6be8229a | 74 | |
Gary Servin |
0:04ac6be8229a | 75 | } |
Gary Servin |
0:04ac6be8229a | 76 | #endif |