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.
Fork of rosserial_mbed_lib by
geometry_msgs/TwistWithCovarianceStamped.h@5:19c5437ed9fe, 2014-05-01 (annotated)
- Committer:
- garyservin
- Date:
- Thu May 01 06:01:31 2014 +0000
- Revision:
- 5:19c5437ed9fe
- Parent:
- 3:1cf99502f396
Updated to hydro
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nucho | 3:1cf99502f396 | 1 | #ifndef _ROS_geometry_msgs_TwistWithCovarianceStamped_h |
nucho | 3:1cf99502f396 | 2 | #define _ROS_geometry_msgs_TwistWithCovarianceStamped_h |
nucho | 0:77afd7560544 | 3 | |
nucho | 0:77afd7560544 | 4 | #include <stdint.h> |
nucho | 0:77afd7560544 | 5 | #include <string.h> |
nucho | 0:77afd7560544 | 6 | #include <stdlib.h> |
nucho | 3:1cf99502f396 | 7 | #include "ros/msg.h" |
nucho | 0:77afd7560544 | 8 | #include "std_msgs/Header.h" |
nucho | 0:77afd7560544 | 9 | #include "geometry_msgs/TwistWithCovariance.h" |
nucho | 0:77afd7560544 | 10 | |
nucho | 0:77afd7560544 | 11 | namespace geometry_msgs |
nucho | 0:77afd7560544 | 12 | { |
nucho | 0:77afd7560544 | 13 | |
nucho | 0:77afd7560544 | 14 | class TwistWithCovarianceStamped : public ros::Msg |
nucho | 0:77afd7560544 | 15 | { |
nucho | 0:77afd7560544 | 16 | public: |
nucho | 0:77afd7560544 | 17 | std_msgs::Header header; |
nucho | 0:77afd7560544 | 18 | geometry_msgs::TwistWithCovariance twist; |
nucho | 0:77afd7560544 | 19 | |
nucho | 3:1cf99502f396 | 20 | virtual int serialize(unsigned char *outbuffer) const |
nucho | 0:77afd7560544 | 21 | { |
nucho | 0:77afd7560544 | 22 | int offset = 0; |
nucho | 0:77afd7560544 | 23 | offset += this->header.serialize(outbuffer + offset); |
nucho | 0:77afd7560544 | 24 | offset += this->twist.serialize(outbuffer + offset); |
nucho | 0:77afd7560544 | 25 | return offset; |
nucho | 0:77afd7560544 | 26 | } |
nucho | 0:77afd7560544 | 27 | |
nucho | 0:77afd7560544 | 28 | virtual int deserialize(unsigned char *inbuffer) |
nucho | 0:77afd7560544 | 29 | { |
nucho | 0:77afd7560544 | 30 | int offset = 0; |
nucho | 0:77afd7560544 | 31 | offset += this->header.deserialize(inbuffer + offset); |
nucho | 0:77afd7560544 | 32 | offset += this->twist.deserialize(inbuffer + offset); |
nucho | 0:77afd7560544 | 33 | return offset; |
nucho | 0:77afd7560544 | 34 | } |
nucho | 0:77afd7560544 | 35 | |
nucho | 3:1cf99502f396 | 36 | virtual const char * getType(){ return "geometry_msgs/TwistWithCovarianceStamped"; }; |
nucho | 3:1cf99502f396 | 37 | virtual const char * getMD5(){ return "8927a1a12fb2607ceea095b2dc440a96"; }; |
nucho | 0:77afd7560544 | 38 | |
nucho | 0:77afd7560544 | 39 | }; |
nucho | 0:77afd7560544 | 40 | |
nucho | 0:77afd7560544 | 41 | } |
nucho | 0:77afd7560544 | 42 | #endif |