config: add the dock planner direct-entry and straight-terminal keys
direct_entry_min_curve_room enables the no-cusp entry when there is room for the arc; straight_length sets the length of the straight terminal leg. Also raises max_steering_angle to the value measured on the robot.
This commit is contained in:
@@ -1,4 +1,14 @@
|
||||
# DockPlanner plugin and approach-curve parameters.
|
||||
# DockPlanner: one curved lead-in away from the dock, one direction change, then
|
||||
# a straight terminal leg along the goal yaw.
|
||||
#
|
||||
# Which robot edge mates with the dock is DERIVED per plan from the side the
|
||||
# robot stands on, not configured:
|
||||
# robot on the +X side of the goal -> lead-in forward, terminal REVERSE
|
||||
# (rear edge docks: forks into a pallet)
|
||||
# robot on the -X side of the goal -> lead-in reverse, terminal FORWARD
|
||||
# (front edge docks: charging contact)
|
||||
# This works because the goal pose is already offset upstream so that base_link
|
||||
# lands exactly on it for the intended maneuver.
|
||||
#
|
||||
# Collision/free-space checking is intentionally not configured here yet:
|
||||
# DockPlanner currently generates geometry only. Do not add cost_threshold,
|
||||
@@ -7,36 +17,54 @@ 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
|
||||
kinematics:
|
||||
# Axle frames used to measure wheel_base from TF, matching StanleyControl.
|
||||
front_axle_frame: "steer_link"
|
||||
rear_axle_frame: "base_link"
|
||||
|
||||
# [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] Maximum equivalent bicycle steering angle while driving the
|
||||
# approach curve. Measure this on the real robot; this is not a servo tick,
|
||||
# steering-wheel angle, or the special standstill-pivot angle.
|
||||
max_steering_angle: 0.80
|
||||
|
||||
# [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
|
||||
maneuver:
|
||||
# [m] The cusp is placed at least this far from the start, measured away
|
||||
# from the dock. This guarantees a real lead-in leg before the terminal.
|
||||
minimum_forward_distance: 0.25
|
||||
|
||||
# [rad] Relaxes the forward direction test relative to the reverse test.
|
||||
# Required: 0 <= value < angle_threshold_far.
|
||||
direction_angle_hysteresis: 0.05
|
||||
# [m] Reject a maneuver whose cusp has to sit farther than this from the
|
||||
# start to satisfy the turning-radius and dock-clearance constraints.
|
||||
maximum_forward_extension: 3.0
|
||||
|
||||
# [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
|
||||
# [m] Plan a NO-CUSP entry (one arc onto the dock axis, then the straight
|
||||
# terminal in the same travel direction) when the room left for the arc --
|
||||
# the start distance along the approach axis minus the straight terminal
|
||||
# length -- exceeds this. The arc radius is still checked against the
|
||||
# Ackermann limit; the single-cusp maneuver is planned whenever either test
|
||||
# fails, so this only ever removes a direction change, never adds one.
|
||||
# 0 disables it and always plans a cusp.
|
||||
direct_entry_min_curve_room: 0.5
|
||||
|
||||
terminal:
|
||||
# [m] Extra straight-terminal distance beyond the mating robot extent
|
||||
# (rear_extent when the terminal reverses, front_extent when it drives
|
||||
# forward) and, for dock_anchor=center, the dock near-face extent.
|
||||
reverse_distance_padding: 0.0
|
||||
|
||||
# [m] Requested length of the straight terminal leg. The effective length is
|
||||
# max(this, mating extent + dock near extent + padding), so 0 keeps the
|
||||
# clearance-only behaviour. Raising it gives the robot a longer straight run
|
||||
# to settle its heading before it enters the dock, but it eats into the room
|
||||
# left for the entry arc, so a large value pushes the plan back to a cusp.
|
||||
straight_length: 0.0
|
||||
|
||||
sampling:
|
||||
# [m] Target spacing between generated path poses. The curve is sampled by
|
||||
# arc-length estimate and always includes both endpoints.
|
||||
# [m] Maximum target spacing along both the forward arc and reverse line.
|
||||
path_point_spacing: 0.05
|
||||
|
||||
# footprint_dock is intentionally not declared here. It describes the
|
||||
# physical dock, not the robot, and move_base2 copies the value selected from
|
||||
# docking_marker_profiles/<marker>/footprint_dock into this namespace before
|
||||
# constructing the planner. If absent, dock size contributes 0 m to approach
|
||||
# geometry and DockPlanner emits a warning.
|
||||
# footprint_dock and dock_anchor are selected per marker by move_base2 and
|
||||
# copied into this namespace before the plugin is constructed.
|
||||
#
|
||||
# dock_anchor: 'center' (default) — goal is the dock footprint center; the
|
||||
# near-face extent of footprint_dock contributes to cusp clearance.
|
||||
# 'face' — goal already sits on the approach face; footprint_dock is ignored.
|
||||
|
||||
Reference in New Issue
Block a user