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