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