$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/SetPhysicsProperties.srv */ 00002 #ifndef GAZEBO_SERVICE_SETPHYSICSPROPERTIES_H 00003 #define GAZEBO_SERVICE_SETPHYSICSPROPERTIES_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 #include "geometry_msgs/Vector3.h" 00020 #include "gazebo/ODEPhysics.h" 00021 00022 00023 00024 namespace gazebo 00025 { 00026 template <class ContainerAllocator> 00027 struct SetPhysicsPropertiesRequest_ { 00028 typedef SetPhysicsPropertiesRequest_<ContainerAllocator> Type; 00029 00030 SetPhysicsPropertiesRequest_() 00031 : time_step(0.0) 00032 , pause(false) 00033 , max_update_rate(0.0) 00034 , gravity() 00035 , ode_config() 00036 { 00037 } 00038 00039 SetPhysicsPropertiesRequest_(const ContainerAllocator& _alloc) 00040 : time_step(0.0) 00041 , pause(false) 00042 , max_update_rate(0.0) 00043 , gravity(_alloc) 00044 , ode_config(_alloc) 00045 { 00046 } 00047 00048 typedef double _time_step_type; 00049 double time_step; 00050 00051 typedef uint8_t _pause_type; 00052 uint8_t pause; 00053 00054 typedef double _max_update_rate_type; 00055 double max_update_rate; 00056 00057 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _gravity_type; 00058 ::geometry_msgs::Vector3_<ContainerAllocator> gravity; 00059 00060 typedef ::gazebo::ODEPhysics_<ContainerAllocator> _ode_config_type; 00061 ::gazebo::ODEPhysics_<ContainerAllocator> ode_config; 00062 00063 00064 private: 00065 static const char* __s_getDataType_() { return "gazebo/SetPhysicsPropertiesRequest"; } 00066 public: 00067 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00068 00069 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00070 00071 private: 00072 static const char* __s_getMD5Sum_() { return "46d5128757a51ad3b4801be86612b17c"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00075 00076 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00077 00078 private: 00079 static const char* __s_getServerMD5Sum_() { return "ada1e937aad7900f65e797d65aabb0c1"; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00082 00083 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00084 00085 private: 00086 static const char* __s_getMessageDefinition_() { return "\n\ 00087 \n\ 00088 \n\ 00089 float64 time_step\n\ 00090 bool pause\n\ 00091 float64 max_update_rate\n\ 00092 geometry_msgs/Vector3 gravity\n\ 00093 gazebo/ODEPhysics ode_config\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: geometry_msgs/Vector3\n\ 00097 # This represents a vector in free space. \n\ 00098 \n\ 00099 float64 x\n\ 00100 float64 y\n\ 00101 float64 z\n\ 00102 ================================================================================\n\ 00103 MSG: gazebo/ODEPhysics\n\ 00104 #This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00105 \n\ 00106 bool auto_disable_bodies # enable auto disabling of bodies, default false\n\ 00107 uint32 sor_pgs_iters # inner iterations when uisng projected Gauss Seidel\n\ 00108 float64 sor_pgs_w # relaxation parameter when using projected Gauss Seidel, 1 = no relaxation\n\ 00109 float64 contact_surface_layer # contact \"dead-band\" width\n\ 00110 float64 contact_max_correcting_vel # contact maximum correction velocity\n\ 00111 float64 cfm # global constraint force mixing\n\ 00112 float64 erp # global error reduction parameter\n\ 00113 uint32 max_contacts # maximum contact joints between two geoms\n\ 00114 \n\ 00115 "; } 00116 public: 00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00118 00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00122 { 00123 ros::serialization::OStream stream(write_ptr, 1000000000); 00124 ros::serialization::serialize(stream, time_step); 00125 ros::serialization::serialize(stream, pause); 00126 ros::serialization::serialize(stream, max_update_rate); 00127 ros::serialization::serialize(stream, gravity); 00128 ros::serialization::serialize(stream, ode_config); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00133 { 00134 ros::serialization::IStream stream(read_ptr, 1000000000); 00135 ros::serialization::deserialize(stream, time_step); 00136 ros::serialization::deserialize(stream, pause); 00137 ros::serialization::deserialize(stream, max_update_rate); 00138 ros::serialization::deserialize(stream, gravity); 00139 ros::serialization::deserialize(stream, ode_config); 00140 return stream.getData(); 00141 } 00142 00143 ROS_DEPRECATED virtual uint32_t serializationLength() const 00144 { 00145 uint32_t size = 0; 00146 size += ros::serialization::serializationLength(time_step); 00147 size += ros::serialization::serializationLength(pause); 00148 size += ros::serialization::serializationLength(max_update_rate); 00149 size += ros::serialization::serializationLength(gravity); 00150 size += ros::serialization::serializationLength(ode_config); 00151 return size; 00152 } 00153 00154 typedef boost::shared_ptr< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > Ptr; 00155 typedef boost::shared_ptr< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> const> ConstPtr; 00156 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00157 }; // struct SetPhysicsPropertiesRequest 00158 typedef ::gazebo::SetPhysicsPropertiesRequest_<std::allocator<void> > SetPhysicsPropertiesRequest; 00159 00160 typedef boost::shared_ptr< ::gazebo::SetPhysicsPropertiesRequest> SetPhysicsPropertiesRequestPtr; 00161 typedef boost::shared_ptr< ::gazebo::SetPhysicsPropertiesRequest const> SetPhysicsPropertiesRequestConstPtr; 00162 00163 00164 template <class ContainerAllocator> 00165 struct SetPhysicsPropertiesResponse_ { 00166 typedef SetPhysicsPropertiesResponse_<ContainerAllocator> Type; 00167 00168 SetPhysicsPropertiesResponse_() 00169 : success(false) 00170 , status_message() 00171 { 00172 } 00173 00174 SetPhysicsPropertiesResponse_(const ContainerAllocator& _alloc) 00175 : success(false) 00176 , status_message(_alloc) 00177 { 00178 } 00179 00180 typedef uint8_t _success_type; 00181 uint8_t success; 00182 00183 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _status_message_type; 00184 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > status_message; 00185 00186 00187 private: 00188 static const char* __s_getDataType_() { return "gazebo/SetPhysicsPropertiesResponse"; } 00189 public: 00190 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00191 00192 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00193 00194 private: 00195 static const char* __s_getMD5Sum_() { return "2ec6f3eff0161f4257b808b12bc830c2"; } 00196 public: 00197 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00198 00199 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00200 00201 private: 00202 static const char* __s_getServerMD5Sum_() { return "ada1e937aad7900f65e797d65aabb0c1"; } 00203 public: 00204 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00205 00206 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00207 00208 private: 00209 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00210 string status_message\n\ 00211 \n\ 00212 \n\ 00213 "; } 00214 public: 00215 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00216 00217 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00218 00219 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00220 { 00221 ros::serialization::OStream stream(write_ptr, 1000000000); 00222 ros::serialization::serialize(stream, success); 00223 ros::serialization::serialize(stream, status_message); 00224 return stream.getData(); 00225 } 00226 00227 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00228 { 00229 ros::serialization::IStream stream(read_ptr, 1000000000); 00230 ros::serialization::deserialize(stream, success); 00231 ros::serialization::deserialize(stream, status_message); 00232 return stream.getData(); 00233 } 00234 00235 ROS_DEPRECATED virtual uint32_t serializationLength() const 00236 { 00237 uint32_t size = 0; 00238 size += ros::serialization::serializationLength(success); 00239 size += ros::serialization::serializationLength(status_message); 00240 return size; 00241 } 00242 00243 typedef boost::shared_ptr< ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> > Ptr; 00244 typedef boost::shared_ptr< ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> const> ConstPtr; 00245 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00246 }; // struct SetPhysicsPropertiesResponse 00247 typedef ::gazebo::SetPhysicsPropertiesResponse_<std::allocator<void> > SetPhysicsPropertiesResponse; 00248 00249 typedef boost::shared_ptr< ::gazebo::SetPhysicsPropertiesResponse> SetPhysicsPropertiesResponsePtr; 00250 typedef boost::shared_ptr< ::gazebo::SetPhysicsPropertiesResponse const> SetPhysicsPropertiesResponseConstPtr; 00251 00252 struct SetPhysicsProperties 00253 { 00254 00255 typedef SetPhysicsPropertiesRequest Request; 00256 typedef SetPhysicsPropertiesResponse Response; 00257 Request request; 00258 Response response; 00259 00260 typedef Request RequestType; 00261 typedef Response ResponseType; 00262 }; // struct SetPhysicsProperties 00263 } // namespace gazebo 00264 00265 namespace ros 00266 { 00267 namespace message_traits 00268 { 00269 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > : public TrueType {}; 00270 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> const> : public TrueType {}; 00271 template<class ContainerAllocator> 00272 struct MD5Sum< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > { 00273 static const char* value() 00274 { 00275 return "46d5128757a51ad3b4801be86612b17c"; 00276 } 00277 00278 static const char* value(const ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> &) { return value(); } 00279 static const uint64_t static_value1 = 0x46d5128757a51ad3ULL; 00280 static const uint64_t static_value2 = 0xb4801be86612b17cULL; 00281 }; 00282 00283 template<class ContainerAllocator> 00284 struct DataType< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > { 00285 static const char* value() 00286 { 00287 return "gazebo/SetPhysicsPropertiesRequest"; 00288 } 00289 00290 static const char* value(const ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> &) { return value(); } 00291 }; 00292 00293 template<class ContainerAllocator> 00294 struct Definition< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > { 00295 static const char* value() 00296 { 00297 return "\n\ 00298 \n\ 00299 \n\ 00300 float64 time_step\n\ 00301 bool pause\n\ 00302 float64 max_update_rate\n\ 00303 geometry_msgs/Vector3 gravity\n\ 00304 gazebo/ODEPhysics ode_config\n\ 00305 \n\ 00306 ================================================================================\n\ 00307 MSG: geometry_msgs/Vector3\n\ 00308 # This represents a vector in free space. \n\ 00309 \n\ 00310 float64 x\n\ 00311 float64 y\n\ 00312 float64 z\n\ 00313 ================================================================================\n\ 00314 MSG: gazebo/ODEPhysics\n\ 00315 #This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00316 \n\ 00317 bool auto_disable_bodies # enable auto disabling of bodies, default false\n\ 00318 uint32 sor_pgs_iters # inner iterations when uisng projected Gauss Seidel\n\ 00319 float64 sor_pgs_w # relaxation parameter when using projected Gauss Seidel, 1 = no relaxation\n\ 00320 float64 contact_surface_layer # contact \"dead-band\" width\n\ 00321 float64 contact_max_correcting_vel # contact maximum correction velocity\n\ 00322 float64 cfm # global constraint force mixing\n\ 00323 float64 erp # global error reduction parameter\n\ 00324 uint32 max_contacts # maximum contact joints between two geoms\n\ 00325 \n\ 00326 "; 00327 } 00328 00329 static const char* value(const ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> &) { return value(); } 00330 }; 00331 00332 template<class ContainerAllocator> struct IsFixedSize< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > : public TrueType {}; 00333 } // namespace message_traits 00334 } // namespace ros 00335 00336 00337 namespace ros 00338 { 00339 namespace message_traits 00340 { 00341 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> > : public TrueType {}; 00342 template<class ContainerAllocator> struct IsMessage< ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> const> : public TrueType {}; 00343 template<class ContainerAllocator> 00344 struct MD5Sum< ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> > { 00345 static const char* value() 00346 { 00347 return "2ec6f3eff0161f4257b808b12bc830c2"; 00348 } 00349 00350 static const char* value(const ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> &) { return value(); } 00351 static const uint64_t static_value1 = 0x2ec6f3eff0161f42ULL; 00352 static const uint64_t static_value2 = 0x57b808b12bc830c2ULL; 00353 }; 00354 00355 template<class ContainerAllocator> 00356 struct DataType< ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> > { 00357 static const char* value() 00358 { 00359 return "gazebo/SetPhysicsPropertiesResponse"; 00360 } 00361 00362 static const char* value(const ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> &) { return value(); } 00363 }; 00364 00365 template<class ContainerAllocator> 00366 struct Definition< ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> > { 00367 static const char* value() 00368 { 00369 return "bool success\n\ 00370 string status_message\n\ 00371 \n\ 00372 \n\ 00373 "; 00374 } 00375 00376 static const char* value(const ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> &) { return value(); } 00377 }; 00378 00379 } // namespace message_traits 00380 } // namespace ros 00381 00382 namespace ros 00383 { 00384 namespace serialization 00385 { 00386 00387 template<class ContainerAllocator> struct Serializer< ::gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > 00388 { 00389 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00390 { 00391 stream.next(m.time_step); 00392 stream.next(m.pause); 00393 stream.next(m.max_update_rate); 00394 stream.next(m.gravity); 00395 stream.next(m.ode_config); 00396 } 00397 00398 ROS_DECLARE_ALLINONE_SERIALIZER; 00399 }; // struct SetPhysicsPropertiesRequest_ 00400 } // namespace serialization 00401 } // namespace ros 00402 00403 00404 namespace ros 00405 { 00406 namespace serialization 00407 { 00408 00409 template<class ContainerAllocator> struct Serializer< ::gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> > 00410 { 00411 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00412 { 00413 stream.next(m.success); 00414 stream.next(m.status_message); 00415 } 00416 00417 ROS_DECLARE_ALLINONE_SERIALIZER; 00418 }; // struct SetPhysicsPropertiesResponse_ 00419 } // namespace serialization 00420 } // namespace ros 00421 00422 namespace ros 00423 { 00424 namespace service_traits 00425 { 00426 template<> 00427 struct MD5Sum<gazebo::SetPhysicsProperties> { 00428 static const char* value() 00429 { 00430 return "ada1e937aad7900f65e797d65aabb0c1"; 00431 } 00432 00433 static const char* value(const gazebo::SetPhysicsProperties&) { return value(); } 00434 }; 00435 00436 template<> 00437 struct DataType<gazebo::SetPhysicsProperties> { 00438 static const char* value() 00439 { 00440 return "gazebo/SetPhysicsProperties"; 00441 } 00442 00443 static const char* value(const gazebo::SetPhysicsProperties&) { return value(); } 00444 }; 00445 00446 template<class ContainerAllocator> 00447 struct MD5Sum<gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > { 00448 static const char* value() 00449 { 00450 return "ada1e937aad7900f65e797d65aabb0c1"; 00451 } 00452 00453 static const char* value(const gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> &) { return value(); } 00454 }; 00455 00456 template<class ContainerAllocator> 00457 struct DataType<gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> > { 00458 static const char* value() 00459 { 00460 return "gazebo/SetPhysicsProperties"; 00461 } 00462 00463 static const char* value(const gazebo::SetPhysicsPropertiesRequest_<ContainerAllocator> &) { return value(); } 00464 }; 00465 00466 template<class ContainerAllocator> 00467 struct MD5Sum<gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> > { 00468 static const char* value() 00469 { 00470 return "ada1e937aad7900f65e797d65aabb0c1"; 00471 } 00472 00473 static const char* value(const gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> &) { return value(); } 00474 }; 00475 00476 template<class ContainerAllocator> 00477 struct DataType<gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> > { 00478 static const char* value() 00479 { 00480 return "gazebo/SetPhysicsProperties"; 00481 } 00482 00483 static const char* value(const gazebo::SetPhysicsPropertiesResponse_<ContainerAllocator> &) { return value(); } 00484 }; 00485 00486 } // namespace service_traits 00487 } // namespace ros 00488 00489 #endif // GAZEBO_SERVICE_SETPHYSICSPROPERTIES_H 00490