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