$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/msg/ODEPhysics.msg */ 00002 #ifndef GAZEBO_MSGS_MESSAGE_ODEPHYSICS_H 00003 #define GAZEBO_MSGS_MESSAGE_ODEPHYSICS_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 00018 namespace gazebo_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct ODEPhysics_ { 00022 typedef ODEPhysics_<ContainerAllocator> Type; 00023 00024 ODEPhysics_() 00025 : auto_disable_bodies(false) 00026 , sor_pgs_precon_iters(0) 00027 , sor_pgs_iters(0) 00028 , sor_pgs_w(0.0) 00029 , sor_pgs_rms_error_tol(0.0) 00030 , contact_surface_layer(0.0) 00031 , contact_max_correcting_vel(0.0) 00032 , cfm(0.0) 00033 , erp(0.0) 00034 , max_contacts(0) 00035 { 00036 } 00037 00038 ODEPhysics_(const ContainerAllocator& _alloc) 00039 : auto_disable_bodies(false) 00040 , sor_pgs_precon_iters(0) 00041 , sor_pgs_iters(0) 00042 , sor_pgs_w(0.0) 00043 , sor_pgs_rms_error_tol(0.0) 00044 , contact_surface_layer(0.0) 00045 , contact_max_correcting_vel(0.0) 00046 , cfm(0.0) 00047 , erp(0.0) 00048 , max_contacts(0) 00049 { 00050 } 00051 00052 typedef uint8_t _auto_disable_bodies_type; 00053 uint8_t auto_disable_bodies; 00054 00055 typedef uint32_t _sor_pgs_precon_iters_type; 00056 uint32_t sor_pgs_precon_iters; 00057 00058 typedef uint32_t _sor_pgs_iters_type; 00059 uint32_t sor_pgs_iters; 00060 00061 typedef double _sor_pgs_w_type; 00062 double sor_pgs_w; 00063 00064 typedef double _sor_pgs_rms_error_tol_type; 00065 double sor_pgs_rms_error_tol; 00066 00067 typedef double _contact_surface_layer_type; 00068 double contact_surface_layer; 00069 00070 typedef double _contact_max_correcting_vel_type; 00071 double contact_max_correcting_vel; 00072 00073 typedef double _cfm_type; 00074 double cfm; 00075 00076 typedef double _erp_type; 00077 double erp; 00078 00079 typedef uint32_t _max_contacts_type; 00080 uint32_t max_contacts; 00081 00082 00083 private: 00084 static const char* __s_getDataType_() { return "gazebo_msgs/ODEPhysics"; } 00085 public: 00086 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00087 00088 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00089 00090 private: 00091 static const char* __s_getMD5Sum_() { return "667d56ddbd547918c32d1934503dc335"; } 00092 public: 00093 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00094 00095 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00096 00097 private: 00098 static const char* __s_getMessageDefinition_() { return "bool auto_disable_bodies # enable auto disabling of bodies, default false\n\ 00099 uint32 sor_pgs_precon_iters # preconditioning inner iterations when uisng projected Gauss Seidel\n\ 00100 uint32 sor_pgs_iters # inner iterations when uisng projected Gauss Seidel\n\ 00101 float64 sor_pgs_w # relaxation parameter when using projected Gauss Seidel, 1 = no relaxation\n\ 00102 float64 sor_pgs_rms_error_tol # rms error tolerance before stopping inner iterations\n\ 00103 float64 contact_surface_layer # contact \"dead-band\" width\n\ 00104 float64 contact_max_correcting_vel # contact maximum correction velocity\n\ 00105 float64 cfm # global constraint force mixing\n\ 00106 float64 erp # global error reduction parameter\n\ 00107 uint32 max_contacts # maximum contact joints between two geoms\n\ 00108 \n\ 00109 "; } 00110 public: 00111 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00116 { 00117 ros::serialization::OStream stream(write_ptr, 1000000000); 00118 ros::serialization::serialize(stream, auto_disable_bodies); 00119 ros::serialization::serialize(stream, sor_pgs_precon_iters); 00120 ros::serialization::serialize(stream, sor_pgs_iters); 00121 ros::serialization::serialize(stream, sor_pgs_w); 00122 ros::serialization::serialize(stream, sor_pgs_rms_error_tol); 00123 ros::serialization::serialize(stream, contact_surface_layer); 00124 ros::serialization::serialize(stream, contact_max_correcting_vel); 00125 ros::serialization::serialize(stream, cfm); 00126 ros::serialization::serialize(stream, erp); 00127 ros::serialization::serialize(stream, max_contacts); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00132 { 00133 ros::serialization::IStream stream(read_ptr, 1000000000); 00134 ros::serialization::deserialize(stream, auto_disable_bodies); 00135 ros::serialization::deserialize(stream, sor_pgs_precon_iters); 00136 ros::serialization::deserialize(stream, sor_pgs_iters); 00137 ros::serialization::deserialize(stream, sor_pgs_w); 00138 ros::serialization::deserialize(stream, sor_pgs_rms_error_tol); 00139 ros::serialization::deserialize(stream, contact_surface_layer); 00140 ros::serialization::deserialize(stream, contact_max_correcting_vel); 00141 ros::serialization::deserialize(stream, cfm); 00142 ros::serialization::deserialize(stream, erp); 00143 ros::serialization::deserialize(stream, max_contacts); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint32_t serializationLength() const 00148 { 00149 uint32_t size = 0; 00150 size += ros::serialization::serializationLength(auto_disable_bodies); 00151 size += ros::serialization::serializationLength(sor_pgs_precon_iters); 00152 size += ros::serialization::serializationLength(sor_pgs_iters); 00153 size += ros::serialization::serializationLength(sor_pgs_w); 00154 size += ros::serialization::serializationLength(sor_pgs_rms_error_tol); 00155 size += ros::serialization::serializationLength(contact_surface_layer); 00156 size += ros::serialization::serializationLength(contact_max_correcting_vel); 00157 size += ros::serialization::serializationLength(cfm); 00158 size += ros::serialization::serializationLength(erp); 00159 size += ros::serialization::serializationLength(max_contacts); 00160 return size; 00161 } 00162 00163 typedef boost::shared_ptr< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> > Ptr; 00164 typedef boost::shared_ptr< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> const> ConstPtr; 00165 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00166 }; // struct ODEPhysics 00167 typedef ::gazebo_msgs::ODEPhysics_<std::allocator<void> > ODEPhysics; 00168 00169 typedef boost::shared_ptr< ::gazebo_msgs::ODEPhysics> ODEPhysicsPtr; 00170 typedef boost::shared_ptr< ::gazebo_msgs::ODEPhysics const> ODEPhysicsConstPtr; 00171 00172 00173 template<typename ContainerAllocator> 00174 std::ostream& operator<<(std::ostream& s, const ::gazebo_msgs::ODEPhysics_<ContainerAllocator> & v) 00175 { 00176 ros::message_operations::Printer< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> >::stream(s, "", v); 00177 return s;} 00178 00179 } // namespace gazebo_msgs 00180 00181 namespace ros 00182 { 00183 namespace message_traits 00184 { 00185 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> > : public TrueType {}; 00186 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> const> : public TrueType {}; 00187 template<class ContainerAllocator> 00188 struct MD5Sum< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "667d56ddbd547918c32d1934503dc335"; 00192 } 00193 00194 static const char* value(const ::gazebo_msgs::ODEPhysics_<ContainerAllocator> &) { return value(); } 00195 static const uint64_t static_value1 = 0x667d56ddbd547918ULL; 00196 static const uint64_t static_value2 = 0xc32d1934503dc335ULL; 00197 }; 00198 00199 template<class ContainerAllocator> 00200 struct DataType< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "gazebo_msgs/ODEPhysics"; 00204 } 00205 00206 static const char* value(const ::gazebo_msgs::ODEPhysics_<ContainerAllocator> &) { return value(); } 00207 }; 00208 00209 template<class ContainerAllocator> 00210 struct Definition< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> > { 00211 static const char* value() 00212 { 00213 return "bool auto_disable_bodies # enable auto disabling of bodies, default false\n\ 00214 uint32 sor_pgs_precon_iters # preconditioning inner iterations when uisng projected Gauss Seidel\n\ 00215 uint32 sor_pgs_iters # inner iterations when uisng projected Gauss Seidel\n\ 00216 float64 sor_pgs_w # relaxation parameter when using projected Gauss Seidel, 1 = no relaxation\n\ 00217 float64 sor_pgs_rms_error_tol # rms error tolerance before stopping inner iterations\n\ 00218 float64 contact_surface_layer # contact \"dead-band\" width\n\ 00219 float64 contact_max_correcting_vel # contact maximum correction velocity\n\ 00220 float64 cfm # global constraint force mixing\n\ 00221 float64 erp # global error reduction parameter\n\ 00222 uint32 max_contacts # maximum contact joints between two geoms\n\ 00223 \n\ 00224 "; 00225 } 00226 00227 static const char* value(const ::gazebo_msgs::ODEPhysics_<ContainerAllocator> &) { return value(); } 00228 }; 00229 00230 template<class ContainerAllocator> struct IsFixedSize< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> > : public TrueType {}; 00231 } // namespace message_traits 00232 } // namespace ros 00233 00234 namespace ros 00235 { 00236 namespace serialization 00237 { 00238 00239 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> > 00240 { 00241 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00242 { 00243 stream.next(m.auto_disable_bodies); 00244 stream.next(m.sor_pgs_precon_iters); 00245 stream.next(m.sor_pgs_iters); 00246 stream.next(m.sor_pgs_w); 00247 stream.next(m.sor_pgs_rms_error_tol); 00248 stream.next(m.contact_surface_layer); 00249 stream.next(m.contact_max_correcting_vel); 00250 stream.next(m.cfm); 00251 stream.next(m.erp); 00252 stream.next(m.max_contacts); 00253 } 00254 00255 ROS_DECLARE_ALLINONE_SERIALIZER; 00256 }; // struct ODEPhysics_ 00257 } // namespace serialization 00258 } // namespace ros 00259 00260 namespace ros 00261 { 00262 namespace message_operations 00263 { 00264 00265 template<class ContainerAllocator> 00266 struct Printer< ::gazebo_msgs::ODEPhysics_<ContainerAllocator> > 00267 { 00268 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo_msgs::ODEPhysics_<ContainerAllocator> & v) 00269 { 00270 s << indent << "auto_disable_bodies: "; 00271 Printer<uint8_t>::stream(s, indent + " ", v.auto_disable_bodies); 00272 s << indent << "sor_pgs_precon_iters: "; 00273 Printer<uint32_t>::stream(s, indent + " ", v.sor_pgs_precon_iters); 00274 s << indent << "sor_pgs_iters: "; 00275 Printer<uint32_t>::stream(s, indent + " ", v.sor_pgs_iters); 00276 s << indent << "sor_pgs_w: "; 00277 Printer<double>::stream(s, indent + " ", v.sor_pgs_w); 00278 s << indent << "sor_pgs_rms_error_tol: "; 00279 Printer<double>::stream(s, indent + " ", v.sor_pgs_rms_error_tol); 00280 s << indent << "contact_surface_layer: "; 00281 Printer<double>::stream(s, indent + " ", v.contact_surface_layer); 00282 s << indent << "contact_max_correcting_vel: "; 00283 Printer<double>::stream(s, indent + " ", v.contact_max_correcting_vel); 00284 s << indent << "cfm: "; 00285 Printer<double>::stream(s, indent + " ", v.cfm); 00286 s << indent << "erp: "; 00287 Printer<double>::stream(s, indent + " ", v.erp); 00288 s << indent << "max_contacts: "; 00289 Printer<uint32_t>::stream(s, indent + " ", v.max_contacts); 00290 } 00291 }; 00292 00293 00294 } // namespace message_operations 00295 } // namespace ros 00296 00297 #endif // GAZEBO_MSGS_MESSAGE_ODEPHYSICS_H 00298