コード例 #1
0
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
コード例 #2
0
ファイル: test_core.py プロジェクト: rrlabtuk/ouster_example
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)
コード例 #3
0
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))
コード例 #4
0
ファイル: test_core.py プロジェクト: rrlabtuk/ouster_example
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)))
コード例 #5
0
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)))