microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.28k stars 4.53k forks source link

Coverage Algorithm for Drone over the map #266

Closed Mayankm96 closed 7 years ago

Mayankm96 commented 7 years ago

I am trying to write a script using the python APIs to have the drone just hover and move over the entire map region similar to a coverage algorithm like the lawn mower motion pattern. I wish to be able to change the altitude to collect data from different heights and create the dataset.

I am having trouble in defining waypoints for it to move along in the map as the scale of the map seems rahter unclear. Does any one has any idea on how to do this?

lovettchris commented 7 years ago

one way to get the scale would be to fly manually with remote control to the corners of the map then use the "getPosition" function to find out where that is in local coordinates, or use DroneShell "pos" command.

Mayankm96 commented 7 years ago

Yeah that seems to have worked for me. Thanks @lovettchris!

Ramshandilya commented 6 years ago

Hey @Mayankm96, I'm looking implement a similar feature where the drone moves like a lawn mower on top of the region selected. Can you share the algorithm if possible?

Mayankm96 commented 6 years ago

Hi @Ramshandilya! I had written the script but since I am flying the drone in computer_vision mode now instead ofsimple_flight mode, I haven't really updated it to the latest python APIs. You could find the file here.

It would be nice if you could make the corrections on it in case any are required. :)