| 12 | #include "../test_helpers/path_planning_checker.hpp" |
| 13 | |
| 14 | TEST(fields2cover_pp_dubins, turn_dist) { |
| 15 | f2c::types::Robot robot(2.1); |
| 16 | robot.setCruiseVel(2.0); |
| 17 | robot.setMaxCurv(1.0); |
| 18 | robot.setMaxDiffCurv(1.0); |
| 19 | |
| 20 | f2c::pp::DubinsCurves turn; |
| 21 | F2CPoint start(0.0, 0.0), end(-3.0, 0.0); |
| 22 | auto path = turn.createTurn(robot, |
| 23 | start, boost::math::constants::half_pi<double>(), |
| 24 | end, 3.0 * boost::math::constants::half_pi<double>()); |
| 25 | EXPECT_TRUE(IsPathCorrect(path, start, boost::math::constants::half_pi<double>(), |
| 26 | end, 3.0 * boost::math::constants::half_pi<double>())); |
| 27 | } |
| 28 | |
| 29 | TEST(fields2cover_pp_dubins, random_points) { |
| 30 | f2c::types::Robot robot(2.1); |
nothing calls this directly
no test coverage detected