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:
@@ -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