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