Space gap is incorrect defined?
The space gap is defined as follows: https://www.asam.net/static_downloads/public/asam-openscenario/2.0.0/domain-model/entity.html#_method_space_gap
extend traffic_participant:
def space_gap(reference: physical_object, direction: distance_direction) -> length
distance_direction:
longitudinal
The relative s-coordinate.
Positive means that the traffic participant is ahead of the reference.
We assume that the naming reference
and traffic participant
was here swapped accidentally.
This would be the current output if we interpret it as is:
# facing -->
# ego_vehicle <-----------------distance----------------> other (= reference)
ego_vehicle.space_gap(other, longitudinal) -> negative distance # But one expects a positive space gap here!
While intuitively (and the way we need it for scenarios) one would expect that a positive distance means that there is a positive space_gap if the other
vehicle is ahead, this is not the case.
This is also different than the method object_distance
Suggestion:
Make an example with less ambigous naming such as this_vehicle
and other_vehicle
.
The same goes for the lateral definition