Go to the documentation of this file.00001
00002 #ifndef TELEKYB_MSGS_MESSAGE_TKMOTORCOMMANDS_H
00003 #define TELEKYB_MSGS_MESSAGE_TKMOTORCOMMANDS_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 TKMotorCommands_ {
00023 typedef TKMotorCommands_<ContainerAllocator> Type;
00024
00025 TKMotorCommands_()
00026 : header()
00027 , force()
00028 {
00029 }
00030
00031 TKMotorCommands_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , force(_alloc)
00034 {
00035 }
00036
00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00038 ::std_msgs::Header_<ContainerAllocator> header;
00039
00040 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _force_type;
00041 std::vector<double, typename ContainerAllocator::template rebind<double>::other > force;
00042
00043
00044 typedef boost::shared_ptr< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::telekyb_msgs::TKMotorCommands_<std::allocator<void> > TKMotorCommands;
00049
00050 typedef boost::shared_ptr< ::telekyb_msgs::TKMotorCommands> TKMotorCommandsPtr;
00051 typedef boost::shared_ptr< ::telekyb_msgs::TKMotorCommands const> TKMotorCommandsConstPtr;
00052
00053
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> & v)
00056 {
00057 ros::message_operations::Printer< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> >::stream(s, "", v);
00058 return s;}
00059
00060 }
00061
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> > {
00070 static const char* value()
00071 {
00072 return "ab0f1d25b62ad7dc5f46804f63d0acf6";
00073 }
00074
00075 static const char* value(const ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> &) { return value(); }
00076 static const uint64_t static_value1 = 0xab0f1d25b62ad7dcULL;
00077 static const uint64_t static_value2 = 0x5f46804f63d0acf6ULL;
00078 };
00079
00080 template<class ContainerAllocator>
00081 struct DataType< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "telekyb_msgs/TKMotorCommands";
00085 }
00086
00087 static const char* value(const ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> &) { return value(); }
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct Definition< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "#\n\
00095 # Copyright 2011 Antonio Franchi and Martin Riedel \n\
00096 #\n\
00097 # This file is part of TeleKyb.\n\
00098 #\n\
00099 # TeleKyb is free software: you can redistribute it and/or modify\n\
00100 # it under the terms of the GNU General Public License as published by\n\
00101 # the Free Software Foundation, either version 3 of the License, or\n\
00102 # (at your option) any later version.\n\
00103 #\n\
00104 # TeleKyb is distributed in the hope that it will be useful,\n\
00105 # but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
00106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
00107 # GNU General Public License for more details.\n\
00108 #\n\
00109 # You should have received a copy of the GNU General Public License\n\
00110 # along with TeleKyb. If not, see <http://www.gnu.org/licenses/>.\n\
00111 \n\
00112 # Contains the propeller desired thrust force\n\
00113 \n\
00114 Header header\n\
00115 float64[] force\n\
00116 \n\
00117 ================================================================================\n\
00118 MSG: std_msgs/Header\n\
00119 # Standard metadata for higher-level stamped data types.\n\
00120 # This is generally used to communicate timestamped data \n\
00121 # in a particular coordinate frame.\n\
00122 # \n\
00123 # sequence ID: consecutively increasing ID \n\
00124 uint32 seq\n\
00125 #Two-integer timestamp that is expressed as:\n\
00126 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00127 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00128 # time-handling sugar is provided by the client library\n\
00129 time stamp\n\
00130 #Frame this data is associated with\n\
00131 # 0: no frame\n\
00132 # 1: global frame\n\
00133 string frame_id\n\
00134 \n\
00135 ";
00136 }
00137
00138 static const char* value(const ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator> struct HasHeader< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct HasHeader< const ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> > : public TrueType {};
00143 }
00144 }
00145
00146 namespace ros
00147 {
00148 namespace serialization
00149 {
00150
00151 template<class ContainerAllocator> struct Serializer< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> >
00152 {
00153 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00154 {
00155 stream.next(m.header);
00156 stream.next(m.force);
00157 }
00158
00159 ROS_DECLARE_ALLINONE_SERIALIZER;
00160 };
00161 }
00162 }
00163
00164 namespace ros
00165 {
00166 namespace message_operations
00167 {
00168
00169 template<class ContainerAllocator>
00170 struct Printer< ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> >
00171 {
00172 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::telekyb_msgs::TKMotorCommands_<ContainerAllocator> & v)
00173 {
00174 s << indent << "header: ";
00175 s << std::endl;
00176 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00177 s << indent << "force[]" << std::endl;
00178 for (size_t i = 0; i < v.force.size(); ++i)
00179 {
00180 s << indent << " force[" << i << "]: ";
00181 Printer<double>::stream(s, indent + " ", v.force[i]);
00182 }
00183 }
00184 };
00185
00186
00187 }
00188 }
00189
00190 #endif // TELEKYB_MSGS_MESSAGE_TKMOTORCOMMANDS_H
00191