MotorStatus.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-tu-darmstadt-ros-pkg/doc_stacks/2013-07-15_16-41-51.015503/hector_quadrotor/hector_uav_msgs/msg/MotorStatus.msg */
00002 #ifndef HECTOR_UAV_MSGS_MESSAGE_MOTORSTATUS_H
00003 #define HECTOR_UAV_MSGS_MESSAGE_MOTORSTATUS_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 hector_uav_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct MotorStatus_ {
00023   typedef MotorStatus_<ContainerAllocator> Type;
00024 
00025   MotorStatus_()
00026   : header()
00027   , on(false)
00028   , running(false)
00029   , voltage()
00030   , frequency()
00031   , current()
00032   {
00033   }
00034 
00035   MotorStatus_(const ContainerAllocator& _alloc)
00036   : header(_alloc)
00037   , on(false)
00038   , running(false)
00039   , voltage(_alloc)
00040   , frequency(_alloc)
00041   , current(_alloc)
00042   {
00043   }
00044 
00045   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00046    ::std_msgs::Header_<ContainerAllocator>  header;
00047 
00048   typedef uint8_t _on_type;
00049   uint8_t on;
00050 
00051   typedef uint8_t _running_type;
00052   uint8_t running;
00053 
00054   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _voltage_type;
00055   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  voltage;
00056 
00057   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _frequency_type;
00058   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  frequency;
00059 
00060   typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other >  _current_type;
00061   std::vector<float, typename ContainerAllocator::template rebind<float>::other >  current;
00062 
00063 
00064   typedef boost::shared_ptr< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> > Ptr;
00065   typedef boost::shared_ptr< ::hector_uav_msgs::MotorStatus_<ContainerAllocator>  const> ConstPtr;
00066   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 }; // struct MotorStatus
00068 typedef  ::hector_uav_msgs::MotorStatus_<std::allocator<void> > MotorStatus;
00069 
00070 typedef boost::shared_ptr< ::hector_uav_msgs::MotorStatus> MotorStatusPtr;
00071 typedef boost::shared_ptr< ::hector_uav_msgs::MotorStatus const> MotorStatusConstPtr;
00072 
00073 
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const  ::hector_uav_msgs::MotorStatus_<ContainerAllocator> & v)
00076 {
00077   ros::message_operations::Printer< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> >::stream(s, "", v);
00078   return s;}
00079 
00080 } // namespace hector_uav_msgs
00081 
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::MotorStatus_<ContainerAllocator>  const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> > {
00090   static const char* value() 
00091   {
00092     return "d771017cd812838d32da48fbe32b0928";
00093   }
00094 
00095   static const char* value(const  ::hector_uav_msgs::MotorStatus_<ContainerAllocator> &) { return value(); } 
00096   static const uint64_t static_value1 = 0xd771017cd812838dULL;
00097   static const uint64_t static_value2 = 0x32da48fbe32b0928ULL;
00098 };
00099 
00100 template<class ContainerAllocator>
00101 struct DataType< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> > {
00102   static const char* value() 
00103   {
00104     return "hector_uav_msgs/MotorStatus";
00105   }
00106 
00107   static const char* value(const  ::hector_uav_msgs::MotorStatus_<ContainerAllocator> &) { return value(); } 
00108 };
00109 
00110 template<class ContainerAllocator>
00111 struct Definition< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> > {
00112   static const char* value() 
00113   {
00114     return "Header header\n\
00115 bool on\n\
00116 bool running\n\
00117 float32[] voltage\n\
00118 float32[] frequency\n\
00119 float32[] current\n\
00120 \n\
00121 \n\
00122 ================================================================================\n\
00123 MSG: std_msgs/Header\n\
00124 # Standard metadata for higher-level stamped data types.\n\
00125 # This is generally used to communicate timestamped data \n\
00126 # in a particular coordinate frame.\n\
00127 # \n\
00128 # sequence ID: consecutively increasing ID \n\
00129 uint32 seq\n\
00130 #Two-integer timestamp that is expressed as:\n\
00131 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00132 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00133 # time-handling sugar is provided by the client library\n\
00134 time stamp\n\
00135 #Frame this data is associated with\n\
00136 # 0: no frame\n\
00137 # 1: global frame\n\
00138 string frame_id\n\
00139 \n\
00140 ";
00141   }
00142 
00143   static const char* value(const  ::hector_uav_msgs::MotorStatus_<ContainerAllocator> &) { return value(); } 
00144 };
00145 
00146 template<class ContainerAllocator> struct HasHeader< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> > : public TrueType {};
00147 template<class ContainerAllocator> struct HasHeader< const ::hector_uav_msgs::MotorStatus_<ContainerAllocator> > : public TrueType {};
00148 } // namespace message_traits
00149 } // namespace ros
00150 
00151 namespace ros
00152 {
00153 namespace serialization
00154 {
00155 
00156 template<class ContainerAllocator> struct Serializer< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> >
00157 {
00158   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00159   {
00160     stream.next(m.header);
00161     stream.next(m.on);
00162     stream.next(m.running);
00163     stream.next(m.voltage);
00164     stream.next(m.frequency);
00165     stream.next(m.current);
00166   }
00167 
00168   ROS_DECLARE_ALLINONE_SERIALIZER;
00169 }; // struct MotorStatus_
00170 } // namespace serialization
00171 } // namespace ros
00172 
00173 namespace ros
00174 {
00175 namespace message_operations
00176 {
00177 
00178 template<class ContainerAllocator>
00179 struct Printer< ::hector_uav_msgs::MotorStatus_<ContainerAllocator> >
00180 {
00181   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::hector_uav_msgs::MotorStatus_<ContainerAllocator> & v) 
00182   {
00183     s << indent << "header: ";
00184 s << std::endl;
00185     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00186     s << indent << "on: ";
00187     Printer<uint8_t>::stream(s, indent + "  ", v.on);
00188     s << indent << "running: ";
00189     Printer<uint8_t>::stream(s, indent + "  ", v.running);
00190     s << indent << "voltage[]" << std::endl;
00191     for (size_t i = 0; i < v.voltage.size(); ++i)
00192     {
00193       s << indent << "  voltage[" << i << "]: ";
00194       Printer<float>::stream(s, indent + "  ", v.voltage[i]);
00195     }
00196     s << indent << "frequency[]" << std::endl;
00197     for (size_t i = 0; i < v.frequency.size(); ++i)
00198     {
00199       s << indent << "  frequency[" << i << "]: ";
00200       Printer<float>::stream(s, indent + "  ", v.frequency[i]);
00201     }
00202     s << indent << "current[]" << std::endl;
00203     for (size_t i = 0; i < v.current.size(); ++i)
00204     {
00205       s << indent << "  current[" << i << "]: ";
00206       Printer<float>::stream(s, indent + "  ", v.current[i]);
00207     }
00208   }
00209 };
00210 
00211 
00212 } // namespace message_operations
00213 } // namespace ros
00214 
00215 #endif // HECTOR_UAV_MSGS_MESSAGE_MOTORSTATUS_H
00216 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


hector_uav_msgs
Author(s): Johannes Meyer
autogenerated on Mon Jul 15 2013 16:48:08