Skip to content
New issue

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

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

Already on GitHub? # to your account

Race finished after reaching first gate #149

Open
AlessandroSaviolo opened this issue May 4, 2020 · 4 comments
Open

Race finished after reaching first gate #149

AlessandroSaviolo opened this issue May 4, 2020 · 4 comments

Comments

@AlessandroSaviolo
Copy link

Hello,

I'm running multiple instances of Airsim in sequence. Each time I run an instance, I reload the level (to avoid a problem in the stability of the drone by just resetting the race without reloading the level). But, I'm having problems with the simulator interrupting the race after I reach the first gate, outputting that the drone has finished the race. This behaviour does happen every even iteration excluded 0 (2, 4, 6, 8, ...).

Since I monitor the log file for the timings, this is a big problem because it cuts the log file:

[...]
drone_1 time 1758 gates_passed 1
drone_1 time 1758 gates_missed 11
drone_1 time 1758 finished 1

I'm using Soccer Field Easy and Tier 1 for my simulations.

Can you point me the part of code where the simulator detects the last gate and interrupts the race?

Thanks in advance

@surfii3z
Copy link

surfii3z commented May 7, 2020

Hi, not sure though, I think I use to have similar problems.

Maybe this could help

https://github.com/microsoft/AirSim-NeurIPS2019-Drone-Racing/issues/104#issuecomment-546087098

I change to reset the race using this function and it was working for sometimes (like 0.5 hrs) before the simulation crashed

@surfii3z
Copy link

surfii3z commented May 7, 2020

By the way, during my project, I noticed that if drone_2 passed the gate faster than drone_1 (which you control, by default). The log won't report the event of drone_1 passing the gate

@AlessandroSaviolo
Copy link
Author

Hi, thanks for the reply!

I'm trying the same workaround with simResetRace. Before I had a very unstable behavior on the podium after restarting the race multiple times (already from the second iteration I could see the drone shaking a bit), but I've probably fixed it by resetting also the airsim client.

And yes, I'm experiencing the same problems with the simulator freezing. I'll give a look to that issue, thanks again :)

@AlessandroSaviolo
Copy link
Author

Update: I've successfully avoided the problem of this post by just using simResetRace and resetting the client.

By the way, during my project, I noticed that if drone_2 passed the gate faster than drone_1 (which you control, by default). The log won't report the event of drone_1 passing the gate

I'll open a new issue about this, since it's creating a lot of problems for my tests.

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

No branches or pull requests

2 participants