Skip to content

Commit

Permalink
Cast serial_number to int in Zed2i, for uniform interface
Browse files Browse the repository at this point in the history
  • Loading branch information
m-decoster committed Dec 5, 2024
1 parent 69831fa commit 0a3e601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airo-camera-toolkit/airo_camera_toolkit/cameras/zed/zed2i.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__( # type: ignore[no-any-unimported]
resolution: CameraResolutionType = RESOLUTION_2K,
fps: int = 15,
depth_mode: sl.DEPTH_MODE = NONE_DEPTH_MODE,
serial_number: Optional[int] = None,
serial_number: Optional[str] = None,
svo_filepath: Optional[str] = None,
) -> None:
self._resolution = resolution
Expand All @@ -98,7 +98,7 @@ def __init__( # type: ignore[no-any-unimported]
self.camera_params = sl.InitParameters()

if serial_number:
self.camera_params.set_from_serial_number(serial_number)
self.camera_params.set_from_serial_number(int(serial_number))

if svo_filepath:
input_type = sl.InputType()
Expand Down

0 comments on commit 0a3e601

Please sign in to comment.