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.
ros_lib/map_msgs/GetPointMap.h@0:8f3710bfd298, 2020-09-02 (annotated)
- Committer:
- irfantitok
- Date:
- Wed Sep 02 13:51:31 2020 +0000
- Revision:
- 0:8f3710bfd298
Resolved round not found
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| irfantitok | 0:8f3710bfd298 | 1 | #ifndef _ROS_SERVICE_GetPointMap_h |
| irfantitok | 0:8f3710bfd298 | 2 | #define _ROS_SERVICE_GetPointMap_h |
| irfantitok | 0:8f3710bfd298 | 3 | #include <stdint.h> |
| irfantitok | 0:8f3710bfd298 | 4 | #include <string.h> |
| irfantitok | 0:8f3710bfd298 | 5 | #include <stdlib.h> |
| irfantitok | 0:8f3710bfd298 | 6 | #include "ros/msg.h" |
| irfantitok | 0:8f3710bfd298 | 7 | #include "sensor_msgs/PointCloud2.h" |
| irfantitok | 0:8f3710bfd298 | 8 | |
| irfantitok | 0:8f3710bfd298 | 9 | namespace map_msgs |
| irfantitok | 0:8f3710bfd298 | 10 | { |
| irfantitok | 0:8f3710bfd298 | 11 | |
| irfantitok | 0:8f3710bfd298 | 12 | static const char GETPOINTMAP[] = "map_msgs/GetPointMap"; |
| irfantitok | 0:8f3710bfd298 | 13 | |
| irfantitok | 0:8f3710bfd298 | 14 | class GetPointMapRequest : public ros::Msg |
| irfantitok | 0:8f3710bfd298 | 15 | { |
| irfantitok | 0:8f3710bfd298 | 16 | public: |
| irfantitok | 0:8f3710bfd298 | 17 | |
| irfantitok | 0:8f3710bfd298 | 18 | GetPointMapRequest() |
| irfantitok | 0:8f3710bfd298 | 19 | { |
| irfantitok | 0:8f3710bfd298 | 20 | } |
| irfantitok | 0:8f3710bfd298 | 21 | |
| irfantitok | 0:8f3710bfd298 | 22 | virtual int serialize(unsigned char *outbuffer) const |
| irfantitok | 0:8f3710bfd298 | 23 | { |
| irfantitok | 0:8f3710bfd298 | 24 | int offset = 0; |
| irfantitok | 0:8f3710bfd298 | 25 | return offset; |
| irfantitok | 0:8f3710bfd298 | 26 | } |
| irfantitok | 0:8f3710bfd298 | 27 | |
| irfantitok | 0:8f3710bfd298 | 28 | virtual int deserialize(unsigned char *inbuffer) |
| irfantitok | 0:8f3710bfd298 | 29 | { |
| irfantitok | 0:8f3710bfd298 | 30 | int offset = 0; |
| irfantitok | 0:8f3710bfd298 | 31 | return offset; |
| irfantitok | 0:8f3710bfd298 | 32 | } |
| irfantitok | 0:8f3710bfd298 | 33 | |
| irfantitok | 0:8f3710bfd298 | 34 | const char * getType(){ return GETPOINTMAP; }; |
| irfantitok | 0:8f3710bfd298 | 35 | const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; |
| irfantitok | 0:8f3710bfd298 | 36 | |
| irfantitok | 0:8f3710bfd298 | 37 | }; |
| irfantitok | 0:8f3710bfd298 | 38 | |
| irfantitok | 0:8f3710bfd298 | 39 | class GetPointMapResponse : public ros::Msg |
| irfantitok | 0:8f3710bfd298 | 40 | { |
| irfantitok | 0:8f3710bfd298 | 41 | public: |
| irfantitok | 0:8f3710bfd298 | 42 | typedef sensor_msgs::PointCloud2 _map_type; |
| irfantitok | 0:8f3710bfd298 | 43 | _map_type map; |
| irfantitok | 0:8f3710bfd298 | 44 | |
| irfantitok | 0:8f3710bfd298 | 45 | GetPointMapResponse(): |
| irfantitok | 0:8f3710bfd298 | 46 | map() |
| irfantitok | 0:8f3710bfd298 | 47 | { |
| irfantitok | 0:8f3710bfd298 | 48 | } |
| irfantitok | 0:8f3710bfd298 | 49 | |
| irfantitok | 0:8f3710bfd298 | 50 | virtual int serialize(unsigned char *outbuffer) const |
| irfantitok | 0:8f3710bfd298 | 51 | { |
| irfantitok | 0:8f3710bfd298 | 52 | int offset = 0; |
| irfantitok | 0:8f3710bfd298 | 53 | offset += this->map.serialize(outbuffer + offset); |
| irfantitok | 0:8f3710bfd298 | 54 | return offset; |
| irfantitok | 0:8f3710bfd298 | 55 | } |
| irfantitok | 0:8f3710bfd298 | 56 | |
| irfantitok | 0:8f3710bfd298 | 57 | virtual int deserialize(unsigned char *inbuffer) |
| irfantitok | 0:8f3710bfd298 | 58 | { |
| irfantitok | 0:8f3710bfd298 | 59 | int offset = 0; |
| irfantitok | 0:8f3710bfd298 | 60 | offset += this->map.deserialize(inbuffer + offset); |
| irfantitok | 0:8f3710bfd298 | 61 | return offset; |
| irfantitok | 0:8f3710bfd298 | 62 | } |
| irfantitok | 0:8f3710bfd298 | 63 | |
| irfantitok | 0:8f3710bfd298 | 64 | const char * getType(){ return GETPOINTMAP; }; |
| irfantitok | 0:8f3710bfd298 | 65 | const char * getMD5(){ return "b84fbb39505086eb6a62d933c75cb7b4"; }; |
| irfantitok | 0:8f3710bfd298 | 66 | |
| irfantitok | 0:8f3710bfd298 | 67 | }; |
| irfantitok | 0:8f3710bfd298 | 68 | |
| irfantitok | 0:8f3710bfd298 | 69 | class GetPointMap { |
| irfantitok | 0:8f3710bfd298 | 70 | public: |
| irfantitok | 0:8f3710bfd298 | 71 | typedef GetPointMapRequest Request; |
| irfantitok | 0:8f3710bfd298 | 72 | typedef GetPointMapResponse Response; |
| irfantitok | 0:8f3710bfd298 | 73 | }; |
| irfantitok | 0:8f3710bfd298 | 74 | |
| irfantitok | 0:8f3710bfd298 | 75 | } |
| irfantitok | 0:8f3710bfd298 | 76 | #endif |