config: update the installed planner profiles to the current schema

custom_global_params documents the CustomPlanner namespace and drops the stale
SBPL keys; dock_global_params moves to the straight-terminal DockPlanner schema
and keeps its 1.0 m terminal padding.
This commit is contained in:
2026-08-15 13:09:39 +07:00
parent e942a7d157
commit 599bce1731
2 changed files with 55 additions and 22 deletions

View File

@@ -1,16 +1,35 @@
# custom_planner — tham số runtime, đọc qua robot::NodeHandle("CustomPlanner").
# Thiếu key nào thì dùng default trong CustomPlannerConfig (cùng giá trị ghi ở đây).
CustomPlanner: CustomPlanner:
library_path: libcustom_planner library_path: libcustom_planner
environment_type: XYThetaLattice
planner_type: ARAPlanner
allocated_time: 10.0
initial_epsilon: 1.0
force_scratch_limit: 10000
forward_search: false
nominalvel_mpersecs: 0.8
timetoturn45degsinplace_secs: 1.31 # = 0.6 rad/s
allow_unknown: true
directory_to_save_paths: "/init/paths"
pathway_filename: "pathway.txt"
current_pose_topic_name: "/amcl_pose"
# [m] start/goal cách pathway dưới ngưỡng này thì coi là đã bám vào pathway
# (quyết định cách nối NURBS start/goal vào tuyến).
pathway_attach_distance: 0.1
# [m] order không có node/edge (goal trần): chỉ nhận khi start-goal gần hơn
# ngưỡng này, ngược lại trả false để move_base2 dùng backup planner.
bare_goal_max_distance: 0.2
# Bước tham số u trong [0,1] khi đo chiều dài NURBS một cạnh (không phải mét).
nurbs_length_t_interval: 0.01
# [m] khoảng cách mong muốn giữa hai pose khi lấy mẫu NURBS nối start/goal.
nurbs_point_spacing: 0.05
# [rad] hai cạnh thẳng đầu gãy dưới góc này thì bỏ cạnh đầu khi tính yaw.
skip_edge_angle: 0.4712 # = 0.15*pi
# [rad] góc nối giữa hai cạnh <= tight: gãy gắt (cost 20); < wide: gãy vừa (cost 10).
cost_angle_tight: 0.3142 # = 0.1*pi
cost_angle_wide: 1.4137 # = 0.45*pi
# [rad] cửa sổ góc đổi hướng cần chèn chuỗi pose xoay tại chỗ giữa hai cạnh.
rotation_insert_min: 1.4137 # = 0.45*pi
rotation_insert_max: 2.6704 # = 0.85*pi
# [rad] bước yaw giữa hai pose xoay tại chỗ được chèn.
rotation_step: 0.1571 # = 0.05*pi
# [rad] |yaw goal - hướng cạnh cuối| vượt ngưỡng này thì đoạn cuối đi lùi.
backward_decision_angle: 1.5708 # = 0.5*pi

View File

@@ -1,11 +1,25 @@
# DockPlanner: straight terminal aligned with goal yaw, forward/reverse/auto.
# This installed/default profile preserves the existing 1.0 m terminal padding.
# Collision/free-space checking is not implemented yet.
DockPlanner: DockPlanner:
library_path: libdock_planner library_path: libdock_planner
MyGlobalPlanner:
cost_threshold: 200 # Ngưỡng chi phí vật cản (0-255) kinematics:
safety_distance: 2 # Khoảng cách an toàn (cells) front_axle_frame: "steer_link"
use_dijkstra: false # Sử dụng Dijkstra thay vì A* rear_axle_frame: "base_link"
max_steering_angle: 0.50 # [rad], replace with measured robot value
# File: config/costmap_params.yaml
global_costmap: maneuver:
inflation_radius: 0.3 # Bán kính phình vật cản minimum_forward_distance: 0.25 # [m]
cost_scaling_factor: 10.0 # Hệ số tỷ lệ chi phí maximum_forward_extension: 3.0 # [m]
straight_lateral_tolerance: 0.03 # [m]
straight_yaw_tolerance: 0.05 # [rad]
terminal:
direction: auto # forward | reverse | auto
reverse_distance_padding: 1.0 # [m]
sampling:
path_point_spacing: 0.05 # [m]
# footprint_dock and dock_anchor are copied from the active marker profile.