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