Con trỏ dock_planner: a301987 -> 1f04a95 — thêm mô hình động học
differential/ackermann và maneuver straight-pivot-straight (kiểu đường 3:
thẳng + xoay tại chỗ + thẳng, điểm xoay nằm giữa robot và dock nên không lấn
thêm chỗ về phía xa dock như cusp).
config/runtime/dock_global_params.yaml nhận 4 khoá MỚI, mọi giá trị đã tune cho
robot giữ nguyên (max_steering_angle 0.7, maximum_forward_extension 3.0,
direct_entry_min_curve_room 0.4, straight_length 0.0 — không đụng vào):
kinematics/model: ackermann (robot có steer_link; bản sim để differential)
kinematics/minimum_turning_radius: 0.0 (bỏ qua khi model=ackermann)
maneuver/pivot_fallback_extension: 0.0 (TẮT — tính năng mới, chưa chạy trên xe)
maneuver/pivot_safety_margin: 0.15 (chỉ có tác dụng khi kiểu 3 được dùng)
pivot_fallback_extension để 0 theo đúng quy ước đưa tính năng mới sang nhánh
robot ở trạng thái tắt. Robot này là Ackermann nên xoay tại chỗ phải do
StanleyControl thực hiện bằng chuỗi đánh lái, chưa xác nhận trên xe.
Comment đồng bộ theo bản dev: mô tả ba kiểu đường và thứ tự planner thử dựng,
bảng khoá nào có tác dụng với model nào, cộng hai ghi chú riêng của nhánh robot
về trạng thái bật/tắt của kiểu 1 và kiểu 3.
Kiểm chứng bằng parse YAML hai file: 4 khoá thêm mới, 0 khoá bị xoá, 0 giá trị
cũ bị đổi, tập khoá giờ khớp đúng bản dev.
Sửa lỗi `cmake ..` gãy ở generate step trên robot aarch64:
CMake Error at /usr/lib/aarch64-linux-gnu/cmake/vtk-9.1/VTK-targets.cmake:518
The link interface of target "VTK::mpi" contains: MPI::MPI_C
but the target was not found.
Chuỗi nhân quả: find_package(PCL) -> PCLConfig find_VTK() -> vtk-config.cmake
include VTK-targets.cmake. VTK 9.1 trên robot build kèm MPI nên khai VTK::mpi
trỏ vào MPI::MPI_C. VTK gọi find_package(MPI COMPONENTS C), thất bại với lý do
"MPI component 'C' was requested, but language C is not enabled" — root project
khai LANGUAGES CXX. Target không được tạo, generate step gãy.
Máy dev không tái hiện được vì không cài VTK cmake package: find_VTK() tìm
không thấy rồi bỏ qua trong im lặng.
Con trỏ:
costmap_2d 3196a19 -> af66991
data_convert f23037b -> 6708cdf
recovery_core 2a86844 -> c03d16f
move_base2 b820763 -> ea02392
stanley_local_planner c6ea17b -> 5845ec2
Bốn gói bỏ hẳn PCL vì không include một header pcl/ nào. data_convert giữ PCL
nhưng thu về COMPONENTS common — pcl_convert.h chỉ dùng PCLPointCloud2,
PCLImage và conversions.h, đều thuộc pcl_common; component io mới là chỗ kéo
VTK vào.
stanley còn kèm hai lỗi ngầm lộ ra khi bỏ PCL, cả hai do gói ăn ké:
find_package(Eigen) sai tên chỉ chạy được nhờ FindEigen.cmake của PCL, và
include dir cho <Eigen/Dense> vốn đến từ PCL_INCLUDE_DIRS. Đã chuyển sang
Eigen3 và khai include dir tường minh.
Các submodule đi kèm commit khác đã push trước đó trên cùng nhánh, theo về do
fast-forward: costmap_2d thêm snapshot API và debug metrics updateMap;
move_base2 thêm chế độ snapshot costmap cho controller, local costmap 10 Hz và
loạt config sim cho priest.
Kiểm chứng: cmake -S . -B build cấu hình xong "All packages configured
successfully", generate xong, cmake --build hoàn tất 100% exit 0. Không còn
dòng PCL/VTK/OpenNI nào trong output configure.
stanley trims trailing duplicate plan poses before reading plan geometry. A
repeated final pose ends the plan with a zero-length chord, so the direction
vote, the path tangent and the curvature all read atan2(0, 0) while the
cross-track error freezes and the law cannot see the robot leaving the goal.
The overshoot gate and the window builder now agree on where a segment ends,
which is what had left that recovery dead.
move_base2 carries config only: steer_bias_min_vel drops below the working
speed of the slow profiles so the steering-bias integrator actually runs, plus
the simulation dock offsets and the dock planner terminal length.
move_base2, stanley_local_planner, dock_planner, costmap_2d, common_msgs,
geometry2, laser_geometry, robot_time and voxel_grid.
costmap_2d gets an explicit branch entry in .gitmodules so submodule updates
follow dev_cam_intel instead of leaving the working tree detached.
move_base2 383a04f -> fd0249d
stanley_local_planner 567d08e -> 5eb4e06
action_core 643f63f -> 5d878a7
The detection handler now treats sample_window as a sliding window and keeps
sampling until the spread converges or timeout expires, instead of judging once
and aborting. Stanley can latch the plan-to-global transform for a leg so a
localisation correction mid-leg no longer shifts the path under the robot, and
its docking, go-straight and rotate variants are aliases of one planner.
Declared with values that leave this robot's behaviour exactly as it is:
hold_time: 0.0 publish on the first good window, as before
plan_tf_freeze: false both blocks - the latch is off until a supervised
run confirms it; docking is the candidate to enable
first, being short, reversed, and centimetre-tolerant
align_pivot_toward_curve false in the position block only; the docking block
already carries true from field tuning
The freeze_settle_* values match the built-in defaults, so they change nothing
while making the knobs visible.
Untouched because they are this robot's settings, not missing schema:
detect_pallet keeps min_samples 1 and max_spread 0.1, the detect handlers stay
split into detect_charger and detect_pallet with real input frames, the
compound actions keep their uppercase names without device steps, recovery
stays commented out, and go_straight and rotate stay on StanleyLocalPlanner
rather than the dedicated aliases.
Verified with a fresh configure and full build of this tree from an empty build
directory, EXIT=0, dock_planner_test passing here, no undefined symbol in
libmove_base2.so, libstanley_local_planner.so or the frame sampler plugin, and
every new key resolving in the merged parameter tree.
action_core 60413b2 -> 643f63f a rejected detection now logs the sample
count, deviation percentiles and bounding box,
so the next field run says where the stray
samples went instead of only how far
Pointer only; no file in this tree was touched. Built in this tree, EXIT=0.
move_base2 d10c240 -> 383a04f an action failure now reports the
handler's reason instead of a bare
"action failed"
stanley_local_planner 41e0fde -> 567d08e docking and rotation planners folded
back into StanleyLocalPlanner
laser_geometry 7e70a03 -> 526c00a projection test no longer links Boost
targets this package never looks for
Pointers only; no file in this tree was touched. Verified with a fresh
configure and full build of this tree from an empty build directory, EXIT=0,
dock_planner_test passing here, and no undefined symbol in libmove_base2.so,
libstanley_local_planner.so or librobot_laser_geometry.so.
move_base2 a2a2ea2 -> d10c240 per-marker docking parameters reach the
global planner; instance is rebuilt when the
marker changes
dock_planner 91ba7b1 -> 539fc5d typed config, validated footprint_dock, and
the fix for the undefined footprintFromParams
symbol that aborted docking at runtime
custom_planner 49ea9fe -> 6eed3d8 refactor merged with main, keeping main's
field tuning in merge_path_calc
Pointers only; no file in this tree was touched. Verified with a full
cmake --build of this tree (EXIT=0), dock_planner_test passing here, and
ldd -r reporting no undefined symbols in libdock_planner.so.
config/runtime here still carries the previous schema. Every new dock_planner
key is optional and falls back to its built-in default, so nothing fails to
load, but the tuned values are not in effect yet.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>