10 khoá mới khớp priest_local_planner (gate theo khoảng cách, accel/decel/
jerk comfort, trần gia tốc góc, head slowdown slew) và bật
collision_check_enabled sau khi gate đổi sang phân mức dừng/giảm tốc.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Bench and Gazebo settings only; the robot trees are untouched.
Planners: the position profile moves to PriestLocalPlanner, and the three
docking profiles all point at HybridDockingLocalPlanner instead of the Stanley
instances. Loop drops to 20 Hz, command_semantics back to twist for the sim
drive, max_vel_x to 1.20, recovery behaviours and the path monitor off while
the docking chain is under test.
PRIEST runs cem 3 with performance_metrics off and debug_level 0, which is the
configuration the CPU measurements were taken at. Metrics have to stay off for
any further benchmark.
The SBPL primitive path pointed into rl_ws, a workspace that is not on this
machine; it now points at the copy in sbpl_lattice_planner. sensor_store's
report_period goes to 0 to stop the periodic dump. The sim launch defaults
robot_type to T800 and re-enables depth_image_proc.
The VDA5050 charger flow replaces the pallet fixture: DetectCharger and the
charger marker, with the trailing back-off commented out. The rotate compound
action is renamed to lowercase to match what the config reader looks up.
Nothing reads the key. DockPlanner's config takes dock_anchor, the footprint
and the drive model; terminal_direction was copied down into the planner
namespace and sat there.
The direction of the final straight leg is derived instead: dock_calc tries
nose-first and reverse and keeps whichever needs the smaller pivot, so the side
the robot stands on carries the intent. The layer above has already offset the
goal so base_link ends up on it, which means a marker key forcing the other
direction would contradict the goal position it was handed. Docking in reverse
is a different goal, not a different flag.
Leaving it in the allow-list makes the planner namespace advertise a live key
that does nothing, and a config that lies is worse than one that lacks the key.
The fixture test now asserts the allow-list stays closed instead: the marker
profile also carries global_planner and local_planner, and copying the whole
block down would put meaningless keys into the planner namespace where they can
shadow real ones.
Seven [move_base2][debug] lines printed unconditionally on every cycle. On a
robot running a full shift that is noise: they describe the normal path, and
constant noise buries the one line that is actually abnormal.
Three switches, grouped by what they answer, all defaulting to on so turning
them off is a deliberate act rather than something that changes behind whoever
is relying on the log:
debug/state state machine transitions, printed on change, not per cycle
debug/plan controller accepting or rejecting a plan, recovery paths
debug/skip why the controller was skipped while CONTROLLING
The abort-detail line stays unconditional and loses its [debug] tag. It is the
reason a mission failed and prints once per abort; a config that can silence it
is a config in which the robot fails silently.
The read path runs YAML debug/{state,plan,skip} into MoveBase2Config, which
carries it to ControlLoopConfig. describe() prints the resulting state at boot
so nobody has to guess why a log went quiet.
Nothing computes differently: stripping every log statement from the old and
new control_loop.cpp leaves a three-line difference, and all three are comments.
The gated arguments are pure reads.
It was added to find why the robot stood still while every layer reported
normal, and it answered that: the host drops a command whose stamp is older
than its freshness window, and publishCommand freezes that stamp whenever no
request is active. With the answer in hand the line is pure cost - it printed
every control cycle at 20 Hz, and at idle every one of those lines says the
same expected thing.
move_base_core renamed the string argument of the add/get/remove sensor
functions from five different *_name spellings to topic, because it is the key
that has to match observation_sources and sensor_store_params.yaml rather than
a free-form label. The overrides here follow so declaration and definition read
the same.
Parameter names only; no signature, no behaviour, no ABI. The member
map_name_save_ is untouched - it is not this key.
Was 2.2 against a 2.0 model - padding that made sense while it was an upper
bound. It is checked on both sides now, because an arc's axis comes only from
its two endpoints and a hidden edge moves it silently. Measured relationship:
yaw error ~= (true span - observed span) / 2.
arc_span_tolerance 0.15 rad allows viewing up to about 30 degrees off-axis for
at most 2.4 degrees of heading error. The extractor always clips a few rays at
each edge, so even head-on the observed span falls about 0.04 rad short, and
the tolerance has to cover that before anything else.
The tuning in the detect block stays out of this commit; it is someone else's
in-flight work on the same file.
Two segments adjacent by ray number can still be metres apart - measured in
Gazebo, where a cradle was fused with the wall two rays behind it and fitted as
a 3.2 m circle. The key belongs at or below line_extraction's max_line_gap.
The tuning in the detect block stays out of this commit; it is someone else's
in-flight work on the same file.
Matches the Gazebo dock_cradle_arc model - radius 0.40 m over 2.0 rad. Numbers
for simulation; no real dock has been measured.
offset_x is 0.92 and the derivation is worth stating, because the contact point
is NOT the deepest point. The cradle mouth is 0.673 m across while the robot is
0.960 m wide, so the robot never gets inside the cradle - it meets the two
mouth edges, which stand 0.184 m towards the robot from the deepest point:
R - R*cos(arc_span/2) = 0.40 - 0.40*cos(1.0) = 0.184 m
so 0.583 rear extent + 0.070 padding + 0.184 + 0.08 clearance = 0.92. Changing
either arc_span or arc_radius moves the mouth and this has to be recomputed.
arc_min_span defaults to 0.52 rad off measured data rather than intuition: on a
0.40 m arc with 3 mm noise the fitted radius drifts +1.9 mm at 45 degrees of
span, +8.6 mm at 30, +25.4 mm at 20. Below 30 degrees a 0.40 m cradle can be
scored as 0.43 and fall outside arc_radius_tolerance.
arc_max_rms is the gate that matters. Every set of points fits some circle, a
right-angled corner included, so the residual is the only thing separating an
arc from a bend.
The tuning in the detect block stays out of this commit; it is someone else's
in-flight work on the same file.
DockPatternActionHandler detects the dock from raw LiDAR instead of taking a
pose perception already computed over TF, so it can reject a wrong candidate
inside a single scan - supporting rays per wing, fit error, vertex angle, wing
length - rather than relying on agreement across many samples.
DetectCharger moves from detect to detect_lidar; detect keeps DetectPallet.
Both handlers cannot claim the same actionType, and in simulation detect runs
use_simulated_goal, which fabricates the pose rather than detecting anything.
Three profiles. v_std matches the Gazebo dock_plate_v model, v_wide is a second
shape to show how an order picks one by name, and v_tape is v_std with the
reflective-tape check turned on.
The tape group is off in v_std and v_wide. Turned on, a candidate that already
passed every geometric gate must also carry two runs of bright rays the right
distance apart. Geometry alone cannot answer the question that matters in a
warehouse - every wall corner and every pair of pallets at a right angle is a V
of some size - and none of them carry reflective tape at the expected spacing.
v_tape exists as a separate profile rather than as a switch inside v_std
because v_std works today and a new feature should not change the behaviour of
something that works. Once it has run on the robot, move the tape_* group into
v_std and drop this profile.
Measured in the sim on the parked robot, 8 and 13 bright rays: spacing 0.196 m
against 0.195 configured, widths 0.120 and 0.119 m against 0.120. It settled in
0.65 s over 5 detections, against 1.90 s over 31 for v_std on the same scene.
tape_min_intensity carries each sensor's own units - Gazebo passes laser_retro
through untouched, a real nanoscan3 does not - so it has to be measured on the
sensor in use, not copied from here.
The tuning in the detect block is deliberately left out of this commit; it is
someone else's in-flight work on the same file.
The key is dead. Nothing reads it: PlannerRunner deliberately does not accept
it, because the direction of the final straight segment is derived from which
side of the goal the robot stands on, the layer above having already offset
the goal so base_link ends up on it. A marker key that could force the other
direction would contradict the goal position it was given, so it was dropped
rather than implemented.
Leaving it in the fixture invites someone to set it and expect an effect.
Sensor data entered this runtime and disappeared into the costmap. At 0.05 m
with inflation the costmap has destroyed ray order and object shape, so a dock
detector fitting lines to find a V plate cannot reconstruct what the laser
saw - two 0.2 m wings on that grid are one blob. A reinforcement-learning
local planner wants the raw scan for the same reason. Neither had a route:
ActionContext held only TF, and LocalPlanner::initialize takes only a costmap.
NavigationServer now owns a SensorStore and feeds it from all five doors,
handing a read-only port to the action registry and to the controller runner.
The store gets the reading BEFORE the filter. Anything that wants filtering
filters upstream; the store does not know a filter exists. With laser SOR on,
the store and the costmap deliberately see different data - one wants outliers
gone, the other wants the true shape - and the comment at addLaserScan now
says so, because the one it replaces claimed the opposite.
remove* mirrors into the store, dropping readings while keeping the topic
declared. A host that has disowned data while the store still serves it means
the two disagree about what the robot can currently see, and max_age only
covers the tail of that.
Reaching a local planner without breaking every other one: widening
LocalPlanner::initialize would break hybrid, mppi, priest, stanley and
deep_mpc at once for the sake of one planner. A planner that wants sensor data
inherits SensorConsumer instead, and ControllerRunner finds out with a
dynamic_cast after loading it, at all three sites that build an instance and
always before initialize(). Planners that do not inherit it cast to null and
nothing happens, so nothing needs rebuilding. That cast crosses a .so boundary
and depends on matching RTTI, which a green build does not prove - hence the
log line, and hence TestControllerSensorProbe, dlopen'd like a real plugin, to
check it actually matches.
sensor_store/report_period prints what the store holds every N seconds, off by
default. Until a consumer exists it is the only way to see whether data
arrives at all, and it is what separates a mistyped topic from a dead sensor -
without it the two look identical. It reads age from the control loop's clock,
not robot::Time::now(), which is the wall clock while a simulated scan is not.
Config is refused at boot, not at first use: an unknown data_type, a short name
two packages share, a duplicate topic, a capacity below 1, a max_age that is
not positive. Declaring no sensor at all is valid and leaves the store empty
and silent - a runtime with no consumer of raw data holds nothing, which is an
answer rather than a reason to refuse to start.
robot_nav_msgs/OccupancyGrid is registered here rather than in
robot_sensor_ports, which ships only its own package's types; pulling
robot_nav_msgs into every translation unit that touches the store would be the
cost of doing otherwise.
Gói không include một header pcl/ nào. Khối find_package ở đây copy từ
recovery_core, mượn PCL_INCLUDE_DIRS phòng khi header robot_costmap_2d lộ
dependency PCL — nhưng robot_costmap_2d cũng không include PCL ở đâu cả.
Trên robot aarch64 có VTK 9.1 build kèm MPI, chuỗi PCL -> VTK -> VTK::mpi ->
MPI::MPI_C làm CMake gãy ở generate step: root project khai LANGUAGES CXX nên
find_package(MPI COMPONENTS C) không bao giờ thành công và target MPI::MPI_C
không được tạo. Máy dev không dính vì không cài VTK cmake package, find_VTK()
tìm không thấy rồi bỏ qua trong im lặng.
Bỏ find_package, PCL_INCLUDE_DIRS và nhánh if(PCL_FOUND).
controller_runner: 3 điểm khoá (setPlan/computeVelocityCommands/isGoalReached)
— snapshot bật thì refreshSnapshot() (lock ngắn bằng memcpy) thay cho giữ mutex
suốt lượt plugin chạy; snapshot tắt giữ nguyên lock dài cũ. Rollback bằng
config, không cần build.
config runtime: performance_metrics_enabled + debug_level 1 (key phải nằm TRONG
namespace local_costmap/global_costmap — bản root ở costmap_common là key chết);
snapshot_for_readers local=true, global=false (global planner chưa migrate);
update_frequency local 6 -> 10 Hz sau khi hết tranh chấp.
Số đo sim trước/sau: lock_wait local median 7.5 ms (max 53 ms) -> ~0 (max 13 us),
p99 cycle 21.4 -> 3.4 ms; 10 Hz chạy 0 lần rớt nhịp, thread costmap 1.2% một core.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Đồng bộ với priest 2455707 — 253 ở probe mép thân chỉ rà nhẹ, 254 mới
đạp sâu; hết phanh đáy mỗi lần vào band hành lang.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Đo 19/8: latch lúc còn trôi 0.2 m/s văng khỏi vành 0.04 m (nhả oan ở
0.041/0.042), orbit 74 s. Kèm fix fallback priest d0661e6.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Đồng bộ với priest_local_planner 6d75b73 — hành lang hẹp không còn phanh
đáy 81 s; nhả phanh debounce 10 chu kỳ.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Chống cú quệt khi nhảy nghiệm quá muộn (sim 19/8: flip ở sv=10, res 2.9-3.9,
sv 54): guard chỉ cho đổi bên khi nghiệm bên mới thực thi được từ pose hiện
tại; head slowdown bò theo ô costmap xấu nhất dưới thân dọc đầu quỹ đạo.
Kèm theo gate threshold 254 -> 253 (INSCRIBED) đúng vai trò của gate.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Cụm vật cản chỉ chạm đuôi quỹ đạo (gần góc cua path rẽ trước khi tới) bẻ cong
toàn bộ spline — robot vào cua lượn rộng thừa ~0.5 m (sim 19/8: res treo 9.2,
sv=0, vi phạm toàn ở đuôi horizon). Bật trên cây sim: start 2.0 s, min 0.2.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Handler LiftFork chưa nối vào thiết bị nên bước đó chỉ báo thành công giả. Thay
bằng chặng lùi 1.0 m để chuỗi PickUp vẫn chạy hết được trong sim; dòng LiftFork
giữ lại dưới dạng comment để bật lại khi có handler thật.
0.30 m/s lớn hơn max_vel_x của chính profile docking và go_straight, nên bộ tích
phân bù lái KHÔNG BAO GIỜ chạy: log 33 mọi dòng DBG-SS của dock đều bias=0.0000
trong khi offset đứng 2.8 cm không ai khử. Ngưỡng mới 0.15 nằm dưới tốc độ làm
việc 0.20 m/s.
Kèm nới yaw_goal_tolerance docking 0.02 -> 0.05 rad và siết xy_goal_tolerance
của go_straight xuống 0.0001 m.
simulated_offset_x 2.5 -> -1.3 để chạy lại ca docking lùi càng vào pallet.
max_steering_angle về 0.50, direct_entry_min_curve_room 0.5 -> 0.6 và
straight_length 0 -> 0.4 để đoạn thẳng cuối dài hơn cho robot chỉnh hướng.
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.
simulated_offset_x 2.5 with yaw 0.12 exercises the forward-entry docking side.
The maze world and depth_image_proc includes are commented out because the
current sim scene does not use them.
direct_entry_min_curve_room enables the no-cusp entry when there is room for the
arc; straight_length sets the length of the straight terminal leg. Also raises
max_steering_angle to the value measured on the robot.