I-Seed drone's onboard service
0.0.9
|
A directed cell is transformed so that a whole cell is in the first quadrant (x > 0, y > 0) More...
#include <mission_aligned_cell.h>
Public Types | |
using | corner = utils::corner |
using | polygon = utils::polygon |
using | transformation = utils::transformation |
using | point = utils::point |
Public Member Functions | |
mission_aligned_cell (corner c, const polygon &poly) | |
~mission_aligned_cell () | |
std::size_t | waypoint_count () const |
The minimum number of waypoints the cell can be covered by. More... | |
double | distance (const point &start) const |
The distance from point start to the closest cell waypoint from where path can be constructed. More... | |
point | build_path (const point &start, std::vector< point > *result) const |
Build mission path. More... | |
A directed cell is transformed so that a whole cell is in the first quadrant (x > 0, y > 0)
With the help of the polygon_slicer tool we cover cell with waypoints
|
default |
auto mission_aligned_cell::waypoint_count | ( | ) | const |
The minimum number of waypoints the cell can be covered by.
auto mission_aligned_cell::distance | ( | const point & | start | ) | const |
The distance from point start
to the closest cell waypoint from where path can be constructed.
Build mission path.
start | Starting point of the mission path |
result | vector where mission path will be saved |