|
I-Seed drone's onboard service
0.0.9
|
Mission cell with a particular direction attached to it. More...
#include <mission_directed_cell.h>
Public Types | |
| using | direction = utils::direction |
| using | polygon = utils::polygon |
| using | corner = utils::corner |
| using | transformation = utils::transformation |
| using | point = utils::point |
Public Member Functions | |
| mission_directed_cell (const direction &dir, const polygon &poly) | |
| ~mission_directed_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 |
Distance from start to the closest cell. More... | |
| void | build_path (const point &start, std::vector< point > *result) |
| Build mission path. More... | |
Mission cell with a particular direction attached to it.
For each utils::corner of the cell the mission_aligned_cell instance will be created. Each such instance will be checked for the number of waypoints, and only those with a minimal number of waypoints will be kept. When build_path is called we will use closest instance of mission_aligned_cell for path construction
|
explicit |
|
default |
| auto mission_directed_cell::waypoint_count | ( | ) | const |
The minimum number of waypoints the cell can be covered by.
| auto mission_directed_cell::distance | ( | const point & | start | ) | const |
Distance from start to the closest cell.
Build mission path.
| start | Starting point of the mission path |
| result | vector where mission path will be saved |

