luxb: navigation core for the luxb robot
Single-commit snapshot of the luxb branch (was 62 commits: new-1.0 up toe948f32plus8470d73). Compared with new-1.0 it drops the submodules this robot does not use (mppi_local_planner, priest_local_planner, priest_mpcc_local_planner, stanley_local_planner, trolley_detection_action, wall_reflector_detection_action) and their config. The position profile uses CustomPlanner + PNKXLocalPlanner; EnvMonitor and recovery are off.
This commit is contained in:
133
config/runtime/action_handlers_params.yaml
Normal file
133
config/runtime/action_handlers_params.yaml
Normal file
@@ -0,0 +1,133 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/action_handlers_params.md
|
||||
actions:
|
||||
handlers:
|
||||
- {name: detect_pallet, type: FrameSamplerActionHandler} # instance và symbol
|
||||
- {name: detect_lidar, type: DockPatternActionHandler} # instance và symbol
|
||||
|
||||
|
||||
detect_pallet:
|
||||
action_types: [DetectPallet] # loại action được handler nhận
|
||||
input_frame: pallet_raw # [frame] frame đầu vào
|
||||
output_frame: dock_target # [frame] frame kết quả
|
||||
use_simulated_goal: false # dùng mục tiêu giả cho mô phỏng
|
||||
simulated_parent_frame: base_link # [frame] frame gốc của mục tiêu giả
|
||||
simulated_offset_x: 1.6 # [m] độ dịch x của mục tiêu giả
|
||||
simulated_offset_y: 0.0 # [m] độ dịch y của mục tiêu giả
|
||||
simulated_offset_yaw: 0.12 # [rad] góc yaw của mục tiêu giả
|
||||
filter_enabled: true # bật lọc mẫu
|
||||
settle_delay: 0.4 # [s] thời gian chờ robot ổn định
|
||||
sample_window: 1.1 # [s] cửa sổ lấy mẫu
|
||||
min_samples: 8 # số mẫu tối thiểu
|
||||
timeout: 15.0 # [s] thời hạn tối đa
|
||||
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.15 # [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: 5 # số mẫu cụm tối thiểu
|
||||
|
||||
detect_lidar:
|
||||
action_types: [DetectCharger] # loại action được handler nhận
|
||||
output_frame: dock_target # [frame] frame kết quả
|
||||
scan_topic: /b_scan # [topic] topic scan đầu vào
|
||||
entry_direction: backward # 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: arc_std # profile mặc định
|
||||
profile_param_key: dock_profile # khóa chọn profile trong order
|
||||
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.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.51 # tỉ lệ mẫu cụm tối thiểu
|
||||
min_cluster_samples: 3 # số mẫu cụm tối thiểu
|
||||
|
||||
line_extraction:
|
||||
min_split_dist: 0.02 # [m] ngưỡng tách đoạn thẳng tối thiểu
|
||||
max_line_gap: 0.08 # [m] khe tối đa giữa các điểm trên một đoạn thẳng
|
||||
min_line_length: 0.05 # [m] chiều dài đoạn thẳng tối thiểu
|
||||
min_line_points: 5 # số điểm tối thiểu của đoạn thẳng
|
||||
outlier_dist: 0.10 # [m] ngưỡng khoảng cách loại điểm ngoại lai
|
||||
min_range: 0.05 # [m] khoảng cách tia tối thiểu
|
||||
max_range: 3.0 # [m] khoảng cách tia tối đa
|
||||
|
||||
profiles:
|
||||
v_std:
|
||||
pattern: v # kiểu hình dạng cần dò
|
||||
vertex_angle: 1.5708 # [rad] góc trong tại đỉnh chữ V
|
||||
wing_length: 0.30 # [m] chiều dài cánh chữ V
|
||||
angle_tolerance: 0.20 # [rad] dung sai góc đỉnh
|
||||
length_tolerance: 0.06 # [m] dung sai chiều dài cánh
|
||||
vertex_gap: 0.05 # [m] dung sai khe tại đỉnh chữ V
|
||||
v_shape: any # hướng mở của chữ V
|
||||
min_wing_points: 5 # số tia tối thiểu trên một cánh
|
||||
min_confidence: 0.4 # [-] độ tin cậy tối thiểu
|
||||
search_fov: 0.0 # [rad] góc mở quạt tìm kiếm
|
||||
offset_x: 0.95 # [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
|
||||
tape_enabled: false # bật kiểm tra dải phản quang
|
||||
|
||||
kit_charger:
|
||||
pattern: v # kiểu hình dạng cần dò
|
||||
vertex_angle: 1.5708 # [rad] góc trong tại đỉnh chữ V
|
||||
wing_length: 0.31 # [m] chiều dài cánh chữ V
|
||||
angle_tolerance: 0.20 # [rad] dung sai góc đỉnh
|
||||
length_tolerance: 0.06 # [m] dung sai chiều dài cánh
|
||||
vertex_gap: 0.05 # [m] dung sai khe tại đỉnh chữ V
|
||||
v_shape: convex # hướng mở của chữ V
|
||||
min_wing_points: 5 # số tia tối thiểu trên một cánh
|
||||
min_confidence: 0.4 # độ tin cậy tối thiểu
|
||||
search_fov: 0.6 # [rad] góc mở quạt tìm kiếm
|
||||
offset_x: 0.40 # [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
|
||||
tape_enabled: false # bật kiểm tra dải phản quang
|
||||
|
||||
v_tape:
|
||||
pattern: v # kiểu hình dạng cần dò
|
||||
vertex_angle: 1.5708 # [rad] góc trong tại đỉnh chữ V
|
||||
wing_length: 0.30 # [m] chiều dài cánh chữ V
|
||||
angle_tolerance: 0.20 # [rad] dung sai góc đỉnh
|
||||
length_tolerance: 0.06 # [m] dung sai chiều dài cánh
|
||||
vertex_gap: 0.05 # [m] dung sai khe tại đỉnh chữ V
|
||||
v_shape: any # hướng mở của chữ V
|
||||
min_wing_points: 5 # số tia tối thiểu trên một cánh
|
||||
min_confidence: 0.4 # độ tin cậy tối thiểu
|
||||
search_fov: 0.0 # [rad] góc mở quạt tìm kiếm
|
||||
offset_x: 0.95 # [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
|
||||
tape_enabled: true # bật kiểm tra dải phản quang
|
||||
tape_spacing: 0.1945 # [m] khoảng cách tâm hai dải
|
||||
tape_width: 0.12 # [m] chiều rộng dải phản quang
|
||||
tape_spacing_tolerance: 0.04 # [m] sai lệch khoảng cách hai dải còn chấp nhận
|
||||
tape_width_tolerance: 0.05 # [m] sai lệch chiều dài dải còn chấp nhận
|
||||
tape_min_intensity: 500.0 # [-] ngưỡng intensity của dải
|
||||
|
||||
arc_std:
|
||||
pattern: arc # kiểu hình dạng cần dò
|
||||
arc_radius: 0.40 # [m] bán kính máng
|
||||
arc_radius_tolerance: 0.06 # [m] sai lệch bán kính còn chấp nhận
|
||||
arc_span: 2.0 # [rad] góc mở toàn phần của máng
|
||||
arc_span_tolerance: 0.15 # [rad] sai lệch góc mở còn chấp nhận, HAI CHIỀU
|
||||
arc_min_span: 0.52 # [rad] góc mở tối thiểu quan sát được thì mới tin phép khớp
|
||||
arc_max_rms: 0.010 # [m] sai số khớp tối đa của điểm so với đường tròn
|
||||
arc_max_point_gap: 0.05 # [m] khoảng cách tối đa để gộp hai đoạn cung
|
||||
min_arc_points: 8 # số điểm tối thiểu trên cung
|
||||
min_confidence: 0.4 # độ tin cậy tối thiểu
|
||||
search_fov: 0.0 # [rad] góc mở quạt tìm kiếm
|
||||
offset_x: 0.92 # [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
|
||||
25
config/runtime/compound_actions_params.yaml
Normal file
25
config/runtime/compound_actions_params.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/compound_actions_params.md
|
||||
vda5050_src:
|
||||
compound_actions:
|
||||
|
||||
CHARGE:
|
||||
steps:
|
||||
- {action: DetectCharger} # [-] bước trong chuỗi action
|
||||
- {move_to: dock_target, profile: docking, marker: charger} # [-] bước trong chuỗi action
|
||||
|
||||
PICKUP:
|
||||
steps:
|
||||
- {action: DetectPallet} # [-] bước trong chuỗi action
|
||||
- {move_to: dock_target, profile: docking, marker: trolley} # [-] bước trong chuỗi action
|
||||
|
||||
UNDOCK:
|
||||
steps:
|
||||
- {move: -1.0, profile: go_straight} # [-] bước trong chuỗi action
|
||||
|
||||
GOSTRAIGHT:
|
||||
steps:
|
||||
- {move: 1.0, profile: go_straight} # [-] bước trong chuỗi action
|
||||
|
||||
ROTATE:
|
||||
steps:
|
||||
- {move: 0.0, profile: rotate, turn_param: angle_deg} # [-] bước trong chuỗi action
|
||||
35
config/runtime/config/costmap_params.yaml
Normal file
35
config/runtime/config/costmap_params.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/config/costmap_params.md
|
||||
robot_costmap_2d:
|
||||
global_frame: map # [frame] frame của costmap
|
||||
robot_base_frame: base_link # [frame] frame gốc robot
|
||||
rolling_window: false # [bool] dùng cửa sổ cuộn
|
||||
track_unknown_space: false # [bool] giữ trạng thái unknown
|
||||
reference_graph_enabled: false # [bool] tạo đồ thị tham chiếu
|
||||
|
||||
plugins:
|
||||
- name: static_layer # [-] tên instance layer
|
||||
type: StaticLayer # [-] symbol plugin layer
|
||||
- name: inflation_layer # [-] tên instance layer
|
||||
type: InflationLayer # [-] symbol plugin layer
|
||||
- name: obstacle_layer # [-] tên instance layer
|
||||
type: ObstacleLayer # [-] symbol plugin layer
|
||||
- name: voxel_layer # [-] tên instance layer
|
||||
type: VoxelLayer # [-] symbol plugin layer
|
||||
|
||||
library_path: ./libplugins.so # [-] thư viện plugin
|
||||
|
||||
footprint:
|
||||
- [0.3, 0.3] # [m] đỉnh footprint (x, y)
|
||||
- [0.3, -0.3] # [m] đỉnh footprint (x, y)
|
||||
- [-0.3, -0.3] # [m] đỉnh footprint (x, y)
|
||||
- [-0.3, 0.3] # [m] đỉnh footprint (x, y)
|
||||
|
||||
transform_tolerance: 0.0 # [s] dung sai TF của costmap
|
||||
update_frequency: 1.0 # [Hz] tần số cập nhật costmap
|
||||
width: 0.0 # [m] chiều rộng costmap
|
||||
height: 0.0 # [m] chiều cao costmap
|
||||
resolution: 0.0 # [m/ô] kích thước ô costmap
|
||||
origin_x: 0.0 # [m] gốc costmap theo X
|
||||
origin_y: 0.0 # [m] gốc costmap theo Y
|
||||
footprint_padding: 0.0 # [m] phần nở footprint
|
||||
robot_radius: 0.0 # [m] bán kính footprint dự phòng
|
||||
@@ -0,0 +1,22 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/config/depth_camera_obstacle_layer_params.md
|
||||
depth_camera_obstacle_layer:
|
||||
enabled: true # [bool] bật layer camera depth
|
||||
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 điểm cloud lân cận
|
||||
number_clearing_threshold: 2 # [đ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: 5 # [điểm] kích thước cụm tối thiểu
|
||||
size_of_cluster_rejection: 5 # [đ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: true # [bool] bảo vệ khi camera bị che
|
||||
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 theo stamp
|
||||
footprint_clearing_enabled: true # [bool] xoá điểm trong footprint
|
||||
combination_method: 1 # [-] cách gộp vào master
|
||||
observation_sources: "" # [-] danh sách tên nguồn
|
||||
|
||||
debug:
|
||||
stats: true # [bool] bật log thống kê
|
||||
stats_period: 5.0 # [s] chu kỳ log thống kê
|
||||
7
config/runtime/config/directional_layer_params.yaml
Normal file
7
config/runtime/config/directional_layer_params.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/config/directional_layer_params.md
|
||||
directional_layer:
|
||||
enabled: true # [bool] bật ràng buộc hướng
|
||||
map_topic: "map" # [topic] nguồn static map
|
||||
direction_topic: "direction_map" # [topic] nguồn grid hướng
|
||||
max_deviation_deg: 45.0 # [deg] góc lệch hướng tối đa
|
||||
debug_state: false # [bool] log chuyển trạng thái
|
||||
6
config/runtime/config/inflation_layer_params.yaml
Normal file
6
config/runtime/config/inflation_layer_params.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/config/inflation_layer_params.md
|
||||
inflation_layer:
|
||||
enabled: true # [bool] bật lớp inflation
|
||||
inflate_unknown: false # [bool] nở cost vào ô unknown
|
||||
cost_scaling_factor: 15.0 # [-] hệ số giảm cost theo khoảng cách
|
||||
inflation_radius: 0.55 # [m] bán kính vùng inflation
|
||||
7
config/runtime/config/obstacle_layer_params.yaml
Normal file
7
config/runtime/config/obstacle_layer_params.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/config/obstacle_layer_params.md
|
||||
obstacle_layer:
|
||||
track_unknown_space: true # [bool] giữ ô chưa quan sát
|
||||
transform_tolerance: 0.2 # [s] độ trễ TF tối đa
|
||||
max_obstacle_height: 2.0 # [m] trần chiều cao vật cản
|
||||
footprint_clearing_enabled: true # [bool] xoá vật cản trong footprint
|
||||
combination_method: 1 # [-] cách gộp vào master
|
||||
12
config/runtime/config/static_layer_params.yaml
Normal file
12
config/runtime/config/static_layer_params.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/config/static_layer_params.md
|
||||
static_layer:
|
||||
enabled: true # [bool] bật lớp bản đồ tĩnh
|
||||
map_topic: "map" # [topic] nguồn bản đồ occupancy
|
||||
first_map_only: false # [bool] chỉ dùng bản đồ đầu tiên
|
||||
subscribe_to_updates: false # [bool] nhận cập nhật bản đồ từng phần
|
||||
track_unknown_space: true # [bool] giữ ô chưa biết
|
||||
use_maximum: false # [bool] gộp bằng cost lớn nhất
|
||||
lethal_cost_threshold: 100 # [-] ngưỡng occupancy thành lethal
|
||||
unknown_cost_value: -1 # [-] mã unknown trong map đầu vào
|
||||
trinary_costmap: true # [bool] phân loại cost ba trạng thái
|
||||
base_frame_id: "map" # [frame] frame bản đồ của layer
|
||||
11
config/runtime/config/voxel_layer_params.yaml
Normal file
11
config/runtime/config/voxel_layer_params.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/config/voxel_layer_params.md
|
||||
voxel_layer:
|
||||
enabled: true # [bool] bật lớp voxel
|
||||
footprint_clearing_enabled: true # [bool] xoá vật cản trong footprint
|
||||
max_obstacle_height: 3.0 # [m] trần chiều cao vật cản
|
||||
origin_z: 0.0 # [m] đáy cột voxel
|
||||
z_resolution: 0.2 # [m] chiều cao mỗi voxel
|
||||
z_voxels: 16 # [-] số tầng voxel
|
||||
unknown_threshold: 15.0 # [voxel] ngưỡng ô chưa biết
|
||||
mark_threshold: 0 # [voxel] ngưỡng đánh dấu cột
|
||||
combination_method: 1 # [-] cách gộp vào master
|
||||
66
config/runtime/costmap_common_params.yaml
Executable file
66
config/runtime/costmap_common_params.yaml
Executable file
@@ -0,0 +1,66 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/costmap_common_params.md
|
||||
root:
|
||||
robot_base_frame: base_link # [frame] frame gốc robot
|
||||
transform_tolerance: 1.0 # [s] dung sai TF costmap
|
||||
footprint_padding: 0.0 # [m] biên nở footprint robot
|
||||
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
f_scan:
|
||||
topic: /f_scan # [topic] luồng dữ liệu cảm biến
|
||||
data_type: LaserScan # [-] kiểu message cảm biến
|
||||
clearing: true # [bool] dùng nguồn để xoá vật cản
|
||||
marking: true # [bool] đánh dấu vật cản từ nguồn
|
||||
inf_is_valid: true # [bool] coi tia LaserScan +Inf hợp lệ
|
||||
expected_update_rate: 0.0 # [s] thời gian tối đa giữa hai mẫu
|
||||
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
|
||||
|
||||
b_scan:
|
||||
topic: /b_scan # [topic] luồng dữ liệu cảm biến
|
||||
data_type: LaserScan # [-] kiểu message cảm biến
|
||||
clearing: true # [bool] dùng nguồn để xoá vật cản
|
||||
marking: true # [bool] đánh dấu vật cản từ nguồn
|
||||
inf_is_valid: true # [bool] coi tia LaserScan +Inf hợp lệ
|
||||
obstacle_range: 3.0 # [m] tầm đánh dấu vật cản
|
||||
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
|
||||
21
config/runtime/costmap_global_params.yaml
Executable file
21
config/runtime/costmap_global_params.yaml
Executable file
@@ -0,0 +1,21 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/costmap_global_params.md
|
||||
global_costmap:
|
||||
library_path: libplugins
|
||||
global_frame: map # [frame] frame costmap
|
||||
update_frequency: 1.0 # [Hz] tần số cập nhật
|
||||
performance_metrics_enabled: false # [bool] bật log thống kê hiệu năng
|
||||
performance_metrics_period: 5.0 # [s] chu kỳ báo cáo hiệu năng
|
||||
debug_level: 0 # [-] mức chi tiết log hiệu năng
|
||||
snapshot_for_readers: false # [bool] reader dùng bản chụp costmap
|
||||
resolution: 0.05 # [m/ô] kích thước ô lưới
|
||||
rolling_window: false # [bool] dùng cửa sổ costmap cuộn
|
||||
reference_graph_enabled: true # [bool] bật đồ thị tham chiếu
|
||||
reference_graph_min_clearance_m: 0.335 # [m] khoảng hở tối thiểu của ridge
|
||||
reference_graph_ridge_min_separation_m: 0.7 # [m] khoảng cách tách vật cản cho ridge
|
||||
reference_graph_spur_min_length_m: 1.0 # [m] chiều dài tối thiểu nhánh cụt
|
||||
reference_graph_lane_offset_step_m: 0.5 # [m] khoảng cách giữa làn song song
|
||||
reference_graph_debug_log: true # [bool] log xây đồ thị tham chiếu
|
||||
|
||||
inflation:
|
||||
cost_scaling_factor: 10.0 # [-] hệ số giảm cost inflation
|
||||
inflation_radius: 0.6 # [m] bán kính inflation
|
||||
10
config/runtime/costmap_global_params_plugins.yaml
Executable file
10
config/runtime/costmap_global_params_plugins.yaml
Executable file
@@ -0,0 +1,10 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/costmap_global_params_plugins.md
|
||||
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: inflation, type: InflationLayer} # [-] instance và symbol layer
|
||||
# - {name: direction, type: DirectionalLayer} # [-] instance và symbol layer
|
||||
29
config/runtime/costmap_local_params.yaml
Executable file
29
config/runtime/costmap_local_params.yaml
Executable file
@@ -0,0 +1,29 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/costmap_local_params.md
|
||||
local_costmap:
|
||||
library_path: libplugins
|
||||
global_frame: odom # [frame] frame costmap
|
||||
update_frequency: 10.0 # [Hz] tần số cập nhật
|
||||
performance_metrics_enabled: false # [bool] bật log thống kê hiệu năng
|
||||
performance_metrics_period: 5.0 # [s] chu kỳ báo cáo hiệu năng
|
||||
debug_level: 0 # [-] mức chi tiết log hiệu năng
|
||||
snapshot_for_readers: true # [bool] reader dùng bản chụp costmap
|
||||
rolling_window: true # [bool] dùng cửa sổ costmap cuộn
|
||||
reference_graph_enabled: false # [bool] bật đồ thị tham chiếu
|
||||
resolution: 0.05 # [m/ô] kích thước ô lưới
|
||||
width: 8.0 # [m] chiều rộng cửa sổ
|
||||
height: 8.0 # [m] chiều cao cửa sổ
|
||||
origin_x: 0.0 # [m] gốc costmap theo X
|
||||
origin_y: 0.0 # [m] gốc costmap theo Y
|
||||
|
||||
lidar_obstacles:
|
||||
enabled: true # [bool] bật layer lidar
|
||||
footprint_clearing_enabled: true # [bool] xoá điểm trong footprint
|
||||
origin_z: 0.0 # [m] đáy cột voxel
|
||||
z_resolution: 0.15 # [m] chiều cao tầng voxel
|
||||
z_voxels: 8 # [-] số tầng voxel
|
||||
unknown_threshold: 15 # [voxel] ngưỡng unknown của cột
|
||||
max_obstacle_height: 1.2 # [m] trần chiều cao vật cản
|
||||
|
||||
inflation_layer:
|
||||
cost_scaling_factor: 10.0 # [-] hệ số giảm cost inflation
|
||||
inflation_radius: 0.3 # [m] bán kính inflation
|
||||
6
config/runtime/costmap_local_params_plugins.yaml
Executable file
6
config/runtime/costmap_local_params_plugins.yaml
Executable file
@@ -0,0 +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: lidar_obstacles, type: VoxelLayer} # [-] instance và symbol layer
|
||||
- {name: inflation_layer, type: InflationLayer} # [-] instance và symbol layer
|
||||
14
config/runtime/custom_global_params.yaml
Normal file
14
config/runtime/custom_global_params.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/custom_global_params.md
|
||||
CustomPlanner:
|
||||
library_path: libcustom_planner
|
||||
pathway_attach_distance: 0.1 # [m] ngưỡng gắn start/goal vào pathway
|
||||
bare_goal_max_distance: 0.2 # [m] cự ly tối đa nhận goal trần
|
||||
nurbs_length_t_interval: 0.01 # [-] bước tham số u để đo chiều dài NURBS
|
||||
nurbs_point_spacing: 0.05 # [m] khoảng cách lấy mẫu NURBS
|
||||
skip_edge_angle: 0.4712 # [rad] ngưỡng bỏ cạnh đầu khi tính yaw
|
||||
cost_angle_tight: 0.3142 # [rad] ngưỡng góc gãy gắt
|
||||
cost_angle_wide: 1.4137 # [rad] ngưỡng góc gãy vừa
|
||||
rotation_insert_min: 1.4137 # [rad] cận dưới cửa sổ chèn xoay
|
||||
rotation_insert_max: 2.6704 # [rad] cận trên cửa sổ chèn xoay
|
||||
rotation_step: 0.1571 # [rad] bước yaw giữa hai pose xoay
|
||||
backward_decision_angle: 1.5708 # [rad] ngưỡng chọn đi lùi đoạn cuối
|
||||
31
config/runtime/dock_global_params.yaml
Normal file
31
config/runtime/dock_global_params.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/dock_global_params.md
|
||||
DockPlanner:
|
||||
library_path: libdock_planner
|
||||
|
||||
kinematics:
|
||||
model: differential # [-] mô hình động học robot
|
||||
|
||||
# model ackermann
|
||||
front_axle_frame: "steer_link" # [frame] frame trục bánh trước
|
||||
rear_axle_frame: "base_link" # [frame] frame trục bánh sau
|
||||
max_steering_angle: 0.5 # [rad] góc lái cực đại
|
||||
|
||||
# model differential
|
||||
minimum_turning_radius: 0.6 # [m] bán kính cua tối thiểu
|
||||
|
||||
maneuver:
|
||||
minimum_forward_distance: 0.25 # [m] khoảng lead-in tối thiểu
|
||||
maximum_forward_extension: 0.5 # [m] giới hạn cusp ra xa
|
||||
maximum_cusp_distance: 0.0 # [m] trần đoạn cusp tới goal
|
||||
direct_entry_min_curve_room: 0.3 # [m] khoảng trống tối thiểu cho direct entry
|
||||
pivot_fallback_extension: 1.2 # [m] ngưỡng chuyển cusp sang pivot
|
||||
pivot_safety_margin: 0.15 # [m] khoảng hở khi xoay gần dock
|
||||
pivot_backoff_max_distance: 1.0 # [m] quãng lùi cứu vãn tối đa
|
||||
pivot_check_costmap: false # [bool] kiểm costmap đoạn lùi và vòng quét
|
||||
|
||||
terminal:
|
||||
reverse_distance_padding: 0.0 # [m] khoảng hở cộng thêm đoạn cuối
|
||||
straight_length: 0.1 # [m] độ dài mong muốn đoạn thẳng cuối
|
||||
|
||||
sampling:
|
||||
path_point_spacing: 0.05 # [m] khoảng cách tối đa giữa pose
|
||||
87
config/runtime/env_monitor_params.yaml
Normal file
87
config/runtime/env_monitor_params.yaml
Normal file
@@ -0,0 +1,87 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/env_monitor_params.md
|
||||
env_monitor:
|
||||
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
|
||||
pose_jump_reject: 0.5 # [m] ngưỡng phát hiện pose nhảy
|
||||
|
||||
body:
|
||||
front_offset: 0.0 # [m] độ nhô mũi từ base_link
|
||||
rear_offset: 0.0 # [m] độ nhô đuôi từ base_link
|
||||
side_offset: 0.0 # [m] nửa bề rộng thân
|
||||
padding: 0.0 # [m] đệm footprint để dò tiếp xúc
|
||||
lethal_threshold: 254 # [-] ngưỡng cost coi là vật cản thật
|
||||
|
||||
geometry:
|
||||
horizon: 3.0 # [m] quãng plan quét hành lang
|
||||
corridor_margin: 0.0 # [m] mỗi bên, cộng vào bề rộng thân khi xét khe
|
||||
corridor_cap: 1.5 # [m] trần quãng trống đo về mỗi bên
|
||||
target_backoff: 0.5 # [m] điểm thoát T nằm trong vật cản thì lùi dọc plan tối đa chừng này
|
||||
target_snap: 0.5 # [m] bán kính snap điểm thoát tới ô trống
|
||||
robot_snap: 0.35 # [m] bán kính snap pose robot tới ô trống
|
||||
track_back: 1.0 # [m] quãng tìm index plan về phía sau
|
||||
exit_ahead: 2.0 # [m] quãng tới điểm thoát trên plan
|
||||
track_ahead: 3.0 # [m] khoảng tìm index plan về phía trước
|
||||
|
||||
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 độ
|
||||
jump_reject: 1.0 # [m] ngưỡng loại bước nhảy cost_to_go
|
||||
min_commanded: 0.30 # [m] lệnh trong cửa sổ ít hơn = đang chờ/xoay, KHÔNG đo
|
||||
eff_on: 0.20 # [-] eff dưới đây là kẹt
|
||||
eff_off: 0.50 # [-] trên đây mới xoá (hysteresis)
|
||||
confirm: 1.0 # [s] kẹt liên tục chừng này mới nổ
|
||||
goal_zone: 0.6 # [m] gần goal hơn đây không đo (rot2goal, dừng chính xác)
|
||||
slip_on: 0.15 # [m/s] |v_cmd| - |v_đo| liên tục = kẹt vật lý (vật thấp, bumper)
|
||||
slip_time: 1.0 # [s] thời gian xác nhận chênh lệch vận tốc
|
||||
min_commanded_since_goal: 1.0 # [m] cổng đầu chặng — cắt hai lần nổ sớm ở bag 5/9 (rel 13.0, 145.6)
|
||||
disp_window_s: 12.0 # [s] cửa sổ đo dịch chuyển
|
||||
disp_min: 0.6 # [m] dịch chuyển thực dưới đây = không đi được đâu
|
||||
disp_min_commanded: 1.5 # [m] lệnh tối thiểu để xét dịch chuyển
|
||||
idle_window_s: 25.0 # [s] cửa sổ phát hiện đứng yên
|
||||
confine_window_s: 20.0 # [s] cửa sổ xét giam vùng
|
||||
confine_radius: 1.2 # [m] vùng lớn hơn đây không gọi là giam
|
||||
confine_cmd_factor: 1.5 # [-] lệnh phải gấp chừng này lần đường kính vùng
|
||||
progress_veto: true # [bool] phủ quyết giam vùng khi có tiến độ
|
||||
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: 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: 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
|
||||
local_plan_start_tol: 0.15 # [m] độ lệch pose đầu local plan tối đa
|
||||
lookahead: 1.5 # [m] quãng quỹ đạo cần dò
|
||||
confirm_cycles: 2 # [chu kỳ] số chu kỳ xác nhận để phanh
|
||||
trigger_static_time: 1.0 # [s] thời gian tiếp xúc trước khi phát cờ
|
||||
clean_start_margin: 0.20 # [m] dừng với thân còn cách vật ít nhất chừng này
|
||||
brake_decel: 0.35 # [m/s^2] decel dùng cho quãng phanh v^2/2a và bao tốc độ sqrt(2a(d - margin))
|
||||
release_hysteresis: 0.10 # [m] hysteresis khoảng cách nhả phanh
|
||||
release_confirm_cycles: 4 # [chu kỳ] số chu kỳ xác nhận nhả phanh
|
||||
envelope_margin: 0.10 # [m] khoảng dư của bao tốc độ
|
||||
standdown_min_travel: 0.10 # [m] quãng tối thiểu trước khi nhường local planner
|
||||
standdown_travel: 0.30 # [m] quãng đi để kích hoạt lại contact
|
||||
min_speed: 0.05 # [m/s] sàn tốc độ của bao
|
||||
min_check_speed: 0.10 # [m/s] tốc độ tối thiểu để xét contact
|
||||
envelope: true # [bool] bao tốc độ theo tiếp xúc (chỉ có tác dụng khi apply_command: true)
|
||||
|
||||
replan_budget:
|
||||
min_travel: 1.5 # [m] quãng đi trước khi bật lại verdict
|
||||
escalate_factor: 2.0 # [-] hệ số tăng ngân sách replan
|
||||
escalate_window_m: 10.0 # [m] đi chừng này không replan thì về min_travel
|
||||
escalate_max: 6.0 # [m] trần ngân sách replan
|
||||
|
||||
logger:
|
||||
enabled: false # [bool] bật ghi log replay JSONL
|
||||
log_dir: /tmp/env_monitor # [-] thư mục ghi JSONL
|
||||
flush_period: 1.0 # [s] chu kỳ flush log JSONL
|
||||
173
config/runtime/hybrid_local_planner_params.yaml
Normal file
173
config/runtime/hybrid_local_planner_params.yaml
Normal file
@@ -0,0 +1,173 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/hybrid_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
|
||||
|
||||
HybridLocalPlanner:
|
||||
library_path: libhybrid_local_planner # thư viện chứa plugin
|
||||
max_forward_velocity: 1.0 # [m/s] vận tốc tiến tối đa
|
||||
max_reverse_velocity: 0.25 # [m/s] độ lớn vận tốc lùi tối đa
|
||||
avoidance_max_velocity: 0.4 # [m/s] vận tốc tối đa khi né vật cản
|
||||
max_angular_velocity: 0.6 # [rad/s] giới hạn vận tốc góc
|
||||
min_velocity: 0.0 # [m/s] sàn của cửa sổ động DWA
|
||||
min_yawrate: 0.05 # [rad/s] độ lớn quay tối thiểu khi DWA đã quyết định quay
|
||||
acc_lim_x: 0.5 # [m/s^2] cửa sổ DWA, tăng tốc
|
||||
decel_lim_x: 0.5 # [m/s^2] cửa sổ DWA, giảm tốc (độ lớn dương)
|
||||
acc_lim_theta: 3.2 # [rad/s^2] cửa sổ DWA, gia tốc góc
|
||||
output_acc_lim_x: 1.0 # [m/s^2] kẹp đầu ra, tịnh tiến
|
||||
output_acc_lim_theta: 2.0 # [rad/s^2] kẹp đầu ra, quay
|
||||
output_decel_lim_theta: 6.0 # [rad/s^2] kẹp đầu ra khi lệnh quay đi VỀ PHÍA 0
|
||||
output_decel_lim_x: 2.0 # [m/s^2] kẹp đầu ra khi lệnh đi VỀ PHÍA 0 (đang phanh)
|
||||
brake_margin: 0.15 # [m] biên trừ vào quãng đường còn lại trước khi tính trần phanh
|
||||
max_in_place_angular_velocity: 0.6 # [rad/s] trần tốc độ quay tại chỗ
|
||||
min_in_place_angular_velocity: 0.3 # [rad/s] sàn tốc độ quay tại chỗ
|
||||
min_turn_radius: 0.0 # [m] bán kính cua nhỏ nhất
|
||||
robot_radius: 0.1 # [m] bán kính robot, CHỈ dùng khi use_footprint = false
|
||||
footprint_padding: 0.07 # [m] nới footprint ra mọi phía để có biên an toàn
|
||||
use_footprint: true # true = kiểm va chạm theo footprint đa giác
|
||||
turn_around_priority: true # [bool] ưu tiên xoay tại chỗ khi lệch hướng lớn
|
||||
xy_goal_tolerance: 0.02 # [m] dung sai vị trí tại đích
|
||||
yaw_goal_tolerance: 0.02 # [rad] dung sai góc tại đích
|
||||
goal_away_margin: 0.01 # [m] ngưỡng tăng khoảng cách để phát hiện trôi xa goal
|
||||
goal_yaw_gain: 1.0 # [1/s] hệ số tỉ lệ của pha xoay cuối: omega = gain * sai_số_yaw
|
||||
goal_yaw_deadband: 0.08 # [rad/s] vùng chết của lệnh quay cuối tại goal
|
||||
max_global_plan_lookahead_dist: 4.0 # [m] chiều dài path tối đa để bám
|
||||
global_plan_viapoint_sep: 0.5 # [m] khoảng cách tối thiểu giữa các điểm trung gian
|
||||
global_plan_goal_sep: 0.05 # [m] khoảng cách lấy mẫu path gần goal
|
||||
predict_time: 1.5 # [s] thời gian dự báo quỹ đạo DWA
|
||||
sim_period: 0.1 # [s] bước thời gian dùng khi dựng cửa sổ động
|
||||
sim_time_samples: 10 # số bước mô phỏng trên mỗi quỹ đạo
|
||||
dwa_arrival_distance: 0.05 # [m] dung sai tới goal cục bộ của DWA
|
||||
dwa_in_place_turn_angle: 3.1416 # [rad] ngưỡng lệch hướng để DWA quay tại chỗ
|
||||
pp_weight_omega: 1.5 # hệ số nhân sai lệch hướng ra tốc độ quay
|
||||
pp_min_steering_velocity: 0.05 # [m/s] dưới ngưỡng này Pure Pursuit KHÔNG được ghi đè omega
|
||||
pp_reference_gain: 2.0 # trọng số sai lệch tốc độ quay so với Pure Pursuit
|
||||
pp_min_lookahead: 0.3 # [m] SÀN cho cự ly nhìn trước khi dựng tham chiếu lái
|
||||
pp_reference_min_distance: 0.5 # [m] khoảng cách cuối chặng để tắt tham chiếu Pure Pursuit
|
||||
obs_cost_gain: 1.3 # phạt tiến gần vật cản
|
||||
path_cost_gain: 2.5 # phạt lệch khỏi path toàn cục
|
||||
to_goal_cost_gain: 0.8 # thưởng cho quỹ đạo tiến gần goal
|
||||
speed_cost_gain: 0.5 # thưởng cho quỹ đạo chạy nhanh
|
||||
obs_range: 2.5 # [m] bán kính quét vật cản quanh robot
|
||||
segment_transition_threshold: 0.01 # [m] ngưỡng chuyển đoạn path
|
||||
use_obstacle_avoidance: true # [bool] bật né vật cản
|
||||
blend_start_distance: 3.0 # [m] vật cản xa hơn ngưỡng này thì coi như không có (b = 0)
|
||||
blend_end_distance: 3.0 # [m] vật cản gần hơn ngưỡng này thì coi như chắn hẳn (b = 1)
|
||||
use_avoidance_velocity_limit: false # true = khi path bị chắn thì hạ trần về avoidance_max_velocity
|
||||
creep_distance: 0.8 # [m] cự ly tới cuối chặng mà vùng bò chậm bắt đầu
|
||||
creep_margin: 0.3 # [m] cộng thêm vào quãng phanh khi tính ngưỡng
|
||||
creep_max_velocity: 0.4 # [m/s] trần trong vùng bò chậm (độ lớn, dùng cho cả hai chiều)
|
||||
creep_min_velocity: 0.05 # [m/s] tốc độ tiến tối thiểu trong vùng bò chậm
|
||||
creep_min_velocity_reverse: 0.01 # [m/s] sàn khi lùi (độ lớn)
|
||||
curve_max_velocity: 0.3 # [m/s] trần vận tốc khi đang trong khúc cua
|
||||
reject_collisions_always: false # false = chỉ loại quỹ đạo va chạm khi b > 0 (HÀNH VI CŨ)
|
||||
velocity_samples: 10 # số mẫu vận tốc trong cửa sổ động
|
||||
yawrate_samples: 20 # số mẫu tốc độ quay cho mỗi mức vận tốc
|
||||
turn_direction_th: 0.1 # [rad] ngưỡng lệch hướng tối thiểu để DWA coi là cần rẽ
|
||||
plan_tf_freeze: false # [bool] khóa transform của path theo chặng
|
||||
freeze_settle_cycles: 30 # [chu kỳ] số chu kỳ TF ổn định trước khi khóa
|
||||
freeze_settle_eps_xy: 0.005 # [m] bước dịch mỗi chu kỳ dưới ngưỡng này coi là yên
|
||||
freeze_settle_eps_yaw: 0.005 # [rad] bước quay mỗi chu kỳ dưới ngưỡng này coi là yên
|
||||
freeze_settle_timeout: 3.0 # [s] thời hạn chờ TF ổn định trước khi khóa
|
||||
tf_cache_max_age: 0.5 # [s] tuổi tối đa của transform đã cache
|
||||
debug_level: 0 # mức log chẩn đoán
|
||||
debug_command: true # [bool] bật log lệnh điều khiển
|
||||
debug_dwa: true # [bool] bật log DWA
|
||||
debug_purepursuit: true # [bool] bật log Pure Pursuit
|
||||
debug_mode: true # [bool] bật log chuyển chế độ
|
||||
debug_collision: true # [bool] bật log kiểm tra vật cản
|
||||
debug_goal: true # [bool] bật log trạng thái goal
|
||||
debug_tf: true # [bool] bật log TF
|
||||
debug_path: true # [bool] bật log bám path
|
||||
|
||||
HybridDockingLocalPlanner:
|
||||
library_path: libhybrid_local_planner # thư viện chứa plugin
|
||||
max_forward_velocity: 0.25 # [m/s] vận tốc tiến tối đa
|
||||
max_reverse_velocity: 0.2 # [m/s] độ lớn vận tốc lùi tối đa
|
||||
avoidance_max_velocity: 0.2 # [m/s] vận tốc tối đa khi né vật cản
|
||||
max_angular_velocity: 0.6 # [rad/s] giới hạn vận tốc góc
|
||||
min_velocity: 0.0 # [m/s] sàn của cửa sổ động DWA
|
||||
min_yawrate: 0.05 # [rad/s] độ lớn quay tối thiểu khi DWA đã quyết định quay
|
||||
acc_lim_x: 0.3 # [m/s^2] cửa sổ DWA, tăng tốc
|
||||
decel_lim_x: 0.5 # [m/s^2] cửa sổ DWA, giảm tốc (độ lớn dương)
|
||||
acc_lim_theta: 3.2 # [rad/s^2] cửa sổ DWA, gia tốc góc
|
||||
output_acc_lim_x: 1.0 # [m/s^2] kẹp đầu ra, tịnh tiến
|
||||
output_acc_lim_theta: 2.0 # [rad/s^2] kẹp đầu ra, quay
|
||||
output_decel_lim_theta: 6.0 # [rad/s^2] kẹp đầu ra khi lệnh quay đi VỀ PHÍA 0
|
||||
output_decel_lim_x: 2.0 # [m/s^2] kẹp đầu ra khi lệnh đi VỀ PHÍA 0 (đang phanh)
|
||||
brake_margin: 0.15 # [m] biên trừ vào quãng đường còn lại trước khi tính trần phanh
|
||||
max_in_place_angular_velocity: 0.6 # [rad/s] trần tốc độ quay tại chỗ
|
||||
min_in_place_angular_velocity: 0.3 # [rad/s] sàn tốc độ quay tại chỗ
|
||||
min_turn_radius: 0.0 # [m] bán kính cua nhỏ nhất
|
||||
robot_radius: 0.1 # [m] bán kính robot, CHỈ dùng khi use_footprint = false
|
||||
footprint_padding: 0.07 # [m] nới footprint ra mọi phía để có biên an toàn
|
||||
use_footprint: true # true = kiểm va chạm theo footprint đa giác
|
||||
turn_around_priority: false # [bool] ưu tiên xoay tại chỗ khi lệch hướng lớn
|
||||
xy_goal_tolerance: 0.015 # [m] dung sai vị trí tại đích
|
||||
yaw_goal_tolerance: 0.02 # [rad] dung sai góc tại đích
|
||||
goal_away_margin: 0.01 # [m] ngưỡng tăng khoảng cách để phát hiện trôi xa goal
|
||||
goal_yaw_gain: 1.0 # [1/s] hệ số tỉ lệ của pha xoay cuối: omega = gain * sai_số_yaw
|
||||
goal_yaw_deadband: 0.08 # [rad/s] vùng chết của lệnh quay cuối tại goal
|
||||
max_global_plan_lookahead_dist: 1.5 # [m] chiều dài path tối đa để bám
|
||||
global_plan_viapoint_sep: 0.25 # [m] khoảng cách tối thiểu giữa các điểm trung gian
|
||||
global_plan_goal_sep: 0.05 # [m] khoảng cách lấy mẫu path gần goal
|
||||
predict_time: 1.0 # [s] thời gian dự báo quỹ đạo DWA
|
||||
sim_period: 0.1 # [s] bước thời gian dùng khi dựng cửa sổ động
|
||||
sim_time_samples: 10 # số bước mô phỏng trên mỗi quỹ đạo
|
||||
dwa_arrival_distance: 0.05 # [m] dung sai tới goal cục bộ của DWA
|
||||
dwa_in_place_turn_angle: 3.1416 # [rad] ngưỡng lệch hướng để DWA quay tại chỗ
|
||||
pp_weight_omega: 2.0 # hệ số nhân sai lệch hướng ra tốc độ quay
|
||||
pp_min_steering_velocity: 0.05 # [m/s] dưới ngưỡng này Pure Pursuit KHÔNG được ghi đè omega
|
||||
pp_reference_gain: 2.0 # trọng số sai lệch tốc độ quay so với Pure Pursuit
|
||||
pp_min_lookahead: 0.3 # [m] SÀN cho cự ly nhìn trước khi dựng tham chiếu lái
|
||||
pp_reference_min_distance: 0.05 # [m] khoảng cách cuối chặng để tắt tham chiếu Pure Pursuit
|
||||
obs_cost_gain: 1.3 # phạt tiến gần vật cản
|
||||
path_cost_gain: 2.5 # phạt lệch khỏi path toàn cục
|
||||
to_goal_cost_gain: 0.8 # thưởng cho quỹ đạo tiến gần goal
|
||||
speed_cost_gain: 0.5 # thưởng cho quỹ đạo chạy nhanh
|
||||
obs_range: 2.5 # [m] bán kính quét vật cản quanh robot
|
||||
segment_transition_threshold: 0.01 # [m] ngưỡng chuyển đoạn path
|
||||
use_obstacle_avoidance: false # [bool] bật né vật cản
|
||||
blend_start_distance: 3.0 # [m] vật cản xa hơn ngưỡng này thì coi như không có (b = 0)
|
||||
blend_end_distance: 3.0 # [m] vật cản gần hơn ngưỡng này thì coi như chắn hẳn (b = 1)
|
||||
use_avoidance_velocity_limit: true # true = khi path bị chắn thì hạ trần về avoidance_max_velocity
|
||||
creep_distance: 0.8 # [m] cự ly tới cuối chặng mà vùng bò chậm bắt đầu
|
||||
creep_margin: 0.3 # [m] cộng thêm vào quãng phanh khi tính ngưỡng
|
||||
creep_max_velocity: 0.4 # [m/s] trần trong vùng bò chậm (độ lớn, dùng cho cả hai chiều)
|
||||
creep_min_velocity: 0.05 # [m/s] tốc độ tiến tối thiểu trong vùng bò chậm
|
||||
creep_min_velocity_reverse: 0.03 # [m/s] sàn khi lùi (độ lớn)
|
||||
curve_max_velocity: 0.3 # [m/s] trần vận tốc khi đang trong khúc cua
|
||||
reject_collisions_always: false # false = chỉ loại quỹ đạo va chạm khi b > 0 (HÀNH VI CŨ)
|
||||
velocity_samples: 10 # số mẫu vận tốc trong cửa sổ động
|
||||
yawrate_samples: 20 # số mẫu tốc độ quay cho mỗi mức vận tốc
|
||||
turn_direction_th: 0.1 # [rad] ngưỡng lệch hướng tối thiểu để DWA coi là cần rẽ
|
||||
plan_tf_freeze: true # [bool] khóa transform của path theo chặng
|
||||
freeze_settle_cycles: 20 # [chu kỳ] số chu kỳ TF ổn định trước khi khóa
|
||||
freeze_settle_eps_xy: 0.005 # [m] bước dịch mỗi chu kỳ dưới ngưỡng này coi là yên
|
||||
freeze_settle_eps_yaw: 0.005 # [rad] bước quay mỗi chu kỳ dưới ngưỡng này coi là yên
|
||||
freeze_settle_timeout: 3.0 # [s] thời hạn chờ TF ổn định trước khi khóa
|
||||
tf_cache_max_age: 0.5 # [s] tuổi tối đa của transform đã cache
|
||||
debug_level: 0 # mức log chẩn đoán
|
||||
debug_command: true # [bool] bật log lệnh điều khiển
|
||||
debug_dwa: true # [bool] bật log DWA
|
||||
debug_purepursuit: true # [bool] bật log Pure Pursuit
|
||||
debug_mode: true # [bool] bật log chuyển chế độ
|
||||
debug_collision: true # [bool] bật log kiểm tra vật cản
|
||||
debug_goal: true # [bool] bật log trạng thái goal
|
||||
debug_tf: true # [bool] bật log TF
|
||||
debug_path: true # [bool] bật log bám path
|
||||
|
||||
HybridRotateLocalPlanner:
|
||||
library_path: libhybrid_local_planner # thư viện chứa plugin
|
||||
max_angular_velocity: 0.5 # [rad/s] giới hạn vận tốc góc
|
||||
min_angular_velocity: 0.05 # [rad/s] độ lớn vận tốc quay tối thiểu
|
||||
angular_acceleration: 0.8 # [rad/s^2] gia tốc góc tối đa
|
||||
angular_deceleration: 0.6 # [rad/s^2] gia tốc hãm góc
|
||||
yaw_goal_tolerance: 0.02 # [rad] dung sai góc tại đích
|
||||
rot_stopped_velocity: 0.03 # [rad/s] ngưỡng tốc độ góc để xác nhận đã dừng
|
||||
control_period: 0.033333333 # [s] chu kỳ điều khiển danh định
|
||||
debug_state: true # đổi trạng thái: nhận goal mới, tới đích, từ chối chặng
|
||||
debug_command: true # [bool] bật log lệnh điều khiển
|
||||
debug_command_throttle_cycles: 20 # in tối đa 1 dòng debug_command mỗi ngần này chu kỳ
|
||||
71
config/runtime/lane_route_planner_params.yaml
Normal file
71
config/runtime/lane_route_planner_params.yaml
Normal file
@@ -0,0 +1,71 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/lane_route_planner_params.md
|
||||
LaneRoutePlanner:
|
||||
library_path: liblane_route_planner # [-] thư viện plugin LaneRoutePlanner
|
||||
min_turn_radius_m: 0.4 # [m] bán kính cua nhỏ nhất mà mọi tầng được dùng;
|
||||
corner_radii_m: [1.9, 1.75, 1.6, 1.45, 1.3, 1.18, 1.08, 0.9, 0.75, 0.6, 0.5, 0.4] # [m] các bán kính góc cua thử theo thứ tự
|
||||
regular_turn_radius_m: 1.06 # [m] bậc thang bán kính
|
||||
max_kink_deg: 45.0 # [deg] góc gãy tối đa giữa các đoạn path
|
||||
clearance_min_margin_m: 0.035 # [m] biên bắt buộc cộng vào inscribed radius;
|
||||
clearance_preferred_margin_m: 0.30 # [m] biên ưu tiên cộng vào inscribed radius;
|
||||
collision_check_margin_m: 0.056 # [m] biên kích hoạt kiểm footprint đầy đủ
|
||||
footprint_min_gap_m: 0.03 # [m] khoảng hở bắt buộc từ footprint đến ô lethal;
|
||||
zone_transition_m: 1.0 # [m] chiều dài ngoại lệ chuyển tiếp zone
|
||||
zone_deviation_weight: 2.0 # [m chi phí/m tại lệch 45 độ] phạt đường đi lệch hướng zone;
|
||||
output_endpoint_spins: false # [bool] có xuất chuỗi pose quay tại chỗ ở đầu và cuối path hay không
|
||||
footprint_gap_shortcut_raise_m: [0.05, 0.10] # [m] mức tăng clearance khi thử lại đường thiếu khoảng hở;
|
||||
deviation_ladder_deg: [0.0] # [độ] bậc lệch nghiêm ngặt thử trước giới hạn của direction field;
|
||||
route_too_long_ratio: 1.5 # [-] tỷ lệ cũ giữ để tương thích
|
||||
route_too_long_margin_m: 2.0 # [m] biên cũ giữ để tương thích
|
||||
suspicious_ratio: 1.3 # [tỷ lệ] ngưỡng kích hoạt kiểm tra đường vòng;
|
||||
suspicious_margin_m: 2.0 # [m] biên cộng của ngưỡng kích hoạt kiểm tra;
|
||||
max_route_attempts: 24 # [lần] số lần thử tuyến mỗi lượt;
|
||||
time_limit_s: 20.0 # [s] giới hạn thời gian chung;
|
||||
output_step_m: 0.04 # [m] khoảng cách các pose đầu ra;
|
||||
live_ridge_pad_m: 6.0 # [m] biên cửa sổ dựng lại ridge quanh start và goal;
|
||||
live_ridge_max_cells: 1500000 # [ô] số ô tối đa trong cửa sổ ridge;
|
||||
detour_upgrade_enabled: true # [bool] thử lattice khi graph ra đường vòng đáng ngờ
|
||||
detour_upgrade_time_limit_s: 2.0 # [s] ngân sách thời gian cho lần thử lattice
|
||||
detour_upgrade_min_saving: 0.15 # [tỷ lệ 0..1) mức giảm chi phí tối thiểu để nhận lattice
|
||||
detour_upgrade_max_extra_zone_deviation_m: 0.5 # [m] chiều dài lệch hướng zone được tăng thêm tối đa
|
||||
lattice_enabled: true # [bool] bật tìm SE(2) sau khi graph không tìm được đường;
|
||||
lattice_tight_arcs: false # [bool] true cho lattice dùng thêm cung gắt ở min_turn_radius_m
|
||||
lattice_tight_turn_cost_m: 0.15 # [m] phí cộng thêm cho mỗi 5 độ quay trên cung gắt của lattice;
|
||||
lattice_preferred_gap_m: 0.15 # [m] khe ưu tiên từ footprint đến ô lethal/unknown;
|
||||
lattice_preferred_time_fraction: 0.25 # [-] tỷ lệ thời gian tìm đường ưu tiên
|
||||
lattice_smooth_enabled: true # [bool] true làm mượt path lattice trong ngân sách fallback;
|
||||
lattice_smooth_max_checks: 450000 # [lần kiểm tra] ngân sách làm mượt tối đa;
|
||||
lattice_heading_bins: 72 # [bins/vòng] số hướng rời rạc;
|
||||
lattice_closed_resolution_m: 0.10 # [m] kích thước ô tìm kiếm x/y tối đa;
|
||||
lattice_heuristic_weight: 3.0 # [hệ số] trọng số heuristic A*;
|
||||
lattice_bucket_width_m: 0.25 # [m] bề rộng nhóm ưu tiên FIFO;
|
||||
lattice_field_clearance_weight_m: 0.25 # [m] trọng số khoảng hở trong trường heuristic;
|
||||
lattice_wall_weight_m: 0.25 # [m] trọng số khoảng hở trong chi phí tìm đường;
|
||||
lattice_switch_cost_m: 0.35 # [m] phạt đổi dấu lái khác 0;
|
||||
lattice_steer_cost_m: 0.012 # [m/bước] phạt bước cong;
|
||||
lattice_primitive_multiple_1: 1 # [bước] bội số primitive thứ nhất;
|
||||
lattice_primitive_multiple_2: 3 # [bước] bội số primitive thứ hai;
|
||||
lattice_primitive_multiple_3: 6 # [bước] bội số primitive thứ ba;
|
||||
lattice_analytic_radius_m: 1.08 # [m] bán kính nối analytic;
|
||||
lattice_analytic_interval: 20000 # [trạng thái] khoảng cách giữa các lần thử nối analytic;
|
||||
lattice_analytic_near_goal_m: 2.0 # [m] gần goal trong khoảng này sẽ thử nối analytic;
|
||||
lattice_analytic_goal_headings: 16 # [hướng] số hướng đến goal cho tập nối analytic;
|
||||
lattice_field_extra_clearance_m: 0.1 # [m] biên khoảng hở trong heuristic lattice
|
||||
lattice_field_standability_relax_m: 0.035 # [m] mức nới footprint của heuristic lattice
|
||||
lattice_field_zone_margin_deg: 15.0 # [deg] biên góc zone của heuristic lattice
|
||||
lattice_alt_field_enabled: true # [bool] field heuristic thứ hai
|
||||
lattice_alt_field_relax_m: 0.035 # [m] mức nới của field thứ hai
|
||||
lattice_alt_field_switch_fraction: 0.35 # [-] tỷ lệ thời gian trước khi đổi field
|
||||
lattice_field_time_fraction: 0.4 # [tỷ lệ] phần thời gian mỗi bậc fallback dành dựng field;
|
||||
lattice_field_cell_factor: 0 # [lần] hệ số gộp ô field;
|
||||
lattice_field_max_cells: 1000000 # [ô] giới hạn ô để tự chọn độ phân giải field;
|
||||
fallback_time_limit_s: 10.0 # [s] ngân sách chung cho các bậc fallback và smoothing;
|
||||
lattice_end_relax_radius_m: 1.0 # [m] bán kính nới khoảng hở C-space gần start/goal;
|
||||
lattice_max_memory_mb: 512 # [MiB] giới hạn bộ nhớ lattice được theo dõi;
|
||||
|
||||
debug:
|
||||
fallback: true # [bool] true ghi một dòng debug khi lattice đã chạy;
|
||||
dump_dir: /tmp/lane_route_dumps # [-] thư mục ghi dữ liệu plan thất bại
|
||||
dump_max_files: 20 # [file] số lần ghi tối đa mỗi phiên planner;
|
||||
|
||||
debug_plan: true # [bool] true ghi thông tin lập plan;
|
||||
debug_state: true # [bool] true ghi trạng thái planner;
|
||||
39
config/runtime/maker_sources.yaml
Normal file
39
config/runtime/maker_sources.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/maker_sources.md
|
||||
maker_sources: trolley charger dock_station pallet wall_station # [-] allow-list marker docking
|
||||
|
||||
docking_marker_profiles:
|
||||
trolley:
|
||||
global_planner: DockPlanner # [-] global planner của marker
|
||||
local_planner: HybridDockingLocalPlanner # [-] local planner của marker
|
||||
dock_anchor: center # [-] vị trí goal đối với dock
|
||||
footprint_dock: [[0.255,-0.395],[0.255,0.395],[-0.255,0.395],[-0.255,-0.395]] # [m] đa giác đối tượng dock
|
||||
|
||||
charger:
|
||||
global_planner: DockPlanner # [-] global planner của marker
|
||||
local_planner: HybridDockingLocalPlanner # [-] local planner của marker
|
||||
dock_anchor: mating_edge # [-] vị trí goal đối với dock
|
||||
footprint_dock: [] # [m] đa giác đối tượng dock
|
||||
dock_face_offset: 0.40 # [m] khoảng cách từ goal tới mặt dock
|
||||
dock_pivot_safety_margin: 0.0 # [m] khoảng hở thêm khi xoay
|
||||
|
||||
dock_station:
|
||||
global_planner: DockPlanner # [-] global planner của marker
|
||||
local_planner: HybridDockingLocalPlanner # [-] local planner của marker
|
||||
dock_anchor: center # [-] vị trí goal đối với dock
|
||||
footprint_dock: [[0.583,-0.48],[0.583,0.48],[-0.583,0.48],[-0.583,-0.48]] # [m] đa giác đối tượng dock
|
||||
|
||||
pallet:
|
||||
global_planner: DockPlanner # [-] global planner của marker
|
||||
local_planner: HybridDockingLocalPlanner # [-] local planner của marker
|
||||
dock_anchor: face # [-] vị trí goal đối với dock
|
||||
footprint_dock: [[0.5,-0.5],[0.5,0.5],[-0.5,0.5],[-0.5,-0.5]] # [m] đa giác đối tượng dock
|
||||
|
||||
wall_station:
|
||||
global_planner: DockPlanner # [-] global planner của marker
|
||||
local_planner: HybridDockingLocalPlanner # [-] local planner của marker
|
||||
dock_anchor: mating_edge # [-] vị trí goal đối với dock
|
||||
footprint_dock: [] # [m] đa giác đối tượng dock
|
||||
dock_face_offset: 0.4 # [m] khoảng cách từ goal tới mặt dock
|
||||
dock_pivot_safety_margin: 0.5 # [m] khoảng hở thêm khi xoay
|
||||
dock_straight_length: 0.5 # [m] chiều dài đoạn thẳng cuối
|
||||
dock_maximum_cusp_distance: 2.0 # [m] trần đoạn cusp tới goal
|
||||
24
config/runtime/mission_adapters_params.yaml
Normal file
24
config/runtime/mission_adapters_params.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/mission_adapters_params.md
|
||||
mission_adapters:
|
||||
mission_sources:
|
||||
- {name: goal_src, type: GoalSourceAdapter} # [-] instance và symbol nguồn mission
|
||||
- {name: vda5050_src, type: VDA5050SourceAdapter} # [-] instance và symbol nguồn mission
|
||||
- {name: instant_src, type: InstantActionSourceAdapter} # [-] instance và symbol nguồn mission
|
||||
|
||||
mission_timeout: 0.0 # [s] thời hạn tối đa một chặng
|
||||
clear_queue_on_failure: true # [bool] xoá hàng đợi khi chặng lỗi
|
||||
|
||||
vda5050_src:
|
||||
global_frame: map # [frame] frame goal/start VDA5050
|
||||
|
||||
instant_src:
|
||||
compound_actions_from: vda5050_src # [-] namespace bảng compound action dùng chung
|
||||
|
||||
GoalSourceAdapter:
|
||||
library_path: libmission_adapters_goal_source
|
||||
|
||||
VDA5050SourceAdapter:
|
||||
library_path: libmission_adapters_vda5050_source
|
||||
|
||||
InstantActionSourceAdapter:
|
||||
library_path: libmission_adapters_vda5050_source
|
||||
67
config/runtime/move_base_common_params.yaml
Normal file
67
config/runtime/move_base_common_params.yaml
Normal file
@@ -0,0 +1,67 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/move_base_common_params.md
|
||||
position:
|
||||
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
|
||||
local_planner: HybridDockingLocalPlanner # [-] local planner của profile
|
||||
|
||||
go_straight:
|
||||
global_planner: TwoPointsPlanner # [-] global planner của profile
|
||||
local_planner: HybridDockingLocalPlanner # [-] local planner của profile
|
||||
|
||||
rotate:
|
||||
global_planner: TwoPointsPlanner # [-] global planner của profile
|
||||
local_planner: HybridRotateLocalPlanner # [-] local planner của profile
|
||||
|
||||
backup_global_planner: SBPLLatticePlanner # [-] planner dự phòng cho position
|
||||
|
||||
sensors:
|
||||
laser_sor_enabled: false # [bool] lọc nhiễu LaserScan trước costmap
|
||||
laser_sor_mean_k: 10 # [điểm] số láng giềng tính nhiễu
|
||||
laser_sor_stddev_mul: 1.0 # [-] ngưỡng outlier = mean + hệ_số * stddev
|
||||
|
||||
controller_frequency: 30.0 # [Hz] tần số control loop
|
||||
controller_patience: 0.033333333 # [s] thời gian chờ controller ra lệnh
|
||||
sensor_patience: 2.0 # [s] thời gian chờ costmap hết stale
|
||||
planner_frequency: 0.0 # [Hz] tần số replan nền
|
||||
costmap_ready_timeout: 0.0 # [s] thời gian chờ costmap sẵn sàng
|
||||
planner_patience: 25.0 # [s] Ở PLANNING quá lâu mà chưa có plan -> recovery
|
||||
max_planning_retries: 0 # [-] số lần lập plan HỎNG liên tiếp được phép trước khi leo thang
|
||||
oscillation_timeout: -1 # [s] thời gian tối đa không thoát vùng quẩn
|
||||
action_patience: 0.0 # [s] trần thời gian cho MỘT action (EXECUTING_ACTIONS), tính từ lúc start
|
||||
oscillation_distance: 0.5 # [m] quãng tiến độ đặt lại trạng thái quẩn
|
||||
recovery_reset_min_travel: 0.10 # [m] quãng đi tối thiểu để nạp lại recovery
|
||||
settle_timeout: 2.0 # [s] thời gian chờ runtime dừng hẳn
|
||||
stopped_measured_linear_eps: 0.02 # [m/s] ngưỡng odom coi là dừng tịnh tiến
|
||||
stopped_measured_angular_eps: 0.02 # [rad/s] ngưỡng odom coi là ngừng quay
|
||||
command_semantics: twist # [-] cách diễn giải lệnh Twist
|
||||
max_vel_x: 1.20 # [m/s] trần tốc độ tiến (semantics steering: tốc độ bánh steer)
|
||||
min_vel_x: -0.30 # [m/s] trần tốc độ lùi, ÂM
|
||||
max_vel_theta: 1.5708 # [rad/s hoặc rad] trần quay hoặc góc lái
|
||||
acc_lim_x: 1.0 # [m/s^2] trần biến thiên tốc độ dài, áp cho cả tăng lẫn giảm
|
||||
acc_lim_theta: 1.20 # [rad/s² hoặc rad/s] trần gia tốc quay hoặc tốc độ lái
|
||||
runtime_stats_period: 0.0 # [s] chu kỳ thống kê runtime
|
||||
recovery_namespace: recovery # [-] namespace recovery
|
||||
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: false # [bool] Bật/tắt toàn bộ recovery
|
||||
|
||||
MoveBase:
|
||||
library_path: libmove_base2 # [-] thư viện plugin move_base2
|
||||
|
||||
watchdog_period: 0.0 # [s] chu kỳ kiểm watchdog
|
||||
planner_timeout: 15.0 # [s] ngân sách watchdog cho global planner
|
||||
local_planner_call_budget: 0.5 # [s] ngân sách watchdog cho local planner
|
||||
recovery_stall_budget: 5.0 # [s] ngân sách watchdog cho recovery
|
||||
action_stall_budget: 0.0 # [s] action handler bận mà không nhích quá đây = treo
|
||||
control_loop_stall_budget: 0.5 # [s] ngân sách watchdog cho control loop
|
||||
|
||||
debug:
|
||||
state: true # [bool] log chuyển state
|
||||
plan: true # [bool] log nhận và từ chối plan
|
||||
skip: true # [bool] log lý do bỏ qua controller
|
||||
env: false # [bool] log tóm tắt EnvMonitor
|
||||
1335
config/runtime/mprim/diff_r106_tip3_5cm.mprim
Normal file
1335
config/runtime/mprim/diff_r106_tip3_5cm.mprim
Normal file
File diff suppressed because it is too large
Load Diff
1203
config/runtime/mprim/unicycle_5cm.mprim
Executable file
1203
config/runtime/mprim/unicycle_5cm.mprim
Executable file
File diff suppressed because it is too large
Load Diff
1683
config/runtime/mprim/unicycle_5cm_expensive_turn_in_place.mprim
Executable file
1683
config/runtime/mprim/unicycle_5cm_expensive_turn_in_place.mprim
Executable file
File diff suppressed because it is too large
Load Diff
1683
config/runtime/mprim/unicycle_5cm_expensive_turn_in_place_highcost.mprim
Executable file
1683
config/runtime/mprim/unicycle_5cm_expensive_turn_in_place_highcost.mprim
Executable file
File diff suppressed because it is too large
Load Diff
2403
config/runtime/mprim/unicycle_5cm_noreverse_trolley.mprim
Executable file
2403
config/runtime/mprim/unicycle_5cm_noreverse_trolley.mprim
Executable file
File diff suppressed because it is too large
Load Diff
1683
config/runtime/mprim/unicycle_highcost_10cm.mprim
Executable file
1683
config/runtime/mprim/unicycle_highcost_10cm.mprim
Executable file
File diff suppressed because it is too large
Load Diff
1683
config/runtime/mprim/unicycle_highcost_1cm.mprim
Executable file
1683
config/runtime/mprim/unicycle_highcost_1cm.mprim
Executable file
File diff suppressed because it is too large
Load Diff
1683
config/runtime/mprim/unicycle_highcost_2_5cm.mprim
Executable file
1683
config/runtime/mprim/unicycle_highcost_2_5cm.mprim
Executable file
File diff suppressed because it is too large
Load Diff
1683
config/runtime/mprim/unicycle_highcost_2cm.mprim
Executable file
1683
config/runtime/mprim/unicycle_highcost_2cm.mprim
Executable file
File diff suppressed because it is too large
Load Diff
1683
config/runtime/mprim/unicycle_highcost_5cm.mprim
Executable file
1683
config/runtime/mprim/unicycle_highcost_5cm.mprim
Executable file
File diff suppressed because it is too large
Load Diff
199
config/runtime/pnkx_local_planner_params.yaml
Normal file
199
config/runtime/pnkx_local_planner_params.yaml
Normal file
@@ -0,0 +1,199 @@
|
||||
yaw_goal_tolerance: 0.03
|
||||
xy_goal_tolerance: 0.02
|
||||
min_approach_linear_velocity: 0.05
|
||||
|
||||
LocalPlannerAdapter:
|
||||
library_path: liblocal_planner_adapter
|
||||
PNKXLocalPlanner:
|
||||
# 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:
|
||||
# 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:
|
||||
# Algorithm
|
||||
library_path: libpnkx_local_planner
|
||||
trajectory_generator_name: LimitedAccelGenerator
|
||||
algorithm_nav_name: MKTAlgorithmDiffGoStraight
|
||||
# Goal checking
|
||||
goal_checker_name: GoalChecker
|
||||
|
||||
PNKXRotateLocalPlanner:
|
||||
# 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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
|
||||
SimpleGoalChecker:
|
||||
library_path: libmkt_plugins_goal_checker
|
||||
77
config/runtime/recovery_behaviors_params.yaml
Normal file
77
config/runtime/recovery_behaviors_params.yaml
Normal file
@@ -0,0 +1,77 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/recovery_behaviors_params.md
|
||||
recovery:
|
||||
behaviors:
|
||||
- {name: wait, type: WaitRecovery} # instance và symbol
|
||||
- {name: clear, type: ClearCostmapRecovery} # instance và symbol
|
||||
- {name: detour_path, type: DetourPathRecovery} # instance và symbol
|
||||
- {name: rotate, type: RotateRecovery} # instance và symbol
|
||||
- {name: back_up, type: BackUpRecovery} # instance và symbol
|
||||
|
||||
routes:
|
||||
planning_failed: [wait, clear] # chuỗi recovery khi lập đường thất bại
|
||||
controlling_failed: [clear, detour_path] # chuỗi recovery khi controller không ra lệnh
|
||||
oscillation: [detour_path] # chuỗi recovery khi phát hiện dao động
|
||||
path_blocked: [detour_path] # chuỗi recovery khi đường bị chặn
|
||||
off_path: [detour_path] # chuỗi recovery cho sự kiện lệch đường
|
||||
collision: [detour_path] # chuỗi recovery khi phát hiện va chạm
|
||||
|
||||
wait:
|
||||
wait_duration: 3.0 # [s] thời gian đứng yên
|
||||
|
||||
clear:
|
||||
reset_distance: 6.0 # [m] cạnh vùng vuông quanh robot sẽ bị xoá
|
||||
invert_area_to_clear: true # [bool] xóa ngoài thay vì trong vùng
|
||||
affected_maps: local # local | global | both — costmap nào bị xoá
|
||||
layer_names: [lidar_obstacles, depth_obstacles] # phải khớp `plugins:` của costmap
|
||||
|
||||
rotate:
|
||||
full_rotation: true # true = quay đủ 2*pi để costmap thấy toàn bộ xung quanh
|
||||
target_angle: 6.283185307179586 # [rad] góc quay mặc định khi không yêu cầu quay đủ vòng
|
||||
angular_speed: 0.4 # [rad/s] độ lớn tốc độ quay
|
||||
acc_lim_theta: 0.8 # [rad/s^2] ramp gia tốc, tránh giật khi có tải
|
||||
sim_granularity: 0.1 # [rad] bước kiểm tra footprint khi quay
|
||||
timeout: 20.0 # [s] thời hạn tối đa
|
||||
|
||||
detour_path:
|
||||
planner_name: SBPLDetourPlanner # namespace tham số của planner detour
|
||||
planner_symbol: SBPLLatticePlanner # symbol plugin của planner detour
|
||||
costmap_source: combined # local | global | combined — lưới mà SBPL lập đường trên đó
|
||||
attempts_per_run: 3 # số lượt lập đường tối đa trong MỘT lần chạy behavior
|
||||
rejoin_on: reference # tuyến để đo độ lệch (2026-08-05e)
|
||||
max_deviation: 0.0 # [m] hành lang lệch tuyến cho phép quanh tuyến `rejoin_on`
|
||||
lock_costmap: true # true = giữ mutex costmap trong lúc đọc dữ liệu lập đường
|
||||
timeout: 10.0 # [s] thời hạn tối đa
|
||||
|
||||
back_up:
|
||||
backup_distance: 0.1 # [m] quãng lùi mặc định khi caller không chỉ định
|
||||
backup_distance_max: 1.0 # [m] quãng lùi tối đa cho phép
|
||||
linear_speed: 0.1 # [m/s] độ lớn tốc độ lùi
|
||||
acc_lim_x: 0.3 # [m/s^2] ramp gia tốc
|
||||
timeout: 15.0 # [s] thời hạn tối đa
|
||||
|
||||
WaitRecovery:
|
||||
library_path: librecovery_core_wait_recovery # thư viện chứa plugin
|
||||
|
||||
ClearCostmapRecovery:
|
||||
library_path: librecovery_core_clear_costmap_recovery # thư viện chứa plugin
|
||||
|
||||
RotateRecovery:
|
||||
library_path: librecovery_core_rotate_recovery # thư viện chứa plugin
|
||||
|
||||
BackUpRecovery:
|
||||
library_path: librecovery_core_back_up_recovery # thư viện chứa plugin
|
||||
|
||||
DetourPathRecovery:
|
||||
library_path: libsbpl_recovery # thư viện chứa plugin
|
||||
|
||||
SBPLDetourPlanner:
|
||||
environment_type: XYThetaLattice # kiểu môi trường tìm kiếm
|
||||
planner_type: ARAPlanner # thuật toán tìm kiếm
|
||||
allocated_time: 25.0 # [s] thời gian tối đa cho một lượt SBPL
|
||||
initial_epsilon: 1.0 # hệ số nới heuristic ban đầu của ARA*
|
||||
force_scratch_limit: 10000 # số ô costmap thay đổi tối đa để lập plan tăng dần
|
||||
forward_search: true # hướng tìm kiếm: true = từ start tới goal
|
||||
free_start_heading: true # [bool] cho phép tìm đường với heading đầu tự do
|
||||
nominalvel_mpersecs: 0.3 # [m/s] vận tốc danh định dùng tính chi phí
|
||||
timetoturn45degsinplace_secs: 1.31 # [s] thời gian quay 45 độ dùng tính chi phí
|
||||
primitive_filename: mprim/diff_r106_tip3_5cm.mprim # đường dẫn file motion primitive
|
||||
16
config/runtime/sbpl_global_params.yaml
Normal file
16
config/runtime/sbpl_global_params.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/sbpl_global_params.md
|
||||
SBPLLatticePlanner:
|
||||
library_path: libsbpl_lattice_planner
|
||||
environment_type: XYThetaLattice # [-] kiểu môi trường SBPL
|
||||
planner_type: ARAPlanner # [-] thuật toán tìm kiếm SBPL
|
||||
allocated_time: 10.0 # [s] ngân sách lập plan
|
||||
initial_epsilon: 1.0 # [-] epsilon khởi đầu của search
|
||||
force_scratch_limit: 10000 # [ô] ngưỡng thay đổi để search lại từ đầu
|
||||
forward_search: true # [bool] chiều tìm kiếm
|
||||
free_start_heading: true # [bool] nới heading xuất phát
|
||||
allow_unknown: true # [bool] cho phép đi qua ô unknown
|
||||
debug_plan: true # [bool] log thông tin lập plan
|
||||
debug_grid_window: 0 # [ô] bán kính cửa sổ log ASCII
|
||||
nominalvel_mpersecs: 0.3 # [m/s] tốc độ danh định SBPL
|
||||
timetoturn45degsinplace_secs: 1.31 # [s] thời gian quay 45 độ
|
||||
primitive_filename: mprim/diff_r106_tip3_5cm.mprim # [-] file motion primitive
|
||||
14
config/runtime/sensor_store_params.yaml
Normal file
14
config/runtime/sensor_store_params.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/sensor_store_params.md
|
||||
sensor_store:
|
||||
report_period: 5.0 # [s] chu kỳ log trạng thái kho
|
||||
|
||||
sensors:
|
||||
- topic: /f_scan # [topic] tên luồng cảm biến
|
||||
data_type: LaserScan # [-] kiểu dữ liệu cảm biến
|
||||
capacity: 1 # [-] số mẫu giữ lại
|
||||
max_age: 0.5 # [s] tuổi tối đa của mẫu
|
||||
|
||||
- topic: /b_scan # [topic] tên luồng cảm biến
|
||||
data_type: LaserScan # [-] kiểu dữ liệu cảm biến
|
||||
capacity: 1 # [-] số mẫu giữ lại
|
||||
max_age: 0.5 # [s] tuổi tối đa của mẫu
|
||||
4
config/runtime/two_points_global_params.yaml
Normal file
4
config/runtime/two_points_global_params.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
# Hướng dẫn: doc/config_guide/runtime/two_points_global_params.md
|
||||
TwoPointsPlanner:
|
||||
library_path: libtwo_points_planner
|
||||
lethal_obstacle: 20 # [-] cost lethal trong hàm chuyển đổi
|
||||
Reference in New Issue
Block a user