How does RelativeDistanceCondition calculate distances?
RelativeDistanceCondition checks how is given value
compared to longitudinal
, lateral
or cartesian
distance.
This value specified by the user can only be >= 0
which I guess enforces that calculation of distance is symmetric (absolute value).
That would mean that on the Image 1 bellow we would get the same lateral
distance d
regardles of how we measure:
A->B
== B->A
== B->A'
== A'->B
. Assumption is that A
and A'
are the same object just symetrically positioned around x axis of B
by value d
.
- Is this correct assumption that
lateral
distance calculation is symmetric?
- Is symetric when we are calculating
longitudinal
distance (Image 2)?
- Which of the distances bellow is
longitudinal
distance (Image 3 and Image 4)?
Case on Image 3 bellow works even if entities are on different lanes on the same road.
- Do we calculate longitudinal even if entities are on opposite road sides (Image 5)?
- I assume routing is also taken into consideration (Image 6), but we have to be careful here because this is not compatible with point/question 4.