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