Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to control specific (shadow/ghosting) vehicle's movement as a replica of another vehicle? #16325

Open
cherryh2021 opened this issue Mar 12, 2025 · 2 comments
Labels

Comments

@cherryh2021
Copy link

Hi SUMO community,

In parallel/multi-scale simulation, we often need to partition the road network into several regions which are simulated in different simulation instances. To ensure simulation consistency across adjacent partitions, a plausible border control mechanism is to duplicate the vehicles on the boundary: the vehicles are running on both partitions of the two sides of the border, and the vehicles on the downstream partition is set as the primary vehicle while the replica ones in the upstream partition is shadow/ghosting vehicle. To ensure the transmission of information from downstream to upstream, the primary vehicle is controlled by the internal car-following and lane-changing models (simulationStep()), while the shadow vehicle is the replica of the primary vehicle, which means it acts as the 'shadow', adjusting its speed and position according to the primary vehicle, and not controlled by the simulationStep() command.

For example, you can refer to the paper 'Chen, Hao, et al. "QarSUMO: a parallel, congestion-optimized traffic simulator." Proceedings of the 28th International Conference on Advances in Geographic Information Systems. 2020'. In '3.3 Inter-Partition Synchronization', they introduce this method. However, they did not make the corresponding code public....

Can you give some insight into how can I achieve this function of the shadow vehicle, specifically making its movement completely a replica of another vehicle, and in not only microscopic but also SUMO's mesoscopic model?

Thank you!

@m-kro m-kro added the question label Mar 12, 2025
@namdre
Copy link
Contributor

namdre commented Mar 12, 2025

this is currently not supported for meso (pending #16327 or #16328)

@cherryh2021
Copy link
Author

ok, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants