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