stereolabs / zed-python-api

Python API for the ZED SDK
https://www.stereolabs.com/docs/app-development/python/install/
MIT License
209 stars 95 forks source link

TypeError: Expected a mapping, got pyzed.sl.PositionalTrackingFusionParameters #233

Open frigusgulo opened 9 months ago

frigusgulo commented 9 months ago

Preliminary Checks

Description

Trying to enable positionnal tracking parameters with the fusion module

Steps to Reproduce

fusion = sl.Fusion()
fusion_params = zed_config.parse_fusion_params()
fusion_params.verbose = True
fusion.init(fusion_params)

fusion_params_tracking = sl.PositionalTrackingFusionParameters()
fusion_params_tracking.enable_GNSS_fusion = True
fusion.enable_positionnal_tracking(parameters = fusion_params_tracking)

Expected Result

Expect this to enable positionnal tracking.

Actual Result

I get

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "pyzed/sl.pyx", line 11543, in pyzed.sl.Fusion.enable_positionnal_tracking
  File "<stringsource>", line 15, in FromPyStructUtility.__pyx_convert__from_py_struct__sl_3a__3a_PositionalTrackingFusionParameters
TypeError: Expected a mapping, got pyzed.sl.PositionalTrackingFusionParameters

ZED Camera model

ZED2

Environment

OS: Ubuntu 22.04

Anything else?

No