averbraeck / opentrafficsim

Open Source Multi-Level Traffic Simulator
BSD 3-Clause "New" or "Revised" License
29 stars 11 forks source link

GTU - Lane bookkeeping #59

Open WJSchakel opened 1 year ago

WJSchakel commented 1 year ago

It is unlikely that OTS will function sufficiently fast in all cases if it is designed in a complete space-based manner. That is, if objects can find each other through spatially looking each other up. OTS should provide interfaces for information that perception will use, for which different underlying approaches may be implemented. In particular it likely makes sense to keep a registering of GTUs on lanes, but only by their reference point. Initial ideas are:

Before going through with this, we need to consider relevant use-cases.

WJSchakel commented 1 year ago

In the new system, Detectors will work autonomously. They may use the GTU-lane bookkeeping, or be space-based. Various approaches of different accuracy and efficiency can be used. For example only being triggered by the reference point, or using a simple length-based heuristic. But this is very detector specific, and hence better placed purely at the detector side.