def scan(stream_digest: digest.StreamDigest, meta: client.SensorInfo) -> client.LidarScan: bin_path = path.join(DATA_DIR, "os-992011000121_data.bin") with open(bin_path, 'rb') as b: source = digest.LidarBufStream(b, meta) scans = client.Scans(source) scan = next(iter(scans)) return scan
def packets(stream_digest: digest.StreamDigest): bin_path = path.join(DATA_DIR, "os-992011000121_data.bin") with open(bin_path, 'rb') as b: yield digest.LidarBufStream(b, stream_digest.meta)
def scan(meta) -> client.LidarScan: bin_path = path.join(DATA_DIR, "os-992011000121_data.bin") with open(bin_path, 'rb') as b: source = digest.LidarBufStream(b, meta) scans = client.Scans(source) return next(iter(scans))
def packet(stream_digest): bin_path = path.join(DATA_DIR, "os-992011000121_data.bin") with open(bin_path, 'rb') as b: return next(iter(digest.LidarBufStream(b, stream_digest.meta)))
def packet(stream_digest: digest.StreamDigest, meta: client.SensorInfo): bin_path = path.join(DATA_DIR, "os-992011000121_data.bin") with open(bin_path, 'rb') as b: return next(iter(digest.LidarBufStream(b, meta)))