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