9 import fields2cover
as f2c
12 robot = f2c.Robot(2.0, 26.0);
13 field = rand.generateRandField(1e4, 5);
14 cells = field.getField();
16 print(
"####### Tutorial 3.1 Constant width headland generator ######");
17 const_hl = f2c.HG_Const_gen();
18 no_hl = const_hl.generateHeadlands(cells, 3.0 * robot.getWidth());
19 print(
"The complete area is ", cells.area(),
20 ", and the area without headlands is ", no_hl.area());