Skip to content

Commit

Permalink
add confidence values to sample cpm
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbusch committed Nov 14, 2024
1 parent 21b4fc5 commit bd55bdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etsi_its_msgs_utils/samples/publish_cpm_ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd55bdf

Please sign in to comment.