def test_capture(device: PyK4A): device.open() device._start_cameras() capture = device.get_capture() assert capture._capture_handle is not None
def test_start_stop_cameras(device: PyK4A): device.open() device._start_cameras() device._stop_cameras()
def test_start_stop_imu(device: PyK4A): device.open() device._start_cameras() # imu will not work without cameras device._start_imu() device._stop_imu() device._stop_cameras()
def test_get_imu_sample(device: PyK4A): device.open() device._start_cameras() device._start_imu() sample = device.get_imu_sample() assert sample is not None
def test_calibration(device: PyK4A): device.open() device._start_cameras() calibration = device.calibration assert calibration