complete motor

Dependencies:   BufferedSerial motor_sn7544

Committer:
Jeonghoon
Date:
Thu Jul 11 13:30:27 2019 +0000
Revision:
11:2228e8931266
190711; ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jeonghoon 11:2228e8931266 1 #ifndef _ROS_geometry_msgs_Twist_h
Jeonghoon 11:2228e8931266 2 #define _ROS_geometry_msgs_Twist_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 "geometry_msgs/Vector3.h"
Jeonghoon 11:2228e8931266 9
Jeonghoon 11:2228e8931266 10 namespace geometry_msgs
Jeonghoon 11:2228e8931266 11 {
Jeonghoon 11:2228e8931266 12
Jeonghoon 11:2228e8931266 13 class Twist : public ros::Msg
Jeonghoon 11:2228e8931266 14 {
Jeonghoon 11:2228e8931266 15 public:
Jeonghoon 11:2228e8931266 16 typedef geometry_msgs::Vector3 _linear_type;
Jeonghoon 11:2228e8931266 17 _linear_type linear;
Jeonghoon 11:2228e8931266 18 typedef geometry_msgs::Vector3 _angular_type;
Jeonghoon 11:2228e8931266 19 _angular_type angular;
Jeonghoon 11:2228e8931266 20
Jeonghoon 11:2228e8931266 21 Twist():
Jeonghoon 11:2228e8931266 22 linear(),
Jeonghoon 11:2228e8931266 23 angular()
Jeonghoon 11:2228e8931266 24 {
Jeonghoon 11:2228e8931266 25 }
Jeonghoon 11:2228e8931266 26
Jeonghoon 11:2228e8931266 27 virtual int serialize(unsigned char *outbuffer) const
Jeonghoon 11:2228e8931266 28 {
Jeonghoon 11:2228e8931266 29 int offset = 0;
Jeonghoon 11:2228e8931266 30 offset += this->linear.serialize(outbuffer + offset);
Jeonghoon 11:2228e8931266 31 offset += this->angular.serialize(outbuffer + offset);
Jeonghoon 11:2228e8931266 32 return offset;
Jeonghoon 11:2228e8931266 33 }
Jeonghoon 11:2228e8931266 34
Jeonghoon 11:2228e8931266 35 virtual int deserialize(unsigned char *inbuffer)
Jeonghoon 11:2228e8931266 36 {
Jeonghoon 11:2228e8931266 37 int offset = 0;
Jeonghoon 11:2228e8931266 38 offset += this->linear.deserialize(inbuffer + offset);
Jeonghoon 11:2228e8931266 39 offset += this->angular.deserialize(inbuffer + offset);
Jeonghoon 11:2228e8931266 40 return offset;
Jeonghoon 11:2228e8931266 41 }
Jeonghoon 11:2228e8931266 42
Jeonghoon 11:2228e8931266 43 const char * getType(){ return "geometry_msgs/Twist"; };
Jeonghoon 11:2228e8931266 44 const char * getMD5(){ return "9f195f881246fdfa2798d1d3eebca84a"; };
Jeonghoon 11:2228e8931266 45
Jeonghoon 11:2228e8931266 46 };
Jeonghoon 11:2228e8931266 47
Jeonghoon 11:2228e8931266 48 }
Jeonghoon 11:2228e8931266 49 #endif