MCPcopy Create free account
hub / github.com/Fields2Cover/Fields2Cover / TEST

Function TEST

tests/cpp/path_planning/dubins_test.cpp:14–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include "../test_helpers/path_planning_checker.hpp"
13
14TEST(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
29TEST(fields2cover_pp_dubins, random_points) {
30 f2c::types::Robot robot(2.1);

Callers

nothing calls this directly

Calls 13

setCruiseVelMethod · 0.80
setMaxCurvMethod · 0.80
setMaxDiffCurvMethod · 0.80
createTurnMethod · 0.80
getUsingCacheMethod · 0.80
setUsingCacheMethod · 0.80
isTurnValidMethod · 0.80
setYMethod · 0.80
backMethod · 0.80
setXMethod · 0.80
IsPathCorrectFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected