Split configuration out of the planner into DockPlannerConfig with explicit
load/validate, so a missing or malformed key fails at initialize() with a
message instead of silently defaulting to zero.
- initialize() now scopes its NodeHandle to the plugin name. The previous
"~/<name>" form never resolved ("~" is not a key in the merged tree) and
fell back to ROOT, so every parameter was read from the wrong place and
cost_threshold silently dropped from 200 to 0.
- Replace robot_nav_2d_utils::footprintFromParams(), whose declaration and
definition disagreed on the argument type. The symbol was never defined,
and because the plugin is dlopen'd lazily the failure only surfaced at the
call site on the robot, long after a clean build.
- Read footprint_dock, the dock object's polygon, with range and NaN checks.
move_base2 copies it in per marker before the instance is built.
- dock_anchor selects whether the marker goal sits at the dock centre or on
its approach face; the face case ignores footprint_dock entirely.
- makePlan() rejects start/goal outside the costmap global frame instead of
planning across mismatched frames.
- Add dock_planner_test covering config validation, footprint parsing and
path generation.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
49 lines
2.2 KiB
YAML
49 lines
2.2 KiB
YAML
# DockPlanner plugin and approach-curve parameters.
|
|
#
|
|
# Collision/free-space checking is intentionally not configured here yet:
|
|
# DockPlanner currently generates geometry only. Do not add cost_threshold,
|
|
# allow_unknown, or check_free_space until the collision checker is implemented.
|
|
DockPlanner:
|
|
# Boost.DLL library containing the exported symbol "DockPlanner".
|
|
library_path: libdock_planner
|
|
|
|
approach:
|
|
# [m] Extra straight alignment distance beyond half the combined robot/dock
|
|
# X extents. Increase if the robot must align earlier before entering a dock.
|
|
alignment_distance_padding: 0.0
|
|
|
|
# [m] Lateral-distance range used to interpolate angle_threshold_*.
|
|
# Values outside this range are clamped, so behavior remains bounded.
|
|
lateral_distance_near: 0.10
|
|
lateral_distance_far: 1.00
|
|
|
|
# [rad] Permitted joining angle at the near/far lateral-distance limits.
|
|
# Required relation: 0 < far < near < pi.
|
|
angle_threshold_near: 2.35619449019 # 0.75*pi
|
|
angle_threshold_far: 1.09955742876 # 0.35*pi
|
|
|
|
# [rad] Relaxes the forward direction test relative to the reverse test.
|
|
# Required: 0 <= value < angle_threshold_far.
|
|
direction_angle_hysteresis: 0.05
|
|
|
|
# [m] Distance margin used when rejecting a reference-path joining point
|
|
# that is already too close to the end of the approach curve.
|
|
direction_distance_tolerance: 0.10
|
|
|
|
sampling:
|
|
# [m] Target spacing between generated path poses. The curve is sampled by
|
|
# arc-length estimate and always includes both endpoints.
|
|
path_point_spacing: 0.05
|
|
|
|
# footprint_dock and dock_anchor are intentionally not declared here. They
|
|
# describe the physical dock, not the robot, and move_base2 copies the values
|
|
# selected from docking_marker_profiles/<marker>/ into this namespace before
|
|
# constructing the planner.
|
|
#
|
|
# dock_anchor: 'center' (default) — goal is the dock footprint center; the
|
|
# near-face extent of footprint_dock is added to the approach distance.
|
|
# 'face' — goal already sits on the approach face; footprint_dock is
|
|
# ignored entirely.
|
|
# With anchor 'center' and footprint_dock absent, dock size contributes 0 m
|
|
# and DockPlanner emits a warning.
|