Cameras#
Cameras expose a small capture interface for connecting to a device and retrieving frames.
camera.connect()
frame = camera.read_latest()
camera.disconnect()
Read Modes#
Method |
Behavior |
Use |
|---|---|---|
|
next frame, blocking |
recording or complete frame streams |
|
newest frame, non-blocking |
real-time control |
|
async wrapper around |
async applications |
Runtime Use#
Control loops usually care more about freshness than completeness.
observation["image.wrist"] = wrist_camera.read_latest()
Camera instances are not thread-safe. Use one thread per camera instance or add external synchronization.