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