OpenSimulationInterface / open-simulation-interface

A generic interface for the environmental perception of automated driving functions in virtual scenarios.
Other
273 stars 127 forks source link

Ground truth id repeated in DetectedItemHeader #740

Closed jruebsam closed 7 months ago

jruebsam commented 1 year ago

Having a look at the DetectedItemHeader definition I realised that ground_truth_id is defined as a repeated message. Is this desired behavior, since e.g. vor a moving object only a single id is defined ?

thomassedlmayer commented 1 year ago

I think there were some protobuf issues differentiating intended empty numeric fields. For numeric types the default/empty state is 0, which could also be some object id. I guess this issue was solved by using a repeated field and giving the option to have 0 items in the list indicating that no object is linked?

In the RadarDetection message there also is an object id reference which is not repeated but optional. Though here the max uint64 value is used to tell apart an actual intended lack of referenceable object.

thomassedlmayer commented 1 year ago

I talked to Pierre about this and he told me that it most probably was intended to allow referencing multiple ground truth references to merge multiple ground truth objects into a single detected object. This may especially make sense for some stationary objects. This is just not stated properly in the documentation.

My first guess that this may have been a fix to the protobuf issue concerning empty numeric field was wrong since ground_truth_id is not a numeric field but is of type Identifier.