Go to the documentation of this file.
12 std::cout <<
"####### Tutorial 2.1.1 Remaining Area ######" << std::endl;
20 std::cout <<
"The remaining area is "
22 std::cout <<
"The remaining area with sign is "
24 std::cout << std::endl << std::endl;
26 std::cout <<
"####### Tutorial 2.2.1 Field Coverage ######" << std::endl;
34 std::cout <<
"The field coverage with swath1 is "
37 std::cout <<
"The field coverage with sign for all of the swaths is "
38 <<
field_cov.computeCostWithMinimizingSign(
41 std::cout << std::endl;
42 std::cout <<
"####### Tutorial 2.2.2 Number of swaths ######" << std::endl;
44 std::cout <<
"The number of swaths with swath1 is "
49 std::cout <<
"The number of swaths with swath1 is "
54 std::cout << std::endl;
55 std::cout <<
"####### Tutorial 2.2.3 Overlap ######" << std::endl;
57 std::cout <<
"The field overlapping with swath1 is "
61 std::cout << std::endl;
62 std::cout <<
"####### Tutorial 2.2.4 Swath length ######" << std::endl;
64 std::cout <<
"The swath length with swath1 is "
68 std::cout << std::endl << std::endl;
69 std::cout <<
"####### Tutorial 2.3.1 Distance with turns ######" << std::endl;
74 robot.setMinTurningRadius(0.5);
76 std::cout <<
"The complete length is: " <<
78 " =~= " << 1 + 1 + M_PI/2.0 << std::endl;
80 std::cout << std::endl;
81 std::cout <<
"####### Tutorial 2.3.2 Direct distance without turns ######" << std::endl;
83 std::cout <<
"The aproximated length is: " <<
86 std::cout << std::endl << std::endl;
87 std::cout <<
"####### Tutorial 2.4.1 Path length ######" << std::endl;
93 std::cout <<
"The path length is: " <<
Global cost function as the length of the swaths.
SG cost function as the number of swaths.
Path cost function as the straight distance between points in a route.
Compute the area of the mainland (field - headlands).
SG objective function as the percentage of the field covered.
f2c::types::LinearRing F2CLinearRing
Compute the length of the coverage path, including turns.
f2c::types::Swaths F2CSwaths
f2c::types::LineString F2CLineString
Class to compute the cost of turning from one point to another.
f2c::types::Swath F2CSwath
double computeCost(double ang, double op_width, const F2CCell &cell) override
Compute the cost function.
SG cost function as the percentage of the field overlapped.
f2c::types::Point F2CPoint
SG cost function as the number of swaths .
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31