00001
00002 #ifndef ASCTEC_MSGS_MESSAGE_CONTROLLEROUTPUT_H
00003 #define ASCTEC_MSGS_MESSAGE_CONTROLLEROUTPUT_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014
00015 namespace asctec_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct ControllerOutput_ : public ros::Message
00019 {
00020 typedef ControllerOutput_<ContainerAllocator> Type;
00021
00022 ControllerOutput_()
00023 : header()
00024 , nick(0)
00025 , roll(0)
00026 , yaw(0)
00027 , thrust(0)
00028 {
00029 }
00030
00031 ControllerOutput_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , nick(0)
00034 , roll(0)
00035 , yaw(0)
00036 , thrust(0)
00037 {
00038 }
00039
00040 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00041 ::std_msgs::Header_<ContainerAllocator> header;
00042
00043 typedef int32_t _nick_type;
00044 int32_t nick;
00045
00046 typedef int32_t _roll_type;
00047 int32_t roll;
00048
00049 typedef int32_t _yaw_type;
00050 int32_t yaw;
00051
00052 typedef int32_t _thrust_type;
00053 int32_t thrust;
00054
00055
00056 private:
00057 static const char* __s_getDataType_() { return "asctec_msgs/ControllerOutput"; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00060
00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00062
00063 private:
00064 static const char* __s_getMD5Sum_() { return "25c7094035da7c0bf36050e699ef0f7a"; }
00065 public:
00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00067
00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00069
00070 private:
00071 static const char* __s_getMessageDefinition_() { return "# Software License Agreement (BSD License)\n\
00072 #\n\
00073 # Copyright (c) 2010\n\
00074 # William Morris <morris@ee.ccny.cuny.edu>\n\
00075 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00076 # All rights reserved.\n\
00077 #\n\
00078 # Redistribution and use in source and binary forms, with or without\n\
00079 # modification, are permitted provided that the following conditions\n\
00080 # are met:\n\
00081 #\n\
00082 # * Redistributions of source code must retain the above copyright\n\
00083 # notice, this list of conditions and the following disclaimer.\n\
00084 # * Redistributions in binary form must reproduce the above\n\
00085 # copyright notice, this list of conditions and the following\n\
00086 # disclaimer in the documentation and/or other materials provided\n\
00087 # with the distribution.\n\
00088 # * Neither the name of CCNY Robotics Lab nor the names of its\n\
00089 # contributors may be used to endorse or promote products derived\n\
00090 # from this software without specific prior written permission.\n\
00091 #\n\
00092 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00093 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00094 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00095 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00096 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00097 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00098 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00099 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00100 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00101 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00102 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00103 # POSSIBILITY OF SUCH DAMAGE.\n\
00104 \n\
00105 Header header\n\
00106 #attitude controller outputs; 0..200 = -100 .. +100 %\n\
00107 int32 nick\n\
00108 int32 roll\n\
00109 int32 yaw\n\
00110 \n\
00111 #current thrust (height controller output); 0..200 = 0..100%\n\
00112 int32 thrust\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: std_msgs/Header\n\
00116 # Standard metadata for higher-level stamped data types.\n\
00117 # This is generally used to communicate timestamped data \n\
00118 # in a particular coordinate frame.\n\
00119 # \n\
00120 # sequence ID: consecutively increasing ID \n\
00121 uint32 seq\n\
00122 #Two-integer timestamp that is expressed as:\n\
00123 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00124 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00125 # time-handling sugar is provided by the client library\n\
00126 time stamp\n\
00127 #Frame this data is associated with\n\
00128 # 0: no frame\n\
00129 # 1: global frame\n\
00130 string frame_id\n\
00131 \n\
00132 "; }
00133 public:
00134 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00135
00136 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00137
00138 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00139 {
00140 ros::serialization::OStream stream(write_ptr, 1000000000);
00141 ros::serialization::serialize(stream, header);
00142 ros::serialization::serialize(stream, nick);
00143 ros::serialization::serialize(stream, roll);
00144 ros::serialization::serialize(stream, yaw);
00145 ros::serialization::serialize(stream, thrust);
00146 return stream.getData();
00147 }
00148
00149 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00150 {
00151 ros::serialization::IStream stream(read_ptr, 1000000000);
00152 ros::serialization::deserialize(stream, header);
00153 ros::serialization::deserialize(stream, nick);
00154 ros::serialization::deserialize(stream, roll);
00155 ros::serialization::deserialize(stream, yaw);
00156 ros::serialization::deserialize(stream, thrust);
00157 return stream.getData();
00158 }
00159
00160 ROS_DEPRECATED virtual uint32_t serializationLength() const
00161 {
00162 uint32_t size = 0;
00163 size += ros::serialization::serializationLength(header);
00164 size += ros::serialization::serializationLength(nick);
00165 size += ros::serialization::serializationLength(roll);
00166 size += ros::serialization::serializationLength(yaw);
00167 size += ros::serialization::serializationLength(thrust);
00168 return size;
00169 }
00170
00171 typedef boost::shared_ptr< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > Ptr;
00172 typedef boost::shared_ptr< ::asctec_msgs::ControllerOutput_<ContainerAllocator> const> ConstPtr;
00173 };
00174 typedef ::asctec_msgs::ControllerOutput_<std::allocator<void> > ControllerOutput;
00175
00176 typedef boost::shared_ptr< ::asctec_msgs::ControllerOutput> ControllerOutputPtr;
00177 typedef boost::shared_ptr< ::asctec_msgs::ControllerOutput const> ControllerOutputConstPtr;
00178
00179
00180 template<typename ContainerAllocator>
00181 std::ostream& operator<<(std::ostream& s, const ::asctec_msgs::ControllerOutput_<ContainerAllocator> & v)
00182 {
00183 ros::message_operations::Printer< ::asctec_msgs::ControllerOutput_<ContainerAllocator> >::stream(s, "", v);
00184 return s;}
00185
00186 }
00187
00188 namespace ros
00189 {
00190 namespace message_traits
00191 {
00192 template<class ContainerAllocator>
00193 struct MD5Sum< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "25c7094035da7c0bf36050e699ef0f7a";
00197 }
00198
00199 static const char* value(const ::asctec_msgs::ControllerOutput_<ContainerAllocator> &) { return value(); }
00200 static const uint64_t static_value1 = 0x25c7094035da7c0bULL;
00201 static const uint64_t static_value2 = 0xf36050e699ef0f7aULL;
00202 };
00203
00204 template<class ContainerAllocator>
00205 struct DataType< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > {
00206 static const char* value()
00207 {
00208 return "asctec_msgs/ControllerOutput";
00209 }
00210
00211 static const char* value(const ::asctec_msgs::ControllerOutput_<ContainerAllocator> &) { return value(); }
00212 };
00213
00214 template<class ContainerAllocator>
00215 struct Definition< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > {
00216 static const char* value()
00217 {
00218 return "# Software License Agreement (BSD License)\n\
00219 #\n\
00220 # Copyright (c) 2010\n\
00221 # William Morris <morris@ee.ccny.cuny.edu>\n\
00222 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00223 # All rights reserved.\n\
00224 #\n\
00225 # Redistribution and use in source and binary forms, with or without\n\
00226 # modification, are permitted provided that the following conditions\n\
00227 # are met:\n\
00228 #\n\
00229 # * Redistributions of source code must retain the above copyright\n\
00230 # notice, this list of conditions and the following disclaimer.\n\
00231 # * Redistributions in binary form must reproduce the above\n\
00232 # copyright notice, this list of conditions and the following\n\
00233 # disclaimer in the documentation and/or other materials provided\n\
00234 # with the distribution.\n\
00235 # * Neither the name of CCNY Robotics Lab nor the names of its\n\
00236 # contributors may be used to endorse or promote products derived\n\
00237 # from this software without specific prior written permission.\n\
00238 #\n\
00239 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00240 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00241 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00242 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00243 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00244 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00245 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00246 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00247 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00248 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00249 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00250 # POSSIBILITY OF SUCH DAMAGE.\n\
00251 \n\
00252 Header header\n\
00253 #attitude controller outputs; 0..200 = -100 .. +100 %\n\
00254 int32 nick\n\
00255 int32 roll\n\
00256 int32 yaw\n\
00257 \n\
00258 #current thrust (height controller output); 0..200 = 0..100%\n\
00259 int32 thrust\n\
00260 \n\
00261 ================================================================================\n\
00262 MSG: std_msgs/Header\n\
00263 # Standard metadata for higher-level stamped data types.\n\
00264 # This is generally used to communicate timestamped data \n\
00265 # in a particular coordinate frame.\n\
00266 # \n\
00267 # sequence ID: consecutively increasing ID \n\
00268 uint32 seq\n\
00269 #Two-integer timestamp that is expressed as:\n\
00270 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00271 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00272 # time-handling sugar is provided by the client library\n\
00273 time stamp\n\
00274 #Frame this data is associated with\n\
00275 # 0: no frame\n\
00276 # 1: global frame\n\
00277 string frame_id\n\
00278 \n\
00279 ";
00280 }
00281
00282 static const char* value(const ::asctec_msgs::ControllerOutput_<ContainerAllocator> &) { return value(); }
00283 };
00284
00285 template<class ContainerAllocator> struct HasHeader< ::asctec_msgs::ControllerOutput_<ContainerAllocator> > : public TrueType {};
00286 template<class ContainerAllocator> struct HasHeader< const ::asctec_msgs::ControllerOutput_<ContainerAllocator> > : public TrueType {};
00287 }
00288 }
00289
00290 namespace ros
00291 {
00292 namespace serialization
00293 {
00294
00295 template<class ContainerAllocator> struct Serializer< ::asctec_msgs::ControllerOutput_<ContainerAllocator> >
00296 {
00297 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00298 {
00299 stream.next(m.header);
00300 stream.next(m.nick);
00301 stream.next(m.roll);
00302 stream.next(m.yaw);
00303 stream.next(m.thrust);
00304 }
00305
00306 ROS_DECLARE_ALLINONE_SERIALIZER;
00307 };
00308 }
00309 }
00310
00311 namespace ros
00312 {
00313 namespace message_operations
00314 {
00315
00316 template<class ContainerAllocator>
00317 struct Printer< ::asctec_msgs::ControllerOutput_<ContainerAllocator> >
00318 {
00319 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::asctec_msgs::ControllerOutput_<ContainerAllocator> & v)
00320 {
00321 s << indent << "header: ";
00322 s << std::endl;
00323 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00324 s << indent << "nick: ";
00325 Printer<int32_t>::stream(s, indent + " ", v.nick);
00326 s << indent << "roll: ";
00327 Printer<int32_t>::stream(s, indent + " ", v.roll);
00328 s << indent << "yaw: ";
00329 Printer<int32_t>::stream(s, indent + " ", v.yaw);
00330 s << indent << "thrust: ";
00331 Printer<int32_t>::stream(s, indent + " ", v.thrust);
00332 }
00333 };
00334
00335
00336 }
00337 }
00338
00339 #endif // ASCTEC_MSGS_MESSAGE_CONTROLLEROUTPUT_H
00340