Base class to generate the headlands.
More...
#include <headland_generator_base.h>
Base class to generate the headlands.
Definition at line 17 of file headland_generator_base.h.
◆ ~HeadlandGeneratorBase()
virtual f2c::hg::HeadlandGeneratorBase::~HeadlandGeneratorBase |
( |
| ) |
|
|
virtualdefault |
◆ generateHeadlandArea()
virtual F2CCells f2c::hg::HeadlandGeneratorBase::generateHeadlandArea |
( |
const F2CCells & |
field, |
|
|
double |
swath_width, |
|
|
int |
n_swaths |
|
) |
| |
|
pure virtual |
Generate headland area of the field for a given number of swaths with given width.
- Parameters
-
field | Borders of the field and the obstacles on it. |
swath_width | Width of each headland swath. |
n_swaths | Number of headland swaths. |
- Returns
- Headland area
Implemented in f2c::hg::ConstHL.
◆ generateHeadlands()
virtual F2CCells f2c::hg::HeadlandGeneratorBase::generateHeadlands |
( |
const F2CCells & |
field, |
|
|
double |
dist_headland |
|
) |
| |
|
pure virtual |
Get the regions of the field without headlands.
- Parameters
-
_field | Original field |
_dist_headland | Width of the headland |
- Returns
- Field without headlands
Implemented in f2c::hg::ConstHL.
◆ generateHeadlandSwaths()
virtual std::vector<F2CCells> f2c::hg::HeadlandGeneratorBase::generateHeadlandSwaths |
( |
const F2CCells & |
field, |
|
|
double |
swath_width, |
|
|
int |
n_swaths, |
|
|
bool |
dir_out2in = true |
|
) |
| |
|
pure virtual |
Generate headland swaths of the field for a given number of swaths with given width.
- Parameters
-
field | Borders of the field and the obstacles on it. |
swath_width | Width of each headland swath. |
n_swaths | Number of headland swaths. |
dir_out2in | When true, headland swaths are created from outer borders to inner borders. Otherwise, they are created from inner borders to outers. |
- Returns
- Vector of size n_swaths for each headland swath. Each F2CLinearRing on it is a headland swath ring.
Implemented in f2c::hg::ConstHL.
The documentation for this class was generated from the following file: