simulator icon indicating copy to clipboard operation
simulator copied to clipboard

Highway101GLE map reset doesn't work

Open Miknow78 opened this issue 2 years ago • 7 comments

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?

Miknow78 avatar Mar 07 '22 12:03 Miknow78

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.

emocat avatar Mar 08 '22 06:03 emocat

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.

Miknow78 avatar Mar 08 '22 10:03 Miknow78

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: @.***>

Miknow78 avatar Mar 08 '22 10:03 Miknow78

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.

emocat avatar Mar 08 '22 10:03 emocat

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: @.***>

Miknow78 avatar Mar 08 '22 11:03 Miknow78

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.

emocat avatar Mar 08 '22 12:03 emocat

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: @.***>

Miknow78 avatar Mar 08 '22 12:03 Miknow78