duongtd 6eed3d8772 Merge origin/main into refactor/custom-planner-config
main carried four commits made after this branch was cut, including field
tuning that must not be lost. Resolutions:

- merge_path_calc.cpp: take main's tuned constants (MIN_SCALE 0.2 -> 0.5,
  MAX_ANGLE_THRESHOLD 0.77pi -> 0.9pi, TURNING_GAIN, CALIB_VAL). Auto-merged;
  no behaviour from this branch touched them.
- makePlan(): keep this branch's snapshot refresh. main reinitialised the
  planner whenever the costmap resized, which leaked the previous Spline_Inf
  and Curve_common allocations; refreshing the snapshot covers the same case.
  makePlanWithOrder() still runs, now after the refresh so the request sees
  the current costmap. main's per-call yaw debug log is dropped.
- checkYawEdgeEnd(): keep this branch's form. main normalised both angles to
  [0, 2pi) before subtracting and wrapping, which only adds multiples of 2pi
  and yields the same result. The threshold is unchanged in value:
  backward_decision_angle defaults to 0.5*pi, the constant main hard-coded.
  main's per-call warning log is dropped - this runs inside planning.

Pre-existing on main and left alone: the second angle_threshold in
merge_path_calc.cpp (goal side) still uses the untuned 0.5*pi form while the
start side uses TURNING_GAIN. Worth a look, but not part of this merge.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 22:12:00 +07:00
Description
No description provided
359 KiB
Languages
C++ 95.9%
CMake 4.1%