qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

structure scan does not respect distance to structure

Open lvale opened this issue 7 years ago • 9 comments

On certain scan of structures the distance to structure is not respected. If one works with fixed focus cameras that invalidates using the structure scan

Example mission screen shot 2017-12-28 at 03 04 58

acuteangle.plan.txt

lvale avatar Dec 28 '17 03:12 lvale

There will be extra images, but the images that actually overlap the actual structure will be correctly distances won't they?

DonLakeFlyer avatar Dec 28 '17 21:12 DonLakeFlyer

It gets worst, and will have a lot of unusable pictures on each level

screen shot 2017-12-29 at 00 46 57

It's a problem when you're scanning at high resolutions,with a very narrow depth of field on the camera

lvale avatar Dec 29 '17 00:12 lvale

That is a hard problem to fix. I question whether any of these cases are reality or just strange boundary cases which nobody would ever fly?

DonLakeFlyer avatar Dec 29 '17 20:12 DonLakeFlyer

Very easy to fall on this, like on this struct survey of the outside walls of a small castle

bing screen shot 2017-12-29 at 22 34 20

google almourol2_ggl.kml.txt

screen shot 2017-12-29 at 22 33 24

lvale avatar Dec 29 '17 22:12 lvale

Tricky to fix, but I'll look in 3.4

DonLakeFlyer avatar Dec 30 '17 20:12 DonLakeFlyer

I suggest a parameter named Offset Resolution. Default is 0 and as you make it higher, it will round the edges more incresing the number of waypoints while minimizing distance to structure

ghost avatar Mar 08 '24 22:03 ghost

To do it, a resolution parameter would be added to the offset function in src/MissionManager/QGCMapPolygon.cc

ghost avatar Mar 08 '24 22:03 ghost

Don't you only want to cut the corners if the angle is less than 45 degrees? Not in general.

DonLakeFlyer avatar Mar 08 '24 23:03 DonLakeFlyer

It seems like you could post-process the polygon:

  • Vertex angle less than 45 degrees
  • Create new line orthogonal to the center angle of the vertex
  • Position it scan distance away from the vertex
  • Intersect it with the scan polygon to generate the new points to chop the edge off the sharp corner

DonLakeFlyer avatar Mar 08 '24 23:03 DonLakeFlyer