docs: viết lại comment các file config bằng tiếng Việt

File YAML là thứ người vận hành mở ra sửa khi đứng cạnh robot, nên comment phải
đọc hiểu ngay. Mỗi tham số ghi đủ đơn vị, ý nghĩa và hệ quả khi tăng/giảm. Tên
key, plugin, frame, topic và thuật ngữ đã chuẩn hoá giữ nguyên tiếng Anh.
Không đổi một giá trị nào.
This commit is contained in:
2026-08-15 13:37:50 +07:00
parent 0c45d5491a
commit 31c5b218cb
6 changed files with 248 additions and 209 deletions

View File

@@ -5,37 +5,37 @@ min_approach_linear_velocity: 0.05
LocalPlannerAdapter:
library_path: liblocal_planner_adapter
PNKXLocalPlanner:
# Algorithm
# Thuật toán
library_path: libpnkx_local_planner
trajectory_generator_name: LimitedAccelGenerator
algorithm_nav_name: MKTAlgorithmDiffPredictiveTrajectory
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal
# Goal checking
# Bộ kiểm tra đã tới goal
goal_checker_name: GoalChecker
PNKXDockingLocalPlanner:
# Algorithm
# Thuật toán
library_path: libpnkx_local_planner
trajectory_generator_name: LimitedAccelGenerator
algorithm_nav_name: MKTAlgorithmDiffPredictiveTrajectory
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal
# Goal checking
# Bộ kiểm tra đã tới goal
goal_checker_name: GoalChecker
PNKXGoStraightLocalPlanner:
# Algorithm
# Thuật toán
library_path: libpnkx_local_planner
trajectory_generator_name: LimitedAccelGenerator
algorithm_nav_name: MKTAlgorithmDiffGoStraight
# Goal checking
# Bộ kiểm tra đã tới goal
goal_checker_name: GoalChecker
PNKXRotateLocalPlanner:
# Algorithm
# Thuật toán
library_path: libpnkx_local_planner
algorithm_rotate_name: MKTAlgorithmDiffRotateToGoal
trajectory_generator_name: LimitedAccelGenerator
# Goal checking
# Bộ kiểm tra đã tới goal
goal_checker_name: SimpleGoalChecker
stateful: true
@@ -44,23 +44,23 @@ LimitedAccelGenerator:
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_vel_y: 0.0 # robot vi sai: không có chuyển động ngang
min_vel_y: 0.0 # robot vi sai: không có chuyển động ngang
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_speed_xy: 2.0 # [m/s] trần tốc độ tịnh tiến. Đặt thấp hơn khả năng thật của base một chút
min_speed_xy: 0.25 # [m/s] tốc độ tịnh tiến tối thiểu khi gần như không quay
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
max_vel_theta: 0.4 # [rad/s] trần tốc độ quay. Đặt thấp hơn khả năng thật của base một chút
min_vel_theta: 0.05 # [rad/s] tốc độ quay tối thiểu khi gần như không tịnh tiến
acc_lim_x: 3.0
acc_lim_y: 0.0 # diff drive robot
acc_lim_y: 0.0 # robot vi sai: không có chuyển động ngang
acc_lim_theta: 1.5
decel_lim_x: -3.0
decel_lim_y: -0.0
decel_lim_theta: -2.0
# Whether to split the path into segments or not
# Có cắt path thành từng chặng hay không
split_path: true
sim_time: 1.5
vx_samples: 15
@@ -69,7 +69,7 @@ LimitedAccelGenerator:
discretize_by_time: true
angular_granularity: 0.05
linear_granularity: 0.1
# sim_period
# sim_period: lấy theo chu kỳ điều khiển
include_last_point: true
MKTAlgorithmDiffPredictiveTrajectory:
@@ -79,7 +79,8 @@ MKTAlgorithmDiffPredictiveTrajectory:
index_samples: 60
follow_step_path: true
# Kalman filter tuning (filters v and w commands)
# Chỉnh bộ lọc Kalman (lọc lệnh v và w trước khi gửi xuống base).
# q_* = nhiễu quá trình, r_* = nhiễu đo. Tăng r_* -> lọc mạnh, lệnh mượt nhưng chậm đáp ứng
kf_q_v: 0.25
kf_q_w: 0.8
kf_r_v: 0.05
@@ -87,25 +88,26 @@ MKTAlgorithmDiffPredictiveTrajectory:
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)
# ----- Điểm nhìn trước (lookahead) -----
use_velocity_scaled_lookahead_dist: true # true = cự ly nhìn trước co giãn theo vận tốc; false = dùng cố định lookahead_dist. (mặc định: false)
# chỉ có tác dụng khi cờ trên = false:
lookahead_dist: 0.5 # [m] cự ly nhìn trước cố định để chọn điểm bám. (mặc định: 0.6)
# chỉ có tác dụng khi cờ trên = true:
min_lookahead_dist: 0.6 # [m] cận dưới của cự ly nhìn trước. Nhỏ quá thì robot lắc ở tốc độ thấp. (mặc định: 0.3)
max_lookahead_dist: 2.0 # [m] cận trên của cự ly nhìn trước. Lớn quá thì robot cắt cua. (mặc định: 0.9)
lookahead_time: 1.9 # [s] nhân với vận tốc hiện tại ra cự ly nhìn trước, tức hệ số lookahead. (mặc định: 1.5)
min_journey_squared: 0.2 # [m^2] quãng đường bình phương tối thiểu mới xét tới goal (mặc định: 0.2)
max_journey_squared: 0.5 # [m^2] quãng đường bình phương tối đa còn xét tới goal (mặc định: 0.2)
max_lateral_accel: 0.9 # [m/s^2] trần gia tốc ngang, dùng để tự giảm tốc khi vào cua
# 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)
# ----- Quay tại chỗ về đúng hướng -----
# Chỉ được bật MỘT trong hai: use_rotate_to_heading hoặc allow_reversing
use_rotate_to_heading: true # Cho phép quay tại chỗ về hướng path và về hướng goal. Nên bật với mọi robot quay tại chỗ được. (mặc định: true)
# chỉ có tác dụng khi cờ trên = true:
rotate_to_heading_min_angle: 0.03 # [rad] lệch hướng giữa path và robot vượt ngưỡng này thì quay tại chỗ trước khi chạy. (mặc định: 0.785)
angular_decel_zone: 0.1
# stoped
# Ngưỡng coi robot là ĐÃ DỪNG
rot_stopped_velocity: 0.03
trans_stopped_velocity: 0.03
@@ -124,25 +126,26 @@ MKTAlgorithmDiffGoStraight:
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)
# ----- Điểm nhìn trước (lookahead) -----
use_velocity_scaled_lookahead_dist: true # true = cự ly nhìn trước co giãn theo vận tốc; false = dùng cố định lookahead_dist. (mặc định: false)
# chỉ có tác dụng khi cờ trên = false:
lookahead_dist: 0.5 # [m] cự ly nhìn trước cố định để chọn điểm bám. (mặc định: 0.6)
# chỉ có tác dụng khi cờ trên = true:
min_lookahead_dist: 0.6 # [m] cận dưới của cự ly nhìn trước. Nhỏ quá thì robot lắc ở tốc độ thấp. (mặc định: 0.3)
max_lookahead_dist: 2.0 # [m] cận trên của cự ly nhìn trước. Lớn quá thì robot cắt cua. (mặc định: 0.9)
lookahead_time: 2.0 # [s] nhân với vận tốc hiện tại ra cự ly nhìn trước, tức hệ số lookahead. (mặc định: 1.5)
min_journey_squared: 1.0 # [m^2] quãng đường bình phương tối thiểu mới xét tới goal (mặc định: 0.2)
max_journey_squared: 1.0 # [m^2] quãng đường bình phương tối đa còn xét tới goal (mặc định: 0.2)
max_lateral_accel: 0.9 # [m/s^2] trần gia tốc ngang, dùng để tự giảm tốc khi vào cua
# 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)
# ----- Quay tại chỗ về đúng hướng -----
# Chỉ được bật MỘT trong hai: use_rotate_to_heading hoặc allow_reversing
use_rotate_to_heading: true # Cho phép quay tại chỗ về hướng path và về hướng goal. Nên bật với mọi robot quay tại chỗ được. (mặc định: true)
# chỉ có tác dụng khi cờ trên = true:
rotate_to_heading_min_angle: 0.03 # [rad] lệch hướng giữa path và robot vượt ngưỡng này thì quay tại chỗ trước khi chạy. (mặc định: 0.785)
angular_decel_zone: 0.1
# stoped
# Ngưỡng coi robot là ĐÃ DỪNG
rot_stopped_velocity: 0.03
trans_stopped_velocity: 0.03
@@ -161,25 +164,26 @@ MKTAlgorithmDiffRotateToGoal:
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)
# ----- Điểm nhìn trước (lookahead) -----
use_velocity_scaled_lookahead_dist: true # true = cự ly nhìn trước co giãn theo vận tốc; false = dùng cố định lookahead_dist. (mặc định: false)
# chỉ có tác dụng khi cờ trên = false:
lookahead_dist: 0.5 # [m] cự ly nhìn trước cố định để chọn điểm bám. (mặc định: 0.6)
# chỉ có tác dụng khi cờ trên = true:
min_lookahead_dist: 0.6 # [m] cận dưới của cự ly nhìn trước. Nhỏ quá thì robot lắc ở tốc độ thấp. (mặc định: 0.3)
max_lookahead_dist: 2.0 # [m] cận trên của cự ly nhìn trước. Lớn quá thì robot cắt cua. (mặc định: 0.9)
lookahead_time: 1.9 # [s] nhân với vận tốc hiện tại ra cự ly nhìn trước, tức hệ số lookahead. (mặc định: 1.5)
min_journey_squared: 0.2 # [m^2] quãng đường bình phương tối thiểu mới xét tới goal (mặc định: 0.2)
max_journey_squared: 0.8 # [m^2] quãng đường bình phương tối đa còn xét tới goal (mặc định: 0.2)
max_lateral_accel: 0.9 # [m/s^2] trần gia tốc ngang, dùng để tự giảm tốc khi vào cua
# 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)
# ----- Quay tại chỗ về đúng hướng -----
# Chỉ được bật MỘT trong hai: use_rotate_to_heading hoặc allow_reversing
use_rotate_to_heading: true # Cho phép quay tại chỗ về hướng path và về hướng goal. Nên bật với mọi robot quay tại chỗ được. (mặc định: true)
# chỉ có tác dụng khi cờ trên = true:
rotate_to_heading_min_angle: 0.03 # [rad] lệch hướng giữa path và robot vượt ngưỡng này thì quay tại chỗ trước khi chạy. (mặc định: 0.785)
angular_decel_zone: 0.1
# stoped
# Ngưỡng coi robot là ĐÃ DỪNG
rot_stopped_velocity: 0.03
trans_stopped_velocity: 0.03