00001
00002 #ifndef ASCTEC_MSGS_MESSAGE_CONTROLLEROUTPUT_H
00003 #define ASCTEC_MSGS_MESSAGE_CONTROLLEROUTPUT_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 asctec_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ControllerOutput_ {
00023 typedef ControllerOutput_<ContainerAllocator> Type;
00024
00025 ControllerOutput_()
00026 : header()
00027 , nick(0)
00028 , roll(0)
00029 , yaw(0)
00030 , thrust(0)
00031 {
00032 }
00033
00034 ControllerOutput_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , nick(0)
00037 , roll(0)
00038 , yaw(0)
00039 , thrust(0)
00040 {
00041 }
00042
00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00044 ::std_msgs::Header_<ContainerAllocator> header;
00045
00046 typedef int32_t _nick_type;
00047 int32_t nick;
00048
00049 typedef int32_t _roll_type;
00050 int32_t roll;
00051
00052 typedef int32_t _yaw_type;
00053 int32_t yaw;
00054
00055 typedef int32_t _thrust_type;
00056 int32_t thrust;
00057
00058
00059 typedef boost::shared_ptr< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::asctec_msgs::ControllerOutput_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::asctec_msgs::ControllerOutput_<std::allocator<void> > ControllerOutput;
00064
00065 typedef boost::shared_ptr< ::asctec_msgs::ControllerOutput> ControllerOutputPtr;
00066 typedef boost::shared_ptr< ::asctec_msgs::ControllerOutput const> ControllerOutputConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::asctec_msgs::ControllerOutput_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::asctec_msgs::ControllerOutput_<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< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::ControllerOutput_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "25c7094035da7c0bf36050e699ef0f7a";
00088 }
00089
00090 static const char* value(const ::asctec_msgs::ControllerOutput_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0x25c7094035da7c0bULL;
00092 static const uint64_t static_value2 = 0xf36050e699ef0f7aULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "asctec_msgs/ControllerOutput";
00100 }
00101
00102 static const char* value(const ::asctec_msgs::ControllerOutput_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "# Software License Agreement (BSD License)\n\
00110 #\n\
00111 # Copyright (c) 2010\n\
00112 # William Morris <morris@ee.ccny.cuny.edu>\n\
00113 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00114 # All rights reserved.\n\
00115 #\n\
00116 # Redistribution and use in source and binary forms, with or without\n\
00117 # modification, are permitted provided that the following conditions\n\
00118 # are met:\n\
00119 #\n\
00120 # * Redistributions of source code must retain the above copyright\n\
00121 # notice, this list of conditions and the following disclaimer.\n\
00122 # * Redistributions in binary form must reproduce the above\n\
00123 # copyright notice, this list of conditions and the following\n\
00124 # disclaimer in the documentation and/or other materials provided\n\
00125 # with the distribution.\n\
00126 # * Neither the name of CCNY Robotics Lab nor the names of its\n\
00127 # contributors may be used to endorse or promote products derived\n\
00128 # from this software without specific prior written permission.\n\
00129 #\n\
00130 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00131 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00132 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00133 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00134 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00135 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00136 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00137 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00138 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00139 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00140 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00141 # POSSIBILITY OF SUCH DAMAGE.\n\
00142 \n\
00143 Header header\n\
00144 #attitude controller outputs; 0..200 = -100 .. +100 %\n\
00145 int32 nick\n\
00146 int32 roll\n\
00147 int32 yaw\n\
00148 \n\
00149 #current thrust (height controller output); 0..200 = 0..100%\n\
00150 int32 thrust\n\
00151 \n\
00152 ================================================================================\n\
00153 MSG: std_msgs/Header\n\
00154 # Standard metadata for higher-level stamped data types.\n\
00155 # This is generally used to communicate timestamped data \n\
00156 # in a particular coordinate frame.\n\
00157 # \n\
00158 # sequence ID: consecutively increasing ID \n\
00159 uint32 seq\n\
00160 #Two-integer timestamp that is expressed as:\n\
00161 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00162 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00163 # time-handling sugar is provided by the client library\n\
00164 time stamp\n\
00165 #Frame this data is associated with\n\
00166 # 0: no frame\n\
00167 # 1: global frame\n\
00168 string frame_id\n\
00169 \n\
00170 ";
00171 }
00172
00173 static const char* value(const ::asctec_msgs::ControllerOutput_<ContainerAllocator> &) { return value(); }
00174 };
00175
00176 template<class ContainerAllocator> struct HasHeader< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > : public TrueType {};
00177 template<class ContainerAllocator> struct HasHeader< const ::asctec_msgs::ControllerOutput_<ContainerAllocator> > : public TrueType {};
00178 }
00179 }
00180
00181 namespace ros
00182 {
00183 namespace serialization
00184 {
00185
00186 template<class ContainerAllocator> struct Serializer< ::asctec_msgs::ControllerOutput_<ContainerAllocator> >
00187 {
00188 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00189 {
00190 stream.next(m.header);
00191 stream.next(m.nick);
00192 stream.next(m.roll);
00193 stream.next(m.yaw);
00194 stream.next(m.thrust);
00195 }
00196
00197 ROS_DECLARE_ALLINONE_SERIALIZER;
00198 };
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace message_operations
00205 {
00206
00207 template<class ContainerAllocator>
00208 struct Printer< ::asctec_msgs::ControllerOutput_<ContainerAllocator> >
00209 {
00210 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::asctec_msgs::ControllerOutput_<ContainerAllocator> & v)
00211 {
00212 s << indent << "header: ";
00213 s << std::endl;
00214 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00215 s << indent << "nick: ";
00216 Printer<int32_t>::stream(s, indent + " ", v.nick);
00217 s << indent << "roll: ";
00218 Printer<int32_t>::stream(s, indent + " ", v.roll);
00219 s << indent << "yaw: ";
00220 Printer<int32_t>::stream(s, indent + " ", v.yaw);
00221 s << indent << "thrust: ";
00222 Printer<int32_t>::stream(s, indent + " ", v.thrust);
00223 }
00224 };
00225
00226
00227 }
00228 }
00229
00230 #endif // ASCTEC_MSGS_MESSAGE_CONTROLLEROUTPUT_H
00231