Hello!I am using the ZED X One Stereo device, which has been calibrated, with ZED SDK version 4.2. According to the documentation, I utilized the ZED Media Server tool and obtained image data using the init_params.set_from_stream("127.0.0.1", 30000)
method from the SDK. I noticed that the IMU is indicated as “yes” in the ZED Media Server.However, when I attempt to retrieve IMU data with the following Python code:
import pyzed.sl as sl
zed = sl.Camera()
init_params = sl.InitParameters()
init_params.set_from_stream("127.0.0.1", 30000)
err = zed.open(init_params)
if err != sl.ERROR_CODE.SUCCESS:
exit(1)
sensors_data = sl.SensorsData()
zed.get_sensors_data(sensors_data, sl.TIME_REFERENCE.CURRENT)
while(True):
imu_data = sensors_data.get_imu_data()
angular_velocity = imu_data.get_angular_velocity()
linear_acceleration = imu_data.get_linear_acceleration()
print("angular_velocity", angular_velocity)
print("linear_acceleration", linear_acceleration)
I only receive the following output:
angular_velocity [0.0, 0.0, 0.0]
linear_acceleration [0.0, 0.0, 0.0]
After consulting the official documentation, I learned that “Not available in SVO or STREAM mode.” Does this imply that the ZED X One Stereo cannot obtain accurate IMU data? Is there any alternative way to acquire IMU data with the ZED SDK?