Esc.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-socrob-ros-pkg/doc_stacks/2014-01-06_11-46-09.555949/socrob-ros-pkg/quads/quad_ros/quad_drivers/quad_esc/msg/Esc.msg */
00002 #ifndef QUAD_ESC_MESSAGE_ESC_H
00003 #define QUAD_ESC_MESSAGE_ESC_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 quad_esc
00020 {
00021 template <class ContainerAllocator>
00022 struct Esc_ {
00023   typedef Esc_<ContainerAllocator> Type;
00024 
00025   Esc_()
00026   : header()
00027   , Front_rpm(0)
00028   , Front_pwm(0)
00029   , Back_rpm(0)
00030   , Back_pwm(0)
00031   , Left_rpm(0)
00032   , Left_pwm(0)
00033   , Right_rpm(0)
00034   , Right_pwm(0)
00035   {
00036   }
00037 
00038   Esc_(const ContainerAllocator& _alloc)
00039   : header(_alloc)
00040   , Front_rpm(0)
00041   , Front_pwm(0)
00042   , Back_rpm(0)
00043   , Back_pwm(0)
00044   , Left_rpm(0)
00045   , Left_pwm(0)
00046   , Right_rpm(0)
00047   , Right_pwm(0)
00048   {
00049   }
00050 
00051   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00052    ::std_msgs::Header_<ContainerAllocator>  header;
00053 
00054   typedef int32_t _Front_rpm_type;
00055   int32_t Front_rpm;
00056 
00057   typedef int32_t _Front_pwm_type;
00058   int32_t Front_pwm;
00059 
00060   typedef int32_t _Back_rpm_type;
00061   int32_t Back_rpm;
00062 
00063   typedef int32_t _Back_pwm_type;
00064   int32_t Back_pwm;
00065 
00066   typedef int32_t _Left_rpm_type;
00067   int32_t Left_rpm;
00068 
00069   typedef int32_t _Left_pwm_type;
00070   int32_t Left_pwm;
00071 
00072   typedef int32_t _Right_rpm_type;
00073   int32_t Right_rpm;
00074 
00075   typedef int32_t _Right_pwm_type;
00076   int32_t Right_pwm;
00077 
00078 
00079   typedef boost::shared_ptr< ::quad_esc::Esc_<ContainerAllocator> > Ptr;
00080   typedef boost::shared_ptr< ::quad_esc::Esc_<ContainerAllocator>  const> ConstPtr;
00081   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00082 }; // struct Esc
00083 typedef  ::quad_esc::Esc_<std::allocator<void> > Esc;
00084 
00085 typedef boost::shared_ptr< ::quad_esc::Esc> EscPtr;
00086 typedef boost::shared_ptr< ::quad_esc::Esc const> EscConstPtr;
00087 
00088 
00089 template<typename ContainerAllocator>
00090 std::ostream& operator<<(std::ostream& s, const  ::quad_esc::Esc_<ContainerAllocator> & v)
00091 {
00092   ros::message_operations::Printer< ::quad_esc::Esc_<ContainerAllocator> >::stream(s, "", v);
00093   return s;}
00094 
00095 } // namespace quad_esc
00096 
00097 namespace ros
00098 {
00099 namespace message_traits
00100 {
00101 template<class ContainerAllocator> struct IsMessage< ::quad_esc::Esc_<ContainerAllocator> > : public TrueType {};
00102 template<class ContainerAllocator> struct IsMessage< ::quad_esc::Esc_<ContainerAllocator>  const> : public TrueType {};
00103 template<class ContainerAllocator>
00104 struct MD5Sum< ::quad_esc::Esc_<ContainerAllocator> > {
00105   static const char* value() 
00106   {
00107     return "9cb57d6c910468ba1ac95507a07f971f";
00108   }
00109 
00110   static const char* value(const  ::quad_esc::Esc_<ContainerAllocator> &) { return value(); } 
00111   static const uint64_t static_value1 = 0x9cb57d6c910468baULL;
00112   static const uint64_t static_value2 = 0x1ac95507a07f971fULL;
00113 };
00114 
00115 template<class ContainerAllocator>
00116 struct DataType< ::quad_esc::Esc_<ContainerAllocator> > {
00117   static const char* value() 
00118   {
00119     return "quad_esc/Esc";
00120   }
00121 
00122   static const char* value(const  ::quad_esc::Esc_<ContainerAllocator> &) { return value(); } 
00123 };
00124 
00125 template<class ContainerAllocator>
00126 struct Definition< ::quad_esc::Esc_<ContainerAllocator> > {
00127   static const char* value() 
00128   {
00129     return "Header header\n\
00130 int32 Front_rpm\n\
00131 int32 Front_pwm\n\
00132 int32 Back_rpm\n\
00133 int32 Back_pwm\n\
00134 int32 Left_rpm\n\
00135 int32 Left_pwm\n\
00136 int32 Right_rpm\n\
00137 int32 Right_pwm\n\
00138 \n\
00139 ================================================================================\n\
00140 MSG: std_msgs/Header\n\
00141 # Standard metadata for higher-level stamped data types.\n\
00142 # This is generally used to communicate timestamped data \n\
00143 # in a particular coordinate frame.\n\
00144 # \n\
00145 # sequence ID: consecutively increasing ID \n\
00146 uint32 seq\n\
00147 #Two-integer timestamp that is expressed as:\n\
00148 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00149 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00150 # time-handling sugar is provided by the client library\n\
00151 time stamp\n\
00152 #Frame this data is associated with\n\
00153 # 0: no frame\n\
00154 # 1: global frame\n\
00155 string frame_id\n\
00156 \n\
00157 ";
00158   }
00159 
00160   static const char* value(const  ::quad_esc::Esc_<ContainerAllocator> &) { return value(); } 
00161 };
00162 
00163 template<class ContainerAllocator> struct HasHeader< ::quad_esc::Esc_<ContainerAllocator> > : public TrueType {};
00164 template<class ContainerAllocator> struct HasHeader< const ::quad_esc::Esc_<ContainerAllocator> > : public TrueType {};
00165 } // namespace message_traits
00166 } // namespace ros
00167 
00168 namespace ros
00169 {
00170 namespace serialization
00171 {
00172 
00173 template<class ContainerAllocator> struct Serializer< ::quad_esc::Esc_<ContainerAllocator> >
00174 {
00175   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00176   {
00177     stream.next(m.header);
00178     stream.next(m.Front_rpm);
00179     stream.next(m.Front_pwm);
00180     stream.next(m.Back_rpm);
00181     stream.next(m.Back_pwm);
00182     stream.next(m.Left_rpm);
00183     stream.next(m.Left_pwm);
00184     stream.next(m.Right_rpm);
00185     stream.next(m.Right_pwm);
00186   }
00187 
00188   ROS_DECLARE_ALLINONE_SERIALIZER;
00189 }; // struct Esc_
00190 } // namespace serialization
00191 } // namespace ros
00192 
00193 namespace ros
00194 {
00195 namespace message_operations
00196 {
00197 
00198 template<class ContainerAllocator>
00199 struct Printer< ::quad_esc::Esc_<ContainerAllocator> >
00200 {
00201   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::quad_esc::Esc_<ContainerAllocator> & v) 
00202   {
00203     s << indent << "header: ";
00204 s << std::endl;
00205     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00206     s << indent << "Front_rpm: ";
00207     Printer<int32_t>::stream(s, indent + "  ", v.Front_rpm);
00208     s << indent << "Front_pwm: ";
00209     Printer<int32_t>::stream(s, indent + "  ", v.Front_pwm);
00210     s << indent << "Back_rpm: ";
00211     Printer<int32_t>::stream(s, indent + "  ", v.Back_rpm);
00212     s << indent << "Back_pwm: ";
00213     Printer<int32_t>::stream(s, indent + "  ", v.Back_pwm);
00214     s << indent << "Left_rpm: ";
00215     Printer<int32_t>::stream(s, indent + "  ", v.Left_rpm);
00216     s << indent << "Left_pwm: ";
00217     Printer<int32_t>::stream(s, indent + "  ", v.Left_pwm);
00218     s << indent << "Right_rpm: ";
00219     Printer<int32_t>::stream(s, indent + "  ", v.Right_rpm);
00220     s << indent << "Right_pwm: ";
00221     Printer<int32_t>::stream(s, indent + "  ", v.Right_pwm);
00222   }
00223 };
00224 
00225 
00226 } // namespace message_operations
00227 } // namespace ros
00228 
00229 #endif // QUAD_ESC_MESSAGE_ESC_H
00230 


quad_esc
Author(s): Henrique
autogenerated on Mon Jan 6 2014 11:48:09