$search
00001 """autogenerated by genmsg_py from SaveScanRequest.msg. Do not edit.""" 00002 import roslib.message 00003 import struct 00004 00005 import geometry_msgs.msg 00006 import std_msgs.msg 00007 00008 class SaveScanRequest(roslib.message.Message): 00009 _md5sum = "492f49d320aa26325df5fb078c297fa5" 00010 _type = "household_objects_database_msgs/SaveScanRequest" 00011 _has_header = False #flag to mark the presence of a Header object 00012 _full_text = """ 00013 00014 00015 int32 scaled_model_id 00016 00017 00018 geometry_msgs/PoseStamped ground_truth_pose 00019 00020 00021 string bagfile_location 00022 00023 00024 string scan_source 00025 00026 00027 string cloud_topic 00028 00029 00030 ================================================================================ 00031 MSG: geometry_msgs/PoseStamped 00032 # A Pose with reference coordinate frame and timestamp 00033 Header header 00034 Pose pose 00035 00036 ================================================================================ 00037 MSG: std_msgs/Header 00038 # Standard metadata for higher-level stamped data types. 00039 # This is generally used to communicate timestamped data 00040 # in a particular coordinate frame. 00041 # 00042 # sequence ID: consecutively increasing ID 00043 uint32 seq 00044 #Two-integer timestamp that is expressed as: 00045 # * stamp.secs: seconds (stamp_secs) since epoch 00046 # * stamp.nsecs: nanoseconds since stamp_secs 00047 # time-handling sugar is provided by the client library 00048 time stamp 00049 #Frame this data is associated with 00050 # 0: no frame 00051 # 1: global frame 00052 string frame_id 00053 00054 ================================================================================ 00055 MSG: geometry_msgs/Pose 00056 # A representation of pose in free space, composed of postion and orientation. 00057 Point position 00058 Quaternion orientation 00059 00060 ================================================================================ 00061 MSG: geometry_msgs/Point 00062 # This contains the position of a point in free space 00063 float64 x 00064 float64 y 00065 float64 z 00066 00067 ================================================================================ 00068 MSG: geometry_msgs/Quaternion 00069 # This represents an orientation in free space in quaternion form. 00070 00071 float64 x 00072 float64 y 00073 float64 z 00074 float64 w 00075 00076 """ 00077 __slots__ = ['scaled_model_id','ground_truth_pose','bagfile_location','scan_source','cloud_topic'] 00078 _slot_types = ['int32','geometry_msgs/PoseStamped','string','string','string'] 00079 00080 def __init__(self, *args, **kwds): 00081 """ 00082 Constructor. Any message fields that are implicitly/explicitly 00083 set to None will be assigned a default value. The recommend 00084 use is keyword arguments as this is more robust to future message 00085 changes. You cannot mix in-order arguments and keyword arguments. 00086 00087 The available fields are: 00088 scaled_model_id,ground_truth_pose,bagfile_location,scan_source,cloud_topic 00089 00090 @param args: complete set of field values, in .msg order 00091 @param kwds: use keyword arguments corresponding to message field names 00092 to set specific fields. 00093 """ 00094 if args or kwds: 00095 super(SaveScanRequest, self).__init__(*args, **kwds) 00096 #message fields cannot be None, assign default values for those that are 00097 if self.scaled_model_id is None: 00098 self.scaled_model_id = 0 00099 if self.ground_truth_pose is None: 00100 self.ground_truth_pose = geometry_msgs.msg.PoseStamped() 00101 if self.bagfile_location is None: 00102 self.bagfile_location = '' 00103 if self.scan_source is None: 00104 self.scan_source = '' 00105 if self.cloud_topic is None: 00106 self.cloud_topic = '' 00107 else: 00108 self.scaled_model_id = 0 00109 self.ground_truth_pose = geometry_msgs.msg.PoseStamped() 00110 self.bagfile_location = '' 00111 self.scan_source = '' 00112 self.cloud_topic = '' 00113 00114 def _get_types(self): 00115 """ 00116 internal API method 00117 """ 00118 return self._slot_types 00119 00120 def serialize(self, buff): 00121 """ 00122 serialize message into buffer 00123 @param buff: buffer 00124 @type buff: StringIO 00125 """ 00126 try: 00127 _x = self 00128 buff.write(_struct_i3I.pack(_x.scaled_model_id, _x.ground_truth_pose.header.seq, _x.ground_truth_pose.header.stamp.secs, _x.ground_truth_pose.header.stamp.nsecs)) 00129 _x = self.ground_truth_pose.header.frame_id 00130 length = len(_x) 00131 buff.write(struct.pack('<I%ss'%length, length, _x)) 00132 _x = self 00133 buff.write(_struct_7d.pack(_x.ground_truth_pose.pose.position.x, _x.ground_truth_pose.pose.position.y, _x.ground_truth_pose.pose.position.z, _x.ground_truth_pose.pose.orientation.x, _x.ground_truth_pose.pose.orientation.y, _x.ground_truth_pose.pose.orientation.z, _x.ground_truth_pose.pose.orientation.w)) 00134 _x = self.bagfile_location 00135 length = len(_x) 00136 buff.write(struct.pack('<I%ss'%length, length, _x)) 00137 _x = self.scan_source 00138 length = len(_x) 00139 buff.write(struct.pack('<I%ss'%length, length, _x)) 00140 _x = self.cloud_topic 00141 length = len(_x) 00142 buff.write(struct.pack('<I%ss'%length, length, _x)) 00143 except struct.error as se: self._check_types(se) 00144 except TypeError as te: self._check_types(te) 00145 00146 def deserialize(self, str): 00147 """ 00148 unpack serialized message in str into this message instance 00149 @param str: byte array of serialized message 00150 @type str: str 00151 """ 00152 try: 00153 if self.ground_truth_pose is None: 00154 self.ground_truth_pose = geometry_msgs.msg.PoseStamped() 00155 end = 0 00156 _x = self 00157 start = end 00158 end += 16 00159 (_x.scaled_model_id, _x.ground_truth_pose.header.seq, _x.ground_truth_pose.header.stamp.secs, _x.ground_truth_pose.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end]) 00160 start = end 00161 end += 4 00162 (length,) = _struct_I.unpack(str[start:end]) 00163 start = end 00164 end += length 00165 self.ground_truth_pose.header.frame_id = str[start:end] 00166 _x = self 00167 start = end 00168 end += 56 00169 (_x.ground_truth_pose.pose.position.x, _x.ground_truth_pose.pose.position.y, _x.ground_truth_pose.pose.position.z, _x.ground_truth_pose.pose.orientation.x, _x.ground_truth_pose.pose.orientation.y, _x.ground_truth_pose.pose.orientation.z, _x.ground_truth_pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00170 start = end 00171 end += 4 00172 (length,) = _struct_I.unpack(str[start:end]) 00173 start = end 00174 end += length 00175 self.bagfile_location = str[start:end] 00176 start = end 00177 end += 4 00178 (length,) = _struct_I.unpack(str[start:end]) 00179 start = end 00180 end += length 00181 self.scan_source = str[start:end] 00182 start = end 00183 end += 4 00184 (length,) = _struct_I.unpack(str[start:end]) 00185 start = end 00186 end += length 00187 self.cloud_topic = str[start:end] 00188 return self 00189 except struct.error as e: 00190 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00191 00192 00193 def serialize_numpy(self, buff, numpy): 00194 """ 00195 serialize message with numpy array types into buffer 00196 @param buff: buffer 00197 @type buff: StringIO 00198 @param numpy: numpy python module 00199 @type numpy module 00200 """ 00201 try: 00202 _x = self 00203 buff.write(_struct_i3I.pack(_x.scaled_model_id, _x.ground_truth_pose.header.seq, _x.ground_truth_pose.header.stamp.secs, _x.ground_truth_pose.header.stamp.nsecs)) 00204 _x = self.ground_truth_pose.header.frame_id 00205 length = len(_x) 00206 buff.write(struct.pack('<I%ss'%length, length, _x)) 00207 _x = self 00208 buff.write(_struct_7d.pack(_x.ground_truth_pose.pose.position.x, _x.ground_truth_pose.pose.position.y, _x.ground_truth_pose.pose.position.z, _x.ground_truth_pose.pose.orientation.x, _x.ground_truth_pose.pose.orientation.y, _x.ground_truth_pose.pose.orientation.z, _x.ground_truth_pose.pose.orientation.w)) 00209 _x = self.bagfile_location 00210 length = len(_x) 00211 buff.write(struct.pack('<I%ss'%length, length, _x)) 00212 _x = self.scan_source 00213 length = len(_x) 00214 buff.write(struct.pack('<I%ss'%length, length, _x)) 00215 _x = self.cloud_topic 00216 length = len(_x) 00217 buff.write(struct.pack('<I%ss'%length, length, _x)) 00218 except struct.error as se: self._check_types(se) 00219 except TypeError as te: self._check_types(te) 00220 00221 def deserialize_numpy(self, str, numpy): 00222 """ 00223 unpack serialized message in str into this message instance using numpy for array types 00224 @param str: byte array of serialized message 00225 @type str: str 00226 @param numpy: numpy python module 00227 @type numpy: module 00228 """ 00229 try: 00230 if self.ground_truth_pose is None: 00231 self.ground_truth_pose = geometry_msgs.msg.PoseStamped() 00232 end = 0 00233 _x = self 00234 start = end 00235 end += 16 00236 (_x.scaled_model_id, _x.ground_truth_pose.header.seq, _x.ground_truth_pose.header.stamp.secs, _x.ground_truth_pose.header.stamp.nsecs,) = _struct_i3I.unpack(str[start:end]) 00237 start = end 00238 end += 4 00239 (length,) = _struct_I.unpack(str[start:end]) 00240 start = end 00241 end += length 00242 self.ground_truth_pose.header.frame_id = str[start:end] 00243 _x = self 00244 start = end 00245 end += 56 00246 (_x.ground_truth_pose.pose.position.x, _x.ground_truth_pose.pose.position.y, _x.ground_truth_pose.pose.position.z, _x.ground_truth_pose.pose.orientation.x, _x.ground_truth_pose.pose.orientation.y, _x.ground_truth_pose.pose.orientation.z, _x.ground_truth_pose.pose.orientation.w,) = _struct_7d.unpack(str[start:end]) 00247 start = end 00248 end += 4 00249 (length,) = _struct_I.unpack(str[start:end]) 00250 start = end 00251 end += length 00252 self.bagfile_location = str[start:end] 00253 start = end 00254 end += 4 00255 (length,) = _struct_I.unpack(str[start:end]) 00256 start = end 00257 end += length 00258 self.scan_source = str[start:end] 00259 start = end 00260 end += 4 00261 (length,) = _struct_I.unpack(str[start:end]) 00262 start = end 00263 end += length 00264 self.cloud_topic = str[start:end] 00265 return self 00266 except struct.error as e: 00267 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00268 00269 _struct_I = roslib.message.struct_I 00270 _struct_i3I = struct.Struct("<i3I") 00271 _struct_7d = struct.Struct("<7d") 00272 """autogenerated by genmsg_py from SaveScanResponse.msg. Do not edit.""" 00273 import roslib.message 00274 import struct 00275 00276 import household_objects_database_msgs.msg 00277 00278 class SaveScanResponse(roslib.message.Message): 00279 _md5sum = "b49fccceeb56b964ed23601916a24082" 00280 _type = "household_objects_database_msgs/SaveScanResponse" 00281 _has_header = False #flag to mark the presence of a Header object 00282 _full_text = """ 00283 00284 DatabaseReturnCode return_code 00285 00286 ================================================================================ 00287 MSG: household_objects_database_msgs/DatabaseReturnCode 00288 # return codes for database-related services 00289 00290 int32 UNKNOWN_ERROR = 1 00291 int32 DATABASE_NOT_CONNECTED = 2 00292 int32 DATABASE_QUERY_ERROR = 3 00293 int32 SUCCESS = -1 00294 00295 int32 code 00296 """ 00297 __slots__ = ['return_code'] 00298 _slot_types = ['household_objects_database_msgs/DatabaseReturnCode'] 00299 00300 def __init__(self, *args, **kwds): 00301 """ 00302 Constructor. Any message fields that are implicitly/explicitly 00303 set to None will be assigned a default value. The recommend 00304 use is keyword arguments as this is more robust to future message 00305 changes. You cannot mix in-order arguments and keyword arguments. 00306 00307 The available fields are: 00308 return_code 00309 00310 @param args: complete set of field values, in .msg order 00311 @param kwds: use keyword arguments corresponding to message field names 00312 to set specific fields. 00313 """ 00314 if args or kwds: 00315 super(SaveScanResponse, self).__init__(*args, **kwds) 00316 #message fields cannot be None, assign default values for those that are 00317 if self.return_code is None: 00318 self.return_code = household_objects_database_msgs.msg.DatabaseReturnCode() 00319 else: 00320 self.return_code = household_objects_database_msgs.msg.DatabaseReturnCode() 00321 00322 def _get_types(self): 00323 """ 00324 internal API method 00325 """ 00326 return self._slot_types 00327 00328 def serialize(self, buff): 00329 """ 00330 serialize message into buffer 00331 @param buff: buffer 00332 @type buff: StringIO 00333 """ 00334 try: 00335 buff.write(_struct_i.pack(self.return_code.code)) 00336 except struct.error as se: self._check_types(se) 00337 except TypeError as te: self._check_types(te) 00338 00339 def deserialize(self, str): 00340 """ 00341 unpack serialized message in str into this message instance 00342 @param str: byte array of serialized message 00343 @type str: str 00344 """ 00345 try: 00346 if self.return_code is None: 00347 self.return_code = household_objects_database_msgs.msg.DatabaseReturnCode() 00348 end = 0 00349 start = end 00350 end += 4 00351 (self.return_code.code,) = _struct_i.unpack(str[start:end]) 00352 return self 00353 except struct.error as e: 00354 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00355 00356 00357 def serialize_numpy(self, buff, numpy): 00358 """ 00359 serialize message with numpy array types into buffer 00360 @param buff: buffer 00361 @type buff: StringIO 00362 @param numpy: numpy python module 00363 @type numpy module 00364 """ 00365 try: 00366 buff.write(_struct_i.pack(self.return_code.code)) 00367 except struct.error as se: self._check_types(se) 00368 except TypeError as te: self._check_types(te) 00369 00370 def deserialize_numpy(self, str, numpy): 00371 """ 00372 unpack serialized message in str into this message instance using numpy for array types 00373 @param str: byte array of serialized message 00374 @type str: str 00375 @param numpy: numpy python module 00376 @type numpy: module 00377 """ 00378 try: 00379 if self.return_code is None: 00380 self.return_code = household_objects_database_msgs.msg.DatabaseReturnCode() 00381 end = 0 00382 start = end 00383 end += 4 00384 (self.return_code.code,) = _struct_i.unpack(str[start:end]) 00385 return self 00386 except struct.error as e: 00387 raise roslib.message.DeserializationError(e) #most likely buffer underfill 00388 00389 _struct_I = roslib.message.struct_I 00390 _struct_i = struct.Struct("<i") 00391 class SaveScan(roslib.message.ServiceDefinition): 00392 _type = 'household_objects_database_msgs/SaveScan' 00393 _md5sum = '855c7b6f2658d8a9de03dd9a5f7b1f1e' 00394 _request_class = SaveScanRequest 00395 _response_class = SaveScanResponse