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/Wrench.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_Wrench_h |
| ommpy | 2:b7fdc74e5c5d | 2 | #define _ROS_geometry_msgs_Wrench_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 "geometry_msgs/Vector3.h" |
| ommpy | 2:b7fdc74e5c5d | 9 | |
| ommpy | 2:b7fdc74e5c5d | 10 | namespace geometry_msgs |
| ommpy | 2:b7fdc74e5c5d | 11 | { |
| ommpy | 2:b7fdc74e5c5d | 12 | |
| ommpy | 2:b7fdc74e5c5d | 13 | class Wrench : public ros::Msg |
| ommpy | 2:b7fdc74e5c5d | 14 | { |
| ommpy | 2:b7fdc74e5c5d | 15 | public: |
| ommpy | 2:b7fdc74e5c5d | 16 | typedef geometry_msgs::Vector3 _force_type; |
| ommpy | 2:b7fdc74e5c5d | 17 | _force_type force; |
| ommpy | 2:b7fdc74e5c5d | 18 | typedef geometry_msgs::Vector3 _torque_type; |
| ommpy | 2:b7fdc74e5c5d | 19 | _torque_type torque; |
| ommpy | 2:b7fdc74e5c5d | 20 | |
| ommpy | 2:b7fdc74e5c5d | 21 | Wrench(): |
| ommpy | 2:b7fdc74e5c5d | 22 | force(), |
| ommpy | 2:b7fdc74e5c5d | 23 | torque() |
| ommpy | 2:b7fdc74e5c5d | 24 | { |
| ommpy | 2:b7fdc74e5c5d | 25 | } |
| ommpy | 2:b7fdc74e5c5d | 26 | |
| ommpy | 2:b7fdc74e5c5d | 27 | virtual int serialize(unsigned char *outbuffer) const |
| ommpy | 2:b7fdc74e5c5d | 28 | { |
| ommpy | 2:b7fdc74e5c5d | 29 | int offset = 0; |
| ommpy | 2:b7fdc74e5c5d | 30 | offset += this->force.serialize(outbuffer + offset); |
| ommpy | 2:b7fdc74e5c5d | 31 | offset += this->torque.serialize(outbuffer + offset); |
| ommpy | 2:b7fdc74e5c5d | 32 | return offset; |
| ommpy | 2:b7fdc74e5c5d | 33 | } |
| ommpy | 2:b7fdc74e5c5d | 34 | |
| ommpy | 2:b7fdc74e5c5d | 35 | virtual int deserialize(unsigned char *inbuffer) |
| ommpy | 2:b7fdc74e5c5d | 36 | { |
| ommpy | 2:b7fdc74e5c5d | 37 | int offset = 0; |
| ommpy | 2:b7fdc74e5c5d | 38 | offset += this->force.deserialize(inbuffer + offset); |
| ommpy | 2:b7fdc74e5c5d | 39 | offset += this->torque.deserialize(inbuffer + offset); |
| ommpy | 2:b7fdc74e5c5d | 40 | return offset; |
| ommpy | 2:b7fdc74e5c5d | 41 | } |
| ommpy | 2:b7fdc74e5c5d | 42 | |
| ommpy | 2:b7fdc74e5c5d | 43 | const char * getType(){ return "geometry_msgs/Wrench"; }; |
| ommpy | 2:b7fdc74e5c5d | 44 | const char * getMD5(){ return "4f539cf138b23283b520fd271b567936"; }; |
| ommpy | 2:b7fdc74e5c5d | 45 | |
| ommpy | 2:b7fdc74e5c5d | 46 | }; |
| ommpy | 2:b7fdc74e5c5d | 47 | |
| ommpy | 2:b7fdc74e5c5d | 48 | } |
| ommpy | 2:b7fdc74e5c5d | 49 | #endif |