Builds the lane base coordinate system used for collision detection.
For each unique lane (identified by lane key), performs a topological sort of
route segments that share that key. Each segment is assigned a monotonically
increasing base distance so that all vehicles on that lane can be compared
using a single linear coordinate regardless of which route they are on.
Builds the lane base coordinate system used for collision detection.
For each unique lane (identified by lane key), performs a topological sort of route segments that share that key. Each segment is assigned a monotonically increasing base distance so that all vehicles on that lane can be compared using a single linear coordinate regardless of which route they are on.