{"library":"ouster-sdk","title":"Ouster SDK","description":"Official Python SDK for Ouster lidar sensors. Provides real-time data capture, visualization, and CLI tools for configuration, recording, and playback. Current version 0.16.2, with quarterly releases following a pattern of vX.Y.Z. Supports Python 3.8+. Breaking changes often involve reorganization under ouster.sdk prefix.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install ouster-sdk"],"cli":{"name":"ouster-cli","version":"Traceback (most recent call last):"}},"imports":["from ouster.sdk.client import LidarScan","from ouster.sdk.client import SensorInfo","from ouster.sdk.client import ScanBatcher","from ouster.sdk.client import PacketSource","from ouster.sdk.viz import PointViz"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from ouster.sdk.client import SensorInfo, LidarScan, ScanBatcher\nfrom ouster.sdk.client import PacketSource\nimport numpy as np\n\n# Connect to sensor (use hostname or IP)\nsensor_hostname = os.environ.get('OUSTER_HOSTNAME', '192.168.1.100')\nsensor_info = SensorInfo(sensor_hostname)\nprint(sensor_info)\n\n# Create a packet source\nsource = PacketSource(sensor_hostname)\n\n# Batcher to assemble LidarScan\nbatcher = ScanBatcher(sensor_info)\n\n# Collect one scan\nfor packet in source:\n    scan = batcher(packet)\n    if scan is not None:\n        print(f\"Got scan at {scan.timestamp}\")\n        break\n","lang":"python","description":"Connect to an Ouster sensor and capture one LidarScan.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}