$search
00001 """autogenerated by genmsg_py from GetPhysicsPropertiesRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 00006 class GetPhysicsPropertiesRequest(roslib.message.Message): 00007 _md5sum = "d41d8cd98f00b204e9800998ecf8427e" 00008 _type = "gazebo_msgs/GetPhysicsPropertiesRequest" 00009 _has_header = False #flag to mark the presence of a Header object 00010 _full_text = """ 00011 """ 00012 __slots__ = [] 00013 _slot_types = [] 00014 00015 def __init__(self, *args, **kwds): 00016 """ 00017 Constructor. Any message fields that are implicitly/explicitly 00018 set to None will be assigned a default value. The recommend 00019 use is keyword arguments as this is more robust to future message 00020 changes. You cannot mix in-order arguments and keyword arguments. 00021 00022 The available fields are: 00023 00024 00025 @param args: complete set of field values, in .msg order 00026 @param kwds: use keyword arguments corresponding to message field names 00027 to set specific fields. 00028 """ 00029 if args or kwds: 00030 super(GetPhysicsPropertiesRequest, self).__init__(*args, **kwds) 00031 00032 def _get_types(self): 00033 """ 00034 internal API method 00035 """ 00036 return self._slot_types 00037 00038 def serialize(self, buff): 00039 """ 00040 serialize message into buffer 00041 @param buff: buffer 00042 @type buff: StringIO 00043 """ 00044 try: 00045 pass 00046 except struct.error as se: self._check_types(se) 00047 except TypeError as te: self._check_types(te) 00048 00049 def deserialize(self, str): 00050 """ 00051 unpack serialized message in str into this message instance 00052 @param str: byte array of serialized message 00053 @type str: str 00054 """ 00055 try: 00056 end = 0 00057 return self 00058 except struct.error as e: 00059 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00060 00061 00062 def serialize_numpy(self, buff, numpy): 00063 """ 00064 serialize message with numpy array types into buffer 00065 @param buff: buffer 00066 @type buff: StringIO 00067 @param numpy: numpy python module 00068 @type numpy module 00069 """ 00070 try: 00071 pass 00072 except struct.error as se: self._check_types(se) 00073 except TypeError as te: self._check_types(te) 00074 00075 def deserialize_numpy(self, str, numpy): 00076 """ 00077 unpack serialized message in str into this message instance using numpy for array types 00078 @param str: byte array of serialized message 00079 @type str: str 00080 @param numpy: numpy python module 00081 @type numpy: module 00082 """ 00083 try: 00084 end = 0 00085 return self 00086 except struct.error as e: 00087 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00088 00089 _struct_I = roslib.message.struct_I 00090 """autogenerated by genmsg_py from GetPhysicsPropertiesResponse.msg. Do not edit.""" 00091 import roslib.message 00092 import struct 00093 00094 import geometry_msgs.msg 00095 import gazebo_msgs.msg 00096 00097 class GetPhysicsPropertiesResponse(roslib.message.Message): 00098 _md5sum = "575a5e74786981b7df2e3afc567693a6" 00099 _type = "gazebo_msgs/GetPhysicsPropertiesResponse" 00100 _has_header = False #flag to mark the presence of a Header object 00101 _full_text = """ 00102 float64 time_step 00103 bool pause 00104 float64 max_update_rate 00105 geometry_msgs/Vector3 gravity 00106 gazebo_msgs/ODEPhysics ode_config 00107 bool success 00108 string status_message 00109 00110 00111 ================================================================================ 00112 MSG: geometry_msgs/Vector3 00113 # This represents a vector in free space. 00114 00115 float64 x 00116 float64 y 00117 float64 z 00118 ================================================================================ 00119 MSG: gazebo_msgs/ODEPhysics 00120 bool auto_disable_bodies # enable auto disabling of bodies, default false 00121 uint32 sor_pgs_precon_iters # preconditioning inner iterations when uisng projected Gauss Seidel 00122 uint32 sor_pgs_iters # inner iterations when uisng projected Gauss Seidel 00123 float64 sor_pgs_w # relaxation parameter when using projected Gauss Seidel, 1 = no relaxation 00124 float64 sor_pgs_rms_error_tol # rms error tolerance before stopping inner iterations 00125 float64 contact_surface_layer # contact "dead-band" width 00126 float64 contact_max_correcting_vel # contact maximum correction velocity 00127 float64 cfm # global constraint force mixing 00128 float64 erp # global error reduction parameter 00129 uint32 max_contacts # maximum contact joints between two geoms 00130 00131 """ 00132 __slots__ = ['time_step','pause','max_update_rate','gravity','ode_config','success','status_message'] 00133 _slot_types = ['float64','bool','float64','geometry_msgs/Vector3','gazebo_msgs/ODEPhysics','bool','string'] 00134 00135 def __init__(self, *args, **kwds): 00136 """ 00137 Constructor. Any message fields that are implicitly/explicitly 00138 set to None will be assigned a default value. The recommend 00139 use is keyword arguments as this is more robust to future message 00140 changes. You cannot mix in-order arguments and keyword arguments. 00141 00142 The available fields are: 00143 time_step,pause,max_update_rate,gravity,ode_config,success,status_message 00144 00145 @param args: complete set of field values, in .msg order 00146 @param kwds: use keyword arguments corresponding to message field names 00147 to set specific fields. 00148 """ 00149 if args or kwds: 00150 super(GetPhysicsPropertiesResponse, self).__init__(*args, **kwds) 00151 #message fields cannot be None, assign default values for those that are 00152 if self.time_step is None: 00153 self.time_step = 0. 00154 if self.pause is None: 00155 self.pause = False 00156 if self.max_update_rate is None: 00157 self.max_update_rate = 0. 00158 if self.gravity is None: 00159 self.gravity = geometry_msgs.msg.Vector3() 00160 if self.ode_config is None: 00161 self.ode_config = gazebo_msgs.msg.ODEPhysics() 00162 if self.success is None: 00163 self.success = False 00164 if self.status_message is None: 00165 self.status_message = '' 00166 else: 00167 self.time_step = 0. 00168 self.pause = False 00169 self.max_update_rate = 0. 00170 self.gravity = geometry_msgs.msg.Vector3() 00171 self.ode_config = gazebo_msgs.msg.ODEPhysics() 00172 self.success = False 00173 self.status_message = '' 00174 00175 def _get_types(self): 00176 """ 00177 internal API method 00178 """ 00179 return self._slot_types 00180 00181 def serialize(self, buff): 00182 """ 00183 serialize message into buffer 00184 @param buff: buffer 00185 @type buff: StringIO 00186 """ 00187 try: 00188 _x = self 00189 buff.write(_struct_dB4dB2I6dIB.pack(_x.time_step, _x.pause, _x.max_update_rate, _x.gravity.x, _x.gravity.y, _x.gravity.z, _x.ode_config.auto_disable_bodies, _x.ode_config.sor_pgs_precon_iters, _x.ode_config.sor_pgs_iters, _x.ode_config.sor_pgs_w, _x.ode_config.sor_pgs_rms_error_tol, _x.ode_config.contact_surface_layer, _x.ode_config.contact_max_correcting_vel, _x.ode_config.cfm, _x.ode_config.erp, _x.ode_config.max_contacts, _x.success)) 00190 _x = self.status_message 00191 length = len(_x) 00192 buff.write(struct.pack('<I%ss'%length, length, _x)) 00193 except struct.error as se: self._check_types(se) 00194 except TypeError as te: self._check_types(te) 00195 00196 def deserialize(self, str): 00197 """ 00198 unpack serialized message in str into this message instance 00199 @param str: byte array of serialized message 00200 @type str: str 00201 """ 00202 try: 00203 if self.gravity is None: 00204 self.gravity = geometry_msgs.msg.Vector3() 00205 if self.ode_config is None: 00206 self.ode_config = gazebo_msgs.msg.ODEPhysics() 00207 end = 0 00208 _x = self 00209 start = end 00210 end += 103 00211 (_x.time_step, _x.pause, _x.max_update_rate, _x.gravity.x, _x.gravity.y, _x.gravity.z, _x.ode_config.auto_disable_bodies, _x.ode_config.sor_pgs_precon_iters, _x.ode_config.sor_pgs_iters, _x.ode_config.sor_pgs_w, _x.ode_config.sor_pgs_rms_error_tol, _x.ode_config.contact_surface_layer, _x.ode_config.contact_max_correcting_vel, _x.ode_config.cfm, _x.ode_config.erp, _x.ode_config.max_contacts, _x.success,) = _struct_dB4dB2I6dIB.unpack(str[start:end]) 00212 self.pause = bool(self.pause) 00213 self.ode_config.auto_disable_bodies = bool(self.ode_config.auto_disable_bodies) 00214 self.success = bool(self.success) 00215 start = end 00216 end += 4 00217 (length,) = _struct_I.unpack(str[start:end]) 00218 start = end 00219 end += length 00220 self.status_message = str[start:end] 00221 return self 00222 except struct.error as e: 00223 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00224 00225 00226 def serialize_numpy(self, buff, numpy): 00227 """ 00228 serialize message with numpy array types into buffer 00229 @param buff: buffer 00230 @type buff: StringIO 00231 @param numpy: numpy python module 00232 @type numpy module 00233 """ 00234 try: 00235 _x = self 00236 buff.write(_struct_dB4dB2I6dIB.pack(_x.time_step, _x.pause, _x.max_update_rate, _x.gravity.x, _x.gravity.y, _x.gravity.z, _x.ode_config.auto_disable_bodies, _x.ode_config.sor_pgs_precon_iters, _x.ode_config.sor_pgs_iters, _x.ode_config.sor_pgs_w, _x.ode_config.sor_pgs_rms_error_tol, _x.ode_config.contact_surface_layer, _x.ode_config.contact_max_correcting_vel, _x.ode_config.cfm, _x.ode_config.erp, _x.ode_config.max_contacts, _x.success)) 00237 _x = self.status_message 00238 length = len(_x) 00239 buff.write(struct.pack('<I%ss'%length, length, _x)) 00240 except struct.error as se: self._check_types(se) 00241 except TypeError as te: self._check_types(te) 00242 00243 def deserialize_numpy(self, str, numpy): 00244 """ 00245 unpack serialized message in str into this message instance using numpy for array types 00246 @param str: byte array of serialized message 00247 @type str: str 00248 @param numpy: numpy python module 00249 @type numpy: module 00250 """ 00251 try: 00252 if self.gravity is None: 00253 self.gravity = geometry_msgs.msg.Vector3() 00254 if self.ode_config is None: 00255 self.ode_config = gazebo_msgs.msg.ODEPhysics() 00256 end = 0 00257 _x = self 00258 start = end 00259 end += 103 00260 (_x.time_step, _x.pause, _x.max_update_rate, _x.gravity.x, _x.gravity.y, _x.gravity.z, _x.ode_config.auto_disable_bodies, _x.ode_config.sor_pgs_precon_iters, _x.ode_config.sor_pgs_iters, _x.ode_config.sor_pgs_w, _x.ode_config.sor_pgs_rms_error_tol, _x.ode_config.contact_surface_layer, _x.ode_config.contact_max_correcting_vel, _x.ode_config.cfm, _x.ode_config.erp, _x.ode_config.max_contacts, _x.success,) = _struct_dB4dB2I6dIB.unpack(str[start:end]) 00261 self.pause = bool(self.pause) 00262 self.ode_config.auto_disable_bodies = bool(self.ode_config.auto_disable_bodies) 00263 self.success = bool(self.success) 00264 start = end 00265 end += 4 00266 (length,) = _struct_I.unpack(str[start:end]) 00267 start = end 00268 end += length 00269 self.status_message = str[start:end] 00270 return self 00271 except struct.error as e: 00272 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00273 00274 _struct_I = roslib.message.struct_I 00275 _struct_dB4dB2I6dIB = struct.Struct("<dB4dB2I6dIB") 00276 class GetPhysicsProperties(roslib.message.ServiceDefinition): 00277 _type = 'gazebo_msgs/GetPhysicsProperties' 00278 _md5sum = '575a5e74786981b7df2e3afc567693a6' 00279 _request_class = GetPhysicsPropertiesRequest 00280 _response_class = GetPhysicsPropertiesResponse