Hot to get IMU sensor data

I’m coding using Python and I need to get IMU sensor data.
I’m referring to this page SensorsData Class Reference | API Reference | Stereolabs but I can’t use those functions… documentation isn’t so clear.

What’s wrong with this?
sl.SensorsData.get_imu_data()

Is it necessary to do sl.SensorsData.init_sensorsData()? I see it requires an argument of type SensorData but I don’t know how to pass it.

Thank so much

Hello,

You should understand better if you read our tutorial 4 : zed-examples/positional_tracking.py at master · stereolabs/zed-examples · GitHub
When use these fonctions in there.

Antoine

1 Like