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