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.
Dependencies: mbed Watchdog stm32-sensor-base2
ros_lib_melodic/geometry_msgs/WrenchStamped.h@2:b7fdc74e5c5d, 2020-07-07 (annotated)
- Committer:
- ommpy
- Date:
- Tue Jul 07 15:19:06 2020 +0530
- Revision:
- 2:b7fdc74e5c5d
new board files
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ommpy | 2:b7fdc74e5c5d | 1 | #ifndef _ROS_geometry_msgs_WrenchStamped_h |
| ommpy | 2:b7fdc74e5c5d | 2 | #define _ROS_geometry_msgs_WrenchStamped_h |
| ommpy | 2:b7fdc74e5c5d | 3 | |
| ommpy | 2:b7fdc74e5c5d | 4 | #include <stdint.h> |
| ommpy | 2:b7fdc74e5c5d | 5 | #include <string.h> |
| ommpy | 2:b7fdc74e5c5d | 6 | #include <stdlib.h> |
| ommpy | 2:b7fdc74e5c5d | 7 | #include "ros/msg.h" |
| ommpy | 2:b7fdc74e5c5d | 8 | #include "std_msgs/Header.h" |
| ommpy | 2:b7fdc74e5c5d | 9 | #include "geometry_msgs/Wrench.h" |
| ommpy | 2:b7fdc74e5c5d | 10 | |
| ommpy | 2:b7fdc74e5c5d | 11 | namespace geometry_msgs |
| ommpy | 2:b7fdc74e5c5d | 12 | { |
| ommpy | 2:b7fdc74e5c5d | 13 | |
| ommpy | 2:b7fdc74e5c5d | 14 | class WrenchStamped : public ros::Msg |
| ommpy | 2:b7fdc74e5c5d | 15 | { |
| ommpy | 2:b7fdc74e5c5d | 16 | public: |
| ommpy | 2:b7fdc74e5c5d | 17 | typedef std_msgs::Header _header_type; |
| ommpy | 2:b7fdc74e5c5d | 18 | _header_type header; |
| ommpy | 2:b7fdc74e5c5d | 19 | typedef geometry_msgs::Wrench _wrench_type; |
| ommpy | 2:b7fdc74e5c5d | 20 | _wrench_type wrench; |
| ommpy | 2:b7fdc74e5c5d | 21 | |
| ommpy | 2:b7fdc74e5c5d | 22 | WrenchStamped(): |
| ommpy | 2:b7fdc74e5c5d | 23 | header(), |
| ommpy | 2:b7fdc74e5c5d | 24 | wrench() |
| ommpy | 2:b7fdc74e5c5d | 25 | { |
| ommpy | 2:b7fdc74e5c5d | 26 | } |
| ommpy | 2:b7fdc74e5c5d | 27 | |
| ommpy | 2:b7fdc74e5c5d | 28 | virtual int serialize(unsigned char *outbuffer) const |
| ommpy | 2:b7fdc74e5c5d | 29 | { |
| ommpy | 2:b7fdc74e5c5d | 30 | int offset = 0; |
| ommpy | 2:b7fdc74e5c5d | 31 | offset += this->header.serialize(outbuffer + offset); |
| ommpy | 2:b7fdc74e5c5d | 32 | offset += this->wrench.serialize(outbuffer + offset); |
| ommpy | 2:b7fdc74e5c5d | 33 | return offset; |
| ommpy | 2:b7fdc74e5c5d | 34 | } |
| ommpy | 2:b7fdc74e5c5d | 35 | |
| ommpy | 2:b7fdc74e5c5d | 36 | virtual int deserialize(unsigned char *inbuffer) |
| ommpy | 2:b7fdc74e5c5d | 37 | { |
| ommpy | 2:b7fdc74e5c5d | 38 | int offset = 0; |
| ommpy | 2:b7fdc74e5c5d | 39 | offset += this->header.deserialize(inbuffer + offset); |
| ommpy | 2:b7fdc74e5c5d | 40 | offset += this->wrench.deserialize(inbuffer + offset); |
| ommpy | 2:b7fdc74e5c5d | 41 | return offset; |
| ommpy | 2:b7fdc74e5c5d | 42 | } |
| ommpy | 2:b7fdc74e5c5d | 43 | |
| ommpy | 2:b7fdc74e5c5d | 44 | const char * getType(){ return "geometry_msgs/WrenchStamped"; }; |
| ommpy | 2:b7fdc74e5c5d | 45 | const char * getMD5(){ return "d78d3cb249ce23087ade7e7d0c40cfa7"; }; |
| ommpy | 2:b7fdc74e5c5d | 46 | |
| ommpy | 2:b7fdc74e5c5d | 47 | }; |
| ommpy | 2:b7fdc74e5c5d | 48 | |
| ommpy | 2:b7fdc74e5c5d | 49 | } |
| ommpy | 2:b7fdc74e5c5d | 50 | #endif |