feat: copy terminal_direction down to the docking global planner
Third per-marker key alongside footprint_dock and dock_anchor, so a marker can override which direction the final straight leg into the dock is driven.
This commit is contained in:
@@ -224,6 +224,7 @@ docking_marker_profiles:
|
||||
global_planner: TestPlannerOk
|
||||
local_planner: TestControllerOk
|
||||
footprint_dock: [[0.5, -0.4], [0.5, 0.4], [-0.5, 0.4], [-0.5, -0.4]] # [m]
|
||||
terminal_direction: forward
|
||||
|
||||
dock_b:
|
||||
global_planner: TestPlannerOk
|
||||
|
||||
@@ -466,6 +466,9 @@ TEST(PlannerRunnerDockingMarker, CopiesTheMarkerFootprintIntoThePlannerNamespace
|
||||
ASSERT_EQ(copied.size(), 4U);
|
||||
EXPECT_DOUBLE_EQ(copied[0][0].as<double>(), 0.5);
|
||||
EXPECT_DOUBLE_EQ(copied[0][1].as<double>(), -0.4);
|
||||
std::string terminal_direction;
|
||||
ASSERT_TRUE(nh.getParam("TestPlannerOk/terminal_direction", terminal_direction));
|
||||
EXPECT_EQ(terminal_direction, "forward");
|
||||
}
|
||||
|
||||
TEST(PlannerRunnerDockingMarker, TargetsWhateverPlannerTheProfileNamesNotJustDockPlanner)
|
||||
|
||||
Reference in New Issue
Block a user