Go to the documentation of this file.00001
00002 #ifndef IROBOT_CREATE_2_1_SERVICE_LEDS_H
00003 #define IROBOT_CREATE_2_1_SERVICE_LEDS_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 "ros/service_traits.h"
00018
00019
00020
00021
00022 namespace irobot_create_2_1
00023 {
00024 template <class ContainerAllocator>
00025 struct LedsRequest_ {
00026 typedef LedsRequest_<ContainerAllocator> Type;
00027
00028 LedsRequest_()
00029 : advance(false)
00030 , play(false)
00031 , color(0)
00032 , intensity(0)
00033 {
00034 }
00035
00036 LedsRequest_(const ContainerAllocator& _alloc)
00037 : advance(false)
00038 , play(false)
00039 , color(0)
00040 , intensity(0)
00041 {
00042 }
00043
00044 typedef uint8_t _advance_type;
00045 uint8_t advance;
00046
00047 typedef uint8_t _play_type;
00048 uint8_t play;
00049
00050 typedef uint8_t _color_type;
00051 uint8_t color;
00052
00053 typedef uint8_t _intensity_type;
00054 uint8_t intensity;
00055
00056
00057 typedef boost::shared_ptr< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> > Ptr;
00058 typedef boost::shared_ptr< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> const> ConstPtr;
00059 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00060 };
00061 typedef ::irobot_create_2_1::LedsRequest_<std::allocator<void> > LedsRequest;
00062
00063 typedef boost::shared_ptr< ::irobot_create_2_1::LedsRequest> LedsRequestPtr;
00064 typedef boost::shared_ptr< ::irobot_create_2_1::LedsRequest const> LedsRequestConstPtr;
00065
00066
00067
00068 template <class ContainerAllocator>
00069 struct LedsResponse_ {
00070 typedef LedsResponse_<ContainerAllocator> Type;
00071
00072 LedsResponse_()
00073 : success(false)
00074 {
00075 }
00076
00077 LedsResponse_(const ContainerAllocator& _alloc)
00078 : success(false)
00079 {
00080 }
00081
00082 typedef uint8_t _success_type;
00083 uint8_t success;
00084
00085
00086 typedef boost::shared_ptr< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> > Ptr;
00087 typedef boost::shared_ptr< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> const> ConstPtr;
00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00089 };
00090 typedef ::irobot_create_2_1::LedsResponse_<std::allocator<void> > LedsResponse;
00091
00092 typedef boost::shared_ptr< ::irobot_create_2_1::LedsResponse> LedsResponsePtr;
00093 typedef boost::shared_ptr< ::irobot_create_2_1::LedsResponse const> LedsResponseConstPtr;
00094
00095
00096 struct Leds
00097 {
00098
00099 typedef LedsRequest Request;
00100 typedef LedsResponse Response;
00101 Request request;
00102 Response response;
00103
00104 typedef Request RequestType;
00105 typedef Response ResponseType;
00106 };
00107 }
00108
00109 namespace ros
00110 {
00111 namespace message_traits
00112 {
00113 template<class ContainerAllocator> struct IsMessage< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> > : public TrueType {};
00114 template<class ContainerAllocator> struct IsMessage< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> const> : public TrueType {};
00115 template<class ContainerAllocator>
00116 struct MD5Sum< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "df36903a5aadf6b7eb388fa7522028da";
00120 }
00121
00122 static const char* value(const ::irobot_create_2_1::LedsRequest_<ContainerAllocator> &) { return value(); }
00123 static const uint64_t static_value1 = 0xdf36903a5aadf6b7ULL;
00124 static const uint64_t static_value2 = 0xeb388fa7522028daULL;
00125 };
00126
00127 template<class ContainerAllocator>
00128 struct DataType< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "irobot_create_2_1/LedsRequest";
00132 }
00133
00134 static const char* value(const ::irobot_create_2_1::LedsRequest_<ContainerAllocator> &) { return value(); }
00135 };
00136
00137 template<class ContainerAllocator>
00138 struct Definition< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> > {
00139 static const char* value()
00140 {
00141 return "bool advance\n\
00142 bool play\n\
00143 uint8 color\n\
00144 uint8 intensity\n\
00145 \n\
00146 ";
00147 }
00148
00149 static const char* value(const ::irobot_create_2_1::LedsRequest_<ContainerAllocator> &) { return value(); }
00150 };
00151
00152 template<class ContainerAllocator> struct IsFixedSize< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> > : public TrueType {};
00153 }
00154 }
00155
00156
00157 namespace ros
00158 {
00159 namespace message_traits
00160 {
00161 template<class ContainerAllocator> struct IsMessage< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> > : public TrueType {};
00162 template<class ContainerAllocator> struct IsMessage< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> const> : public TrueType {};
00163 template<class ContainerAllocator>
00164 struct MD5Sum< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "358e233cde0c8a8bcfea4ce193f8fc15";
00168 }
00169
00170 static const char* value(const ::irobot_create_2_1::LedsResponse_<ContainerAllocator> &) { return value(); }
00171 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL;
00172 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL;
00173 };
00174
00175 template<class ContainerAllocator>
00176 struct DataType< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> > {
00177 static const char* value()
00178 {
00179 return "irobot_create_2_1/LedsResponse";
00180 }
00181
00182 static const char* value(const ::irobot_create_2_1::LedsResponse_<ContainerAllocator> &) { return value(); }
00183 };
00184
00185 template<class ContainerAllocator>
00186 struct Definition< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> > {
00187 static const char* value()
00188 {
00189 return "bool success\n\
00190 \n\
00191 \n\
00192 ";
00193 }
00194
00195 static const char* value(const ::irobot_create_2_1::LedsResponse_<ContainerAllocator> &) { return value(); }
00196 };
00197
00198 template<class ContainerAllocator> struct IsFixedSize< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> > : public TrueType {};
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace serialization
00205 {
00206
00207 template<class ContainerAllocator> struct Serializer< ::irobot_create_2_1::LedsRequest_<ContainerAllocator> >
00208 {
00209 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00210 {
00211 stream.next(m.advance);
00212 stream.next(m.play);
00213 stream.next(m.color);
00214 stream.next(m.intensity);
00215 }
00216
00217 ROS_DECLARE_ALLINONE_SERIALIZER;
00218 };
00219 }
00220 }
00221
00222
00223 namespace ros
00224 {
00225 namespace serialization
00226 {
00227
00228 template<class ContainerAllocator> struct Serializer< ::irobot_create_2_1::LedsResponse_<ContainerAllocator> >
00229 {
00230 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00231 {
00232 stream.next(m.success);
00233 }
00234
00235 ROS_DECLARE_ALLINONE_SERIALIZER;
00236 };
00237 }
00238 }
00239
00240 namespace ros
00241 {
00242 namespace service_traits
00243 {
00244 template<>
00245 struct MD5Sum<irobot_create_2_1::Leds> {
00246 static const char* value()
00247 {
00248 return "926a8fe91d451f4d4bb099ec9e86ff14";
00249 }
00250
00251 static const char* value(const irobot_create_2_1::Leds&) { return value(); }
00252 };
00253
00254 template<>
00255 struct DataType<irobot_create_2_1::Leds> {
00256 static const char* value()
00257 {
00258 return "irobot_create_2_1/Leds";
00259 }
00260
00261 static const char* value(const irobot_create_2_1::Leds&) { return value(); }
00262 };
00263
00264 template<class ContainerAllocator>
00265 struct MD5Sum<irobot_create_2_1::LedsRequest_<ContainerAllocator> > {
00266 static const char* value()
00267 {
00268 return "926a8fe91d451f4d4bb099ec9e86ff14";
00269 }
00270
00271 static const char* value(const irobot_create_2_1::LedsRequest_<ContainerAllocator> &) { return value(); }
00272 };
00273
00274 template<class ContainerAllocator>
00275 struct DataType<irobot_create_2_1::LedsRequest_<ContainerAllocator> > {
00276 static const char* value()
00277 {
00278 return "irobot_create_2_1/Leds";
00279 }
00280
00281 static const char* value(const irobot_create_2_1::LedsRequest_<ContainerAllocator> &) { return value(); }
00282 };
00283
00284 template<class ContainerAllocator>
00285 struct MD5Sum<irobot_create_2_1::LedsResponse_<ContainerAllocator> > {
00286 static const char* value()
00287 {
00288 return "926a8fe91d451f4d4bb099ec9e86ff14";
00289 }
00290
00291 static const char* value(const irobot_create_2_1::LedsResponse_<ContainerAllocator> &) { return value(); }
00292 };
00293
00294 template<class ContainerAllocator>
00295 struct DataType<irobot_create_2_1::LedsResponse_<ContainerAllocator> > {
00296 static const char* value()
00297 {
00298 return "irobot_create_2_1/Leds";
00299 }
00300
00301 static const char* value(const irobot_create_2_1::LedsResponse_<ContainerAllocator> &) { return value(); }
00302 };
00303
00304 }
00305 }
00306
00307 #endif // IROBOT_CREATE_2_1_SERVICE_LEDS_H
00308