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

Reproducible Apollo/SVL simulations #1548

Open
ebadi opened this issue Jul 5, 2021 · 1 comment
Open

Reproducible Apollo/SVL simulations #1548

ebadi opened this issue Jul 5, 2021 · 1 comment
Labels
answered Waiting for response

Comments

@ebadi
Copy link

ebadi commented Jul 5, 2021

We are using PythonAPI to control Apollo AD for enabling modules, setting source and destination for the ego vehicle and the SVL simulator for setting way points for pedestrians and other vehicles. However when we run the same simulation several times, the measurements (e.g. distance between agents) are not identical. Our guess is that there is no method of synchrony between SVL and APollo, is this correct? Is there a method like this in svl ?

Since loading Apollo modules takes several seconds and this causes Apollo to lag behind SVL, in the absence of tick synchrony, what are the best practices to achieve similar simulations (even when they are run in different machines)?

@lemketron
Copy link
Contributor

Apollo is not deterministic but telling Apollo to use the simulator's clock sensor helps synchronize time between SVL Simulator and Apollo to give Apollo the best chance of processing data and responding more similarly from run to run. This allows Apollo to use the Simulator's notion of time rather than real world time.
Refer to the documentation here: https://www.svlsimulator.com/docs/simulation-content/sensors-list/#clock

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

No branches or pull requests

2 participants