00001
00002 #ifndef IROBOT_CREATE_2_1_SERVICE_TURN_H
00003 #define IROBOT_CREATE_2_1_SERVICE_TURN_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017
00018 namespace irobot_create_2_1
00019 {
00020 template <class ContainerAllocator>
00021 struct TurnRequest_ : public ros::Message
00022 {
00023 typedef TurnRequest_<ContainerAllocator> Type;
00024
00025 TurnRequest_()
00026 : clear(false)
00027 , turn(0)
00028 {
00029 }
00030
00031 TurnRequest_(const ContainerAllocator& _alloc)
00032 : clear(false)
00033 , turn(0)
00034 {
00035 }
00036
00037 typedef uint8_t _clear_type;
00038 uint8_t clear;
00039
00040 typedef int16_t _turn_type;
00041 int16_t turn;
00042
00043
00044 private:
00045 static const char* __s_getDataType_() { return "irobot_create_2_1/TurnRequest"; }
00046 public:
00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00048
00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00050
00051 private:
00052 static const char* __s_getMD5Sum_() { return "d7233ced7da7131cf3836ae5864297ef"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00055
00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00057
00058 private:
00059 static const char* __s_getServerMD5Sum_() { return "f28782ca6cac906741095df052f0ccc1"; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00062
00063 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00064
00065 private:
00066 static const char* __s_getMessageDefinition_() { return "bool clear\n\
00067 int16 turn\n\
00068 \n\
00069 "; }
00070 public:
00071 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00072
00073 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00074
00075 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00076 {
00077 ros::serialization::OStream stream(write_ptr, 1000000000);
00078 ros::serialization::serialize(stream, clear);
00079 ros::serialization::serialize(stream, turn);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00084 {
00085 ros::serialization::IStream stream(read_ptr, 1000000000);
00086 ros::serialization::deserialize(stream, clear);
00087 ros::serialization::deserialize(stream, turn);
00088 return stream.getData();
00089 }
00090
00091 ROS_DEPRECATED virtual uint32_t serializationLength() const
00092 {
00093 uint32_t size = 0;
00094 size += ros::serialization::serializationLength(clear);
00095 size += ros::serialization::serializationLength(turn);
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::irobot_create_2_1::TurnRequest_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::irobot_create_2_1::TurnRequest_<ContainerAllocator> const> ConstPtr;
00101 };
00102 typedef ::irobot_create_2_1::TurnRequest_<std::allocator<void> > TurnRequest;
00103
00104 typedef boost::shared_ptr< ::irobot_create_2_1::TurnRequest> TurnRequestPtr;
00105 typedef boost::shared_ptr< ::irobot_create_2_1::TurnRequest const> TurnRequestConstPtr;
00106
00107
00108 template <class ContainerAllocator>
00109 struct TurnResponse_ : public ros::Message
00110 {
00111 typedef TurnResponse_<ContainerAllocator> Type;
00112
00113 TurnResponse_()
00114 : success(false)
00115 {
00116 }
00117
00118 TurnResponse_(const ContainerAllocator& _alloc)
00119 : success(false)
00120 {
00121 }
00122
00123 typedef uint8_t _success_type;
00124 uint8_t success;
00125
00126
00127 private:
00128 static const char* __s_getDataType_() { return "irobot_create_2_1/TurnResponse"; }
00129 public:
00130 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00131
00132 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00133
00134 private:
00135 static const char* __s_getMD5Sum_() { return "358e233cde0c8a8bcfea4ce193f8fc15"; }
00136 public:
00137 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00138
00139 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00140
00141 private:
00142 static const char* __s_getServerMD5Sum_() { return "f28782ca6cac906741095df052f0ccc1"; }
00143 public:
00144 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00145
00146 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00147
00148 private:
00149 static const char* __s_getMessageDefinition_() { return "bool success\n\
00150 \n\
00151 \n\
00152 "; }
00153 public:
00154 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00155
00156 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00157
00158 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00159 {
00160 ros::serialization::OStream stream(write_ptr, 1000000000);
00161 ros::serialization::serialize(stream, success);
00162 return stream.getData();
00163 }
00164
00165 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00166 {
00167 ros::serialization::IStream stream(read_ptr, 1000000000);
00168 ros::serialization::deserialize(stream, success);
00169 return stream.getData();
00170 }
00171
00172 ROS_DEPRECATED virtual uint32_t serializationLength() const
00173 {
00174 uint32_t size = 0;
00175 size += ros::serialization::serializationLength(success);
00176 return size;
00177 }
00178
00179 typedef boost::shared_ptr< ::irobot_create_2_1::TurnResponse_<ContainerAllocator> > Ptr;
00180 typedef boost::shared_ptr< ::irobot_create_2_1::TurnResponse_<ContainerAllocator> const> ConstPtr;
00181 };
00182 typedef ::irobot_create_2_1::TurnResponse_<std::allocator<void> > TurnResponse;
00183
00184 typedef boost::shared_ptr< ::irobot_create_2_1::TurnResponse> TurnResponsePtr;
00185 typedef boost::shared_ptr< ::irobot_create_2_1::TurnResponse const> TurnResponseConstPtr;
00186
00187 struct Turn
00188 {
00189
00190 typedef TurnRequest Request;
00191 typedef TurnResponse Response;
00192 Request request;
00193 Response response;
00194
00195 typedef Request RequestType;
00196 typedef Response ResponseType;
00197 };
00198 }
00199
00200 namespace ros
00201 {
00202 namespace message_traits
00203 {
00204 template<class ContainerAllocator>
00205 struct MD5Sum< ::irobot_create_2_1::TurnRequest_<ContainerAllocator> > {
00206 static const char* value()
00207 {
00208 return "d7233ced7da7131cf3836ae5864297ef";
00209 }
00210
00211 static const char* value(const ::irobot_create_2_1::TurnRequest_<ContainerAllocator> &) { return value(); }
00212 static const uint64_t static_value1 = 0xd7233ced7da7131cULL;
00213 static const uint64_t static_value2 = 0xf3836ae5864297efULL;
00214 };
00215
00216 template<class ContainerAllocator>
00217 struct DataType< ::irobot_create_2_1::TurnRequest_<ContainerAllocator> > {
00218 static const char* value()
00219 {
00220 return "irobot_create_2_1/TurnRequest";
00221 }
00222
00223 static const char* value(const ::irobot_create_2_1::TurnRequest_<ContainerAllocator> &) { return value(); }
00224 };
00225
00226 template<class ContainerAllocator>
00227 struct Definition< ::irobot_create_2_1::TurnRequest_<ContainerAllocator> > {
00228 static const char* value()
00229 {
00230 return "bool clear\n\
00231 int16 turn\n\
00232 \n\
00233 ";
00234 }
00235
00236 static const char* value(const ::irobot_create_2_1::TurnRequest_<ContainerAllocator> &) { return value(); }
00237 };
00238
00239 template<class ContainerAllocator> struct IsFixedSize< ::irobot_create_2_1::TurnRequest_<ContainerAllocator> > : public TrueType {};
00240 }
00241 }
00242
00243
00244 namespace ros
00245 {
00246 namespace message_traits
00247 {
00248 template<class ContainerAllocator>
00249 struct MD5Sum< ::irobot_create_2_1::TurnResponse_<ContainerAllocator> > {
00250 static const char* value()
00251 {
00252 return "358e233cde0c8a8bcfea4ce193f8fc15";
00253 }
00254
00255 static const char* value(const ::irobot_create_2_1::TurnResponse_<ContainerAllocator> &) { return value(); }
00256 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL;
00257 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL;
00258 };
00259
00260 template<class ContainerAllocator>
00261 struct DataType< ::irobot_create_2_1::TurnResponse_<ContainerAllocator> > {
00262 static const char* value()
00263 {
00264 return "irobot_create_2_1/TurnResponse";
00265 }
00266
00267 static const char* value(const ::irobot_create_2_1::TurnResponse_<ContainerAllocator> &) { return value(); }
00268 };
00269
00270 template<class ContainerAllocator>
00271 struct Definition< ::irobot_create_2_1::TurnResponse_<ContainerAllocator> > {
00272 static const char* value()
00273 {
00274 return "bool success\n\
00275 \n\
00276 \n\
00277 ";
00278 }
00279
00280 static const char* value(const ::irobot_create_2_1::TurnResponse_<ContainerAllocator> &) { return value(); }
00281 };
00282
00283 template<class ContainerAllocator> struct IsFixedSize< ::irobot_create_2_1::TurnResponse_<ContainerAllocator> > : public TrueType {};
00284 }
00285 }
00286
00287 namespace ros
00288 {
00289 namespace serialization
00290 {
00291
00292 template<class ContainerAllocator> struct Serializer< ::irobot_create_2_1::TurnRequest_<ContainerAllocator> >
00293 {
00294 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00295 {
00296 stream.next(m.clear);
00297 stream.next(m.turn);
00298 }
00299
00300 ROS_DECLARE_ALLINONE_SERIALIZER;
00301 };
00302 }
00303 }
00304
00305
00306 namespace ros
00307 {
00308 namespace serialization
00309 {
00310
00311 template<class ContainerAllocator> struct Serializer< ::irobot_create_2_1::TurnResponse_<ContainerAllocator> >
00312 {
00313 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00314 {
00315 stream.next(m.success);
00316 }
00317
00318 ROS_DECLARE_ALLINONE_SERIALIZER;
00319 };
00320 }
00321 }
00322
00323 namespace ros
00324 {
00325 namespace service_traits
00326 {
00327 template<>
00328 struct MD5Sum<irobot_create_2_1::Turn> {
00329 static const char* value()
00330 {
00331 return "f28782ca6cac906741095df052f0ccc1";
00332 }
00333
00334 static const char* value(const irobot_create_2_1::Turn&) { return value(); }
00335 };
00336
00337 template<>
00338 struct DataType<irobot_create_2_1::Turn> {
00339 static const char* value()
00340 {
00341 return "irobot_create_2_1/Turn";
00342 }
00343
00344 static const char* value(const irobot_create_2_1::Turn&) { return value(); }
00345 };
00346
00347 template<class ContainerAllocator>
00348 struct MD5Sum<irobot_create_2_1::TurnRequest_<ContainerAllocator> > {
00349 static const char* value()
00350 {
00351 return "f28782ca6cac906741095df052f0ccc1";
00352 }
00353
00354 static const char* value(const irobot_create_2_1::TurnRequest_<ContainerAllocator> &) { return value(); }
00355 };
00356
00357 template<class ContainerAllocator>
00358 struct DataType<irobot_create_2_1::TurnRequest_<ContainerAllocator> > {
00359 static const char* value()
00360 {
00361 return "irobot_create_2_1/Turn";
00362 }
00363
00364 static const char* value(const irobot_create_2_1::TurnRequest_<ContainerAllocator> &) { return value(); }
00365 };
00366
00367 template<class ContainerAllocator>
00368 struct MD5Sum<irobot_create_2_1::TurnResponse_<ContainerAllocator> > {
00369 static const char* value()
00370 {
00371 return "f28782ca6cac906741095df052f0ccc1";
00372 }
00373
00374 static const char* value(const irobot_create_2_1::TurnResponse_<ContainerAllocator> &) { return value(); }
00375 };
00376
00377 template<class ContainerAllocator>
00378 struct DataType<irobot_create_2_1::TurnResponse_<ContainerAllocator> > {
00379 static const char* value()
00380 {
00381 return "irobot_create_2_1/Turn";
00382 }
00383
00384 static const char* value(const irobot_create_2_1::TurnResponse_<ContainerAllocator> &) { return value(); }
00385 };
00386
00387 }
00388 }
00389
00390 #endif // IROBOT_CREATE_2_1_SERVICE_TURN_H
00391