00001
00002 #ifndef TURTLESIM_SERVICE_TELEPORTRELATIVE_H
00003 #define TURTLESIM_SERVICE_TELEPORTRELATIVE_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 TeleportRelativeRequest_ : public ros::Message
00022 {
00023 typedef TeleportRelativeRequest_<ContainerAllocator> Type;
00024
00025 TeleportRelativeRequest_()
00026 : linear(0.0)
00027 , angular(0.0)
00028 {
00029 }
00030
00031 TeleportRelativeRequest_(const ContainerAllocator& _alloc)
00032 : linear(0.0)
00033 , angular(0.0)
00034 {
00035 }
00036
00037 typedef float _linear_type;
00038 float linear;
00039
00040 typedef float _angular_type;
00041 float angular;
00042
00043
00044 private:
00045 static const char* __s_getDataType_() { return "turtlesim/TeleportRelativeRequest"; }
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 "9d5c2dcd348ac8f76ce2a4307bd63a13"; }
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 "9d5c2dcd348ac8f76ce2a4307bd63a13"; }
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 "float32 linear\n\
00067 float32 angular\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, linear);
00079 ros::serialization::serialize(stream, angular);
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, linear);
00087 ros::serialization::deserialize(stream, angular);
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(linear);
00095 size += ros::serialization::serializationLength(angular);
00096 return size;
00097 }
00098
00099 typedef boost::shared_ptr< ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> > Ptr;
00100 typedef boost::shared_ptr< ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> const> ConstPtr;
00101 };
00102 typedef ::turtlesim::TeleportRelativeRequest_<std::allocator<void> > TeleportRelativeRequest;
00103
00104 typedef boost::shared_ptr< ::turtlesim::TeleportRelativeRequest> TeleportRelativeRequestPtr;
00105 typedef boost::shared_ptr< ::turtlesim::TeleportRelativeRequest const> TeleportRelativeRequestConstPtr;
00106
00107
00108 template <class ContainerAllocator>
00109 struct TeleportRelativeResponse_ : public ros::Message
00110 {
00111 typedef TeleportRelativeResponse_<ContainerAllocator> Type;
00112
00113 TeleportRelativeResponse_()
00114 {
00115 }
00116
00117 TeleportRelativeResponse_(const ContainerAllocator& _alloc)
00118 {
00119 }
00120
00121
00122 private:
00123 static const char* __s_getDataType_() { return "turtlesim/TeleportRelativeResponse"; }
00124 public:
00125 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00126
00127 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00128
00129 private:
00130 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00131 public:
00132 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00133
00134 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00135
00136 private:
00137 static const char* __s_getServerMD5Sum_() { return "9d5c2dcd348ac8f76ce2a4307bd63a13"; }
00138 public:
00139 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00140
00141 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00142
00143 private:
00144 static const char* __s_getMessageDefinition_() { return "\n\
00145 \n\
00146 "; }
00147 public:
00148 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00149
00150 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00151
00152 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00153 {
00154 ros::serialization::OStream stream(write_ptr, 1000000000);
00155 return stream.getData();
00156 }
00157
00158 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00159 {
00160 ros::serialization::IStream stream(read_ptr, 1000000000);
00161 return stream.getData();
00162 }
00163
00164 ROS_DEPRECATED virtual uint32_t serializationLength() const
00165 {
00166 uint32_t size = 0;
00167 return size;
00168 }
00169
00170 typedef boost::shared_ptr< ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> > Ptr;
00171 typedef boost::shared_ptr< ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> const> ConstPtr;
00172 };
00173 typedef ::turtlesim::TeleportRelativeResponse_<std::allocator<void> > TeleportRelativeResponse;
00174
00175 typedef boost::shared_ptr< ::turtlesim::TeleportRelativeResponse> TeleportRelativeResponsePtr;
00176 typedef boost::shared_ptr< ::turtlesim::TeleportRelativeResponse const> TeleportRelativeResponseConstPtr;
00177
00178 struct TeleportRelative
00179 {
00180
00181 typedef TeleportRelativeRequest Request;
00182 typedef TeleportRelativeResponse Response;
00183 Request request;
00184 Response response;
00185
00186 typedef Request RequestType;
00187 typedef Response ResponseType;
00188 };
00189 }
00190
00191 namespace ros
00192 {
00193 namespace message_traits
00194 {
00195 template<class ContainerAllocator>
00196 struct MD5Sum< ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> > {
00197 static const char* value()
00198 {
00199 return "9d5c2dcd348ac8f76ce2a4307bd63a13";
00200 }
00201
00202 static const char* value(const ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> &) { return value(); }
00203 static const uint64_t static_value1 = 0x9d5c2dcd348ac8f7ULL;
00204 static const uint64_t static_value2 = 0x6ce2a4307bd63a13ULL;
00205 };
00206
00207 template<class ContainerAllocator>
00208 struct DataType< ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "turtlesim/TeleportRelativeRequest";
00212 }
00213
00214 static const char* value(const ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> &) { return value(); }
00215 };
00216
00217 template<class ContainerAllocator>
00218 struct Definition< ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> > {
00219 static const char* value()
00220 {
00221 return "float32 linear\n\
00222 float32 angular\n\
00223 \n\
00224 ";
00225 }
00226
00227 static const char* value(const ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> &) { return value(); }
00228 };
00229
00230 template<class ContainerAllocator> struct IsFixedSize< ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> > : public TrueType {};
00231 }
00232 }
00233
00234
00235 namespace ros
00236 {
00237 namespace message_traits
00238 {
00239 template<class ContainerAllocator>
00240 struct MD5Sum< ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> > {
00241 static const char* value()
00242 {
00243 return "d41d8cd98f00b204e9800998ecf8427e";
00244 }
00245
00246 static const char* value(const ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> &) { return value(); }
00247 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00248 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00249 };
00250
00251 template<class ContainerAllocator>
00252 struct DataType< ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> > {
00253 static const char* value()
00254 {
00255 return "turtlesim/TeleportRelativeResponse";
00256 }
00257
00258 static const char* value(const ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> &) { return value(); }
00259 };
00260
00261 template<class ContainerAllocator>
00262 struct Definition< ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> > {
00263 static const char* value()
00264 {
00265 return "\n\
00266 \n\
00267 ";
00268 }
00269
00270 static const char* value(const ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> &) { return value(); }
00271 };
00272
00273 template<class ContainerAllocator> struct IsFixedSize< ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> > : public TrueType {};
00274 }
00275 }
00276
00277 namespace ros
00278 {
00279 namespace serialization
00280 {
00281
00282 template<class ContainerAllocator> struct Serializer< ::turtlesim::TeleportRelativeRequest_<ContainerAllocator> >
00283 {
00284 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00285 {
00286 stream.next(m.linear);
00287 stream.next(m.angular);
00288 }
00289
00290 ROS_DECLARE_ALLINONE_SERIALIZER;
00291 };
00292 }
00293 }
00294
00295
00296 namespace ros
00297 {
00298 namespace serialization
00299 {
00300
00301 template<class ContainerAllocator> struct Serializer< ::turtlesim::TeleportRelativeResponse_<ContainerAllocator> >
00302 {
00303 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00304 {
00305 }
00306
00307 ROS_DECLARE_ALLINONE_SERIALIZER;
00308 };
00309 }
00310 }
00311
00312 namespace ros
00313 {
00314 namespace service_traits
00315 {
00316 template<>
00317 struct MD5Sum<turtlesim::TeleportRelative> {
00318 static const char* value()
00319 {
00320 return "9d5c2dcd348ac8f76ce2a4307bd63a13";
00321 }
00322
00323 static const char* value(const turtlesim::TeleportRelative&) { return value(); }
00324 };
00325
00326 template<>
00327 struct DataType<turtlesim::TeleportRelative> {
00328 static const char* value()
00329 {
00330 return "turtlesim/TeleportRelative";
00331 }
00332
00333 static const char* value(const turtlesim::TeleportRelative&) { return value(); }
00334 };
00335
00336 template<class ContainerAllocator>
00337 struct MD5Sum<turtlesim::TeleportRelativeRequest_<ContainerAllocator> > {
00338 static const char* value()
00339 {
00340 return "9d5c2dcd348ac8f76ce2a4307bd63a13";
00341 }
00342
00343 static const char* value(const turtlesim::TeleportRelativeRequest_<ContainerAllocator> &) { return value(); }
00344 };
00345
00346 template<class ContainerAllocator>
00347 struct DataType<turtlesim::TeleportRelativeRequest_<ContainerAllocator> > {
00348 static const char* value()
00349 {
00350 return "turtlesim/TeleportRelative";
00351 }
00352
00353 static const char* value(const turtlesim::TeleportRelativeRequest_<ContainerAllocator> &) { return value(); }
00354 };
00355
00356 template<class ContainerAllocator>
00357 struct MD5Sum<turtlesim::TeleportRelativeResponse_<ContainerAllocator> > {
00358 static const char* value()
00359 {
00360 return "9d5c2dcd348ac8f76ce2a4307bd63a13";
00361 }
00362
00363 static const char* value(const turtlesim::TeleportRelativeResponse_<ContainerAllocator> &) { return value(); }
00364 };
00365
00366 template<class ContainerAllocator>
00367 struct DataType<turtlesim::TeleportRelativeResponse_<ContainerAllocator> > {
00368 static const char* value()
00369 {
00370 return "turtlesim/TeleportRelative";
00371 }
00372
00373 static const char* value(const turtlesim::TeleportRelativeResponse_<ContainerAllocator> &) { return value(); }
00374 };
00375
00376 }
00377 }
00378
00379 #endif // TURTLESIM_SERVICE_TELEPORTRELATIVE_H
00380