From 1574d9d111a50f0f2655a5e1b15f6b10c13c6ea2 Mon Sep 17 00:00:00 2001 From: Chris Iverach-Brereton Date: Thu, 14 Nov 2024 12:24:50 -0500 Subject: [PATCH] Use the device_type to set the model for the new description macro --- .../clearpath_generator_common/description/sensors.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clearpath_generator_common/clearpath_generator_common/description/sensors.py b/clearpath_generator_common/clearpath_generator_common/description/sensors.py index 74a029f..8fe4dd0 100644 --- a/clearpath_generator_common/clearpath_generator_common/description/sensors.py +++ b/clearpath_generator_common/clearpath_generator_common/description/sensors.py @@ -151,15 +151,13 @@ def __init__(self, sensor: BaseCamera) -> None: }) class AxisCameraDescription(CameraDescription): - IMAGE_WIDTH = 'image_width' - IMAGE_HEIGHT = 'image_height' + MODEL = 'model' def __init__(self, sensor: AxisCamera) -> None: super().__init__(sensor) self.parameters.update({ - self.IMAGE_HEIGHT: sensor.frame_height, - self.IMAGE_WIDTH: sensor.frame_width + self.MODEL: sensor.device_type }) class IntelRealsenseDescription(CameraDescription):