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