00001
00002 #ifndef GAZEBO_MSGS_SERVICE_GETMODELPROPERTIES_H
00003 #define GAZEBO_MSGS_SERVICE_GETMODELPROPERTIES_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 GetModelPropertiesRequest_ {
00026 typedef GetModelPropertiesRequest_<ContainerAllocator> Type;
00027
00028 GetModelPropertiesRequest_()
00029 : model_name()
00030 {
00031 }
00032
00033 GetModelPropertiesRequest_(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 typedef boost::shared_ptr< ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> > Ptr;
00043 typedef boost::shared_ptr< ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> const> ConstPtr;
00044 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00045 };
00046 typedef ::gazebo_msgs::GetModelPropertiesRequest_<std::allocator<void> > GetModelPropertiesRequest;
00047
00048 typedef boost::shared_ptr< ::gazebo_msgs::GetModelPropertiesRequest> GetModelPropertiesRequestPtr;
00049 typedef boost::shared_ptr< ::gazebo_msgs::GetModelPropertiesRequest const> GetModelPropertiesRequestConstPtr;
00050
00051
00052
00053 template <class ContainerAllocator>
00054 struct GetModelPropertiesResponse_ {
00055 typedef GetModelPropertiesResponse_<ContainerAllocator> Type;
00056
00057 GetModelPropertiesResponse_()
00058 : parent_model_name()
00059 , canonical_body_name()
00060 , body_names()
00061 , geom_names()
00062 , joint_names()
00063 , child_model_names()
00064 , is_static(false)
00065 , success(false)
00066 , status_message()
00067 {
00068 }
00069
00070 GetModelPropertiesResponse_(const ContainerAllocator& _alloc)
00071 : parent_model_name(_alloc)
00072 , canonical_body_name(_alloc)
00073 , body_names(_alloc)
00074 , geom_names(_alloc)
00075 , joint_names(_alloc)
00076 , child_model_names(_alloc)
00077 , is_static(false)
00078 , success(false)
00079 , status_message(_alloc)
00080 {
00081 }
00082
00083 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _parent_model_name_type;
00084 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > parent_model_name;
00085
00086 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _canonical_body_name_type;
00087 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > canonical_body_name;
00088
00089 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _body_names_type;
00090 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > body_names;
00091
00092 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _geom_names_type;
00093 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > geom_names;
00094
00095 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type;
00096 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > joint_names;
00097
00098 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _child_model_names_type;
00099 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > child_model_names;
00100
00101 typedef uint8_t _is_static_type;
00102 uint8_t is_static;
00103
00104 typedef uint8_t _success_type;
00105 uint8_t success;
00106
00107 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type;
00108 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message;
00109
00110
00111 typedef boost::shared_ptr< ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> > Ptr;
00112 typedef boost::shared_ptr< ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> const> ConstPtr;
00113 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00114 };
00115 typedef ::gazebo_msgs::GetModelPropertiesResponse_<std::allocator<void> > GetModelPropertiesResponse;
00116
00117 typedef boost::shared_ptr< ::gazebo_msgs::GetModelPropertiesResponse> GetModelPropertiesResponsePtr;
00118 typedef boost::shared_ptr< ::gazebo_msgs::GetModelPropertiesResponse const> GetModelPropertiesResponseConstPtr;
00119
00120
00121 struct GetModelProperties
00122 {
00123
00124 typedef GetModelPropertiesRequest Request;
00125 typedef GetModelPropertiesResponse Response;
00126 Request request;
00127 Response response;
00128
00129 typedef Request RequestType;
00130 typedef Response ResponseType;
00131 };
00132 }
00133
00134 namespace ros
00135 {
00136 namespace message_traits
00137 {
00138 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> > : public TrueType {};
00139 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> const> : public TrueType {};
00140 template<class ContainerAllocator>
00141 struct MD5Sum< ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "ea31c8eab6fc401383cf528a7c0984ba";
00145 }
00146
00147 static const char* value(const ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> &) { return value(); }
00148 static const uint64_t static_value1 = 0xea31c8eab6fc4013ULL;
00149 static const uint64_t static_value2 = 0x83cf528a7c0984baULL;
00150 };
00151
00152 template<class ContainerAllocator>
00153 struct DataType< ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "gazebo_msgs/GetModelPropertiesRequest";
00157 }
00158
00159 static const char* value(const ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> &) { return value(); }
00160 };
00161
00162 template<class ContainerAllocator>
00163 struct Definition< ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "string model_name\n\
00167 \n\
00168 ";
00169 }
00170
00171 static const char* value(const ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 }
00175 }
00176
00177
00178 namespace ros
00179 {
00180 namespace message_traits
00181 {
00182 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> > : public TrueType {};
00183 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> const> : public TrueType {};
00184 template<class ContainerAllocator>
00185 struct MD5Sum< ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> > {
00186 static const char* value()
00187 {
00188 return "b7f370938ef77b464b95f1bab3ec5028";
00189 }
00190
00191 static const char* value(const ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> &) { return value(); }
00192 static const uint64_t static_value1 = 0xb7f370938ef77b46ULL;
00193 static const uint64_t static_value2 = 0x4b95f1bab3ec5028ULL;
00194 };
00195
00196 template<class ContainerAllocator>
00197 struct DataType< ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> > {
00198 static const char* value()
00199 {
00200 return "gazebo_msgs/GetModelPropertiesResponse";
00201 }
00202
00203 static const char* value(const ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> &) { return value(); }
00204 };
00205
00206 template<class ContainerAllocator>
00207 struct Definition< ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> > {
00208 static const char* value()
00209 {
00210 return "string parent_model_name\n\
00211 string canonical_body_name\n\
00212 string[] body_names\n\
00213 string[] geom_names\n\
00214 string[] joint_names\n\
00215 string[] child_model_names\n\
00216 bool is_static\n\
00217 bool success\n\
00218 string status_message\n\
00219 \n\
00220 \n\
00221 ";
00222 }
00223
00224 static const char* value(const ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> &) { return value(); }
00225 };
00226
00227 }
00228 }
00229
00230 namespace ros
00231 {
00232 namespace serialization
00233 {
00234
00235 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> >
00236 {
00237 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00238 {
00239 stream.next(m.model_name);
00240 }
00241
00242 ROS_DECLARE_ALLINONE_SERIALIZER;
00243 };
00244 }
00245 }
00246
00247
00248 namespace ros
00249 {
00250 namespace serialization
00251 {
00252
00253 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> >
00254 {
00255 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00256 {
00257 stream.next(m.parent_model_name);
00258 stream.next(m.canonical_body_name);
00259 stream.next(m.body_names);
00260 stream.next(m.geom_names);
00261 stream.next(m.joint_names);
00262 stream.next(m.child_model_names);
00263 stream.next(m.is_static);
00264 stream.next(m.success);
00265 stream.next(m.status_message);
00266 }
00267
00268 ROS_DECLARE_ALLINONE_SERIALIZER;
00269 };
00270 }
00271 }
00272
00273 namespace ros
00274 {
00275 namespace service_traits
00276 {
00277 template<>
00278 struct MD5Sum<gazebo_msgs::GetModelProperties> {
00279 static const char* value()
00280 {
00281 return "5717f7bd34ed990fa80e28b3015027a3";
00282 }
00283
00284 static const char* value(const gazebo_msgs::GetModelProperties&) { return value(); }
00285 };
00286
00287 template<>
00288 struct DataType<gazebo_msgs::GetModelProperties> {
00289 static const char* value()
00290 {
00291 return "gazebo_msgs/GetModelProperties";
00292 }
00293
00294 static const char* value(const gazebo_msgs::GetModelProperties&) { return value(); }
00295 };
00296
00297 template<class ContainerAllocator>
00298 struct MD5Sum<gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> > {
00299 static const char* value()
00300 {
00301 return "5717f7bd34ed990fa80e28b3015027a3";
00302 }
00303
00304 static const char* value(const gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> &) { return value(); }
00305 };
00306
00307 template<class ContainerAllocator>
00308 struct DataType<gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> > {
00309 static const char* value()
00310 {
00311 return "gazebo_msgs/GetModelProperties";
00312 }
00313
00314 static const char* value(const gazebo_msgs::GetModelPropertiesRequest_<ContainerAllocator> &) { return value(); }
00315 };
00316
00317 template<class ContainerAllocator>
00318 struct MD5Sum<gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> > {
00319 static const char* value()
00320 {
00321 return "5717f7bd34ed990fa80e28b3015027a3";
00322 }
00323
00324 static const char* value(const gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> &) { return value(); }
00325 };
00326
00327 template<class ContainerAllocator>
00328 struct DataType<gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> > {
00329 static const char* value()
00330 {
00331 return "gazebo_msgs/GetModelProperties";
00332 }
00333
00334 static const char* value(const gazebo_msgs::GetModelPropertiesResponse_<ContainerAllocator> &) { return value(); }
00335 };
00336
00337 }
00338 }
00339
00340 #endif // GAZEBO_MSGS_SERVICE_GETMODELPROPERTIES_H
00341