From 285ec36fd7255d45f789e243cc799b5527f17683 Mon Sep 17 00:00:00 2001 From: Kenzo Lobos-Tsunekawa Date: Fri, 12 Jan 2024 19:42:39 +0900 Subject: [PATCH] fix: fixed the camera-lidar calibrator that was broken due to some new parameters ant the new launcher configuration schmeme Signed-off-by: Kenzo Lobos-Tsunekawa --- .../launch/calibrator.launch.xml | 2 ++ .../launch/default_project/tag_based_pnp_calibrator.launch.xml | 2 ++ .../views/launcher_configuration_view.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sensor/extrinsic_tag_based_pnp_calibrator/launch/calibrator.launch.xml b/sensor/extrinsic_tag_based_pnp_calibrator/launch/calibrator.launch.xml index dc46ada1..ed4f0430 100644 --- a/sensor/extrinsic_tag_based_pnp_calibrator/launch/calibrator.launch.xml +++ b/sensor/extrinsic_tag_based_pnp_calibrator/launch/calibrator.launch.xml @@ -5,6 +5,7 @@ + @@ -32,6 +33,7 @@ + diff --git a/sensor/new_extrinsic_calibration_manager/launch/default_project/tag_based_pnp_calibrator.launch.xml b/sensor/new_extrinsic_calibration_manager/launch/default_project/tag_based_pnp_calibrator.launch.xml index b9c7cf3d..93cae250 100644 --- a/sensor/new_extrinsic_calibration_manager/launch/default_project/tag_based_pnp_calibrator.launch.xml +++ b/sensor/new_extrinsic_calibration_manager/launch/default_project/tag_based_pnp_calibrator.launch.xml @@ -6,6 +6,7 @@ + @@ -23,6 +24,7 @@ + diff --git a/sensor/new_extrinsic_calibration_manager/new_extrinsic_calibration_manager/views/launcher_configuration_view.py b/sensor/new_extrinsic_calibration_manager/new_extrinsic_calibration_manager/views/launcher_configuration_view.py index 55aca765..6b2e1c90 100644 --- a/sensor/new_extrinsic_calibration_manager/new_extrinsic_calibration_manager/views/launcher_configuration_view.py +++ b/sensor/new_extrinsic_calibration_manager/new_extrinsic_calibration_manager/views/launcher_configuration_view.py @@ -88,7 +88,7 @@ def __init__(self, project_name, calibrator_name): description = e.description if e.description != "no description given" else "" - if len(e.default_value) > 0: + if e.default_value is not None and len(e.default_value) > 0: default_value = e.default_value[-1].text.replace( " ", "" ) # KL: not sure if should the first or last default value