Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: -1835986560 is not a valid POSITIONAL_TRACKING_STATE #234

Open
2 tasks done
frigusgulo opened this issue Nov 17, 2023 · 0 comments
Open
2 tasks done

ValueError: -1835986560 is not a valid POSITIONAL_TRACKING_STATE #234

frigusgulo opened this issue Nov 17, 2023 · 0 comments
Labels

Comments

@frigusgulo
Copy link

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

I am trying to retrieve the fused pose of a camera from the fusion module

Steps to Reproduce

import pyzed.sl as sl
import numpy as np

fusion = sl.Fusion()
fusion_params = zed_config.parse_fusion_params()
fusion_params.verbose = True
self.fusion.init(fusion_params)
fusion_params_tracking = sl.PositionalTrackingFusionParameters()
fusion_params_tracking.enable_GNSS_fusion = True
try:
    positional_tracking_status = fusion.enable_positionnal_tracking(parameters = fusion_params_tracking)
except TypeError as e:
    positional_tracking_status = fusion.enable_positionnal_tracking({
        "enable_GNSS_fusion":True,
        "gnss_calibration_parameters" : {
            "target_yaw_uncertainty": 0.05,
            "enable_translation_uncertainty_target": True,
            "target_translation_uncertainty": 0.05,
            "enable_reinitialization": True,
            "gnss_vio_reinit_threshold": 50,
            "enable_rolling_calibration": True
        }
    })

-----------
  def get_camera_pose(camera_id: sl.CameraIdentifier()) -> np.ndarray:
      pose = sl.Pose()
      
       fused_tracking_state = fusion.get_position(
                camera_pose = pose,
                reference_frame = sl.REFERENCE_FRAME.WORLD,
                uuid = camera_id,
                position_type = sl.POSITION_TYPE.FUSION 
            )
       return pose.pose_data().m

Expected Result

This function should return a np.ndarray

Actual Result

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "pyzed/sl.pyx", line 11560, in pyzed.sl.Fusion.get_position
  File "/home/dunbar/mambaforge/lib/python3.10/enum.py", line 385, in __call__
    return cls.__new__(cls, value)
  File "/home/dunbar/mambaforge/lib/python3.10/enum.py", line 710, in __new__
    raise ve_exc
ValueError: -1835986560 is not a valid POSITIONAL_TRACKING_STATE

ZED Camera model

ZED

Environment

OS: Ubuntu 22.04
ZED SDK latest

Anything else?

No response

@frigusgulo frigusgulo added the bug label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant