complete motor
Dependencies: BufferedSerial motor_sn7544
geometry_msgs/WrenchStamped.h@13:3ac8d2472417, 2019-11-21 (annotated)
- Committer:
- Jeonghoon
- Date:
- Thu Nov 21 11:39:20 2019 +0000
- Revision:
- 13:3ac8d2472417
- Parent:
- 11:2228e8931266
complete motor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jeonghoon | 11:2228e8931266 | 1 | #ifndef _ROS_geometry_msgs_WrenchStamped_h |
Jeonghoon | 11:2228e8931266 | 2 | #define _ROS_geometry_msgs_WrenchStamped_h |
Jeonghoon | 11:2228e8931266 | 3 | |
Jeonghoon | 11:2228e8931266 | 4 | #include <stdint.h> |
Jeonghoon | 11:2228e8931266 | 5 | #include <string.h> |
Jeonghoon | 11:2228e8931266 | 6 | #include <stdlib.h> |
Jeonghoon | 11:2228e8931266 | 7 | #include "ros/msg.h" |
Jeonghoon | 11:2228e8931266 | 8 | #include "std_msgs/Header.h" |
Jeonghoon | 11:2228e8931266 | 9 | #include "geometry_msgs/Wrench.h" |
Jeonghoon | 11:2228e8931266 | 10 | |
Jeonghoon | 11:2228e8931266 | 11 | namespace geometry_msgs |
Jeonghoon | 11:2228e8931266 | 12 | { |
Jeonghoon | 11:2228e8931266 | 13 | |
Jeonghoon | 11:2228e8931266 | 14 | class WrenchStamped : public ros::Msg |
Jeonghoon | 11:2228e8931266 | 15 | { |
Jeonghoon | 11:2228e8931266 | 16 | public: |
Jeonghoon | 11:2228e8931266 | 17 | typedef std_msgs::Header _header_type; |
Jeonghoon | 11:2228e8931266 | 18 | _header_type header; |
Jeonghoon | 11:2228e8931266 | 19 | typedef geometry_msgs::Wrench _wrench_type; |
Jeonghoon | 11:2228e8931266 | 20 | _wrench_type wrench; |
Jeonghoon | 11:2228e8931266 | 21 | |
Jeonghoon | 11:2228e8931266 | 22 | WrenchStamped(): |
Jeonghoon | 11:2228e8931266 | 23 | header(), |
Jeonghoon | 11:2228e8931266 | 24 | wrench() |
Jeonghoon | 11:2228e8931266 | 25 | { |
Jeonghoon | 11:2228e8931266 | 26 | } |
Jeonghoon | 11:2228e8931266 | 27 | |
Jeonghoon | 11:2228e8931266 | 28 | virtual int serialize(unsigned char *outbuffer) const |
Jeonghoon | 11:2228e8931266 | 29 | { |
Jeonghoon | 11:2228e8931266 | 30 | int offset = 0; |
Jeonghoon | 11:2228e8931266 | 31 | offset += this->header.serialize(outbuffer + offset); |
Jeonghoon | 11:2228e8931266 | 32 | offset += this->wrench.serialize(outbuffer + offset); |
Jeonghoon | 11:2228e8931266 | 33 | return offset; |
Jeonghoon | 11:2228e8931266 | 34 | } |
Jeonghoon | 11:2228e8931266 | 35 | |
Jeonghoon | 11:2228e8931266 | 36 | virtual int deserialize(unsigned char *inbuffer) |
Jeonghoon | 11:2228e8931266 | 37 | { |
Jeonghoon | 11:2228e8931266 | 38 | int offset = 0; |
Jeonghoon | 11:2228e8931266 | 39 | offset += this->header.deserialize(inbuffer + offset); |
Jeonghoon | 11:2228e8931266 | 40 | offset += this->wrench.deserialize(inbuffer + offset); |
Jeonghoon | 11:2228e8931266 | 41 | return offset; |
Jeonghoon | 11:2228e8931266 | 42 | } |
Jeonghoon | 11:2228e8931266 | 43 | |
Jeonghoon | 11:2228e8931266 | 44 | const char * getType(){ return "geometry_msgs/WrenchStamped"; }; |
Jeonghoon | 11:2228e8931266 | 45 | const char * getMD5(){ return "d78d3cb249ce23087ade7e7d0c40cfa7"; }; |
Jeonghoon | 11:2228e8931266 | 46 | |
Jeonghoon | 11:2228e8931266 | 47 | }; |
Jeonghoon | 11:2228e8931266 | 48 | |
Jeonghoon | 11:2228e8931266 | 49 | } |
Jeonghoon | 11:2228e8931266 | 50 | #endif |