simulator
simulator copied to clipboard
Highway101GLE map reset doesn't work
Hi! I'm using Highway101GLE map.
if sim.current_scene == "431292c2-f6f6-4f5a-ae62-0964f6018d20":
sim.reset()
else:
sim.load("431292c2-f6f6-4f5a-ae62-0964f6018d20")
At the first time I run the script, simulation works fine. But at the second time, reset does not work and I have to stop simulation in the browser and start again. Any ideas?
Maybe there is a conflict between the api's you call? As for me, when I accidentally call reset() twice in a row, the simulator gets stuck. So maybe you should check your script more carefully.
Thank you for your reply! My code is like this:
if sim.current_scene == "431292c2-f6f6-4f5a-ae62-0964f6018d20":
sim.reset()
else:
sim.load("431292c2-f6f6-4f5a-ae62-0964f6018d20")
Then, I start the simulation with sim.run(5) and sim.stop().
Can you please send me your code structure for me to try to understand? Thank you so much.
Thank you for your reply! My code is like this:
if sim.current_scene == "431292c2-f6f6-4f5a-ae62-0964f6018d20": sim.reset() else: sim.load("431292c2-f6f6-4f5a-ae62-0964f6018d20")
Then, I start the simulation with sim.run(5) and sim.stop().
Can you please send me your code structure for me to try to understand? Thank you so much.
emocat @.***> escreveu no dia terça, 8/03/2022 à(s) 06:32:
Maybe there is a conflict between the api's you call? As for me, when I accidentally call reset() twice in a row, or call reset() after sim.close(), the simulator gets stuck. So maybe you should check your script more carefully.
— Reply to this email directly, view it on GitHub https://github.com/lgsvl/simulator/issues/2016#issuecomment-1061454818, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJLCWJ23CHHKOBNNRSD2QDU63X63ANCNFSM5QDF4MEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Well, I don't find anything wrong in your code. For me, I usually call reset() and close() after a simulation is finished.
Maybe you can check lgsvl's log to find more useful information.
Sorry, but I don't know who to ask. Can you please explain me how to add a plugin to my simulation?
I just want to know what type of line my vehicle has on your right/left. I saw the Lane-line sensor plugin. But I don't know how to implement it in my simulation.
emocat @.***> escreveu no dia terça, 8/03/2022 à(s) 10:58:
Well, I don't find anything wrong in your code. For me, I usually call reset() and close() after a simulation is finished.
Maybe you can check lgsvl's log to find more useful information.
— Reply to this email directly, view it on GitHub https://github.com/lgsvl/simulator/issues/2016#issuecomment-1061653709, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJLCWKZL3EAQW7WY33JK2LU64XGFANCNFSM5QDF4MEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
If this plugin is published on https://wise.svlsimulator.com, you can directly add it to your vehicle's sensor configuration. Or you need to compile the sensor by yourself and publish it.
I figured it out how to call the sensor configuration in my simulaton :)
Thank you so much for your help!
On Tue, Mar 8, 2022, 12:10 emocat @.***> wrote:
If this plugin is published on https://wise.svlsimulator.com, you can directly add it to your vehicle's sensor configuration. Or you need to compile the sensor by yourself and publish it.
— Reply to this email directly, view it on GitHub https://github.com/lgsvl/simulator/issues/2016#issuecomment-1061711813, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJLCWKJAOGWQH63KK2STQDU647URANCNFSM5QDF4MEQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>