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