CtrlInput.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-asctec_drivers/doc_stacks/2014-01-07_11-02-55.712616/asctec_drivers/asctec_msgs/msg/CtrlInput.msg */
00002 #ifndef ASCTEC_MSGS_MESSAGE_CTRLINPUT_H
00003 #define ASCTEC_MSGS_MESSAGE_CTRLINPUT_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 CtrlInput_ {
00023   typedef CtrlInput_<ContainerAllocator> Type;
00024 
00025   CtrlInput_()
00026   : header()
00027   , pitch(0)
00028   , roll(0)
00029   , yaw(0)
00030   , thrust(0)
00031   , ctrl(0)
00032   , chksum(0)
00033   {
00034   }
00035 
00036   CtrlInput_(const ContainerAllocator& _alloc)
00037   : header(_alloc)
00038   , pitch(0)
00039   , roll(0)
00040   , yaw(0)
00041   , thrust(0)
00042   , ctrl(0)
00043   , chksum(0)
00044   {
00045   }
00046 
00047   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00048    ::std_msgs::Header_<ContainerAllocator>  header;
00049 
00050   typedef int16_t _pitch_type;
00051   int16_t pitch;
00052 
00053   typedef int16_t _roll_type;
00054   int16_t roll;
00055 
00056   typedef int16_t _yaw_type;
00057   int16_t yaw;
00058 
00059   typedef int16_t _thrust_type;
00060   int16_t thrust;
00061 
00062   typedef int16_t _ctrl_type;
00063   int16_t ctrl;
00064 
00065   typedef int16_t _chksum_type;
00066   int16_t chksum;
00067 
00068 
00069   typedef boost::shared_ptr< ::asctec_msgs::CtrlInput_<ContainerAllocator> > Ptr;
00070   typedef boost::shared_ptr< ::asctec_msgs::CtrlInput_<ContainerAllocator>  const> ConstPtr;
00071   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00072 }; // struct CtrlInput
00073 typedef  ::asctec_msgs::CtrlInput_<std::allocator<void> > CtrlInput;
00074 
00075 typedef boost::shared_ptr< ::asctec_msgs::CtrlInput> CtrlInputPtr;
00076 typedef boost::shared_ptr< ::asctec_msgs::CtrlInput const> CtrlInputConstPtr;
00077 
00078 
00079 template<typename ContainerAllocator>
00080 std::ostream& operator<<(std::ostream& s, const  ::asctec_msgs::CtrlInput_<ContainerAllocator> & v)
00081 {
00082   ros::message_operations::Printer< ::asctec_msgs::CtrlInput_<ContainerAllocator> >::stream(s, "", v);
00083   return s;}
00084 
00085 } // namespace asctec_msgs
00086 
00087 namespace ros
00088 {
00089 namespace message_traits
00090 {
00091 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::CtrlInput_<ContainerAllocator> > : public TrueType {};
00092 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::CtrlInput_<ContainerAllocator>  const> : public TrueType {};
00093 template<class ContainerAllocator>
00094 struct MD5Sum< ::asctec_msgs::CtrlInput_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "6a2f3591afa7529005dcc3a5acd6e490";
00098   }
00099 
00100   static const char* value(const  ::asctec_msgs::CtrlInput_<ContainerAllocator> &) { return value(); } 
00101   static const uint64_t static_value1 = 0x6a2f3591afa75290ULL;
00102   static const uint64_t static_value2 = 0x05dcc3a5acd6e490ULL;
00103 };
00104 
00105 template<class ContainerAllocator>
00106 struct DataType< ::asctec_msgs::CtrlInput_<ContainerAllocator> > {
00107   static const char* value() 
00108   {
00109     return "asctec_msgs/CtrlInput";
00110   }
00111 
00112   static const char* value(const  ::asctec_msgs::CtrlInput_<ContainerAllocator> &) { return value(); } 
00113 };
00114 
00115 template<class ContainerAllocator>
00116 struct Definition< ::asctec_msgs::CtrlInput_<ContainerAllocator> > {
00117   static const char* value() 
00118   {
00119     return "# Software License Agreement (BSD License)\n\
00120 #\n\
00121 # Copyright (c) 2010\n\
00122 #  William Morris <morris@ee.ccny.cuny.edu>\n\
00123 #  Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00124 # All rights reserved.\n\
00125 #\n\
00126 # Redistribution and use in source and binary forms, with or without\n\
00127 # modification, are permitted provided that the following conditions\n\
00128 # are met:\n\
00129 #\n\
00130 #  * Redistributions of source code must retain the above copyright\n\
00131 #    notice, this list of conditions and the following disclaimer.\n\
00132 #  * Redistributions in binary form must reproduce the above\n\
00133 #    copyright notice, this list of conditions and the following\n\
00134 #    disclaimer in the documentation and/or other materials provided\n\
00135 #    with the distribution.\n\
00136 #  * Neither the name of CCNY Robotics Lab nor the names of its\n\
00137 #    contributors may be used to endorse or promote products derived\n\
00138 #    from this software without specific prior written permission.\n\
00139 #\n\
00140 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00141 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00142 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00143 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00144 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00145 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00146 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00147 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00148 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00149 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00150 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00151 # POSSIBILITY OF SUCH DAMAGE.\n\
00152 \n\
00153 Header header\n\
00154 # serial command (=Scientific Interface)\n\
00155 # Pitch input: -2047 .. 2047 (0 = neutral)\n\
00156 int16 pitch\n\
00157 # Roll input: -2047 .. 2047 (0 = neutral)\n\
00158 int16 roll\n\
00159 # R/C Stick input: -2047 .. 2047 (0 = neutral)\n\
00160 int16 yaw\n\
00161 # Collective: 0 .. 4095 (= 0 .. 100%)\n\
00162 int16 thrust\n\
00163 # control byte:\n\
00164 #    bit 0: pitch control enabled\n\
00165 #    bit 1: roll control enabled\n\
00166 #    bit 2: yaw control enabled\n\
00167 #    bit 3: thrust control enabled\n\
00168 #  These bits can be used to only enable one axis at a time and thus to control\n\
00169 #  the other axes manually. This usually helps a lot to set up and finetune\n\
00170 #  controllers for each axis seperately.\n\
00171 int16 ctrl\n\
00172 int16 chksum\n\
00173 \n\
00174 ================================================================================\n\
00175 MSG: std_msgs/Header\n\
00176 # Standard metadata for higher-level stamped data types.\n\
00177 # This is generally used to communicate timestamped data \n\
00178 # in a particular coordinate frame.\n\
00179 # \n\
00180 # sequence ID: consecutively increasing ID \n\
00181 uint32 seq\n\
00182 #Two-integer timestamp that is expressed as:\n\
00183 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00184 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00185 # time-handling sugar is provided by the client library\n\
00186 time stamp\n\
00187 #Frame this data is associated with\n\
00188 # 0: no frame\n\
00189 # 1: global frame\n\
00190 string frame_id\n\
00191 \n\
00192 ";
00193   }
00194 
00195   static const char* value(const  ::asctec_msgs::CtrlInput_<ContainerAllocator> &) { return value(); } 
00196 };
00197 
00198 template<class ContainerAllocator> struct HasHeader< ::asctec_msgs::CtrlInput_<ContainerAllocator> > : public TrueType {};
00199 template<class ContainerAllocator> struct HasHeader< const ::asctec_msgs::CtrlInput_<ContainerAllocator> > : public TrueType {};
00200 } // namespace message_traits
00201 } // namespace ros
00202 
00203 namespace ros
00204 {
00205 namespace serialization
00206 {
00207 
00208 template<class ContainerAllocator> struct Serializer< ::asctec_msgs::CtrlInput_<ContainerAllocator> >
00209 {
00210   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00211   {
00212     stream.next(m.header);
00213     stream.next(m.pitch);
00214     stream.next(m.roll);
00215     stream.next(m.yaw);
00216     stream.next(m.thrust);
00217     stream.next(m.ctrl);
00218     stream.next(m.chksum);
00219   }
00220 
00221   ROS_DECLARE_ALLINONE_SERIALIZER;
00222 }; // struct CtrlInput_
00223 } // namespace serialization
00224 } // namespace ros
00225 
00226 namespace ros
00227 {
00228 namespace message_operations
00229 {
00230 
00231 template<class ContainerAllocator>
00232 struct Printer< ::asctec_msgs::CtrlInput_<ContainerAllocator> >
00233 {
00234   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::asctec_msgs::CtrlInput_<ContainerAllocator> & v) 
00235   {
00236     s << indent << "header: ";
00237 s << std::endl;
00238     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00239     s << indent << "pitch: ";
00240     Printer<int16_t>::stream(s, indent + "  ", v.pitch);
00241     s << indent << "roll: ";
00242     Printer<int16_t>::stream(s, indent + "  ", v.roll);
00243     s << indent << "yaw: ";
00244     Printer<int16_t>::stream(s, indent + "  ", v.yaw);
00245     s << indent << "thrust: ";
00246     Printer<int16_t>::stream(s, indent + "  ", v.thrust);
00247     s << indent << "ctrl: ";
00248     Printer<int16_t>::stream(s, indent + "  ", v.ctrl);
00249     s << indent << "chksum: ";
00250     Printer<int16_t>::stream(s, indent + "  ", v.chksum);
00251   }
00252 };
00253 
00254 
00255 } // namespace message_operations
00256 } // namespace ros
00257 
00258 #endif // ASCTEC_MSGS_MESSAGE_CTRLINPUT_H
00259 


asctec_msgs
Author(s): William Morris, Ivan Dryanovski, Steven Bellens, Patrick Bouffard et al.
autogenerated on Tue Jan 7 2014 11:04:07