Irfan Tito Kurniawan / ros_lib
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TorqueThrust.h Source File

TorqueThrust.h

00001 #ifndef _ROS_mav_msgs_TorqueThrust_h
00002 #define _ROS_mav_msgs_TorqueThrust_h
00003 
00004 #include <stdint.h>
00005 #include <string.h>
00006 #include <stdlib.h>
00007 #include "ros/msg.h"
00008 #include "std_msgs/Header.h"
00009 #include "geometry_msgs/Vector3.h"
00010 
00011 namespace mav_msgs
00012 {
00013 
00014   class TorqueThrust : public ros::Msg
00015   {
00016     public:
00017       typedef std_msgs::Header _header_type;
00018       _header_type header;
00019       typedef geometry_msgs::Vector3 _torque_type;
00020       _torque_type torque;
00021       typedef geometry_msgs::Vector3 _thrust_type;
00022       _thrust_type thrust;
00023 
00024     TorqueThrust():
00025       header(),
00026       torque(),
00027       thrust()
00028     {
00029     }
00030 
00031     virtual int serialize(unsigned char *outbuffer) const
00032     {
00033       int offset = 0;
00034       offset += this->header.serialize(outbuffer + offset);
00035       offset += this->torque.serialize(outbuffer + offset);
00036       offset += this->thrust.serialize(outbuffer + offset);
00037       return offset;
00038     }
00039 
00040     virtual int deserialize(unsigned char *inbuffer)
00041     {
00042       int offset = 0;
00043       offset += this->header.deserialize(inbuffer + offset);
00044       offset += this->torque.deserialize(inbuffer + offset);
00045       offset += this->thrust.deserialize(inbuffer + offset);
00046      return offset;
00047     }
00048 
00049     const char * getType(){ return "mav_msgs/TorqueThrust"; };
00050     const char * getMD5(){ return "81293743ae52683b61e39c21bc0b30db"; };
00051 
00052   };
00053 
00054 }
00055 #endif