Diagnostic.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-isr-uc-ros-pkg/doc_stacks/2014-01-06_11-21-59.047934/roomba_robot/roomba_500_series/msg/Diagnostic.msg */
00002 #ifndef ROOMBA_500_SERIES_MESSAGE_DIAGNOSTIC_H
00003 #define ROOMBA_500_SERIES_MESSAGE_DIAGNOSTIC_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 roomba_500_series
00020 {
00021 template <class ContainerAllocator>
00022 struct Diagnostic_ {
00023   typedef Diagnostic_<ContainerAllocator> Type;
00024 
00025   Diagnostic_()
00026   : header()
00027   , left_motor_current(0)
00028   , right_motor_current(0)
00029   , main_brush_current(0)
00030   , side_brush_current(0)
00031   , left_motor_overcurrent(false)
00032   , right_motor_overcurrent(false)
00033   , main_brush_overcurrent(false)
00034   , side_brush_overcurrent(false)
00035   , battery_current(0)
00036   , battery_voltage(0)
00037   , battery_temperature(0)
00038   {
00039   }
00040 
00041   Diagnostic_(const ContainerAllocator& _alloc)
00042   : header(_alloc)
00043   , left_motor_current(0)
00044   , right_motor_current(0)
00045   , main_brush_current(0)
00046   , side_brush_current(0)
00047   , left_motor_overcurrent(false)
00048   , right_motor_overcurrent(false)
00049   , main_brush_overcurrent(false)
00050   , side_brush_overcurrent(false)
00051   , battery_current(0)
00052   , battery_voltage(0)
00053   , battery_temperature(0)
00054   {
00055   }
00056 
00057   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00058    ::std_msgs::Header_<ContainerAllocator>  header;
00059 
00060   typedef int16_t _left_motor_current_type;
00061   int16_t left_motor_current;
00062 
00063   typedef int16_t _right_motor_current_type;
00064   int16_t right_motor_current;
00065 
00066   typedef int16_t _main_brush_current_type;
00067   int16_t main_brush_current;
00068 
00069   typedef int16_t _side_brush_current_type;
00070   int16_t side_brush_current;
00071 
00072   typedef uint8_t _left_motor_overcurrent_type;
00073   uint8_t left_motor_overcurrent;
00074 
00075   typedef uint8_t _right_motor_overcurrent_type;
00076   uint8_t right_motor_overcurrent;
00077 
00078   typedef uint8_t _main_brush_overcurrent_type;
00079   uint8_t main_brush_overcurrent;
00080 
00081   typedef uint8_t _side_brush_overcurrent_type;
00082   uint8_t side_brush_overcurrent;
00083 
00084   typedef int16_t _battery_current_type;
00085   int16_t battery_current;
00086 
00087   typedef int16_t _battery_voltage_type;
00088   int16_t battery_voltage;
00089 
00090   typedef int8_t _battery_temperature_type;
00091   int8_t battery_temperature;
00092 
00093 
00094   typedef boost::shared_ptr< ::roomba_500_series::Diagnostic_<ContainerAllocator> > Ptr;
00095   typedef boost::shared_ptr< ::roomba_500_series::Diagnostic_<ContainerAllocator>  const> ConstPtr;
00096   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00097 }; // struct Diagnostic
00098 typedef  ::roomba_500_series::Diagnostic_<std::allocator<void> > Diagnostic;
00099 
00100 typedef boost::shared_ptr< ::roomba_500_series::Diagnostic> DiagnosticPtr;
00101 typedef boost::shared_ptr< ::roomba_500_series::Diagnostic const> DiagnosticConstPtr;
00102 
00103 
00104 template<typename ContainerAllocator>
00105 std::ostream& operator<<(std::ostream& s, const  ::roomba_500_series::Diagnostic_<ContainerAllocator> & v)
00106 {
00107   ros::message_operations::Printer< ::roomba_500_series::Diagnostic_<ContainerAllocator> >::stream(s, "", v);
00108   return s;}
00109 
00110 } // namespace roomba_500_series
00111 
00112 namespace ros
00113 {
00114 namespace message_traits
00115 {
00116 template<class ContainerAllocator> struct IsMessage< ::roomba_500_series::Diagnostic_<ContainerAllocator> > : public TrueType {};
00117 template<class ContainerAllocator> struct IsMessage< ::roomba_500_series::Diagnostic_<ContainerAllocator>  const> : public TrueType {};
00118 template<class ContainerAllocator>
00119 struct MD5Sum< ::roomba_500_series::Diagnostic_<ContainerAllocator> > {
00120   static const char* value() 
00121   {
00122     return "c5ab1a026621d8d87d7316b146c2ca2a";
00123   }
00124 
00125   static const char* value(const  ::roomba_500_series::Diagnostic_<ContainerAllocator> &) { return value(); } 
00126   static const uint64_t static_value1 = 0xc5ab1a026621d8d8ULL;
00127   static const uint64_t static_value2 = 0x7d7316b146c2ca2aULL;
00128 };
00129 
00130 template<class ContainerAllocator>
00131 struct DataType< ::roomba_500_series::Diagnostic_<ContainerAllocator> > {
00132   static const char* value() 
00133   {
00134     return "roomba_500_series/Diagnostic";
00135   }
00136 
00137   static const char* value(const  ::roomba_500_series::Diagnostic_<ContainerAllocator> &) { return value(); } 
00138 };
00139 
00140 template<class ContainerAllocator>
00141 struct Definition< ::roomba_500_series::Diagnostic_<ContainerAllocator> > {
00142   static const char* value() 
00143   {
00144     return "Header header\n\
00145 int16 left_motor_current\n\
00146 int16 right_motor_current\n\
00147 int16 main_brush_current\n\
00148 int16 side_brush_current\n\
00149 bool left_motor_overcurrent\n\
00150 bool right_motor_overcurrent\n\
00151 bool main_brush_overcurrent\n\
00152 bool side_brush_overcurrent\n\
00153 int16 battery_current\n\
00154 int16 battery_voltage\n\
00155 int8 battery_temperature\n\
00156 \n\
00157 ================================================================================\n\
00158 MSG: std_msgs/Header\n\
00159 # Standard metadata for higher-level stamped data types.\n\
00160 # This is generally used to communicate timestamped data \n\
00161 # in a particular coordinate frame.\n\
00162 # \n\
00163 # sequence ID: consecutively increasing ID \n\
00164 uint32 seq\n\
00165 #Two-integer timestamp that is expressed as:\n\
00166 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00167 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00168 # time-handling sugar is provided by the client library\n\
00169 time stamp\n\
00170 #Frame this data is associated with\n\
00171 # 0: no frame\n\
00172 # 1: global frame\n\
00173 string frame_id\n\
00174 \n\
00175 ";
00176   }
00177 
00178   static const char* value(const  ::roomba_500_series::Diagnostic_<ContainerAllocator> &) { return value(); } 
00179 };
00180 
00181 template<class ContainerAllocator> struct HasHeader< ::roomba_500_series::Diagnostic_<ContainerAllocator> > : public TrueType {};
00182 template<class ContainerAllocator> struct HasHeader< const ::roomba_500_series::Diagnostic_<ContainerAllocator> > : public TrueType {};
00183 } // namespace message_traits
00184 } // namespace ros
00185 
00186 namespace ros
00187 {
00188 namespace serialization
00189 {
00190 
00191 template<class ContainerAllocator> struct Serializer< ::roomba_500_series::Diagnostic_<ContainerAllocator> >
00192 {
00193   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00194   {
00195     stream.next(m.header);
00196     stream.next(m.left_motor_current);
00197     stream.next(m.right_motor_current);
00198     stream.next(m.main_brush_current);
00199     stream.next(m.side_brush_current);
00200     stream.next(m.left_motor_overcurrent);
00201     stream.next(m.right_motor_overcurrent);
00202     stream.next(m.main_brush_overcurrent);
00203     stream.next(m.side_brush_overcurrent);
00204     stream.next(m.battery_current);
00205     stream.next(m.battery_voltage);
00206     stream.next(m.battery_temperature);
00207   }
00208 
00209   ROS_DECLARE_ALLINONE_SERIALIZER;
00210 }; // struct Diagnostic_
00211 } // namespace serialization
00212 } // namespace ros
00213 
00214 namespace ros
00215 {
00216 namespace message_operations
00217 {
00218 
00219 template<class ContainerAllocator>
00220 struct Printer< ::roomba_500_series::Diagnostic_<ContainerAllocator> >
00221 {
00222   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::roomba_500_series::Diagnostic_<ContainerAllocator> & v) 
00223   {
00224     s << indent << "header: ";
00225 s << std::endl;
00226     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00227     s << indent << "left_motor_current: ";
00228     Printer<int16_t>::stream(s, indent + "  ", v.left_motor_current);
00229     s << indent << "right_motor_current: ";
00230     Printer<int16_t>::stream(s, indent + "  ", v.right_motor_current);
00231     s << indent << "main_brush_current: ";
00232     Printer<int16_t>::stream(s, indent + "  ", v.main_brush_current);
00233     s << indent << "side_brush_current: ";
00234     Printer<int16_t>::stream(s, indent + "  ", v.side_brush_current);
00235     s << indent << "left_motor_overcurrent: ";
00236     Printer<uint8_t>::stream(s, indent + "  ", v.left_motor_overcurrent);
00237     s << indent << "right_motor_overcurrent: ";
00238     Printer<uint8_t>::stream(s, indent + "  ", v.right_motor_overcurrent);
00239     s << indent << "main_brush_overcurrent: ";
00240     Printer<uint8_t>::stream(s, indent + "  ", v.main_brush_overcurrent);
00241     s << indent << "side_brush_overcurrent: ";
00242     Printer<uint8_t>::stream(s, indent + "  ", v.side_brush_overcurrent);
00243     s << indent << "battery_current: ";
00244     Printer<int16_t>::stream(s, indent + "  ", v.battery_current);
00245     s << indent << "battery_voltage: ";
00246     Printer<int16_t>::stream(s, indent + "  ", v.battery_voltage);
00247     s << indent << "battery_temperature: ";
00248     Printer<int8_t>::stream(s, indent + "  ", v.battery_temperature);
00249   }
00250 };
00251 
00252 
00253 } // namespace message_operations
00254 } // namespace ros
00255 
00256 #endif // ROOMBA_500_SERIES_MESSAGE_DIAGNOSTIC_H
00257 


roomba_500_series
Author(s): Gonçalo Cabrita
autogenerated on Mon Jan 6 2014 11:26:40