I am new to the DepthAI and was trying to use the following example which comes from DepthAI SDK Docs. When I run it I get an error that says "NameError: name 'IMUPacket' is not defined". Which would imply that call backs do not work with IMU packets? If somebody can help it would be appreciated.
Thanks
from depthai_sdk import OakCamera
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)
Example from "https://docs.luxonis.com/projects/sdk/en/latest/components/imu_component/#usage"