constant_headland.h
Go to the documentation of this file.
1 //=============================================================================
2 // Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3 // Author: Gonzalo Mier
4 // BSD-3 License
5 //=============================================================================
6 
7 #pragma once
8 #ifndef FIELDS2COVER_HEADLAND_GENERATOR_CONSTANT_HEADLAND_H_
9 #define FIELDS2COVER_HEADLAND_GENERATOR_CONSTANT_HEADLAND_H_
10 
11 #include <vector>
12 #include "fields2cover/types.h"
14 
15 namespace f2c::hg {
16 
19  public:
26  const F2CCells& field, double dist_headland) override;
27 
35  const F2CCells& field, double swath_width, int n_swaths) override;
36 
48  std::vector<F2CCells> generateHeadlandSwaths(
49  const F2CCells& field, double swath_width, int n_swaths,
50  bool dir_out2in = true) override;
51 };
52 
53 } // namespace f2c::hg
54 
55 
56 #endif // FIELDS2COVER_HEADLAND_GENERATOR_CONSTANT_HEADLAND_H_
2_objective_functions.n_swaths
n_swaths
Definition: 2_objective_functions.py:50
f2c::hg::ConstHL
Class to generate headlands with equal width in each border.
Definition: constant_headland.h:18
f2c::hg::ConstHL::generateHeadlandSwaths
std::vector< F2CCells > generateHeadlandSwaths(const F2CCells &field, double swath_width, int n_swaths, bool dir_out2in=true) override
Definition: constant_headland.cpp:22
types.h
f2c::hg::HeadlandGeneratorBase
Base class to generate the headlands.
Definition: headland_generator_base.h:17
f2c::hg::ConstHL::generateHeadlands
F2CCells generateHeadlands(const F2CCells &field, double dist_headland) override
Definition: constant_headland.cpp:12
f2c::hg::ConstHL::generateHeadlandArea
F2CCells generateHeadlandArea(const F2CCells &field, double swath_width, int n_swaths) override
Definition: constant_headland.cpp:17
f2c::types::Cells
Definition: Cells.h:21
headland_generator_base.h
2_objective_functions.field
field
Definition: 2_objective_functions.py:16
f2c::hg
Headland generator algorithms' namespace.
Definition: constant_headland.h:15


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31