From bd55bdf3672f1b555040cec61a18a3d8eef959b0 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Busch Date: Thu, 14 Nov 2024 21:32:14 +0100 Subject: [PATCH] add confidence values to sample cpm --- etsi_its_msgs_utils/samples/publish_cpm_ts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etsi_its_msgs_utils/samples/publish_cpm_ts.py b/etsi_its_msgs_utils/samples/publish_cpm_ts.py index 3ada73a7..dd770bdc 100755 --- a/etsi_its_msgs_utils/samples/publish_cpm_ts.py +++ b/etsi_its_msgs_utils/samples/publish_cpm_ts.py @@ -67,10 +67,13 @@ def publish(self): perceived_object.position.y_coordinate.confidence.value = perceived_object.position.y_coordinate.confidence.UNAVAILABLE perceived_object.object_dimension_x_is_present = True perceived_object.object_dimension_x.value.value = int(3.5 * 1e1) + perceived_object.object_dimension_x.confidence.value = perceived_object.object_dimension_x.confidence.UNAVAILABLE perceived_object.object_dimension_y_is_present = True perceived_object.object_dimension_y.value.value = int(1.8 * 1e1) + perceived_object.object_dimension_y.confidence.value = perceived_object.object_dimension_y.confidence.UNAVAILABLE perceived_object.object_dimension_z_is_present = True perceived_object.object_dimension_z.value.value = int(1.6 * 1e1) + perceived_object.object_dimension_z.confidence.value = perceived_object.object_dimension_z.confidence.UNAVAILABLE perceived_object_container.perceived_objects.array.append(perceived_object) cpm_container.container_data.perceived_object_container = perceived_object_container