Class to generate headlands with equal width in each border. More...
#include <constant_headland.h>
Public Member Functions | |
F2CCells | generateHeadlandArea (const F2CCells &field, double swath_width, int n_swaths) override |
F2CCells | generateHeadlands (const F2CCells &field, double dist_headland) override |
std::vector< F2CCells > | generateHeadlandSwaths (const F2CCells &field, double swath_width, int n_swaths, bool dir_out2in=true) override |
![]() | |
virtual | ~HeadlandGeneratorBase ()=default |
Class to generate headlands with equal width in each border.
Definition at line 18 of file constant_headland.h.
|
overridevirtual |
Generate headland area of the field for a given number of swaths with given width.
field | Borders of the field and the obstacles on it. |
swath_width | Width of each headland swath. |
n_swaths | Number of headland swaths. |
Implements f2c::hg::HeadlandGeneratorBase.
Definition at line 17 of file constant_headland.cpp.
|
overridevirtual |
Generate headland area of the field at a given distance from borders
field | Borders of the field and the obstacles on it. |
dist_headland | Distance between exterior and interior borders of the headlands. |
Implements f2c::hg::HeadlandGeneratorBase.
Definition at line 12 of file constant_headland.cpp.
|
overridevirtual |
Generate headland swaths of the field for a given number of swaths with given width.
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. |
Implements f2c::hg::HeadlandGeneratorBase.
Definition at line 22 of file constant_headland.cpp.