WebODM icon indicating copy to clipboard operation
WebODM copied to clipboard

Mission Planning

Open sethfitz opened this issue 10 years ago • 60 comments

WebODM should facilitate the planning of missions.

Input:

  • area(s) to cover (polygon) - if multiple areas, treat as multiple missions?
  • angle(s) to take photos
  • altitude
  • hazards (is this a thing handled by mission planning software?)
  • camera specs
  • desired overlap
  • ...

Output:

  • 3D linestring representing flight path
  • [flight planning output]
  • ...

sethfitz avatar Aug 15 '16 21:08 sethfitz

I know in terms of the phantom 3 the only real hazards it knows are no fly zones around airports. Would this focus on autopilot or more of a you have images of this much of the mission area?

Bavar2142 avatar Sep 28 '16 06:09 Bavar2142

It would focus on autopilot (you choose an area to map, the drone takes off and collects the images). I don't think it will support hazard detection (at least initially).

pierotofy avatar Sep 28 '16 12:09 pierotofy

I think a good way to handle hazards is to be able to create a geofence, i.e. let the user decide. Most mission planners I've used just do a big circle, but I think it would be more useful to be able to import or draw multi-polygon shapes.

dakotabenjamin avatar Sep 28 '16 13:09 dakotabenjamin

@pierotofy That would be hugely helpful if it worked with phantom 3's as its more by trial and error at the moment. Ie We fly as close to a grid pattern as possible with an hour drive to get there and another back; and then have to spend a few hours processing before we realise the mistake. From memory pix4d generated a report prior to the main stage of processing showing a measure of overlap of the AOI which was rather useful in that regard. How are you planning to get it to talk to the quad copter? android app I assume?

@dakotabenjamin Even just a multi sided polygon would work well from my experience as I could just fence in the area I wanted mapped with everything outside regarded as a no fly zone.

Bavar2142 avatar Sep 28 '16 22:09 Bavar2142

DJI has an SDK which works for both iOS and Android. Would probably target Android first, but there are several options.

pierotofy avatar Sep 28 '16 23:09 pierotofy

Ah ok. We use an android tablet for the signal on ours.

Bavar2142 avatar Sep 28 '16 23:09 Bavar2142

There is an iOS codebase we might be able to start from (I'm trying to coordinate it's FOSS release) but not sure about Android. Is there a timeframe you have in mind here, @pierotofy?

jjmata avatar Sep 29 '16 01:09 jjmata

@jjmata I would guess probably mid 2017. It might happen sooner if we find more contributors though.

pierotofy avatar Sep 29 '16 02:09 pierotofy

I read in one of the pages in OpenDroneMap that somebody is asking for web based mission planner.

Here's a web based mission planner based on Ardupilot.

Skysense Planner Video - Open-source Web Mission Planner for MAVLink Drones http://diydrones.com/profiles/blogs/skysense-planner-video-open-source-web-mission-planner-for

http://www.skysense.co/planner-launch

Skysense Planner’s technology stack is based on Open-Source projects:

Ardupilot: Unmanned aerial vehicle (UAV) platform, able to control autonomous multicopters, fixed-wing aircraft, traditional helicopters, ground rovers and antenna trackers.
Gazebo: Simulator offering the ability to accurately and efficiently simulate populations of robots in complex indoor and outdoor environments.
MAVLink: MAVLink Micro Air Vehicle Communication Protocol.
MAVROS: MAVLink extendable communication node for ROS with proxy for Ground Control Station.
ROS: Robot Operating System, a collection of software libraries and tools developers can use to assist in robot application development.
Robot Web Tools: Integration between ROS and Web applications using Javascript and HTML5.
NASA Web World Wind: 3D virtual globe API for HTML5 and JavaScript.
Dump1090: ADS-B radar receiver (Mode S decoder) specifically designed for RTLSDR devices.

ns-1m avatar Oct 05 '16 01:10 ns-1m

Cool! What's with the "request early access" sign-up page on their site? Is there a place to download the code?

pierotofy avatar Oct 05 '16 02:10 pierotofy

To follow up on my comment about an iOS codebase that could be considered as a starting point for that platform, here is the app currently on the App Store I was referring to above. The team is moving on and interested in having somebody take over development.

It lacks the "lawn mower pattern" workflow and implements the more intricate waypoint + camera pitch one, so upgrading the DJI SDK (at 2.4 a little long in the tooth) and implementing "lawn mower" would be the first priority, IMHO.

jjmata avatar Oct 14 '16 22:10 jjmata

FWIW, it's one of the apps still listed on DJI's developer showcase website - bottom right as of this writing next to Skycatch and PrecisionHawk offerings.

jjmata avatar Oct 14 '16 22:10 jjmata

It would be really cool if they decided to release the source! It could be used as a good starting point.

pierotofy avatar Oct 15 '16 13:10 pierotofy

I'm 100% sure that is their intention, and 99% sure that it will happen "soon" (within weeks, not months). I have access to the codebase and have hacked in it myself, so I'm familiar with some of the shortcomings. Happy to help speed things along ...

Do people have any suggestions as to what license (MIT, Apache, GPL, etc.) [1] you would like me to encourage them to use? Who are the most likely developers/candidates to spend some time enhancing the code? I'd love to hear your opinions for sure ...

[1] I was a little surprised about the choice of MPL for WebODM, not due to anything specific to the license (personally, I was at Mozilla when the MPL was concocted and like it ;-) but would love to understand the logic behind that choice.

jjmata avatar Oct 15 '16 22:10 jjmata

I think either LGPL or MPL would be a good license for the project, but ultimately I think the development team should decide on their own how they want to release it. My focus is going to be on building and consolidating the web interface and api in the short term at the moment, but people could start working on the mission planner side before I get to it (that would actually be great!).

MPL is permissive, encourages code sharing (arguably more so than MIT and Apache2). It also doesn't require a CLA from contributors (unlike Apache2). MPL can be statically linked with proprietary software, which is less of an obstacle compared to LGPL which requires dynamic linking. Overall MPL/[L]GPL are very similar, but MPL seems a tiny bit better.

pierotofy avatar Oct 16 '16 02:10 pierotofy

For Android, I also found this project:

  • https://github.com/DroidPlanner/Tower
  • https://play.google.com/store/apps/details?id=org.droidplanner.android&hl=en

pierotofy avatar Oct 16 '16 02:10 pierotofy

http://developer.dji.com/showcase/4500261e49f807b9ff18833a06660c27/

Does anyone have any experience with this one?

Bavar2142 avatar Oct 16 '16 21:10 Bavar2142

@Bavar2142 I don't, have you tried it?

pierotofy avatar Oct 18 '16 20:10 pierotofy

Ill have a word with a local store that sells phantoms as id rather not risk the one we use at work flying off. Ill get back to you once i've had a word with them.

Bavar2142 avatar Oct 18 '16 21:10 Bavar2142

So @pierotofy is taking a look at the codebase I've been spouting about, and I just invited @mojodna to take a peek as well. Once I hear from them we'll put the wheels in motion to re-license / publish / etc. Assuming it makes sense, of course.

EDIT: by "makes sense" I mean the codebase is a good starting point. The Freeskies team has given me the green light to move this forward in whatever way makes sense.

jjmata avatar Nov 11 '16 23:11 jjmata