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/std_srvs/Empty.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_Empty_h |
irfantitok | 0:8f3710bfd298 | 2 | #define _ROS_SERVICE_Empty_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 | |
irfantitok | 0:8f3710bfd298 | 8 | namespace std_srvs |
irfantitok | 0:8f3710bfd298 | 9 | { |
irfantitok | 0:8f3710bfd298 | 10 | |
irfantitok | 0:8f3710bfd298 | 11 | static const char EMPTY[] = "std_srvs/Empty"; |
irfantitok | 0:8f3710bfd298 | 12 | |
irfantitok | 0:8f3710bfd298 | 13 | class EmptyRequest : public ros::Msg |
irfantitok | 0:8f3710bfd298 | 14 | { |
irfantitok | 0:8f3710bfd298 | 15 | public: |
irfantitok | 0:8f3710bfd298 | 16 | |
irfantitok | 0:8f3710bfd298 | 17 | EmptyRequest() |
irfantitok | 0:8f3710bfd298 | 18 | { |
irfantitok | 0:8f3710bfd298 | 19 | } |
irfantitok | 0:8f3710bfd298 | 20 | |
irfantitok | 0:8f3710bfd298 | 21 | virtual int serialize(unsigned char *outbuffer) const |
irfantitok | 0:8f3710bfd298 | 22 | { |
irfantitok | 0:8f3710bfd298 | 23 | int offset = 0; |
irfantitok | 0:8f3710bfd298 | 24 | return offset; |
irfantitok | 0:8f3710bfd298 | 25 | } |
irfantitok | 0:8f3710bfd298 | 26 | |
irfantitok | 0:8f3710bfd298 | 27 | virtual int deserialize(unsigned char *inbuffer) |
irfantitok | 0:8f3710bfd298 | 28 | { |
irfantitok | 0:8f3710bfd298 | 29 | int offset = 0; |
irfantitok | 0:8f3710bfd298 | 30 | return offset; |
irfantitok | 0:8f3710bfd298 | 31 | } |
irfantitok | 0:8f3710bfd298 | 32 | |
irfantitok | 0:8f3710bfd298 | 33 | const char * getType(){ return EMPTY; }; |
irfantitok | 0:8f3710bfd298 | 34 | const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; |
irfantitok | 0:8f3710bfd298 | 35 | |
irfantitok | 0:8f3710bfd298 | 36 | }; |
irfantitok | 0:8f3710bfd298 | 37 | |
irfantitok | 0:8f3710bfd298 | 38 | class EmptyResponse : public ros::Msg |
irfantitok | 0:8f3710bfd298 | 39 | { |
irfantitok | 0:8f3710bfd298 | 40 | public: |
irfantitok | 0:8f3710bfd298 | 41 | |
irfantitok | 0:8f3710bfd298 | 42 | EmptyResponse() |
irfantitok | 0:8f3710bfd298 | 43 | { |
irfantitok | 0:8f3710bfd298 | 44 | } |
irfantitok | 0:8f3710bfd298 | 45 | |
irfantitok | 0:8f3710bfd298 | 46 | virtual int serialize(unsigned char *outbuffer) const |
irfantitok | 0:8f3710bfd298 | 47 | { |
irfantitok | 0:8f3710bfd298 | 48 | int offset = 0; |
irfantitok | 0:8f3710bfd298 | 49 | return offset; |
irfantitok | 0:8f3710bfd298 | 50 | } |
irfantitok | 0:8f3710bfd298 | 51 | |
irfantitok | 0:8f3710bfd298 | 52 | virtual int deserialize(unsigned char *inbuffer) |
irfantitok | 0:8f3710bfd298 | 53 | { |
irfantitok | 0:8f3710bfd298 | 54 | int offset = 0; |
irfantitok | 0:8f3710bfd298 | 55 | return offset; |
irfantitok | 0:8f3710bfd298 | 56 | } |
irfantitok | 0:8f3710bfd298 | 57 | |
irfantitok | 0:8f3710bfd298 | 58 | const char * getType(){ return EMPTY; }; |
irfantitok | 0:8f3710bfd298 | 59 | const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; |
irfantitok | 0:8f3710bfd298 | 60 | |
irfantitok | 0:8f3710bfd298 | 61 | }; |
irfantitok | 0:8f3710bfd298 | 62 | |
irfantitok | 0:8f3710bfd298 | 63 | class Empty { |
irfantitok | 0:8f3710bfd298 | 64 | public: |
irfantitok | 0:8f3710bfd298 | 65 | typedef EmptyRequest Request; |
irfantitok | 0:8f3710bfd298 | 66 | typedef EmptyResponse Response; |
irfantitok | 0:8f3710bfd298 | 67 | }; |
irfantitok | 0:8f3710bfd298 | 68 | |
irfantitok | 0:8f3710bfd298 | 69 | } |
irfantitok | 0:8f3710bfd298 | 70 | #endif |