luxb: drop unused planners and actions, use PNKXLocalPlanner

Removes the submodules this robot does not use: mppi_local_planner,
priest_local_planner, priest_mpcc_local_planner, stanley_local_planner,
trolley_detection_action and wall_reflector_detection_action, together
with their add_subdirectory blocks and config files.

Config: the position profile uses CustomPlanner + PNKXLocalPlanner, the
trolley/wall handlers and the GOTOWALLSTATION chain are gone, the pallet
chain detects with DetectPallet, the forbidden/preferred/unpreferred/
direction layers and the lidar VoxelLayer are commented out, EnvMonitor
and recovery are off. pnkx_local_planner drops its DEBUG log lines.
This commit is contained in:
2026-11-18 09:51:38 +07:00
parent e948f3291c
commit 8470d73317
22 changed files with 226 additions and 1074 deletions

21
.gitmodules vendored
View File

@@ -43,12 +43,6 @@
[submodule "src/Algorithms/Packages/local_planners/hybrid_local_planner"]
path = src/Algorithms/Packages/local_planners/hybrid_local_planner
url = https://git.pnkr.asia/DuongTD/hybrid_local_planner.git
[submodule "src/Algorithms/Packages/local_planners/mppi_local_planner"]
path = src/Algorithms/Packages/local_planners/mppi_local_planner
url = https://git.pnkr.asia/DuongTD/mppi_local_planner.git
[submodule "src/Algorithms/Packages/local_planners/priest_local_planner"]
path = src/Algorithms/Packages/local_planners/priest_local_planner
url = https://git.pnkr.asia/DuongTD/priest_local_planner.git
[submodule "src/Libraries/action_core"]
path = src/Libraries/action_core
url = https://git.pnkr.asia/DuongTD/action_core.git
@@ -85,17 +79,6 @@
[submodule "src/Libraries/grid_map_core"]
path = src/Libraries/grid_map_core
url = https://git.pnkr.asia/DuongTD/grid_map_core.git
[submodule "src/Algorithms/Packages/local_planners/stanley_local_planner"]
path = src/Algorithms/Packages/local_planners/stanley_local_planner
url = https://git.pnkr.asia/DuongTD/stanley_local_planner.git
branch = main
[submodule "src/Algorithms/Packages/local_planners/priest_mpcc_local_planner"]
path = src/Algorithms/Packages/local_planners/priest_mpcc_local_planner
url = https://git.pnkr.asia/DuongTD/priest_mpcc_local_planner.git
branch = main
[submodule "src/Algorithms/Packages/actions/trolley_detection_action"]
path = src/Algorithms/Packages/actions/trolley_detection_action
url = https://git.pnkr.asia/DuongTD/trolley_detection_action.git
[submodule "src/Libraries/lane_route_core"]
path = src/Libraries/lane_route_core
url = https://git.pnkr.asia/DuongTD/lane_route_core.git
@@ -104,7 +87,3 @@
path = src/Algorithms/Packages/global_planners/lane_route_planner
url = https://git.pnkr.asia/DuongTD/lane_route_planner.git
branch = main
[submodule "src/Algorithms/Packages/actions/wall_reflector_detection_action"]
path = src/Algorithms/Packages/actions/wall_reflector_detection_action
url = https://git.pnkr.asia/DuongTD/wall_reflector_detection_action.git
branch = main

View File

@@ -209,22 +209,6 @@ if (NOT TARGET hybrid_local_planner)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/local_planners/hybrid_local_planner)
endif()
if (NOT TARGET mppi_local_planner)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/local_planners/mppi_local_planner)
endif()
if (NOT TARGET priest_local_planner)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/local_planners/priest_local_planner)
endif()
if (NOT TARGET priest_mpcc_local_planner)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/local_planners/priest_mpcc_local_planner)
endif()
if (NOT TARGET stanley_local_planner)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/local_planners/stanley_local_planner)
endif()
if (NOT TARGET robot_actionlib_msgs)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Navigations/Libraries/robot_actionlib_msgs)
endif()
@@ -281,23 +265,6 @@ if (NOT TARGET dock_pattern_action_handler)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/actions/dock_pattern_action)
endif()
# Bộ dò xe hàng 4 chân từ scan LiDAR thô, nạp như một action handler. Cần dock_pattern_detector
# (LegPatternMatcher), action_core và robot_sensor_ports — đều đã add ở trên.
#
# ⚠ Guard kiểm target thư viện `trolley_detection_action_handler`, như dock_pattern_action.
if (NOT TARGET trolley_detection_action_handler)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/actions/trolley_detection_action)
endif()
# Bộ dò trạm dừng trước tường có hai dải phản quang, từ scan LiDAR thô, nạp như một action handler.
# Cần dock_pattern_detector (ReflectorPairMatcher), action_core và robot_sensor_ports — đều đã add ở
# trên.
#
# ⚠ Guard kiểm target thư viện `wall_reflector_detection_action_handler`, như hai gói action trên.
if (NOT TARGET wall_reflector_detection_action_handler)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/Algorithms/Packages/actions/wall_reflector_detection_action)
endif()
# C API for .NET/C# integration. Target is `nav_c_api` — the guard must name the same target,
# otherwise it never matches and the subdirectory is added twice on a re-entrant configure.
if (NOT TARGET nav_c_api)

View File

@@ -3,73 +3,7 @@ actions:
handlers:
- {name: detect_pallet, type: FrameSamplerActionHandler} # instance và symbol
- {name: detect_lidar, type: DockPatternActionHandler} # instance và symbol
- {name: detect_trolley, type: TrolleyDetectionActionHandler} # instance và symbol
- {name: detect_wall_reflector, type: WallReflectorDetectionActionHandler} # instance và symbol
detect_wall_reflector:
action_types: [DetectWallReflectors] # [-] loại action được handler nhận
output_frame: wall_reflector_target # [frame] frame kết quả
marker_frame: wall_reflector_frame # [frame] frame marker kết quả
scan_topic: /b_scan # [topic] topic scan đầu vào
entry_direction: backward # [-] hướng tiếp cận
default_profile: wall_pair # [-] profile mặc định
profile_param_key: reflector_profile # [-] khóa chọn profile trong order
settle_delay: 0.4 # [s] thời gian chờ robot ổn định
timeout: 15.0 # [s] thời hạn tối đa
max_scan_age: 0.5 # [s] tuổi scan tối đa
max_future_skew: 0.05 # [s] độ lệch stamp tương lai tối đa
pending_tf_timeout: 0.2 # [s] thời gian chờ TF của detection
min_range: 0.1 # [m] khoảng cách tia tối thiểu
max_range: 1.6 # [m] khoảng cách tia tối đa
zero_range_is_no_echo: true # [-] coi range 0 là không echo
max_candidates: 16 # [số] số candidate tối đa
max_pairs: 120 # số cặp tối đa
max_scan_rays: 4096 # số tia scan tối đa
sample_window: 1.0 # [s] cửa sổ lấy mẫu
min_samples: 5 # số mẫu tối thiểu
max_spread_xy: 0.03 # [m] độ tản vị trí tối đa
max_spread_yaw: 0.05 # [rad] độ tản góc tối đa
hold_time: 0.0 # [s] thời gian giữ ổn định
jump_threshold: 0.0 # [m] ngưỡng gom cụm
cluster_recency: 0.3 # [s] thời gian gần đây của cụm
min_cluster_fraction: 0.6 # tỉ lệ mẫu cụm tối thiểu
min_cluster_samples: 3 # số mẫu cụm tối thiểu
debug:
state: true # [-] bật log trạng thái
detect: true # bật log dò
skip: true # bật log bỏ qua
profiles:
wall_pair:
tape_width: 0.03 # [m] chiều rộng dải phản quang
tape_spacing: 0.09 # [m] khoảng cách tâm hai dải
width_tolerance: 0.015 # [m] dung sai chiều rộng dải
spacing_tolerance: 0.015 # [m] dung sai khoảng cách hai dải
tape_min_intensity: 240.0 # ngưỡng intensity của dải
tape_min_points: 3 # [tia] số tia phản quang tối thiểu
tape_bloom_max_angle: 0.0 # [rad] góc mask bloom tối đa
edge_bias_bound: 0.002 # [m] giới hạn sai lệch mép
max_edge_uncertainty: 0.03 # [m] độ bất định mép tối đa
min_ray_wall_cos: 0.35 # [-] cos tối thiểu giữa tia và tường
wall_min_points_each_side: 5 # số điểm tường tối thiểu mỗi bên
wall_min_span: 0.20 # [m] độ rộng support tường tối thiểu
wall_max_rms: 0.025 # [m] RMS fit tường tối đa
wall_max_residual: 0.06 # [m] residual fit tường tối đa
wall_max_gap: 0.08 # [m] khoảng hở tối đa giữa các tia tường
wall_max_extrapolation: 0.0 # [m] độ ngoại suy mép tường tối đa
wall_merge_distance: 0.025 # [m] ngưỡng gộp các nhóm tường
has_prior: false # bật prior vị trí và hướng
prior_x: 0.0 # [m] tọa độ x của prior
prior_y: 0.0 # [m] tọa độ y của prior
prior_yaw: 0.0 # [rad] góc yaw của prior
prior_position_tolerance: 0.5 # [m] dung sai vị trí prior
prior_yaw_tolerance: 0.5 # [rad] dung sai yaw prior
search_center_yaw: 3.141592653589793 # [rad] góc tâm quạt tìm kiếm
search_fov: 1.570796326794897 # [rad] góc mở quạt tìm kiếm
offset_x: 0.4 # [m] độ dịch mục tiêu theo trục x
offset_y: 0.0 # [m] độ dịch mục tiêu theo trục y
offset_yaw: 0.0 # [rad] hiệu chỉnh góc yaw mục tiêu
detect_pallet:
action_types: [DetectPallet] # loại action được handler nhận
@@ -192,72 +126,8 @@ actions:
offset_y: 0.0 # [m] độ dịch mục tiêu theo trục y
offset_yaw: 0.0 # [rad] hiệu chỉnh góc yaw mục tiêu
detect_trolley:
action_types: [DetectTrolley] # loại action được handler nhận
output_frame: dock_target # [frame] frame kết quả
scan_topic: /f_scan # [topic] topic scan đầu vào
entry_direction: forward # hướng tiếp cận
settle_delay: 0.4 # [s] thời gian chờ robot ổn định
timeout: 15.0 # [s] thời hạn tối đa
default_profile: tci_trolley # profile mặc định
profile_param_key: trolley_profile # khóa chọn profile trong order
min_range: 0.10 # [m] khoảng cách tia tối thiểu
max_range: 3.0 # [m] khoảng cách tia tối đa
range_sigma: 0.01 # [m] độ lệch chuẩn nhiễu range của LiDAR
zero_range_is_no_echo: true # coi range 0 là không echo
debug:
detect: true # bật log dò
filter_enabled: true # bật lọc mẫu
sample_window: 3.0 # [s] cửa sổ lấy mẫu
min_samples: 5 # số mẫu tối thiểu
max_spread_xy: 0.02 # [m] độ tản vị trí tối đa
max_spread_yaw: 0.03 # [rad] độ tản góc tối đa
hold_time: 0.0 # [s] thời gian giữ ổn định
jump_threshold: 0.0 # [m] ngưỡng gom cụm
cluster_recency: 0.3 # [s] thời gian gần đây của cụm
min_cluster_fraction: 0.51 # tỉ lệ mẫu cụm tối thiểu
min_cluster_samples: 3 # số mẫu cụm tối thiểu
profiles:
tci_trolley:
cart_opening: 0.762 # [m] Tâm–tâm hai chân của CẠNH VÀO (ngang hướng chui)
cart_depth: 0.480 # [m] Tâm–tâm hai chân DỌC hướng chui
cart_dim_tolerance: 0.04 # [m] dung sai kích thước xe hàng
leg_shape: box # tiết diện chân ở ĐÚNG độ cao lidar (0.184 m): box hoặc round
leg_width: 0.030 # [m] box: cạnh dọc cart_opening
leg_width_tolerance: 0.02 # [m] dung sai bề rộng cụm chân
min_legs: 3 # số chân phải THẤY
accept_attached_legs: true # [bool] cho phép chân dính với vật khác
max_interior_points: -1 # [điểm] số điểm tối đa trong lòng xe
min_confidence: 0.5 # [-] độ tin cậy tối thiểu
tape_enabled: false # bật kiểm tra dải phản quang
tape_min_intensity: 8000.0 # [đơn vị cảm biến] ngưỡng intensity của dải
tape_legs: all # chân xe có dải phản quang
tape_min_points: 1 # [tia] số tia phản quang tối thiểu
tape_bloom_max_angle: 0.1 # [rad] góc mask bloom tối đa
tape_range_bias_sigma: 0.05 # [m] σ tiên nghiệm cho bias cự ly chung
tape_plateau_min_fraction: 0.65 # [-] tỉ lệ plateau liên tiếp tối thiểu
tape_range_bias_all_max_std: 0.02 # [m] độ lệch chuẩn tối đa của bias cự ly khi bốn chân có dải
has_prior: false # bật prior vị trí và hướng
prior_x: 1.70 # [m] tọa độ x của prior
prior_y: 0.0 # [m] tọa độ y của prior
prior_yaw: 3.14159 # [rad] góc yaw của prior
prior_yaw_tolerance: 0.35 # [rad] dung sai yaw prior
search_radius: 0.40 # [m] tâm xe xa prior quá ngần này thì loại
offset_x: 0.0 # [m] độ dịch mục tiêu theo trục x
offset_y: 0.0 # [m] độ dịch mục tiêu theo trục y
offset_yaw: 0.0 # [rad] hiệu chỉnh góc yaw mục tiêu
FrameSamplerActionHandler:
library_path: libaction_core_frame_sampler_action_handler # thư viện chứa plugin
DockPatternActionHandler:
library_path: libdock_pattern_action_handler # thư viện chứa plugin
TrolleyDetectionActionHandler:
library_path: libtrolley_detection_action_handler # thư viện chứa plugin
WallReflectorDetectionActionHandler:
library_path: libwall_reflector_detection_action_handler # thư viện chứa plugin

View File

@@ -1,10 +1,6 @@
# Hướng dẫn: doc/config_guide/runtime/compound_actions_params.md
vda5050_src:
compound_actions:
GOTOWALLSTATION:
steps:
- {action: DetectWallReflectors} # [-] bước trong chuỗi action
- {move_to: wall_reflector_target, profile: docking, marker: wall_station} # [-] bước trong chuỗi action
CHARGE:
steps:
@@ -13,7 +9,7 @@ vda5050_src:
PICKUP:
steps:
- {action: DetectTrolley} # [-] bước trong chuỗi action
- {action: DetectPallet} # [-] bước trong chuỗi action
- {move_to: dock_target, profile: docking, marker: trolley} # [-] bước trong chuỗi action
UNDOCK:

View File

@@ -7,39 +7,39 @@ root:
navigation_map:
map_topic: /map # [topic] nguồn lớp bản đồ
forbidden:
map_topic: forbidden # [topic] nguồn lớp bản đồ
map_pkg: managerments # [-] package nguồn bản đồ
use_maximum: true # [bool] gộp cost bằng maximum
lethal_cost_threshold: 100 # [-] ngưỡng occupancy thành lethal
track_unknown_space: false # [bool] giữ ô unknown
unknown_cost_value: -1 # [-] mã unknown của map
trinary_costmap: true # [bool] phân loại map ba trạng thái
first_map_only: true # [bool] chỉ nhận bản đồ đầu tiên
# forbidden:
# map_topic: forbidden # [topic] nguồn lớp bản đồ
# map_pkg: managerments # [-] package nguồn bản đồ
# use_maximum: true # [bool] gộp cost bằng maximum
# lethal_cost_threshold: 100 # [-] ngưỡng occupancy thành lethal
# track_unknown_space: false # [bool] giữ ô unknown
# unknown_cost_value: -1 # [-] mã unknown của map
# trinary_costmap: true # [bool] phân loại map ba trạng thái
# first_map_only: true # [bool] chỉ nhận bản đồ đầu tiên
preferred:
map_topic: preferred # [topic] nguồn lớp bản đồ
use_maximum: true # [bool] gộp cost bằng maximum
lethal_cost_threshold: 100 # [-] ngưỡng occupancy thành lethal
track_unknown_space: false # [bool] giữ ô unknown
unknown_cost_value: -1 # [-] mã unknown của map
trinary_costmap: true # [bool] phân loại map ba trạng thái
first_map_only: false # [bool] chỉ nhận bản đồ đầu tiên
# preferred:
# map_topic: preferred # [topic] nguồn lớp bản đồ
# use_maximum: true # [bool] gộp cost bằng maximum
# lethal_cost_threshold: 100 # [-] ngưỡng occupancy thành lethal
# track_unknown_space: false # [bool] giữ ô unknown
# unknown_cost_value: -1 # [-] mã unknown của map
# trinary_costmap: true # [bool] phân loại map ba trạng thái
# first_map_only: false # [bool] chỉ nhận bản đồ đầu tiên
unpreferred:
map_topic: unpreferred # [topic] nguồn lớp bản đồ
use_maximum: true # [bool] gộp cost bằng maximum
lethal_cost_threshold: 100 # [-] ngưỡng occupancy thành lethal
track_unknown_space: false # [bool] giữ ô unknown
unknown_cost_value: -1 # [-] mã unknown của map
trinary_costmap: true # [bool] phân loại map ba trạng thái
first_map_only: false # [bool] chỉ nhận bản đồ đầu tiên
# unpreferred:
# map_topic: unpreferred # [topic] nguồn lớp bản đồ
# use_maximum: true # [bool] gộp cost bằng maximum
# lethal_cost_threshold: 100 # [-] ngưỡng occupancy thành lethal
# track_unknown_space: false # [bool] giữ ô unknown
# unknown_cost_value: -1 # [-] mã unknown của map
# trinary_costmap: true # [bool] phân loại map ba trạng thái
# first_map_only: false # [bool] chỉ nhận bản đồ đầu tiên
direction:
enabled: true # [bool] bật layer
map_topic: "map" # [topic] nguồn lớp bản đồ
direction_topic: "direction_map" # [topic] nguồn direction grid
max_deviation_deg: 45.0 # [deg] góc lệch tối đa với zone
# direction:
# enabled: true # [bool] bật layer
# map_topic: "map" # [topic] nguồn lớp bản đồ
# direction_topic: "direction_map" # [topic] nguồn direction grid
# max_deviation_deg: 45.0 # [deg] góc lệch tối đa với zone
lidar_obstacles:
observation_sources: f_scan b_scan # [-] danh sách tên nguồn quan sát
@@ -64,41 +64,3 @@ root:
raytrace_range: 3.0 # [m] tầm raytrace xoá
min_obstacle_height: 0.0 # [m] chiều cao tối thiểu để đánh dấu
max_obstacle_height: 0.25 # [m] chiều cao tối đa để đánh dấu
depth_obstacles:
enabled: true # [bool] bật layer
voxel_resolution: 0.01 # [m] độ phân giải chiều cao điểm lưu
check_radius: 0.1 # [m] bán kính tìm cloud quanh điểm lưu
number_clearing_threshold: 1 # [điểm] ngưỡng xoá điểm lưu
ec_seg_distance: 0.2 # [m] khoảng cách gom cụm Euclidean
ec_cluster_min_size: 1 # [điểm] kích thước cụm nhỏ nhất
size_of_cluster_rejection: 0 # [điểm] ngưỡng loại cụm nhỏ
forced_clearing_distance: 0.1 # [m] khoảng xoá cưỡng bức gần robot
enable_near_blocked_protection: false # [bool] bảo vệ khi cloud quá thưa
number_points_considered_as_blocked: 5 # [điểm] ngưỡng cloud bị che
use_voxelized_observation: true # [bool] giảm mật độ cloud gộp
use_global_frame_to_mark: true # [bool] lưu điểm trong global frame
transform_tolerance: 0.2 # [s] thời gian chờ TF của cloud
footprint_clearing_enabled: true # [bool] xoá điểm trong footprint
combination_method: 1 # [-] cách gộp vào master
debug:
stats: true # [bool] bật log thống kê depth
stats_period: 5.0 # [s] chu kỳ log depth
occlusion_guard: false # [bool] chống xoá khi bị che
observation_sources: depth_cam # [-] danh sách tên nguồn quan sát
depth_cam:
topic: /camera/depth/points_proc # [topic] luồng dữ liệu cảm biến
sensor_frame: "" # [frame] frame sensor để dựng frustum
sensor_frame_is_optical: true # [bool] sensor frame là frame quang học
observation_persistence: 0.0 # [s] thời gian giữ cloud
expected_update_rate: 0.8 # [s] thời gian tối đa giữa hai mẫu
FOV_W: 1.23 # [rad] góc nhìn ngang camera
FOV_V: 0.76 # [rad] góc nhìn dọc camera
min_detect_distance: 0.15 # [m] mặt gần frustum
max_detect_distance: 2.5 # [m] mặt xa frustum
min_obstacle_height: 0.04 # [m] chiều cao tối thiểu để đánh dấu
max_obstacle_height: 0.4 # [m] chiều cao tối đa để đánh dấu
attach_distance: 0.12 # [m] biên không đánh dấu sát mép FOV

View File

@@ -2,9 +2,9 @@
global_costmap:
plugins:
- {name: navigation_map, type: StaticLayer} # [-] instance và symbol layer
- {name: forbidden, type: StaticLayer} # [-] instance và symbol layer
- {name: preferred, type: PreferredLayer} # [-] instance và symbol layer
- {name: unpreferred, type: UnPreferredLayer} # [-] instance và symbol layer
- {name: lidar_obstacles, type: VoxelLayer} # [-] instance và symbol layer
# - {name: forbidden, type: StaticLayer} # [-] instance và symbol layer
# - {name: preferred, type: PreferredLayer} # [-] instance và symbol layer
# - {name: unpreferred, type: UnPreferredLayer} # [-] instance và symbol layer
# - {name: lidar_obstacles, type: VoxelLayer} # [-] instance và symbol layer
- {name: inflation, type: InflationLayer} # [-] instance và symbol layer
- {name: direction, type: DirectionalLayer} # [-] instance và symbol layer
# - {name: direction, type: DirectionalLayer} # [-] instance và symbol layer

View File

@@ -1,6 +1,6 @@
# Hướng dẫn: doc/config_guide/runtime/costmap_local_params_plugins.md
local_costmap:
plugins:
- {name: forbidden, type: StaticLayer} # [-] instance và symbol layer
# - {name: forbidden, type: StaticLayer} # [-] instance và symbol layer
- {name: lidar_obstacles, type: VoxelLayer} # [-] instance và symbol layer
- {name: inflation_layer, type: InflationLayer} # [-] instance và symbol layer

View File

@@ -1,6 +1,6 @@
# Hướng dẫn: doc/config_guide/runtime/env_monitor_params.md
env_monitor:
enabled: true # [bool] bật EnvMonitor
enabled: false # [bool] bật EnvMonitor
profiles: [position] # [-] danh sách profile được giám sát
check_period: 0.2 # [s] chu kỳ tính EnvMonitor
grace_after_new_plan: 1.0 # [s] thời gian bỏ qua sau plan mới
@@ -25,7 +25,7 @@ env_monitor:
track_ahead: 3.0 # [m] khoảng tìm index plan về phía trước
stall:
enabled: true # [bool] bật phát hiện stall
enabled: false # [bool] bật phát hiện stall
action: recover # [-] hành động khi stall
window_s: 4.0 # [s] cửa sổ đo eff_geo = (cost_to_go giảm) / (lệnh tích luỹ)
window_m: 1.5 # [m] cửa sổ lệnh tích luỹ đo tiến độ
@@ -49,14 +49,14 @@ env_monitor:
retry_backoff: 3.0 # [s] sau một lượt recovery HỎNG không tích bằng chứng (thay cho behavior wait)
unreachable:
enabled: true # [bool] bật phát hiện unreachable
enabled: false # [bool] bật phát hiện unreachable
action: recover # [-] hành động khi unreachable
static_on: 1.5 # [s] thời gian mất liên thông để kích hoạt
clean_start_margin: 0.20 # [m] thân còn cách vật ít nhất chừng này mới gọi replan (SBPL cần chỗ bắt đầu)
retry_backoff: 2.0 # [s] thời gian nghỉ sau recovery hỏng
contact:
enabled: true # [bool] bật giám sát tiếp xúc
enabled: false # [bool] bật giám sát tiếp xúc
action: recover # [-] hành động khi contact
apply_command: true # [bool] true = phanh + bao tốc độ thật (P4)
use_local_plan: auto # [-] chế độ dùng quỹ đạo local planner

View File

@@ -1,7 +1,7 @@
# Hướng dẫn: doc/config_guide/runtime/move_base_common_params.md
position:
global_planner: LaneRoutePlanner # [-] global planner của profile
local_planner: PriestMpccLocalPlanner # [-] local planner của profile
global_planner: CustomPlanner # [-] global planner của profile
local_planner: PNKXLocalPlanner # [-] local planner của profile
docking:
global_planner: DockPlanner # [-] global planner của profile
@@ -48,7 +48,7 @@ action_namespace: actions # [-] namespace action handler
mission_namespace: mission_adapters # [-] namespace mission layer
global_frame: map # [frame] frame goal của navigation
require_current_costmap: true # [bool] chặn controller khi costmap stale
recovery_behavior_enabled: true # [bool] Bật/tắt toàn bộ recovery
recovery_behavior_enabled: false # [bool] Bật/tắt toàn bộ recovery
MoveBase:
library_path: libmove_base2 # [-] thư viện plugin move_base2

View File

@@ -1,81 +0,0 @@
# Hướng dẫn: doc/config_guide/runtime/mppi_local_planner_params.md
LocalPlannerAdapter:
library_path: liblocal_planner_adapter # [-] thư viện plugin
yaw_goal_tolerance: 0.017 # [rad] dung sai yaw goal của adapter
xy_goal_tolerance: 0.03 # [m] ngưỡng chốt vị trí goal
min_approach_linear_velocity: 0.06 # [m/s] vận tốc tiếp cận tối thiểu
MPPILocalPlanner:
library_path: libmppi_local_planner # [-] thư viện plugin
min_velocity: 0.0 # [m/s] giới hạn dưới tốc độ tịnh tiến
max_velocity: 0.65 # [m/s] giới hạn trên tốc độ tịnh tiến
max_angular_velocity: 1.0 # [rad/s] giới hạn tốc độ quay
robot_radius: 0.30 # [m] bán kính robot dự phòng
obstacle_point_radius: 0.08 # [m] bán kính của MỘT ô costmap
collision_safety_margin_rate: 1.0 # [-] hệ số nở footprint khi kiểm va chạm
footprint_padding: 0.05 # [m] phần nở footprint
model_dt: 0.2 # [s] bước thời gian mô hình MPPI
time_steps: 20 # [bước] số bước dự báo
batch_size: 220 # [mẫu] số quỹ đạo mỗi lần giải
num_threads: 4 # [thread] số thread OpenMP
param_lambda: 100.0 # [-] nhiệt độ softmax MPPI
param_alpha: 0.98 # [-] hệ số alpha của MPPI
param_exploration: 0.05 # [-] tỷ lệ mẫu quanh lệnh nominal
control_filter_window: 10 # [bước] cửa sổ lọc lệnh MPPI
vx_std: 0.2 # [m/s] độ lệch chuẩn nhiễu vận tốc
wz_std: 0.25 # [rad/s] độ lệch chuẩn nhiễu tốc độ góc
reference_velocity: 0.48 # [m/s] vận tốc tham chiếu
max_global_plan_lookahead_dist: 3.0 # [m] chiều dài global plan lấy trước
xy_goal_tolerance: 0.10 # [m] ngưỡng chốt vị trí goal
yaw_goal_tolerance: 0.10 # [rad] đạt cả hai ngưỡng thì báo tới đích lên move_base2
goal_capture_radius: 0.6 # [m] bán kính phát hiện đi quá goal
goal_overshoot_margin: 0.05 # [m] ngưỡng vượt điểm gần goal nhất
obstacle_range: 2.5 # [m] tầm lấy điểm vật cản
obstacle_cost_threshold: 150 # [-] ngưỡng cost lấy điểm vật cản
obstacle_cell_step: 2 # [-] bước lấy mẫu costmap: 1 = mọi ô, 2 = cách một ô mỗi trục
max_obstacle_points: 180 # [-] trần số điểm vật cản đưa vào bộ giải, giữ lại các điểm GẦN NHẤT
obstacle_influence_radius: 1.0 # [m] bán kính trường cost mềm, đo từ TÂM robot
obstacle_cost_use_sum: true # [bool] cộng dồn cost vật cản
obstacle_weight: 10.0 # [-] trọng số cost vật cản mềm
collision_cost: 1000000.0 # [-] cost va chạm
linear_control_weight: 0.0 # [-] trọng số phạt bình phương vận tốc dài
angular_control_weight: 0.0 # [-] trọng số phạt bình phương tốc độ góc
control_change_weight: 1.0 # [-] phạt ĐỔI control giữa hai bước
yaw_error_slowdown: 0.0 # [-] hệ số giảm tốc theo sai lệch yaw
min_tracking_velocity: 0.08 # [m/s] sàn tốc độ bám
stuck_velocity_threshold: 0.03 # [m/s] ngưỡng tốc độ dài để xét kẹt
stuck_omega_threshold: 0.05 # [rad/s] ngưỡng tốc độ góc để xét kẹt
stuck_patience_cycles: 40 # [chu kỳ] số chu kỳ chờ trước báo kẹt
adaptive_covariance: true # [bool] thích nghi covariance của mẫu
gaussian_fitting_lambda: 15.0 # [-] nhiệt độ softmax fit Gaussian
min_vx_std: 0.08 # [m/s] sàn độ lệch chuẩn vận tốc
max_vx_std: 0.35 # [m/s] trần độ lệch chuẩn vận tốc
min_wz_std: 0.10 # [rad/s] sàn độ lệch chuẩn góc
max_wz_std: 0.60 # [rad/s] trần độ lệch chuẩn góc
stuck_sigma_inflation: 1.6 # [-] hệ số nở sigma khi kẹt
sigma_inflation_collision_ratio: 0.65 # [-] tỷ lệ va chạm để nở sigma
hard_obstacle_cost_threshold: 254 # [-] ngưỡng cost vật cản cứng
stage_xy_weight: 50.0 # [-] trọng số sai lệch XY từng bước
stage_yaw_weight: 1.0 # [-] trọng số sai lệch yaw từng bước
stage_speed_weight: 400.0 # [-] trọng số sai lệch tốc độ từng bước
terminal_xy_weight: 50.0 # [-] trọng số sai lệch XY cuối horizon
terminal_yaw_weight: 1.0 # [-] trọng số sai lệch yaw cuối horizon
terminal_speed_weight: 400.0 # [-] trọng số sai lệch tốc độ cuối horizon
path_search_arclength: 4.0 # [m] chiều dài cửa sổ tìm điểm tham chiếu
path_release_distance: 1.5 # [m] ngưỡng nhả khoá
align_at_path_start: true # [bool] căn hướng trước khi chạy MPPI
align_yaw_tolerance: 0.15 # [rad] sai lệch còn lại thì coi là căn xong
align_max_angular_velocity: 0.8 # [rad/s] trần tốc độ xoay khi căn hướng
align_min_angular_velocity: 0.15 # [rad/s] sàn tốc độ xoay
align_angular_gain: 1.2 # [1/s] hệ số P: omega = gain * sai_lệch_yaw
align_lookahead: 0.5 # [m] chiều dài dây cung dùng để đo hướng của đường
align_timeout_cycles: 200 # [chu kỳ] hết số chu kỳ này mà chưa căn xong thì BỎ QUA và đi tiếp bằng MPPI
debug_level: 2 # [-] mức log MPPI
debug_command: true # [bool] bật nhóm log command
debug_plan: true # [bool] bật nhóm log plan
debug_goal: true # [bool] bật nhóm log goal
debug_obstacle: true # [bool] bật nhóm log obstacle
debug_tf: true # [bool] bật nhóm log tf
debug_stuck: true # [bool] bật nhóm log stuck
debug_sigma: true # [bool] bật nhóm log sigma
timing_log_period: 20 # [chu kỳ] chu kỳ log thời gian MPPI

View File

@@ -1,154 +1,199 @@
# Hướng dẫn: doc/config_guide/runtime/pnkx_local_planner_params.md
yaw_goal_tolerance: 0.02 # [rad] dung sai yaw tại goal
xy_goal_tolerance: 0.03 # [m] dung sai vị trí tại goal
min_approach_linear_velocity: 0.05 # [m/s] tốc độ tối thiểu khi tiếp cận
yaw_goal_tolerance: 0.03
xy_goal_tolerance: 0.02
min_approach_linear_velocity: 0.05
LocalPlannerAdapter:
library_path: liblocal_planner_adapter # [-] thư viện plugin
library_path: liblocal_planner_adapter
PNKXLocalPlanner:
library_path: libpnkx_local_planner # [-] thư viện plugin
trajectory_generator_name: LimitedAccelGenerator # [-] symbol bộ sinh quỹ đạo
algorithm_nav_name: MKTAlgorithmDiffPredictiveTrajectory # [-] symbol thuật toán chạy
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal # [-] symbol thuật toán quay
goal_checker_name: GoalChecker # [-] symbol bộ kiểm tra goal
# Algorithm
library_path: libpnkx_local_planner
trajectory_generator_name: LimitedAccelGenerator
algorithm_nav_name: MKTAlgorithmDiffPredictiveTrajectory
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal
# Goal checking
goal_checker_name: GoalChecker
PNKXDockingLocalPlanner:
library_path: libpnkx_local_planner # [-] thư viện plugin
trajectory_generator_name: LimitedAccelGenerator # [-] symbol bộ sinh quỹ đạo
algorithm_nav_name: MKTAlgorithmDiffPredictiveTrajectory # [-] symbol thuật toán chạy
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal # [-] symbol thuật toán quay
goal_checker_name: GoalChecker # [-] symbol bộ kiểm tra goal
PNKXDockingLocalPlanner:
# Algorithm
library_path: libpnkx_local_planner
trajectory_generator_name: LimitedAccelGenerator
algorithm_nav_name: MKTAlgorithmDiffPredictiveTrajectory
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal
# Goal checking
goal_checker_name: GoalChecker
PNKXGoStraightLocalPlanner:
library_path: libpnkx_local_planner # [-] thư viện plugin
trajectory_generator_name: LimitedAccelGenerator # [-] symbol bộ sinh quỹ đạo
algorithm_nav_name: MKTAlgorithmDiffGoStraight # [-] symbol thuật toán chạy
goal_checker_name: GoalChecker # [-] symbol bộ kiểm tra goal
# Algorithm
library_path: libpnkx_local_planner
trajectory_generator_name: LimitedAccelGenerator
algorithm_nav_name: MKTAlgorithmDiffGoStraight
# Goal checking
goal_checker_name: GoalChecker
PNKXRotateLocalPlanner:
library_path: libpnkx_local_planner # [-] thư viện plugin
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal # [-] symbol thuật toán quay
trajectory_generator_name: LimitedAccelGenerator # [-] symbol bộ sinh quỹ đạo
goal_checker_name: SimpleGoalChecker # [-] symbol bộ kiểm tra goal
stateful: true # [bool] trạng thái goal checker
# Algorithm
library_path: libpnkx_local_planner
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal
trajectory_generator_name: LimitedAccelGenerator
# Goal checking
goal_checker_name: SimpleGoalChecker
stateful: true
LimitedAccelGenerator:
library_path: libmkt_plugins_standard_traj_generator # [-] thư viện plugin
max_vel_x: 1.2 # [m/s] giới hạn trên vận tốc dọc
min_vel_x: -1.2 # [m/s] giới hạn dưới vận tốc dọc
max_vel_y: 0.0 # [m/s] giới hạn trên vận tốc ngang
min_vel_y: 0.0 # [m/s] giới hạn dưới vận tốc ngang
max_speed_xy: 2.0 # [m/s] trần tốc độ tịnh tiến
min_speed_xy: 0.25 # [m/s] sàn tốc độ tịnh tiến
max_vel_theta: 0.4 # [rad/s] trần tốc độ quay
min_vel_theta: 0.05 # [rad/s] sàn tốc độ quay
acc_lim_x: 3.0 # [m/s²] giới hạn gia tốc dọc
acc_lim_y: 0.0 # [m/s²] giới hạn gia tốc ngang
acc_lim_theta: 1.5 # [rad/s²] giới hạn gia tốc góc
decel_lim_x: -3.0 # [m/s²] giới hạn giảm tốc dọc
decel_lim_y: -0.0 # [m/s²] giới hạn giảm tốc ngang
decel_lim_theta: -2.0 # [rad/s²] giới hạn giảm tốc góc
split_path: true # [bool] chia path thành các chặng
sim_time: 1.5 # [s] thời gian mô phỏng quỹ đạo
vx_samples: 15 # [mẫu] số mẫu vận tốc dọc
vy_samples: 1 # [mẫu] số mẫu vận tốc ngang
vtheta_samples: 10 # [mẫu] số mẫu vận tốc góc
discretize_by_time: true # [bool] rời rạc quỹ đạo theo thời gian
angular_granularity: 0.05 # [rad] độ phân giải góc quỹ đạo
linear_granularity: 0.1 # [m] độ phân giải dài quỹ đạo
include_last_point: true # [bool] lấy điểm cuối quỹ đạo
library_path: libmkt_plugins_standard_traj_generator
max_vel_x: 1.2
min_vel_x: -1.2
max_vel_y: 0.0 # diff drive robot
min_vel_y: 0.0 # diff drive robot
max_speed_xy: 2.0 # max_trans_vel: 0.8 # choose slightly less than the base's capability
min_speed_xy: 0.25 # min_trans_vel: 0.1 # this is the min trans velocity when there is negligible rotational velocity
max_vel_theta: 0.4 # max_rot_vel: 1.0 # choose slightly less than the base's capability
min_vel_theta: 0.05 # min_rot_vel: 0.1 default: 0.4 # this is the min angular velocity when there is negligible translational velocity
acc_lim_x: 1.5
acc_lim_y: 0.0 # diff drive robot
acc_lim_theta: 1.5
decel_lim_x: -1.5
decel_lim_y: -0.0
decel_lim_theta: -1.5
# Whether to split the path into segments or not
split_path: true
sim_time: 1.5
vx_samples: 15
vy_samples: 1
vtheta_samples: 10
discretize_by_time: true
angular_granularity: 0.05
linear_granularity: 0.1
# sim_period
include_last_point: true
MKTAlgorithmDiffPredictiveTrajectory:
library_path: libmkt_algorithm_diff # [-] thư viện plugin
xy_local_goal_tolerance: 0.05 # [m] dung sai vị trí goal cục bộ
angle_threshold: 0.6 # [rad] ngưỡng góc của thuật toán
index_samples: 60 # [mẫu] số chỉ số được xét trên path
follow_step_path: true # [bool] theo chế độ step path
kf_q_v: 0.25 # [-] nhiễu quá trình Kalman của vận tốc dài
kf_q_w: 0.8 # [-] nhiễu quá trình Kalman của tốc độ góc
kf_r_v: 0.05 # [-] nhiễu đo Kalman của vận tốc dài
kf_r_w: 0.08 # [-] nhiễu đo Kalman của tốc độ góc
kf_p0: 0.5 # [-] covariance khởi tạo Kalman
kf_filter_angular: false # [bool] bật lọc Kalman tốc độ góc
use_velocity_scaled_lookahead_dist: true # [bool] lookahead thay đổi theo tốc độ
lookahead_dist: 0.5 # [m] lookahead cố định
min_lookahead_dist: 0.6 # [m] cận dưới lookahead
max_lookahead_dist: 2.0 # [m] cận trên lookahead
lookahead_time: 1.9 # [s] hệ số thời gian lookahead
min_journey_squared: 0.2 # [m²] ngưỡng dưới quãng đường bình phương
max_journey_squared: 0.5 # [m²] ngưỡng trên quãng đường bình phương
max_lateral_accel: 0.9 # [m/s²] giới hạn gia tốc ngang
use_rotate_to_heading: true # [bool] quay tại chỗ theo heading
rotate_to_heading_min_angle: 0.03 # [rad] ngưỡng lệch để quay căn hướng
angular_decel_zone: 0.1 # [rad] vùng giảm tốc quay
rot_stopped_velocity: 0.03 # [rad/s] ngưỡng coi là đã ngừng quay
trans_stopped_velocity: 0.03 # [m/s] ngưỡng coi là đã ngừng tịnh tiến
use_final_heading_alignment: true # [bool] bật căn heading cuối
final_heading_xy_tolerance: 0.1 # [m] dung sai XY cho pha căn hướng cuối
final_heading_angle_tolerance: 0.05 # [rad] dung sai góc căn hướng cuối
final_heading_min_velocity: 0.05 # [m/s] sàn tốc độ dài khi căn hướng cuối
final_heading_kp_angular: 1.2 # [-] hệ số P căn hướng cuối
final_heading_ki_angular: 0.002 # [-] hệ số I căn hướng cuối
final_heading_kd_angular: 0.12 # [-] hệ số D căn hướng cuối
library_path: libmkt_algorithm_diff
xy_local_goal_tolerance: 0.02
angle_threshold: 0.47
index_samples: 60
follow_step_path: true
# Kalman filter tuning (filters v and w commands)
kf_q_v: 0.25
kf_q_w: 0.8
kf_r_v: 0.05
kf_r_w: 0.08
kf_p0: 0.5
kf_filter_angular: false
# Lookahead
use_velocity_scaled_lookahead_dist: true # Whether to use the velocity scaled lookahead distances or constant lookahead_distance. (default: false)
# only when false:
lookahead_dist: 0.5 # The lookahead distance (m) to use to find the lookahead point. (default: 0.6)
# only when true:
min_lookahead_dist: 0.6 # The minimum lookahead distance (m) threshold. (default: 0.3)
max_lookahead_dist: 2.0 # The maximum lookahead distance (m) threshold. (default: 0.9)
lookahead_time: 1.9 # The time (s) to project the velocity by, a.k.a. lookahead gain. (default: 1.5)
min_journey_squared: 0.2 # Minimum squared journey to consider for goal (default: 0.2)
max_journey_squared: 0.5 # Maximum squared journey to consider for goal (default: 0.2)
max_lateral_accel: 0.9 # Max lateral accel for speed reduction on curves (m/s^2)
# Rotate to heading param - onle one of use_rotate_to_heading and allow_reversing can be set to true
use_rotate_to_heading: true # Whether to enable rotating to rough heading and goal orientation when using holonomic planners. Recommended on for all robot types that can rotate in place. (default: true)
# only when true:
rotate_to_heading_min_angle: 0.03 # The difference in the path orientation and the starting robot orientation (radians) to trigger a rotate in place. (default: 0.785)
angular_decel_zone: 0.1
# stoped
rot_stopped_velocity: 0.03
trans_stopped_velocity: 0.03
use_final_heading_alignment: true
final_heading_xy_tolerance: 0.1
final_heading_angle_tolerance: 0.05
final_heading_min_velocity: 0.05
final_heading_kp_angular: 1.2
final_heading_ki_angular: 0.002
final_heading_kd_angular: 0.12
MKTAlgorithmDiffGoStraight:
library_path: libmkt_algorithm_diff # [-] thư viện plugin
xy_local_goal_tolerance: 0.05 # [m] dung sai vị trí goal cục bộ
angle_threshold: 0.8 # [rad] ngưỡng góc của thuật toán
index_samples: 60 # [mẫu] số chỉ số được xét trên path
follow_step_path: true # [bool] theo chế độ step path
use_velocity_scaled_lookahead_dist: true # [bool] lookahead thay đổi theo tốc độ
lookahead_dist: 0.5 # [m] lookahead cố định
min_lookahead_dist: 0.6 # [m] cận dưới lookahead
max_lookahead_dist: 2.0 # [m] cận trên lookahead
lookahead_time: 2.0 # [s] hệ số thời gian lookahead
min_journey_squared: 1.0 # [m²] ngưỡng dưới quãng đường bình phương
max_journey_squared: 1.0 # [m²] ngưỡng trên quãng đường bình phương
max_lateral_accel: 0.9 # [m/s²] giới hạn gia tốc ngang
use_rotate_to_heading: true # [bool] quay tại chỗ theo heading
rotate_to_heading_min_angle: 0.03 # [rad] ngưỡng lệch để quay căn hướng
angular_decel_zone: 0.1 # [rad] vùng giảm tốc quay
rot_stopped_velocity: 0.03 # [rad/s] ngưỡng coi là đã ngừng quay
trans_stopped_velocity: 0.03 # [m/s] ngưỡng coi là đã ngừng tịnh tiến
use_final_heading_alignment: true # [bool] bật căn heading cuối
final_heading_xy_tolerance: 0.1 # [m] dung sai XY cho pha căn hướng cuối
final_heading_angle_tolerance: 0.05 # [rad] dung sai góc căn hướng cuối
final_heading_min_velocity: 0.05 # [m/s] sàn tốc độ dài khi căn hướng cuối
final_heading_kp_angular: 1.5 # [-] hệ số P căn hướng cuối
final_heading_ki_angular: 0.2 # [-] hệ số I căn hướng cuối
final_heading_kd_angular: 0.05 # [-] hệ số D căn hướng cuối
library_path: libmkt_algorithm_diff
xy_local_goal_tolerance: 0.02
angle_threshold: 0.8
index_samples: 60
follow_step_path: true
# Lookahead
use_velocity_scaled_lookahead_dist: true # Whether to use the velocity scaled lookahead distances or constant lookahead_distance. (default: false)
# only when false:
lookahead_dist: 0.5 # The lookahead distance (m) to use to find the lookahead point. (default: 0.6)
# only when true:
min_lookahead_dist: 0.6 # The minimum lookahead distance (m) threshold. (default: 0.3)
max_lookahead_dist: 2.0 # The maximum lookahead distance (m) threshold. (default: 0.9)
lookahead_time: 2.0 # The time (s) to project the velocity by, a.k.a. lookahead gain. (default: 1.5)
min_journey_squared: 1.0 # Minimum squared journey to consider for goal (default: 0.2)
max_journey_squared: 1.0 # Maximum squared journey to consider for goal (default: 0.2)
max_lateral_accel: 0.9 # Max lateral accel for speed reduction on curves (m/s^2)
# Rotate to heading param - onle one of use_rotate_to_heading and allow_reversing can be set to true
use_rotate_to_heading: true # Whether to enable rotating to rough heading and goal orientation when using holonomic planners. Recommended on for all robot types that can rotate in place. (default: true)
# only when true:
rotate_to_heading_min_angle: 0.03 # The difference in the path orientation and the starting robot orientation (radians) to trigger a rotate in place. (default: 0.785)
angular_decel_zone: 0.1
# stoped
rot_stopped_velocity: 0.03
trans_stopped_velocity: 0.03
use_final_heading_alignment: true
final_heading_xy_tolerance: 0.1
final_heading_angle_tolerance: 0.05
final_heading_min_velocity: 0.05
final_heading_kp_angular: 1.5
final_heading_ki_angular: 0.2
final_heading_kd_angular: 0.05
MKTAlgorithmDiffRotateToGoal:
library_path: libmkt_algorithm_diff # [-] thư viện plugin
xy_local_goal_tolerance: 0.05 # [m] dung sai vị trí goal cục bộ
angle_threshold: 0.47 # [rad] ngưỡng góc của thuật toán
index_samples: 60 # [mẫu] số chỉ số được xét trên path
follow_step_path: true # [bool] theo chế độ step path
use_velocity_scaled_lookahead_dist: true # [bool] lookahead thay đổi theo tốc độ
lookahead_dist: 0.5 # [m] lookahead cố định
min_lookahead_dist: 0.6 # [m] cận dưới lookahead
max_lookahead_dist: 2.0 # [m] cận trên lookahead
lookahead_time: 1.9 # [s] hệ số thời gian lookahead
min_journey_squared: 0.2 # [m²] ngưỡng dưới quãng đường bình phương
max_journey_squared: 0.8 # [m²] ngưỡng trên quãng đường bình phương
max_lateral_accel: 0.9 # [m/s²] giới hạn gia tốc ngang
use_rotate_to_heading: true # [bool] quay tại chỗ theo heading
rotate_to_heading_min_angle: 0.03 # [rad] ngưỡng lệch để quay căn hướng
angular_decel_zone: 0.1 # [rad] vùng giảm tốc quay
rot_stopped_velocity: 0.03 # [rad/s] ngưỡng coi là đã ngừng quay
trans_stopped_velocity: 0.03 # [m/s] ngưỡng coi là đã ngừng tịnh tiến
use_final_heading_alignment: true # [bool] bật căn heading cuối
final_heading_xy_tolerance: 0.1 # [m] dung sai XY cho pha căn hướng cuối
final_heading_angle_tolerance: 0.05 # [rad] dung sai góc căn hướng cuối
final_heading_min_velocity: 0.05 # [m/s] sàn tốc độ dài khi căn hướng cuối
final_heading_kp_angular: 2.0 # [-] hệ số P căn hướng cuối
near_goal_heading_kp: 1.5 # [-] key heading gần goal cần xác minh
near_goal_heading_ki: 0.0 # [-] key heading gần goal cần xác minh
near_goal_heading_kd: 0.0 # [-] key heading gần goal cần xác minh
library_path: libmkt_algorithm_diff
xy_local_goal_tolerance: 0.02
angle_threshold: 0.47
index_samples: 60
follow_step_path: true
# Lookahead
use_velocity_scaled_lookahead_dist: true # Whether to use the velocity scaled lookahead distances or constant lookahead_distance. (default: false)
# only when false:
lookahead_dist: 0.5 # The lookahead distance (m) to use to find the lookahead point. (default: 0.6)
# only when true:
min_lookahead_dist: 0.6 # The minimum lookahead distance (m) threshold. (default: 0.3)
max_lookahead_dist: 2.0 # The maximum lookahead distance (m) threshold. (default: 0.9)
lookahead_time: 1.9 # The time (s) to project the velocity by, a.k.a. lookahead gain. (default: 1.5)
min_journey_squared: 0.2 # Minimum squared journey to consider for goal (default: 0.2)
max_journey_squared: 0.8 # Maximum squared journey to consider for goal (default: 0.2)
max_lateral_accel: 0.9 # Max lateral accel for speed reduction on curves (m/s^2)
# Rotate to heading param - onle one of use_rotate_to_heading and allow_reversing can be set to true
use_rotate_to_heading: true # Whether to enable rotating to rough heading and goal orientation when using holonomic planners. Recommended on for all robot types that can rotate in place. (default: true)
# only when true:
rotate_to_heading_min_angle: 0.03 # The difference in the path orientation and the starting robot orientation (radians) to trigger a rotate in place. (default: 0.785)
angular_decel_zone: 0.1
# stoped
rot_stopped_velocity: 0.03
trans_stopped_velocity: 0.03
use_final_heading_alignment: true
final_heading_xy_tolerance: 0.1
final_heading_angle_tolerance: 0.05
final_heading_min_velocity: 0.05
final_heading_kp_angular: 2.0
near_goal_heading_kp: 1.5
near_goal_heading_ki: 0.0
near_goal_heading_kd: 0.0
GoalChecker:
library_path: libmkt_plugins_goal_checker # [-] thư viện plugin
library_path: libmkt_plugins_goal_checker
SimpleGoalChecker:
library_path: libmkt_plugins_goal_checker # [-] thư viện plugin
library_path: libmkt_plugins_goal_checker

View File

@@ -1,124 +0,0 @@
# Hướng dẫn: doc/config_guide/runtime/priest_local_planner_params.md
PriestLocalPlanner:
library_path: libpriest_local_planner # thư viện chứa plugin
t_fin: 7.0 # [s] tầm nhìn dự báo, robot lập kế hoạch trước bao lâu
t_fin_min: 1.0 # [s] sàn tầm nhìn dự báo
num_steps: 30 # số điểm mẫu trên mỗi quỹ đạo trong tầm nhìn đó
num_batch: 60 # số quỹ đạo sinh ra mỗi vòng lặp CEM
initial_up_sampling: 5 # hệ số sinh dư ứng viên ở vòng đầu trước khi lọc
ellite_num: 40 # số quỹ đạo "tinh hoa" giữ lại, xếp hạng theo sai số chiếu
num_warm: 20 # số quỹ đạo mang từ chu kỳ trước sang để khởi động nóng
max_proj_iter: 8 # số vòng lặp chiếu luân phiên (alternating projection)
proj_early_exit_tolerance: 0.01 # tỉ lệ cải thiện tối thiểu để tiếp tục vòng chiếu
proj_early_exit_residual: 0.05 # [m] ngưỡng residual tuyệt đối để thoát sớm
max_cem_iter: 3 # số vòng lặp CEM mỗi chu kỳ điều khiển
optimizer_threads: 4 # số thread giới hạn
solve_time_warn_ms: 30.0 # [ms] ngưỡng cảnh báo thời gian giải
lateral_std: 0.8 # [m] độ lệch chuẩn khi nhiễu loạn waypoint theo phương ngang
lateral_std_clear_scale: 0.25 # hệ số giảm nhiễu waypoint khi path sạch
clear_residual: 0.05 # [m] residual dưới mức này coi là "đường sạch"
clear_streak_cycles: 3 # số chu kỳ sạch liên tiếp trước khi co biên độ
horizon_hysteresis_buckets: 1.5 # [bucket] ngưỡng thay đổi horizon để cập nhật
horizon_restore_delay_cycles: 5 # [chu kỳ] thời gian chờ trước khi khôi phục horizon
infeasible_residual: 3.0 # [-] res >= mức này coi là bất khả thi
infeasible_streak_cycles: 20 # [chu kỳ] số chu kỳ bất khả thi trước khi báo
infeasible_cooldown_cycles: 60 # [chu kỳ] thời gian tạm ngưng báo sau khi nhận plan mới
max_velocity: 1.2 # [m/s] trần vận tốc tiến
max_angular_velocity: 0.7 # [rad/s] giới hạn vận tốc góc
max_acceleration: 0.5 # [m/s^2] giới hạn gia tốc khi chiếu quỹ đạo
accel_comfort: 0.25 # [m/s^2] trần TĂNG tốc của lệnh
decel_comfort: 0.35 # [m/s^2] trần GIẢM tốc thường
decel_emergency: 1.0 # [m/s^2] giới hạn giảm tốc khẩn cấp
jerk_limit: 1.0 # [m/s^3] trần biến thiên gia tốc
max_angular_accel: 1.0 # [rad/s^2] trần |d omega| của lệnh
angular_jerk_limit: 3.0 # [rad/s^3] trần biến thiên gia tốc góc
avoid_max_angular_accel: 2.0 # [rad/s^2] trần |d omega| khi né (BẬT trên sim để đo)
avoid_angular_jerk_limit: 10.0 # [rad/s^3] trần biến thiên gia tốc góc khi né
reference_velocity: 0.7 # [m/s] tốc độ hành trình KHI HOST CHƯA GỬI TRẦN NÀO
v_eps: 0.05 # [m/s] ngưỡng vận tốc áp dụng kiểm tra độ cong
v_min_seed: 0.05 # [m/s] vận tốc mồi khi robot đứng yên
heading_gain: 1.5 # [1/s] hệ số phản hồi trên sai số hướng
heading_error_stop: 1.2 # [rad] lệch hướng lớn hơn ngưỡng này thì quay tại chỗ (v = 0)
min_in_place_yawrate: 0.2 # [rad/s] tốc độ quay tối thiểu khi quay tại chỗ, tránh quay quá chậm
in_place_yawrate_max: 1.2 # [rad/s] tốc độ quay tại chỗ tối đa
rotate_to_path_enabled: true # [bool] bật xoay về hướng path đầu plan
rotate_settle_yawrate: 0.05 # [rad/s] sàn tốc độ quay khi gần xong pha xoay
xy_goal_tolerance: 0.02 # [m] dung sai vị trí tại đích
yaw_goal_tolerance: 0.01 # [rad] dung sai góc tại đích
xy_latch_release_factor: 5.0 # hệ số khoảng cách để nhả chốt XY
xy_latch_release_speed: 0.05 # [m/s] ngưỡng tốc độ để nhả chốt XY
goal_brake_decel: 0.35 # [m/s^2] gia tốc phanh tính theo khoảng cách tới goal
goal_regression_watch_dist: 0.5 # [m] khoảng cách tới goal để bắt đầu theo dõi trôi xa
goal_regression_margin: 0.03 # [m] ngưỡng tăng khoảng cách tới goal để phát hiện trôi xa
goal_approach_distance: 0.0 # [m] vùng tiếp cận goal
omega_ff_min_speed: 0.15 # [m/s] dưới tốc độ này feedforward độ cong mờ dần tuyến tính
omega_ff_filter_tau: 0.35 # [s] hằng số lọc thông thấp feedforward độ cong
max_global_plan_lookahead_dist: 3.5 # [m] chỉ lấy phần path toàn cục trong tầm này để bám
hold_timeout: 10.0 # [s] thời gian chờ tối đa khi robot bị chặn
goal_blocked_check_radius: 1.5 # [m] bán kính kiểm tra vật cản quanh goal
omega_ff_curvature_margin: 1.5 # [-] hệ số nới so với độ cong đường tham chiếu
omega_ff_curvature_floor: 0.12 # [rad/s] sàn giới hạn tốc độ quay theo độ cong
omega_ff_curvature_window: 1.5 # [m] quãng đường phía trước dùng để đo độ cong tham chiếu
num_obs: 200 # số vật cản đưa vào hàm chi phí CEM
num_obs_proj: 200 # số vật cản gần nhất đưa vào phép chiếu (ADMM)
obstacle_range: 2.8 # [m] bán kính quét costmap quanh robot
obstacle_point_radius: 0.08 # [m] bán kính quy ước cho mỗi điểm vật cản
footprint_padding: 0.07 # [m] nới footprint thêm để có biên an toàn
obstacle_cost_threshold: 253 # ô costmap có cost >= ngưỡng này mới coi là ĐIỂM VẬT CẢN cho solver
obstacle_cell_step: 2 # bước nhảy khi quét ô costmap
max_obstacle_points: 200 # trần số điểm vật cản, chặn chi phí tính toán khi môi trường dày
footprint_circle_count: 3 # số hình tròn xấp xỉ footprint
start_violation_ramp_time: 1.5 # [s] thời gian tăng dần ràng buộc vật cản ban đầu
terminal_slide_max_dist: 1.5 # [m] khoảng trượt tối đa của điểm cuối dọc path
terminal_slide_backward: false # cho ghim TRƯỢT LÙI (về phía robot) khi phía trước không có chỗ
obstacle_corridor_enabled: true # [bool] bật chọn vật cản theo hành lang path
corridor_radius: 1.2 # [m] nửa bề rộng hành lang chọn điểm
corridor_sample_spacing: 0.3 # [m] bước lấy mẫu plan làm xương hành lang
collision_check_cost_threshold: 253 # ngưỡng costmap để xác định va chạm
head_slowdown_time: 1.5 # [s] cửa sổ đầu quỹ đạo được probe
head_slowdown_cost_free: 128 # sàn cost baseline để giảm tốc đầu quỹ đạo
head_slowdown_min_scale: 0.35 # tỉ lệ tốc độ tối thiểu khi đầu quỹ đạo gặp ô lethal
head_slowdown_inscribed_scale: 0.7 # tỉ lệ khi ô xấu nhất chỉ là INSCRIBED (253)
head_slowdown_release_cycles: 10 # số chu kỳ SẠCH liên tiếp mới nhả phanh (10 ~ 0.33 s @30 Hz)
head_slowdown_scale_slew: 0.01 # giới hạn tăng tỉ lệ tốc độ mỗi chu kỳ
head_slowdown_release_cost: 128 # ngưỡng cost để nhả giảm tốc đầu quỹ đạo
weight_smoothness: 0.1 # phạt quỹ đạo gãy khúc
weight_track: 0.2 # phạt lệch khỏi path toàn cục
weight_obs: 1.2 # phạt tiến gần vật cản
weight_clearance: 3.0 # trọng số phần thưởng giữ khoảng hở
weight_angular: 0.5 # phạt kiểu bản lề khi |omega| vượt max_angular_velocity
weight_velocity_deficit: 2.0 # phạt HỤT TỐC ở ĐOẠN ĐẦU quỹ đạo (1/4 horizon đầu, chuẩn hoá 0..1)
cem_lamda: 0.9 # nhiệt độ CEM
cem_alpha: 0.7 # hệ số pha trộn mean/cov giữa hai vòng CEM
side_hysteresis_enabled: true # [bool] bật hysteresis chọn phía né
side_switch_margin: 0.2 # bên kia phải rẻ hơn ít nhất tỉ lệ này mới được đổi bên (0.2 = 20%)
side_hold_cycles: 60 # số chu kỳ KHOÁ bên vừa commit, chồng lên side_switch_margin
side_infeasible_res: 0.3 # [m] ngưỡng residual bất khả thi của phía đang chọn
side_switch_feasible_res: 0.25 # [m] ngưỡng residual khả thi để đổi phía né
side_commit_divergence: 0.20 # [m] ngưỡng khác biệt quỹ đạo để chốt phía né
tracking_mode: 3 # chế độ hoạt động của tracker
track_path_smoothing: 0.3 # [m] sigma làm mượt bản sao path cho tracker
track_horizon: 2.0 # [s] tầm nhìn trước của tracker
track_model_dt: 0.05 # [s] bước mô hình tracker
track_lateral_weight: 15.0 # [1/m^2] phạt lệch ngang
track_heading_weight: 5.0 # [s^2/m^2] phạt vận tốc ngang v*theta
track_turn_weight: 0.5 # [s^2/rad^2] phạt omega lệch khỏi v*kappa
track_turn_rate_weight: 0.2 # [s^4/rad^2] phạt tốc độ đổi omega
track_curve_margin: 0.9 # [-] trần tốc độ vào cua = max_angular_velocity * margin / |kappa|
track_release_hold: 0.5 # [s] hết vật cản LIÊN TỤC bấy lâu mới bắt đầu giao lệnh cho tracker
track_release_tau: 0.7 # [s] hằng số thời gian chuyển dần lệnh PRIEST -> tracker
track_arbiter_rule: 1 # quy tắc phân quyền điều khiển cho tracker
track_block_clearance: 0.10 # [m] ngưỡng khoảng hở để xem path bị chặn
track_pass_clearance: 0.11 # [m] ngưỡng khoảng hở để path thông trở lại
track_block_lookahead: 3.6 # [m] quãng path phía trước được dò
track_block_confirm_distance: 1.5 # [m] chỗ chặn XA hơn mức này dọc path phải thấy liên tục vài chu kỳ
track_slow_clearance: 0.30 # [m] ngưỡng khoảng hở để tracker giảm tốc
track_close_speed: 0.25 # [m/s] tốc độ tracker khi đi qua khoảng hở hẹp
track_rejoin_max_heading: 0.40 # [rad] góc tối đa khi tracker quay về path
track_takeover_max_heading: 0.80 # [rad] sai lệch heading tối đa để tracker nhận lái
debug_tracking: true # [bool] bật log tracker
debug_level: 2 # mức log chẩn đoán
debug_solve: true # [bool] bật log thời gian solver
debug_obstacles: true # [bool] bật log vật cản
debug_command: true # [bool] bật log lệnh điều khiển
debug_plan: true # [bool] bật log path tham chiếu

View File

@@ -1,101 +0,0 @@
# Hướng dẫn: doc/config_guide/runtime/priest_mpcc_local_planner_params.md
PriestMpccLocalPlanner:
library_path: libpriest_mpcc_local_planner # [-] thư viện PriestMpccLocalPlanner
max_velocity: 0.8 # [m/s] trần tốc độ tiến
reference_velocity: 0.7 # [m/s] tốc độ tham chiếu khi host chưa đặt trần
max_angular_velocity: 0.6 # [rad/s] trần tốc độ quay khi chạy
max_acceleration: 0.6 # [m/s²] giới hạn gia tốc tịnh tiến
max_angular_accel: 1.5 # [rad/s^2] gia tốc góc: rollout MPCC và slew lệnh host/PRIEST
decel_emergency: 1.0 # [m/s^2] giảm tốc khi host giữ (hold) hoặc PRIEST phải dừng
in_place_yawrate_max: 0.6 # [rad/s] trần tốc độ quay tại chỗ
min_in_place_yawrate: 0.2 # [rad/s] sàn tốc độ quay tại chỗ
xy_goal_tolerance: 0.02 # [m] sai số vị trí đạt goal
yaw_goal_tolerance: 0.01 # [rad] sai số yaw đạt goal
goal_pass_radius: 0.08 # [m] vòng tiếp cận goal
goal_settle_time: 0.5 # [s] thời gian đứng gần goal trước khi chốt
xy_latch_release_factor: 5.0 # [-] hệ số nhả chốt XY
goal_regression_watch_dist: 0.2 # [m] bán kính theo dõi đi quá goal
goal_regression_margin: 0.01 # [m] khoảng tăng khoảng cách coi là quá goal
goal_brake_decel: 0.35 # [m/s²] giảm tốc cho phanh về goal
hold_timeout: 5.0 # [s] thời gian chờ trước khi báo lỗi
max_global_plan_lookahead_dist: 4.0 # [m] chỉ lấy phần global path trong tầm này
priest:
obstacle_range: 2.8 # [m] bán kính lấy điểm vật cản từ costmap quanh robot
footprint_padding: 0.05 # [m] nới thân thêm trong PRIEST
obstacle_point_radius: 0.08 # [m] bán kính quy ước của mỗi điểm vật cản trong PRIEST
footprint_circle_count: 3 # [-] số circle phủ footprint PRIEST
obstacle_cost_threshold: 253 # [-] ngưỡng cost coi là vật cản
obstacle_cell_step: 1 # [ô] bước lấy mẫu costmap
max_obstacle_points: 200 # [điểm] trần điểm vật cản
num_obs: 200 # [điểm] số vật cản trong hàm CEM
num_obs_proj: 200 # [điểm] số vật cản đưa vào phép chiếu
corridor_radius: 1.2 # [m] nửa bề rộng hành lang chọn điểm vật quanh path
corridor_follow_trajectory: true # [bool] hành lang theo quỹ đạo cũ
t_fin: 7.0 # [s] tầm nhìn dự báo
t_fin_min: 1.0 # [s] sàn của horizon co theo path còn lại gần goal;
num_steps: 30 # [bước] số mẫu mỗi quỹ đạo PRIEST
num_batch: 60 # [quỹ đạo] số mẫu mỗi vòng CEM
ellite_num: 40 # [quỹ đạo] số mẫu elite cập nhật CEM
max_cem_iter: 3 # [lần] số vòng CEM mỗi chu kỳ
max_proj_iter: 8 # [lần] số vòng chiếu tối đa
optimizer_threads: 3 # [thread] số thread solver
lateral_std: 0.8 # [m] độ lệch chuẩn nhiễu ngang của waypoint
terminal_slide_max_dist: 1.5 # [m] quãng trượt tối đa của điểm ghim cuối
weight_smoothness: 0.1 # [-] phạt quỹ đạo gãy khúc
weight_track: 0.2 # [-] phạt lệch khỏi global path
weight_obs: 1.2 # [-] phạt tiến gần vật cản
weight_clearance: 3.0 # [-] trọng số thưởng khoảng hở
weight_angular: 0.5 # [-] phạt khi |omega| vượt max_angular_velocity
weight_velocity_deficit: 2.0 # [-] phạt hụt tốc ở 1/4 horizon đầu
side_switch_margin: 0.2 # [-] mức cost chênh tối thiểu để đổi bên né
side_hold_cycles: 60 # [chu kỳ] thời gian giữ bên né
wheel:
separation: 0.517 # [m] khoảng cách bánh dùng đổi lệnh ra rpm
max_speed: 0.906 # [m/s] trần tốc độ mỗi bánh
deadband_speed: 0.015 # [m/s] ngưỡng vùng chết của bánh
mpcc:
horizon: 15 # [bước] số bước dự đoán MPCC
dt: 0.2 # [s] bước thời gian dự đoán MPCC
collision_margin: 0.05 # [m] khoảng hở giữa footprint và vật cản
footprint_perimeter_spacing: 0.1 # [m] bước phủ viền footprint bằng đĩa
slow_clearance: 0.30 # [m] khoảng hở bắt đầu giảm tốc
slow_min_clearance: 0.10 # [m] khoảng hở ứng với tốc độ tối thiểu
slow_speed: 0.25 # [m/s] (S1) tốc độ qua chỗ hẹp nhất
slow_by_body: true # [bool] giảm tốc theo khoảng hở thân
solver_budget_ms: 15.0 # [ms] trần thời gian giải;
max_seeds: 12 # [mẫu] số mồi tối đa mỗi chu kỳ
seed_lateral_offsets: [0.5, 1.0] # [m] độ lệch ngang của mồi lách, áp hai bên
warm_seed_bonus: 0.1 # [-] mức ưu tiên nghiệm warm
align_enter_angle: 1.2 # [rad] ngưỡng bắt đầu quay căn hướng
align_exit_angle: 0.35 # [rad] quay tới khi lệch dưới mức này rồi trả lại cho MPCC
align_fine_angle: 0.10 # [rad] ngưỡng căn hướng khi MPCC bị kẹt
align_yaw_gain: 2.5 # [1/s] omega = gain x lệch hướng khi quay tại chỗ (cả quay về yaw đích)
hybrid:
executor: mpcc # [-] executor sinh lệnh
reference_hold_time: 1.0 # [s] (mpcc) thời gian cam kết với quỹ đạo vừa nhận khi nó còn qua cổng
global_max_offset: 0.5 # [m] độ lệch global path để chuyển tham chiếu
gate_hysteresis: 0.03 # [m] độ trễ hysteresis của cổng tham chiếu
gate_partial_min_ahead: 0.6 # [m] khoảng chờ trước điểm chặn xa
mpcc_blocked_timeout: 2.0 # [s] thời gian chờ MPCC bị chặn
mpcc_priest_wait_timeout: 5.0 # [s] thời gian chờ khi PRIEST còn quỹ đạo
mpcc_priest_wait_static_time: 3.0 # [s] thời gian chờ vật cản tĩnh
turn_min_clearance: 0.02 # [m] khoảng hở tối thiểu khi quay chậm
turn_slow_yawrate: 0.3 # [rad/s] (mpcc, F1) trần tốc độ quay khi quay sát vật
narrow_min_clearance: 0.02 # [m] sàn khoảng hở rollout trong khe hẹp
narrow_tracking_error: 0.03 # [m] (mpcc, F3) rollout được lệch khỏi tham chiếu về phía vật tới chừng này
contact_escape_depth: 0.03 # [m] độ lấn tối đa khi thoát tiếp xúc
contact_escape_time: 1.5 # [s] thời gian tối đa để thoát tiếp xúc
priest_candidates: 4 # [quỹ đạo] số ứng viên PRIEST dự phòng
debug: true # [bool] bật log hybrid
debug_level: 2 # [-] mức log chẩn đoán
debug_solve: true # [bool] bật log solver
debug_obstacles: true # [bool] bật log vật cản
debug_command: true # [bool] bật log lệnh
debug_plan: true # [bool] bật log plan
debug_tracking: true # [bool] bật log tracking
solve_time_warn_ms: 30.0 # [ms] ngưỡng cảnh báo thời gian solve

View File

@@ -1,350 +0,0 @@
# Hướng dẫn: doc/config_guide/runtime/stanley_local_planner_params.md
LocalPlannerAdapter:
library_path: liblocal_planner_adapter # thư viện chứa plugin
yaw_goal_tolerance: 0.017 # [rad] dung sai góc tại đích
xy_goal_tolerance: 0.03 # [m] dung sai vị trí tại đích
min_approach_linear_velocity: 0.06 # [m/s] tốc độ tiếp cận tối thiểu
StanleyLocalPlanner:
library_path: libstanley_local_planner # thư viện chứa plugin
max_vel_x: 1.20 # [m/s] vận tốc tiến tối đa
min_vel_x: -0.25 # [m/s] vận tốc lùi tối đa có dấu âm
wheel_base: 0.0 # [m] khoảng cách trục
front_axle_frame: "steer_link" # [frame] frame trục trước
rear_axle_frame: "base_link" # [frame] frame trục sau
steer_limit_standstill: 1.5708 # [rad] trần góc lái khi |v| ~ 0
steer_limit_at_max_vel: 0.5000 # [rad] trần góc lái khi |v| = max_vel_x
align_steer_angle: 1.5708 # [rad] góc lái khi xoay tại chỗ
align_pivot_toward_curve: true # [bool] xoay bánh theo phía cua khi pivot
min_steer_angle: 0.20 # [rad] ngưỡng coi là "đang bẻ lái"
max_steer_rate: 1.00 # [rad/s] tốc độ quay servo lái
steer_zero_offset: 0.0 # [rad] độ lệch zero cộng vào lệnh lái
xy_goal_tolerance: 0.030 # [m] dung sai vị trí tại đích
yaw_goal_tolerance: 0.020 # [rad] dung sai góc tại đích
goal_sq_dist_tol: 0.05 # [m^2] thoát sớm vòng scan điểm gần nhất
path_yaw_mode: "tangent" # cách tính hướng của path
control_gain_e: 2.0 # gain hướng (tangent path - yaw robot)
control_gain_d: 1.5 # gain nền của thành phần lệch ngang
gain_cte_weight: 0.8 # [1/m] hệ số tăng gain theo lệch ngang
gain_heading_weight: 0.5 # [1/rad] hệ số tăng gain theo lỗi hướng
gain_min: 0.5 # chặn dưới của k
gain_max: 1.8 # chặn trên của k
soft_min_vel: 0.20 # [m/s] SÀN của mẫu số atan2(k*e, v)
alpha_gain: 0.0 # lọc thông thấp lệnh lái [0..1]
curve_gain_e_bonus: 2.0 # cộng vào control_gain_e khi ở chế độ cong
tangent_window_pts: 3 # số điểm lấy trung bình tangent khi plan không kèm yaw
heading_preview: 0.10 # [m] khoảng nhìn trước để tính hướng path
curve_feedforward_gain: 1.0 # gain feedforward atan(L*kappa)
heading_bias_mode: "log" # chế độ ước lượng và bù lệch heading
heading_bias_tau: 30.0 # [s] hằng số thời gian EMA
heading_bias_min_vel: 0.20 # [m/s] dưới tốc độ này không học (theo |v|, áp cả chiều lùi)
heading_bias_clamp: 0.05 # [rad] trần của lượng bù ĐƯỢC ÁP
heading_bias_min_samples: 30 # [chu kỳ] số mẫu học tối thiểu trước khi được áp
steer_bias_gain: 0.100 # [rad/(m*s)] gain tích phân bù lệch lái
steer_bias_clamp: 0.05 # [rad] trần anti-windup
steer_bias_decay: 0.9999 # hệ số xả khi không đủ điều kiện tích phân
steer_bias_min_vel: 0.30 # [m/s] tốc độ tối thiểu để tích phân bù lái
steer_bias_max_heading_err: 0.10 # [rad] lỗi hướng trên ngưỡng này không tích phân
max_global_plan_lookahead_dist: 3.0 # [m] trần cửa sổ
min_lookahead: 0.50 # [m] sàn cửa sổ
min_lookahead_near_goal: 0.40 # [m] sàn riêng khi gần đích
dyn_lookahead_gain: 2.50 # [m/(m/s)] lookahead = min + gain*|v|
near_goal_freeze_dist: 0.50 # [m] dưới ngưỡng này: đóng băng yaw_path, chỉ chạy theta_d
max_advance_dist: 0.20 # [m] quãng tiến tối đa dọc plan mỗi chu kỳ
max_back_dist: 0.10 # [m] quãng lùi tối đa dọc plan mỗi chu kỳ
high_curvature: 0.30 # [1/m] ngưỡng độ cong co lookahead
mid_curvature: 0.20 # [1/m] ngưỡng độ cong cắt cửa sổ transform
low_curvature: 0.10 # [1/m] ngưỡng độ cong vào chế độ cua
straight_confirm_steps: 110 # số chu kỳ thẳng liên tiếp trước khi rời chế độ cong
speed_base: 0.30 # [m/s] nền của profile lái cosine
curve_max_speed: 0.25 # [m/s] trần khi đang cong
min_drive_speed: 0.07 # [m/s] sàn khi đang chạy
accel_distance: 2.00 # [m] quãng tăng tốc lại sau khi rời cua
decel_min: 0.05 # [m/s mỗi chu kỳ] mức giảm tốc tối thiểu khi dự đoán va chạm
decel_max: 0.10 # [m/s mỗi chu kỳ] mức giảm tốc tối đa khi dự đoán va chạm
collision_horizon_factor: 2.0 # nhân với max_vel_x ra quãng kiểm tra va chạm
goal_decel_limit: 0.30 # [m/s^2] giới hạn giảm tốc khi tới đích
min_approach_speed: 0.06 # [m/s] sàn tốc độ tiếp cận để profile sqrt vẫn chạm được đích
heading_eps: 0.020 # [rad] lỗi hướng chấp nhận là "đã thẳng hàng"
steer_eps: 0.020 # [rad] lỗi lái chấp nhận là "servo đã tới"
heading_align_tol: 0.050 # [rad] dung sai hướng cho đoạn tiến thẳng cuối
near_goal_dist: 1.00 # [m] khoảng cách bật chế độ tiến thẳng cuối
steer_realign_off: 0.503 # [rad] ngưỡng dừng drive để chỉnh bánh
steer_realign_on: 0.150 # [rad] ngưỡng chạy lại drive sau khi chỉnh bánh
steering_active: 0.094 # [rad] ngưỡng xác định bánh đang bẻ lái
segment_transition_threshold: 0.010 # [m] ngưỡng chuyển đoạn path
segment_end_ratio: 0.05 # tỉ lệ đoạn còn lại để chuyển segment
xy_reached_gate_factor: 3.0 # hệ số nhân dung sai vị trí để chốt đích
tf_lookup_at_pose_stamp: true # true = tra tại pose.header.stamp thay vì "latest"
transform_tolerance: 0.20 # [s] tuổi chấp nhận khi tra theo timestamp
max_plan_tf_jump_rate: 0.60 # [m/s] tốc độ nhảy TF tối đa được chấp nhận
max_plan_tf_jump_abs: 1.00 # [m] bước nhảy TF tịnh tiến tối đa
max_plan_tf_yaw_jump: 0.20 # [rad] bước nhảy TF góc tối đa
tf_reject_window_cycles: 30 # [chu kỳ] chiều dài cửa sổ theo dõi TF bị từ chối
tf_reject_ratio: 0.5 # tỉ lệ reject trong cửa sổ thì kích reset
plan_tf_freeze: false # [bool] khóa transform của path theo chặng
freeze_settle_cycles: 30 # [cycle] số cycle yên liên tiếp trước khi khóa
freeze_settle_eps_xy: 0.005 # [m] bước transform/cycle dưới ngưỡng này tính là "yên"
freeze_settle_eps_yaw: 0.005 # [rad] ngưỡng biến thiên yaw TF để coi là ổn định
freeze_settle_timeout: 3.0 # [s] map nhảy liên tục không bao giờ yên -> hết hạn thì khóa
debug_tf: false # [bool] bật log TF
debug_offset: true # [bool] bật log sai lệch bám path
debug_level: 2 # mức log chẩn đoán
StanleyDockingLocalPlanner:
library_path: libstanley_local_planner # thư viện chứa plugin
max_vel_x: 0.30 # [m/s] vận tốc tiến tối đa
min_vel_x: -0.20 # [m/s] vận tốc lùi tối đa có dấu âm
wheel_base: 0.0 # [m] khoảng cách trục
front_axle_frame: "steer_link" # [frame] frame trục trước
rear_axle_frame: "base_link" # [frame] frame trục sau
steer_limit_standstill: 1.5708 # [rad] trần góc lái khi |v| ~ 0
steer_limit_at_max_vel: 0.5000 # [rad] trần góc lái khi |v| = max_vel_x
align_steer_angle: 1.5708 # [rad] góc lái khi xoay tại chỗ
align_pivot_toward_curve: true # [bool] xoay bánh theo phía cua khi pivot
min_steer_angle: 0.20 # [rad] ngưỡng coi là "đang bẻ lái"
max_steer_rate: 1.00 # [rad/s] tốc độ quay servo lái
steer_zero_offset: 0.0 # [rad] độ lệch zero cộng vào lệnh lái
xy_goal_tolerance: 0.02 # [m] dung sai vị trí tại đích
yaw_goal_tolerance: 0.05 # [rad] dung sai góc tại đích
goal_sq_dist_tol: 0.05 # [m^2] thoát sớm vòng scan điểm gần nhất
path_yaw_mode: "tangent" # cách tính hướng của path
control_gain_e: 2.0 # gain hướng (tangent path - yaw robot)
control_gain_d: 1.5 # gain nền của thành phần lệch ngang
gain_cte_weight: 0.8 # [1/m] hệ số tăng gain theo lệch ngang
gain_heading_weight: 0.5 # [1/rad] hệ số tăng gain theo lỗi hướng
gain_min: 0.5 # chặn dưới của k
gain_max: 1.8 # chặn trên của k
soft_min_vel: 0.20 # [m/s] SÀN của mẫu số atan2(k*e, v)
alpha_gain: 0.0 # lọc thông thấp lệnh lái [0..1]
curve_gain_e_bonus: 2.0 # cộng vào control_gain_e khi ở chế độ cong
tangent_window_pts: 3 # số điểm lấy trung bình tangent khi plan không kèm yaw
heading_preview: 0.10 # [m] khoảng nhìn trước để tính hướng path
curve_feedforward_gain: 1.0 # gain feedforward atan(L*kappa)
heading_bias_mode: "inherit" # chế độ ước lượng và bù lệch heading
heading_bias_tau: 30.0 # [s] hằng số thời gian EMA
heading_bias_min_vel: 0.20 # [m/s] dưới tốc độ này không học (theo |v|, áp cả chiều lùi)
heading_bias_clamp: 0.05 # [rad] trần của lượng bù ĐƯỢC ÁP
heading_bias_min_samples: 30 # [chu kỳ] số mẫu học tối thiểu trước khi được áp
steer_bias_gain: 0.100 # [rad/(m*s)] gain tích phân bù lệch lái
steer_bias_clamp: 0.05 # [rad] trần anti-windup
steer_bias_decay: 0.9999 # hệ số xả khi không đủ điều kiện tích phân
steer_bias_min_vel: 0.15 # [m/s] tốc độ tối thiểu để tích phân bù lái
steer_bias_max_heading_err: 0.10 # [rad] lỗi hướng trên ngưỡng này không tích phân
max_global_plan_lookahead_dist: 3.0 # [m] trần cửa sổ
min_lookahead: 0.50 # [m] sàn cửa sổ
min_lookahead_near_goal: 0.40 # [m] sàn riêng khi gần đích
dyn_lookahead_gain: 2.50 # [m/(m/s)] lookahead = min + gain*|v|
near_goal_freeze_dist: 0.50 # [m] dưới ngưỡng này: đóng băng yaw_path, chỉ chạy theta_d
max_advance_dist: 0.20 # [m] quãng tiến tối đa dọc plan mỗi chu kỳ
max_back_dist: 0.10 # [m] quãng lùi tối đa dọc plan mỗi chu kỳ
high_curvature: 0.30 # [1/m] ngưỡng độ cong co lookahead
mid_curvature: 0.20 # [1/m] ngưỡng độ cong cắt cửa sổ transform
low_curvature: 0.10 # [1/m] ngưỡng độ cong vào chế độ cua
straight_confirm_steps: 110 # số chu kỳ thẳng liên tiếp trước khi rời chế độ cong
speed_base: 0.30 # [m/s] nền của profile lái cosine
curve_max_speed: 0.25 # [m/s] trần khi đang cong
min_drive_speed: 0.07 # [m/s] sàn khi đang chạy
accel_distance: 2.00 # [m] quãng tăng tốc lại sau khi rời cua
decel_min: 0.05 # [m/s mỗi chu kỳ] mức giảm tốc tối thiểu khi dự đoán va chạm
decel_max: 0.10 # [m/s mỗi chu kỳ] mức giảm tốc tối đa khi dự đoán va chạm
collision_horizon_factor: 2.0 # nhân với max_vel_x ra quãng kiểm tra va chạm
goal_decel_limit: 0.30 # [m/s^2] giới hạn giảm tốc khi tới đích
min_approach_speed: 0.06 # [m/s] sàn tốc độ tiếp cận để profile sqrt vẫn chạm được đích
heading_eps: 0.020 # [rad] lỗi hướng chấp nhận là "đã thẳng hàng"
steer_eps: 0.020 # [rad] lỗi lái chấp nhận là "servo đã tới"
heading_align_tol: 0.050 # [rad] dung sai hướng cho đoạn tiến thẳng cuối
near_goal_dist: 1.00 # [m] khoảng cách bật chế độ tiến thẳng cuối
steer_realign_off: 0.503 # [rad] ngưỡng dừng drive để chỉnh bánh
steer_realign_on: 0.150 # [rad] ngưỡng chạy lại drive sau khi chỉnh bánh
steering_active: 0.094 # [rad] ngưỡng xác định bánh đang bẻ lái
segment_transition_threshold: 0.010 # [m] ngưỡng chuyển đoạn path
segment_end_ratio: 0.05 # tỉ lệ đoạn còn lại để chuyển segment
xy_reached_gate_factor: 3.0 # hệ số nhân dung sai vị trí để chốt đích
tf_lookup_at_pose_stamp: true # true = tra tại pose.header.stamp thay vì "latest"
transform_tolerance: 0.20 # [s] tuổi chấp nhận khi tra theo timestamp
max_plan_tf_jump_rate: 0.60 # [m/s] tốc độ nhảy TF tối đa được chấp nhận
max_plan_tf_jump_abs: 1.00 # [m] bước nhảy TF tịnh tiến tối đa
max_plan_tf_yaw_jump: 0.20 # [rad] bước nhảy TF góc tối đa
tf_reject_window_cycles: 30 # [chu kỳ] chiều dài cửa sổ theo dõi TF bị từ chối
tf_reject_ratio: 0.5 # tỉ lệ reject trong cửa sổ thì kích reset
plan_tf_freeze: true # [bool] khóa transform của path theo chặng
freeze_settle_cycles: 20 # [cycle] số cycle yên liên tiếp trước khi khóa
freeze_settle_eps_xy: 0.005 # [m] bước transform/cycle dưới ngưỡng này tính là "yên"
freeze_settle_eps_yaw: 0.005 # [rad] ngưỡng biến thiên yaw TF để coi là ổn định
freeze_settle_timeout: 3.0 # [s] map nhảy liên tục không bao giờ yên -> hết hạn thì khóa
debug_tf: false # [bool] bật log TF
debug_offset: true # [bool] bật log sai lệch bám path
debug_level: 2 # mức log chẩn đoán
StanleyGoStraightLocalPlanner:
library_path: libstanley_local_planner # thư viện chứa plugin
max_vel_x: 0.30 # [m/s] vận tốc tiến tối đa
min_vel_x: -0.20 # [m/s] vận tốc lùi tối đa có dấu âm
wheel_base: 0.0 # [m] khoảng cách trục
front_axle_frame: "steer_link" # [frame] frame trục trước
rear_axle_frame: "base_link" # [frame] frame trục sau
steer_limit_standstill: 1.5708 # [rad] trần góc lái khi |v| ~ 0
steer_limit_at_max_vel: 0.5000 # [rad] trần góc lái khi |v| = max_vel_x
align_steer_angle: 1.5708 # [rad] góc lái khi xoay tại chỗ
align_pivot_toward_curve: true # [bool] xoay bánh theo phía cua khi pivot
min_steer_angle: 0.20 # [rad] ngưỡng coi là "đang bẻ lái"
max_steer_rate: 1.00 # [rad/s] tốc độ quay servo lái
steer_zero_offset: 0.0 # [rad] độ lệch zero cộng vào lệnh lái
xy_goal_tolerance: 0.0001 # [m] dung sai vị trí tại đích
yaw_goal_tolerance: 0.010 # [rad] dung sai góc tại đích
goal_sq_dist_tol: 0.05 # [m^2] thoát sớm vòng scan điểm gần nhất
path_yaw_mode: "tangent" # cách tính hướng của path
control_gain_e: 2.0 # gain hướng (tangent path - yaw robot)
control_gain_d: 1.5 # gain nền của thành phần lệch ngang
gain_cte_weight: 0.8 # [1/m] hệ số tăng gain theo lệch ngang
gain_heading_weight: 0.5 # [1/rad] hệ số tăng gain theo lỗi hướng
gain_min: 0.5 # chặn dưới của k
gain_max: 1.8 # chặn trên của k
soft_min_vel: 0.20 # [m/s] SÀN của mẫu số atan2(k*e, v)
alpha_gain: 0.0 # lọc thông thấp lệnh lái [0..1]
curve_gain_e_bonus: 2.0 # cộng vào control_gain_e khi ở chế độ cong
tangent_window_pts: 3 # số điểm lấy trung bình tangent khi plan không kèm yaw
heading_preview: 0.10 # [m] khoảng nhìn trước để tính hướng path
curve_feedforward_gain: 1.0 # gain feedforward atan(L*kappa)
heading_bias_mode: "inherit" # chế độ ước lượng và bù lệch heading
heading_bias_tau: 30.0 # [s] hằng số thời gian EMA
heading_bias_min_vel: 0.20 # [m/s] dưới tốc độ này không học (theo |v|, áp cả chiều lùi)
heading_bias_clamp: 0.05 # [rad] trần của lượng bù ĐƯỢC ÁP
heading_bias_min_samples: 30 # [chu kỳ] số mẫu học tối thiểu trước khi được áp
steer_bias_gain: 0.100 # [rad/(m*s)] gain tích phân bù lệch lái
steer_bias_clamp: 0.05 # [rad] trần anti-windup
steer_bias_decay: 0.9999 # hệ số xả khi không đủ điều kiện tích phân
steer_bias_min_vel: 0.15 # [m/s] tốc độ tối thiểu để tích phân bù lái
steer_bias_max_heading_err: 0.10 # [rad] lỗi hướng trên ngưỡng này không tích phân
max_global_plan_lookahead_dist: 3.0 # [m] trần cửa sổ
min_lookahead: 0.50 # [m] sàn cửa sổ
min_lookahead_near_goal: 0.40 # [m] sàn riêng khi gần đích
dyn_lookahead_gain: 2.50 # [m/(m/s)] lookahead = min + gain*|v|
near_goal_freeze_dist: 0.50 # [m] dưới ngưỡng này: đóng băng yaw_path, chỉ chạy theta_d
max_advance_dist: 0.20 # [m] quãng tiến tối đa dọc plan mỗi chu kỳ
max_back_dist: 0.10 # [m] quãng lùi tối đa dọc plan mỗi chu kỳ
high_curvature: 0.30 # [1/m] ngưỡng độ cong co lookahead
mid_curvature: 0.20 # [1/m] ngưỡng độ cong cắt cửa sổ transform
low_curvature: 0.10 # [1/m] ngưỡng độ cong vào chế độ cua
straight_confirm_steps: 110 # số chu kỳ thẳng liên tiếp trước khi rời chế độ cong
speed_base: 0.30 # [m/s] nền của profile lái cosine
curve_max_speed: 0.25 # [m/s] trần khi đang cong
min_drive_speed: 0.07 # [m/s] sàn khi đang chạy
accel_distance: 2.00 # [m] quãng tăng tốc lại sau khi rời cua
decel_min: 0.05 # [m/s mỗi chu kỳ] mức giảm tốc tối thiểu khi dự đoán va chạm
decel_max: 0.10 # [m/s mỗi chu kỳ] mức giảm tốc tối đa khi dự đoán va chạm
collision_horizon_factor: 2.0 # nhân với max_vel_x ra quãng kiểm tra va chạm
goal_decel_limit: 0.30 # [m/s^2] giới hạn giảm tốc khi tới đích
min_approach_speed: 0.06 # [m/s] sàn tốc độ tiếp cận để profile sqrt vẫn chạm được đích
heading_eps: 0.020 # [rad] lỗi hướng chấp nhận là "đã thẳng hàng"
steer_eps: 0.020 # [rad] lỗi lái chấp nhận là "servo đã tới"
heading_align_tol: 0.050 # [rad] dung sai hướng cho đoạn tiến thẳng cuối
near_goal_dist: 1.00 # [m] khoảng cách bật chế độ tiến thẳng cuối
steer_realign_off: 0.503 # [rad] ngưỡng dừng drive để chỉnh bánh
steer_realign_on: 0.150 # [rad] ngưỡng chạy lại drive sau khi chỉnh bánh
steering_active: 0.094 # [rad] ngưỡng xác định bánh đang bẻ lái
segment_transition_threshold: 0.010 # [m] ngưỡng chuyển đoạn path
segment_end_ratio: 0.05 # tỉ lệ đoạn còn lại để chuyển segment
xy_reached_gate_factor: 3.0 # hệ số nhân dung sai vị trí để chốt đích
tf_lookup_at_pose_stamp: true # true = tra tại pose.header.stamp thay vì "latest"
transform_tolerance: 0.20 # [s] tuổi chấp nhận khi tra theo timestamp
max_plan_tf_jump_rate: 0.60 # [m/s] tốc độ nhảy TF tối đa được chấp nhận
max_plan_tf_jump_abs: 1.00 # [m] bước nhảy TF tịnh tiến tối đa
max_plan_tf_yaw_jump: 0.20 # [rad] bước nhảy TF góc tối đa
tf_reject_window_cycles: 30 # [chu kỳ] chiều dài cửa sổ theo dõi TF bị từ chối
tf_reject_ratio: 0.5 # tỉ lệ reject trong cửa sổ thì kích reset
plan_tf_freeze: true # [bool] khóa transform của path theo chặng
freeze_settle_cycles: 30 # [cycle] số cycle yên liên tiếp trước khi khóa
freeze_settle_eps_xy: 0.005 # [m] bước transform/cycle dưới ngưỡng này tính là "yên"
freeze_settle_eps_yaw: 0.005 # [rad] ngưỡng biến thiên yaw TF để coi là ổn định
freeze_settle_timeout: 3.0 # [s] map nhảy liên tục không bao giờ yên -> hết hạn thì khóa
debug_tf: false # [bool] bật log TF
debug_offset: true # [bool] bật log sai lệch bám path
debug_level: 2 # mức log chẩn đoán
StanleyRotateLocalPlanner:
library_path: libstanley_local_planner # thư viện chứa plugin
max_vel_x: 0.30 # [m/s] vận tốc tiến tối đa
min_vel_x: -0.20 # [m/s] vận tốc lùi tối đa có dấu âm
wheel_base: 0.0 # [m] khoảng cách trục
front_axle_frame: "steer_link" # [frame] frame trục trước
rear_axle_frame: "base_link" # [frame] frame trục sau
steer_limit_standstill: 1.5708 # [rad] trần góc lái khi |v| ~ 0
steer_limit_at_max_vel: 0.5000 # [rad] trần góc lái khi |v| = max_vel_x
align_steer_angle: 1.5708 # [rad] góc lái khi xoay tại chỗ
align_pivot_toward_curve: true # [bool] xoay bánh theo phía cua khi pivot
min_steer_angle: 0.20 # [rad] ngưỡng coi là "đang bẻ lái"
max_steer_rate: 1.00 # [rad/s] tốc độ quay servo lái
steer_zero_offset: 0.0 # [rad] độ lệch zero cộng vào lệnh lái
xy_goal_tolerance: 0.10 # [m] dung sai vị trí tại đích
yaw_goal_tolerance: 0.010 # [rad] dung sai góc tại đích
goal_sq_dist_tol: 0.05 # [m^2] thoát sớm vòng scan điểm gần nhất
path_yaw_mode: "tangent" # cách tính hướng của path
control_gain_e: 2.0 # gain hướng (tangent path - yaw robot)
control_gain_d: 1.5 # gain nền của thành phần lệch ngang
gain_cte_weight: 0.8 # [1/m] hệ số tăng gain theo lệch ngang
gain_heading_weight: 0.5 # [1/rad] hệ số tăng gain theo lỗi hướng
gain_min: 0.5 # chặn dưới của k
gain_max: 1.8 # chặn trên của k
soft_min_vel: 0.20 # [m/s] SÀN của mẫu số atan2(k*e, v)
alpha_gain: 0.0 # lọc thông thấp lệnh lái [0..1]
curve_gain_e_bonus: 2.0 # cộng vào control_gain_e khi ở chế độ cong
tangent_window_pts: 3 # số điểm lấy trung bình tangent khi plan không kèm yaw
heading_preview: 0.10 # [m] khoảng nhìn trước để tính hướng path
curve_feedforward_gain: 1.0 # gain feedforward atan(L*kappa)
heading_bias_mode: "inherit" # chế độ ước lượng và bù lệch heading
heading_bias_tau: 30.0 # [s] hằng số thời gian EMA
heading_bias_min_vel: 0.20 # [m/s] dưới tốc độ này không học (theo |v|, áp cả chiều lùi)
heading_bias_clamp: 0.05 # [rad] trần của lượng bù ĐƯỢC ÁP
heading_bias_min_samples: 30 # [chu kỳ] số mẫu học tối thiểu trước khi được áp
steer_bias_gain: 0.100 # [rad/(m*s)] gain tích phân bù lệch lái
steer_bias_clamp: 0.05 # [rad] trần anti-windup
steer_bias_decay: 0.9999 # hệ số xả khi không đủ điều kiện tích phân
steer_bias_min_vel: 0.15 # [m/s] tốc độ tối thiểu để tích phân bù lái
steer_bias_max_heading_err: 0.10 # [rad] lỗi hướng trên ngưỡng này không tích phân
max_global_plan_lookahead_dist: 3.0 # [m] trần cửa sổ
min_lookahead: 0.50 # [m] sàn cửa sổ
min_lookahead_near_goal: 0.40 # [m] sàn riêng khi gần đích
dyn_lookahead_gain: 2.50 # [m/(m/s)] lookahead = min + gain*|v|
near_goal_freeze_dist: 0.50 # [m] dưới ngưỡng này: đóng băng yaw_path, chỉ chạy theta_d
max_advance_dist: 0.20 # [m] quãng tiến tối đa dọc plan mỗi chu kỳ
max_back_dist: 0.10 # [m] quãng lùi tối đa dọc plan mỗi chu kỳ
high_curvature: 0.30 # [1/m] ngưỡng độ cong co lookahead
mid_curvature: 0.20 # [1/m] ngưỡng độ cong cắt cửa sổ transform
low_curvature: 0.10 # [1/m] ngưỡng độ cong vào chế độ cua
straight_confirm_steps: 110 # số chu kỳ thẳng liên tiếp trước khi rời chế độ cong
speed_base: 0.30 # [m/s] nền của profile lái cosine
curve_max_speed: 0.25 # [m/s] trần khi đang cong
min_drive_speed: 0.07 # [m/s] sàn khi đang chạy
accel_distance: 2.00 # [m] quãng tăng tốc lại sau khi rời cua
decel_min: 0.05 # [m/s mỗi chu kỳ] mức giảm tốc tối thiểu khi dự đoán va chạm
decel_max: 0.10 # [m/s mỗi chu kỳ] mức giảm tốc tối đa khi dự đoán va chạm
collision_horizon_factor: 2.0 # nhân với max_vel_x ra quãng kiểm tra va chạm
goal_decel_limit: 0.30 # [m/s^2] giới hạn giảm tốc khi tới đích
min_approach_speed: 0.06 # [m/s] sàn tốc độ tiếp cận để profile sqrt vẫn chạm được đích
heading_eps: 0.020 # [rad] lỗi hướng chấp nhận là "đã thẳng hàng"
steer_eps: 0.020 # [rad] lỗi lái chấp nhận là "servo đã tới"
heading_align_tol: 0.050 # [rad] dung sai hướng cho đoạn tiến thẳng cuối
near_goal_dist: 1.00 # [m] khoảng cách bật chế độ tiến thẳng cuối
steer_realign_off: 0.503 # [rad] ngưỡng dừng drive để chỉnh bánh
steer_realign_on: 0.150 # [rad] ngưỡng chạy lại drive sau khi chỉnh bánh
steering_active: 0.094 # [rad] ngưỡng xác định bánh đang bẻ lái
segment_transition_threshold: 0.010 # [m] ngưỡng chuyển đoạn path
segment_end_ratio: 0.05 # tỉ lệ đoạn còn lại để chuyển segment
xy_reached_gate_factor: 3.0 # hệ số nhân dung sai vị trí để chốt đích
tf_lookup_at_pose_stamp: true # true = tra tại pose.header.stamp thay vì "latest"
transform_tolerance: 0.20 # [s] tuổi chấp nhận khi tra theo timestamp
max_plan_tf_jump_rate: 0.60 # [m/s] tốc độ nhảy TF tối đa được chấp nhận
max_plan_tf_jump_abs: 1.00 # [m] bước nhảy TF tịnh tiến tối đa
max_plan_tf_yaw_jump: 0.20 # [rad] bước nhảy TF góc tối đa
tf_reject_window_cycles: 30 # [chu kỳ] chiều dài cửa sổ theo dõi TF bị từ chối
tf_reject_ratio: 0.5 # tỉ lệ reject trong cửa sổ thì kích reset
plan_tf_freeze: true # [bool] khóa transform của path theo chặng
freeze_settle_cycles: 30 # [cycle] số cycle yên liên tiếp trước khi khóa
freeze_settle_eps_xy: 0.005 # [m] bước transform/cycle dưới ngưỡng này tính là "yên"
freeze_settle_eps_yaw: 0.005 # [rad] ngưỡng biến thiên yaw TF để coi là ổn định
freeze_settle_timeout: 3.0 # [s] map nhảy liên tục không bao giờ yên -> hết hạn thì khóa
debug_tf: false # [bool] bật log TF
debug_offset: true # [bool] bật log sai lệch bám path
debug_level: 2 # mức log chẩn đoán

View File

@@ -366,7 +366,6 @@ robot_nav_2d_msgs::Twist2DStamped pnkx_local_planner::PNKXDockingLocalPlanner::c
const robot_nav_2d_msgs::Twist2D &velocity)
{
// boost::recursive_mutex::scoped_lock l(configuration_mutex_);
robot::log_error("DEBUG 300");
robot_nav_2d_msgs::Twist2DStamped cmd_vel;
try
{
@@ -425,9 +424,9 @@ bool pnkx_local_planner::PNKXDockingLocalPlanner::isGoalReached(const robot_nav_
robot::log_warning_at(__FILE__, __LINE__, "Cannot check if the goal is reached without the goal being set!");
return false;
}
robot::log_error("DEBUG 400.1");
bool dock_ok = dockingHanlde(pose, velocity);
robot::log_error("DEBUG 400.2");
// Update time stamp of goal pose
// goal_pose_.header.stamp = pose.header.stamp;
robot_nav_2d_msgs::Pose2DStamped local_pose = this->transformPoseToLocal(pose);
@@ -504,7 +503,6 @@ bool pnkx_local_planner::PNKXDockingLocalPlanner::dockingHanlde(const robot_nav_
{
if (dkpl_.front()->geLocalGoal(local_goal))
{
robot::log_error("DEBUG 100");
dkpl_.front()->is_detected_ = true;
start_docking_ = true;
robot_nav_msgs::Path path;
@@ -526,7 +524,6 @@ bool pnkx_local_planner::PNKXDockingLocalPlanner::dockingHanlde(const robot_nav_
{
if (dkpl_.front()->geLocalGoal(local_goal))
{
robot::log_error("DEBUG 200");
dkpl_.front()->is_detected_ = true;
start_docking_ = true;
robot_nav_2d_msgs::Path2D path;

View File

@@ -208,14 +208,12 @@ void pnkx_local_planner::PNKXLocalPlanner::reset()
void pnkx_local_planner::PNKXLocalPlanner::setGoalPose(const robot_nav_2d_msgs::Pose2DStamped &goal_pose)
{
// boost::recursive_mutex::scoped_lock l(configuration_mutex_);
robot::log_error("[PNKXLocalPlanner] Receive new goal(%f, %f)!", goal_pose.pose.x, goal_pose.pose.y);
reset();
goal_pose_ = goal_pose;
}
void pnkx_local_planner::PNKXLocalPlanner::setPlan(const robot_nav_2d_msgs::Path2D &path)
{
robot::log_error("[PNKXLocalPlanner] size path: %d", (int)path.poses.size());
// boost::recursive_mutex::scoped_lock l(configuration_mutex_);
costmap_robot_->resetLayers();
global_plan_ = path;