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