# 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, # 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 kinematics: # Axle frames used to measure wheel_base from TF, matching StanleyControl. front_axle_frame: "steer_link" rear_axle_frame: "base_link" # [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 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 # [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] 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] Maximum target spacing along both the forward arc and reverse line. path_point_spacing: 0.05 # 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.