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