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

Allocate the number of drones after pressing "Play" instead of the setting in advance? #2922

Closed
saeed97 opened this issue Aug 10, 2020 · 4 comments · Fixed by #2390
Closed

Comments

@saeed97
Copy link

saeed97 commented Aug 10, 2020

1- We are working on a research project, and we use more than 1000 drones in the Unreal Engine. Using more 1000 drones takes memory, and we have to identify the number of drones in the JSON setting file before pressing “Play” button even if we did not use all of them. Is there a way to automate or allocate the number of drones after starting the simulation/ after pressing play?
2- Passing a specific command to a drone such as “moveonpath” is being canceled by passing another command before finishing executing the first command. I need to control the velocity by changing it while it is still moving on the specified path from the previous command. Is there a way to do a combination of APIs. For example, it moves on the path and passes another command to increase its speed without canceling the previous command?
3- Is there a way to use different drone vehicle bodies such as fixed-wing drones?

@LittleTimeWxk
Copy link

For the first question, You can set the number of vehicle in the JSON and modify the loading method of the vehicle in the C++ backend. But the most important is that you must understand the code for parsing json and loading vehicles. You have to read the source code carefully.
I hope my suggestion can help you!

@rajat2004
Copy link
Contributor

  1. Currently, there's no way of creating vehicles as runtime, there's a PR Spawn vehicles via RPC #2390, but needs rebase and lots of testing. I guess currently you're maybe changing the number of vehicles in a script, then creating the settings file from there.
  2. From a very brief look at the code, cancelling the previous command shouldn't happen, but needs looking into
  3. Not as of now, there are several related issues which discuss about this possibility and how it could be added

@saeed97
Copy link
Author

saeed97 commented Aug 21, 2020

Thank you so much for your reply! I am also confused about how to calculate the time that drones start to move from their home points until they reach their destination to record their coordination during their flight missions. The record button has so many issues with MultiDrones and the code terminates. Is it the duration time?

@rajat2004
Copy link
Contributor

There's a PR #2861 which extends the Recording feature to work with multiple vehicles, currently it just records the first vehicle
Not exactly sure what you mean by calculating the time, for a single drone, you could just do .join() and measure the elapsed time. For multiple drones, maybe keep checking the current position, and if it has reached the desired position then done

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

Successfully merging a pull request may close this issue.

4 participants