IMUComponent¶
IMUComponent abstracts IMU node and its configuration.
Usage¶
from depthai_sdk import OakCamera
from depthai_sdk.classes import IMUPacket
with OakCamera() as oak:
imu = oak.create_imu()
imu.config_imu(report_rate=400, batch_report_threshold=5)
def callback(packet: IMUPacket):
print(packet)
oak.callback(imu.out.main, callback=callback)
oak.start(blocking=True)