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/geographic_msgs/GeoPoseStamped.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_geographic_msgs_GeoPoseStamped_h |
irfantitok | 0:8f3710bfd298 | 2 | #define _ROS_geographic_msgs_GeoPoseStamped_h |
irfantitok | 0:8f3710bfd298 | 3 | |
irfantitok | 0:8f3710bfd298 | 4 | #include <stdint.h> |
irfantitok | 0:8f3710bfd298 | 5 | #include <string.h> |
irfantitok | 0:8f3710bfd298 | 6 | #include <stdlib.h> |
irfantitok | 0:8f3710bfd298 | 7 | #include "ros/msg.h" |
irfantitok | 0:8f3710bfd298 | 8 | #include "std_msgs/Header.h" |
irfantitok | 0:8f3710bfd298 | 9 | #include "geographic_msgs/GeoPose.h" |
irfantitok | 0:8f3710bfd298 | 10 | |
irfantitok | 0:8f3710bfd298 | 11 | namespace geographic_msgs |
irfantitok | 0:8f3710bfd298 | 12 | { |
irfantitok | 0:8f3710bfd298 | 13 | |
irfantitok | 0:8f3710bfd298 | 14 | class GeoPoseStamped : public ros::Msg |
irfantitok | 0:8f3710bfd298 | 15 | { |
irfantitok | 0:8f3710bfd298 | 16 | public: |
irfantitok | 0:8f3710bfd298 | 17 | typedef std_msgs::Header _header_type; |
irfantitok | 0:8f3710bfd298 | 18 | _header_type header; |
irfantitok | 0:8f3710bfd298 | 19 | typedef geographic_msgs::GeoPose _pose_type; |
irfantitok | 0:8f3710bfd298 | 20 | _pose_type pose; |
irfantitok | 0:8f3710bfd298 | 21 | |
irfantitok | 0:8f3710bfd298 | 22 | GeoPoseStamped(): |
irfantitok | 0:8f3710bfd298 | 23 | header(), |
irfantitok | 0:8f3710bfd298 | 24 | pose() |
irfantitok | 0:8f3710bfd298 | 25 | { |
irfantitok | 0:8f3710bfd298 | 26 | } |
irfantitok | 0:8f3710bfd298 | 27 | |
irfantitok | 0:8f3710bfd298 | 28 | virtual int serialize(unsigned char *outbuffer) const |
irfantitok | 0:8f3710bfd298 | 29 | { |
irfantitok | 0:8f3710bfd298 | 30 | int offset = 0; |
irfantitok | 0:8f3710bfd298 | 31 | offset += this->header.serialize(outbuffer + offset); |
irfantitok | 0:8f3710bfd298 | 32 | offset += this->pose.serialize(outbuffer + offset); |
irfantitok | 0:8f3710bfd298 | 33 | return offset; |
irfantitok | 0:8f3710bfd298 | 34 | } |
irfantitok | 0:8f3710bfd298 | 35 | |
irfantitok | 0:8f3710bfd298 | 36 | virtual int deserialize(unsigned char *inbuffer) |
irfantitok | 0:8f3710bfd298 | 37 | { |
irfantitok | 0:8f3710bfd298 | 38 | int offset = 0; |
irfantitok | 0:8f3710bfd298 | 39 | offset += this->header.deserialize(inbuffer + offset); |
irfantitok | 0:8f3710bfd298 | 40 | offset += this->pose.deserialize(inbuffer + offset); |
irfantitok | 0:8f3710bfd298 | 41 | return offset; |
irfantitok | 0:8f3710bfd298 | 42 | } |
irfantitok | 0:8f3710bfd298 | 43 | |
irfantitok | 0:8f3710bfd298 | 44 | const char * getType(){ return "geographic_msgs/GeoPoseStamped"; }; |
irfantitok | 0:8f3710bfd298 | 45 | const char * getMD5(){ return "cc409c8ed6064d8a846fa207bf3fba6b"; }; |
irfantitok | 0:8f3710bfd298 | 46 | |
irfantitok | 0:8f3710bfd298 | 47 | }; |
irfantitok | 0:8f3710bfd298 | 48 | |
irfantitok | 0:8f3710bfd298 | 49 | } |
irfantitok | 0:8f3710bfd298 | 50 | #endif |