8 import fields2cover
as f2c
11 assert pytest.approx(a) == pytest.approx(b)
14 robot = f2c.Robot(3, 6);
15 near(robot.getWidth(), 3);
16 near(robot.getCovWidth(), 6);
19 near(r1.getWidth(), 3);
20 near(r1.getCovWidth(), 6);
23 near(r2.getWidth(), 1);
24 near(r2.getCovWidth(), 2);
27 near(r3.getWidth(), 0);
28 near(r3.getCovWidth(), 0);
31 r4.setMinTurningRadius(20.0);
32 r4.setMaxDiffCurv(0.2);
33 near(r4.getMaxCurv(), 1/20.0);
34 near(r4.getMaxDiffCurv(), 0.2);
36 with pytest.raises(Exception)
as e_info:
38 with pytest.raises(Exception)
as e_info:
40 with pytest.raises(Exception)
as e_info: