Go to the documentation of this file.00001
00002 #ifndef ROOMBA_500_SERIES_MESSAGE_BRUSHES_H
00003 #define ROOMBA_500_SERIES_MESSAGE_BRUSHES_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 Brushes_ {
00023 typedef Brushes_<ContainerAllocator> Type;
00024
00025 Brushes_()
00026 : header()
00027 , main_brush(false)
00028 , main_brush_pwm(0)
00029 , main_brush_direction(false)
00030 , side_brush(false)
00031 , side_brush_pwm(0)
00032 , side_brush_clockwise(false)
00033 , vacuum(false)
00034 , vacuum_pwm(0)
00035 {
00036 }
00037
00038 Brushes_(const ContainerAllocator& _alloc)
00039 : header(_alloc)
00040 , main_brush(false)
00041 , main_brush_pwm(0)
00042 , main_brush_direction(false)
00043 , side_brush(false)
00044 , side_brush_pwm(0)
00045 , side_brush_clockwise(false)
00046 , vacuum(false)
00047 , vacuum_pwm(0)
00048 {
00049 }
00050
00051 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00052 ::std_msgs::Header_<ContainerAllocator> header;
00053
00054 typedef uint8_t _main_brush_type;
00055 uint8_t main_brush;
00056
00057 typedef int8_t _main_brush_pwm_type;
00058 int8_t main_brush_pwm;
00059
00060 typedef uint8_t _main_brush_direction_type;
00061 uint8_t main_brush_direction;
00062
00063 typedef uint8_t _side_brush_type;
00064 uint8_t side_brush;
00065
00066 typedef int8_t _side_brush_pwm_type;
00067 int8_t side_brush_pwm;
00068
00069 typedef uint8_t _side_brush_clockwise_type;
00070 uint8_t side_brush_clockwise;
00071
00072 typedef uint8_t _vacuum_type;
00073 uint8_t vacuum;
00074
00075 typedef int8_t _vacuum_pwm_type;
00076 int8_t vacuum_pwm;
00077
00078
00079 typedef boost::shared_ptr< ::roomba_500_series::Brushes_<ContainerAllocator> > Ptr;
00080 typedef boost::shared_ptr< ::roomba_500_series::Brushes_<ContainerAllocator> const> ConstPtr;
00081 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00082 };
00083 typedef ::roomba_500_series::Brushes_<std::allocator<void> > Brushes;
00084
00085 typedef boost::shared_ptr< ::roomba_500_series::Brushes> BrushesPtr;
00086 typedef boost::shared_ptr< ::roomba_500_series::Brushes const> BrushesConstPtr;
00087
00088
00089 template<typename ContainerAllocator>
00090 std::ostream& operator<<(std::ostream& s, const ::roomba_500_series::Brushes_<ContainerAllocator> & v)
00091 {
00092 ros::message_operations::Printer< ::roomba_500_series::Brushes_<ContainerAllocator> >::stream(s, "", v);
00093 return s;}
00094
00095 }
00096
00097 namespace ros
00098 {
00099 namespace message_traits
00100 {
00101 template<class ContainerAllocator> struct IsMessage< ::roomba_500_series::Brushes_<ContainerAllocator> > : public TrueType {};
00102 template<class ContainerAllocator> struct IsMessage< ::roomba_500_series::Brushes_<ContainerAllocator> const> : public TrueType {};
00103 template<class ContainerAllocator>
00104 struct MD5Sum< ::roomba_500_series::Brushes_<ContainerAllocator> > {
00105 static const char* value()
00106 {
00107 return "d4c497f02ce3244991df05e0d729013c";
00108 }
00109
00110 static const char* value(const ::roomba_500_series::Brushes_<ContainerAllocator> &) { return value(); }
00111 static const uint64_t static_value1 = 0xd4c497f02ce32449ULL;
00112 static const uint64_t static_value2 = 0x91df05e0d729013cULL;
00113 };
00114
00115 template<class ContainerAllocator>
00116 struct DataType< ::roomba_500_series::Brushes_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "roomba_500_series/Brushes";
00120 }
00121
00122 static const char* value(const ::roomba_500_series::Brushes_<ContainerAllocator> &) { return value(); }
00123 };
00124
00125 template<class ContainerAllocator>
00126 struct Definition< ::roomba_500_series::Brushes_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "Header header\n\
00130 bool main_brush\n\
00131 int8 main_brush_pwm\n\
00132 bool main_brush_direction\n\
00133 bool side_brush\n\
00134 int8 side_brush_pwm\n\
00135 bool side_brush_clockwise\n\
00136 bool vacuum\n\
00137 int8 vacuum_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 ::roomba_500_series::Brushes_<ContainerAllocator> &) { return value(); }
00161 };
00162
00163 template<class ContainerAllocator> struct HasHeader< ::roomba_500_series::Brushes_<ContainerAllocator> > : public TrueType {};
00164 template<class ContainerAllocator> struct HasHeader< const ::roomba_500_series::Brushes_<ContainerAllocator> > : public TrueType {};
00165 }
00166 }
00167
00168 namespace ros
00169 {
00170 namespace serialization
00171 {
00172
00173 template<class ContainerAllocator> struct Serializer< ::roomba_500_series::Brushes_<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.main_brush);
00179 stream.next(m.main_brush_pwm);
00180 stream.next(m.main_brush_direction);
00181 stream.next(m.side_brush);
00182 stream.next(m.side_brush_pwm);
00183 stream.next(m.side_brush_clockwise);
00184 stream.next(m.vacuum);
00185 stream.next(m.vacuum_pwm);
00186 }
00187
00188 ROS_DECLARE_ALLINONE_SERIALIZER;
00189 };
00190 }
00191 }
00192
00193 namespace ros
00194 {
00195 namespace message_operations
00196 {
00197
00198 template<class ContainerAllocator>
00199 struct Printer< ::roomba_500_series::Brushes_<ContainerAllocator> >
00200 {
00201 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::roomba_500_series::Brushes_<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 << "main_brush: ";
00207 Printer<uint8_t>::stream(s, indent + " ", v.main_brush);
00208 s << indent << "main_brush_pwm: ";
00209 Printer<int8_t>::stream(s, indent + " ", v.main_brush_pwm);
00210 s << indent << "main_brush_direction: ";
00211 Printer<uint8_t>::stream(s, indent + " ", v.main_brush_direction);
00212 s << indent << "side_brush: ";
00213 Printer<uint8_t>::stream(s, indent + " ", v.side_brush);
00214 s << indent << "side_brush_pwm: ";
00215 Printer<int8_t>::stream(s, indent + " ", v.side_brush_pwm);
00216 s << indent << "side_brush_clockwise: ";
00217 Printer<uint8_t>::stream(s, indent + " ", v.side_brush_clockwise);
00218 s << indent << "vacuum: ";
00219 Printer<uint8_t>::stream(s, indent + " ", v.vacuum);
00220 s << indent << "vacuum_pwm: ";
00221 Printer<int8_t>::stream(s, indent + " ", v.vacuum_pwm);
00222 }
00223 };
00224
00225
00226 }
00227 }
00228
00229 #endif // ROOMBA_500_SERIES_MESSAGE_BRUSHES_H
00230