Go to the documentation of this file.00001
00002 #ifndef TELEKYB_MSGS_MESSAGE_TKTTCOMMANDS_H
00003 #define TELEKYB_MSGS_MESSAGE_TKTTCOMMANDS_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "std_msgs/Header.h"
00018
00019 namespace telekyb_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct TKTTCommands_ {
00023 typedef TKTTCommands_<ContainerAllocator> Type;
00024
00025 TKTTCommands_()
00026 : header()
00027 , roll_torque(0.0)
00028 , pitch_torque(0.0)
00029 , yaw_torque(0.0)
00030 , thrust(0.0)
00031 {
00032 }
00033
00034 TKTTCommands_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , roll_torque(0.0)
00037 , pitch_torque(0.0)
00038 , yaw_torque(0.0)
00039 , thrust(0.0)
00040 {
00041 }
00042
00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00044 ::std_msgs::Header_<ContainerAllocator> header;
00045
00046 typedef double _roll_torque_type;
00047 double roll_torque;
00048
00049 typedef double _pitch_torque_type;
00050 double pitch_torque;
00051
00052 typedef double _yaw_torque_type;
00053 double yaw_torque;
00054
00055 typedef double _thrust_type;
00056 double thrust;
00057
00058
00059 typedef boost::shared_ptr< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::telekyb_msgs::TKTTCommands_<std::allocator<void> > TKTTCommands;
00064
00065 typedef boost::shared_ptr< ::telekyb_msgs::TKTTCommands> TKTTCommandsPtr;
00066 typedef boost::shared_ptr< ::telekyb_msgs::TKTTCommands const> TKTTCommandsConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::telekyb_msgs::TKTTCommands_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> >::stream(s, "", v);
00073 return s;}
00074
00075 }
00076
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "a007c42c65f6be4c44be332d41553dbf";
00088 }
00089
00090 static const char* value(const ::telekyb_msgs::TKTTCommands_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0xa007c42c65f6be4cULL;
00092 static const uint64_t static_value2 = 0x44be332d41553dbfULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "telekyb_msgs/TKTTCommands";
00100 }
00101
00102 static const char* value(const ::telekyb_msgs::TKTTCommands_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "#\n\
00110 # Copyright 2011 Antonio Franchi and Martin Riedel \n\
00111 #\n\
00112 # This file is part of TeleKyb.\n\
00113 #\n\
00114 # TeleKyb is free software: you can redistribute it and/or modify\n\
00115 # it under the terms of the GNU General Public License as published by\n\
00116 # the Free Software Foundation, either version 3 of the License, or\n\
00117 # (at your option) any later version.\n\
00118 #\n\
00119 # TeleKyb is distributed in the hope that it will be useful,\n\
00120 # but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
00121 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
00122 # GNU General Public License for more details.\n\
00123 #\n\
00124 # You should have received a copy of the GNU General Public License\n\
00125 # along with TeleKyb. If not, see <http://www.gnu.org/licenses/>.\n\
00126 \n\
00127 # Contains the torque values for roll, pitch, yaw and the thrust\n\
00128 \n\
00129 Header header\n\
00130 \n\
00131 # Discussion? Change to 64bit?\n\
00132 # Add ranges\n\
00133 float64 roll_torque\n\
00134 float64 pitch_torque\n\
00135 float64 yaw_torque\n\
00136 float64 thrust\n\
00137 \n\
00138 \n\
00139 ================================================================================\n\
00140 MSG: std_msgs/Header\n\
00141 # Standard metadata for higher-level stamped data types.\n\
00142 # This is generally used to communicate timestamped data \n\
00143 # in a particular coordinate frame.\n\
00144 # \n\
00145 # sequence ID: consecutively increasing ID \n\
00146 uint32 seq\n\
00147 #Two-integer timestamp that is expressed as:\n\
00148 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00149 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00150 # time-handling sugar is provided by the client library\n\
00151 time stamp\n\
00152 #Frame this data is associated with\n\
00153 # 0: no frame\n\
00154 # 1: global frame\n\
00155 string frame_id\n\
00156 \n\
00157 ";
00158 }
00159
00160 static const char* value(const ::telekyb_msgs::TKTTCommands_<ContainerAllocator> &) { return value(); }
00161 };
00162
00163 template<class ContainerAllocator> struct HasHeader< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> > : public TrueType {};
00164 template<class ContainerAllocator> struct HasHeader< const ::telekyb_msgs::TKTTCommands_<ContainerAllocator> > : public TrueType {};
00165 }
00166 }
00167
00168 namespace ros
00169 {
00170 namespace serialization
00171 {
00172
00173 template<class ContainerAllocator> struct Serializer< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> >
00174 {
00175 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00176 {
00177 stream.next(m.header);
00178 stream.next(m.roll_torque);
00179 stream.next(m.pitch_torque);
00180 stream.next(m.yaw_torque);
00181 stream.next(m.thrust);
00182 }
00183
00184 ROS_DECLARE_ALLINONE_SERIALIZER;
00185 };
00186 }
00187 }
00188
00189 namespace ros
00190 {
00191 namespace message_operations
00192 {
00193
00194 template<class ContainerAllocator>
00195 struct Printer< ::telekyb_msgs::TKTTCommands_<ContainerAllocator> >
00196 {
00197 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::telekyb_msgs::TKTTCommands_<ContainerAllocator> & v)
00198 {
00199 s << indent << "header: ";
00200 s << std::endl;
00201 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00202 s << indent << "roll_torque: ";
00203 Printer<double>::stream(s, indent + " ", v.roll_torque);
00204 s << indent << "pitch_torque: ";
00205 Printer<double>::stream(s, indent + " ", v.pitch_torque);
00206 s << indent << "yaw_torque: ";
00207 Printer<double>::stream(s, indent + " ", v.yaw_torque);
00208 s << indent << "thrust: ";
00209 Printer<double>::stream(s, indent + " ", v.thrust);
00210 }
00211 };
00212
00213
00214 }
00215 }
00216
00217 #endif // TELEKYB_MSGS_MESSAGE_TKTTCOMMANDS_H
00218