-
Notifications
You must be signed in to change notification settings - Fork 136
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
Does it support multi-drone simulation? #188
Comments
Hi @Yuan-Mingkang, honestly I am unsure how much work it would be to make the gym work for multiple drones. The gym was based on https://github.com/utiasDSL/gym-pybullet-drones, which is specifically made for multiple drones. |
Thank you for your reply~ I have worked on modifying your project and am now able to implement multi-drone simulation. I'm using MPC to control the drones, but I'm running into CPU arithmetic issues, no matter how many drones I run, I can only use 2 cores of the CPU, and they all reach 100% load. This situation is causing my simulation to be very choppy, I would like to use multiprocessing, but after my evaluation, the code modifications are very large, do you have any clue? Make the simulation can operate on more CPU cores. |
Hi @Yuan-Mingkang, I'm happy you've got it working so quickly! Unfortunately I am not sure how to add multiprocessing, I am definitely no expert there. I know that pybullet and MPC in general are CPU intensive and somewhat hard to multi-process. Only thing I can think of is forking a new process to handle calculating the next action for each drone, and then stepping the environment with all the actions in the parent process. However, I am not sure how to implement this other than trying |
Hi, I would like to ask if this project supports multiple drone simulations in the same environment. It seems to focus mainly on single drone simulations, is it capable of making modifications for multi-drone simulations?
If so, where would you suggest I start?
The text was updated successfully, but these errors were encountered: