MissionPlanner icon indicating copy to clipboard operation
MissionPlanner copied to clipboard

Grid and Camera sometimes/usually generate non-progressive lawnmower patterns

Open airborneimager opened this issue 13 years ago • 11 comments

The new Camera method of generating an imaging lawnmower pattern (coupled with the new CAM_TRIGG_DIST parameter) is a great feature, but both this method and the previous Grid and Gridv2 methods often generate a lawnmower pattern that is not progressive, i.e., it starts somewhere within the field, proceeds to the nearest edge of the field, then resumes beyond the starting point and continues to the opposite edge of the field. I can't seem to figure out why this occurs sometimes but not always. While this method works, it results in images which do not progress sequentially across the field. I can't imagine why anyone doing mapping would want to start anywhere other than one corner of the field, and progress in one direction across the field (transverse to the lawnmower lines). This should happen whether the home position is inside the polygon or out - it should be independent of where the home position is located.Would you please either force the lawnmower pattern to start at the edge of the field as opposed to in the middle, or add an option for us users that want to do it that way to force the sequential progression?

airborneimager avatar Aug 16 '13 23:08 airborneimager

Could you send me a waypoint file or some sort of example polygon / cameragrid parameters so I can try to recreate the problem? CameraGrid is based on Gridv2, so it definitely inherited whatever bugs exist there.

bbasso avatar Aug 17 '13 01:08 bbasso

Hi Brandon,

Here are three files: (1) Camera dialog box screenshot showing setup for grid, (2) waypoint list, (3) Screenshot of resulting waypoint list. Note that flight raster begins in center of field, progresses north until it reaches the north side of field, then resumes the raster on the south side of the center of the field, and progresses south from there to the south edge of the field. We don't normally fly from the center of the field, but I did this to illustrate how the raster pattern is incorrect. The correct pattern (IMHO) is to start at a corner and raster progressively from one side of the field to the other.

Thanks!

On Fri, Aug 16, 2013 at 6:27 PM, Brandon Basso [email protected]:

Could you send me a waypoint file or some sort of example polygon / cameragrid parameters so I can try to recreate the problem? CameraGrid is based on Gridv2, so it definitely inherited whatever bugs exist there.

— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/MissionPlanner/issues/139#issuecomment-22803156 .

QGC WPL 110 0 1 0 16 0 0 0 0 47.070589 -119.529619 1.000000 1 1 0 3 16 0.000000 0.000000 0.000000 0.000000 47.070660 -119.535134 200.000000 1 2 0 3 16 0.000000 0.000000 0.000000 0.000000 47.070659 -119.523816 200.000000 1 3 0 3 16 0.000000 0.000000 0.000000 0.000000 47.071268 -119.523807 200.000000 1 4 0 3 16 0.000000 0.000000 0.000000 0.000000 47.071270 -119.535128 200.000000 1 5 0 3 16 0.000000 0.000000 0.000000 0.000000 47.071879 -119.535121 200.000000 1 6 0 3 16 0.000000 0.000000 0.000000 0.000000 47.071878 -119.523799 200.000000 1 7 0 3 16 0.000000 0.000000 0.000000 0.000000 47.072487 -119.523791 200.000000 1 8 0 3 16 0.000000 0.000000 0.000000 0.000000 47.072489 -119.535115 200.000000 1 9 0 3 16 0.000000 0.000000 0.000000 0.000000 47.073098 -119.535108 200.000000 1 10 0 3 16 0.000000 0.000000 0.000000 0.000000 47.073097 -119.523783 200.000000 1 11 0 3 16 0.000000 0.000000 0.000000 0.000000 47.073706 -119.523775 200.000000 1 12 0 3 16 0.000000 0.000000 0.000000 0.000000 47.073708 -119.535102 200.000000 1 13 0 3 16 0.000000 0.000000 0.000000 0.000000 47.074317 -119.535095 200.000000 1 14 0 3 16 0.000000 0.000000 0.000000 0.000000 47.074316 -119.523766 200.000000 1 15 0 3 16 0.000000 0.000000 0.000000 0.000000 47.070049 -119.523824 200.000000 1 16 0 3 16 0.000000 0.000000 0.000000 0.000000 47.070051 -119.535141 200.000000 1 17 0 3 16 0.000000 0.000000 0.000000 0.000000 47.069441 -119.535148 200.000000 1 18 0 3 16 0.000000 0.000000 0.000000 0.000000 47.069440 -119.523832 200.000000 1 19 0 3 16 0.000000 0.000000 0.000000 0.000000 47.068831 -119.523840 200.000000 1 20 0 3 16 0.000000 0.000000 0.000000 0.000000 47.068832 -119.535154 200.000000 1 21 0 3 16 0.000000 0.000000 0.000000 0.000000 47.068222 -119.535161 200.000000 1 22 0 3 16 0.000000 0.000000 0.000000 0.000000 47.068221 -119.523848 200.000000 1 23 0 3 16 0.000000 0.000000 0.000000 0.000000 47.067612 -119.523856 200.000000 1 24 0 3 16 0.000000 0.000000 0.000000 0.000000 47.067613 -119.535167 200.000000 1 25 0 3 16 0.000000 0.000000 0.000000 0.000000 47.067003 -119.535174 200.000000 1 26 0 3 16 0.000000 0.000000 0.000000 0.000000 47.067002 -119.523865 200.000000 1

airborneimager avatar Aug 17 '13 02:08 airborneimager

the way grid v2 works is the first point is always the closest to your home point. then the path is auto generated using the path to the closest wp. if you try moving your home position, it will generate a more single direction answer.

this was all done to try and reduce the amount of time in the air.

meee1 avatar Aug 17 '13 02:08 meee1

quick video http://www.youtube.com/watch?v=Ibo31n5MVyM

meee1 avatar Aug 17 '13 02:08 meee1

grid v1 would always generate progressive patterns. as it never used the closest wp approach.

meee1 avatar Aug 17 '13 02:08 meee1

OK, this isn't a bug as such. If it hasn't already been done, the documentation should reflect that the lawnmower pattern will start as close to the Home position as it can. If one wants a progressive pattern, the Home position needs to be outside of the area being imaged. Alternatively, one can use Grid v1 and lose the simplicity and elegance of the nice Camera method. Now that I understand it, that's good enough for me.

On Fri, Aug 16, 2013 at 7:59 PM, meee1 [email protected] wrote:

grid v1 would always generate progressive patterns. as it never used the closest wp approach.

— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/MissionPlanner/issues/139#issuecomment-22804415 .

airborneimager avatar Aug 17 '13 04:08 airborneimager

im adding an option to use home, or any of the 4 corner, so will be selectable soon

meee1 avatar Aug 17 '13 08:08 meee1

Michael, Do you think it makes sense to have a gridding method that can be called with parameters distance_between_lines (distance in gridv2) and distance_between_waypoints (wpevery in gridv2)?

If it were like this, my camera interface could just call the gridding method, and the gridding method could be updated independently.

Brandon On Aug 17, 2013 1:27 AM, "meee1" [email protected] wrote:

im adding an option to use home, or any of the 4 corner, so will be selectable soon

— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/MissionPlanner/issues/139#issuecomment-22807906 .

bbasso avatar Aug 17 '13 16:08 bbasso

Brandon, already done, more or less. im converting the entire grid function to just feed in parameters. so it should be universal.

meee1 avatar Aug 17 '13 23:08 meee1

Awesome! I'll modify CameraPlanner to just output those parameters and will call the new grid function.

On Sat, Aug 17, 2013 at 4:17 PM, meee1 [email protected] wrote:

Brandon, already done, more or less. im converting the entire grid function to just feed in parameters. so it should be universal.

— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/MissionPlanner/issues/139#issuecomment-22821579 .

Brandon Basso, PhD :: Senior Research and Development Engineer :: 3D Robotics :: Berkeley, CA

bbasso avatar Aug 18 '13 01:08 bbasso

please check the new survey option in MP

meee1 avatar Sep 13 '13 09:09 meee1