5 Commits

Author SHA1 Message Date
641932b601 feat: take the detection frame from robot_base_frame, drop prior_frame
The search fan, prior and mount checks are now expressed in the context's
robot_base_frame, like DockPatternActionHandler. A leftover prior_frame equal
to it loads with one warning; a different one fails init.
2026-11-12 17:01:54 +07:00
775c16820b feat: warn at boot about tape keys ignored while the tape is off 2026-10-30 14:21:38 +07:00
1a76e7798f feat: read tape_bloom_max_angle and tape_range_bias_sigma
Read the two new mirror-tape keys of the leg profile. Print them on the [debug] profile
line, and print the estimated tape range bias on the [debug] match line when it was
estimated. Document the KIT values (tape_min_intensity 8000, bloom 0.10 rad, bias sigma
0.05 m) and the bloom limitation for a bare far leg just behind a taped entry leg.
2026-10-29 13:05:55 +07:00
0000f64dbc feat: read accept_attached_legs and zero_range_is_no_echo
- Handler: reads zero_range_is_no_echo next to range_sigma (lidar
  property), and accept_attached_legs per profile. The boot summary
  prints "zero range = no echo|blocked". The start line prints
  "attached legs on|off". The match line prints "attached N".
- README, doc/MEASURE_AND_CONFIGURE.md: both keys, when to set them,
  and a log-reason row for attached legs. Also the measuring notes left
  over from the previous fix: cart_dim_tolerance covers machining
  differences between trolleys of one type, dimensions are leg
  centre-to-centre (not outer edge), how to measure range_sigma, and
  the confidence row in the log table.

Needs dock_pattern_detector 979bef3 or later.
2026-10-28 16:37:35 +07:00
bfdcac512f feat: add the 4-leg trolley detection action
TrolleyDetectionActionHandler finds a 4-leg trolley in a raw LaserScan with
dock_pattern_detector's LegPatternMatcher, filters the detections and writes a
static dock_target frame for the docking leg that drives under the trolley.

- entry_direction forward/backward sets the goal heading; a lidar that faces
  the wrong way fails the action instead of writing a reversed goal
- an upside-down lidar (roll pi in TF) is detected from TF and its bearings
  are mirrored; a scan plane tilted more than 5 deg fails the action
- profiles validated at boot; optional prior, reflective tape (all/entry)
- gtest (11 tests) incl. a recorded Gazebo scan from a roll-pi lidar
- sim models trolley_4legs (+ taped variants) the robot can drive under,
  spawn launch and generator script
- doc/MEASURE_AND_CONFIGURE.md: how to measure a trolley and fill the profile
2026-10-28 13:33:52 +07:00