eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.51k stars 1.42k forks source link

Adding a Visibility Radius for Ego Car #15542

Open Ahmad1441 opened 5 days ago

Ahmad1441 commented 5 days ago

We at York university developed an open source Co-Simulation of SUMO and Unity which have driver simulator, road assets etc. See below:

https://github.com/SimuTraffX-Lab/SUMO2Unity

To further improve the co-simulation, we need to stop exchanging data from SUMO to Unity for those cars which are out of a visibility radius (e.g., 100 meter) of the ego car. We do not need to show cars which are very far from Ego Car in Unity. An easy solution is to check each cars distance from ego car and hide them; however, this is very resource intensive process.

We ask if you have any visibility radius function (built-in function) in SUMO so that we can control the number of cars around ego car?

Thanks,

m-kro commented 5 days ago

Please look at TraCI object context subscription. It seems this has been added to the .NET / C# client you use.