2 Commits

Author SHA1 Message Date
c125bd069c feat: add entry_direction and derive an upside-down lidar from TF
The charger goal heading always pointed out of the station, so only robots
that reverse onto the charger were supported. Front-charging robots now set
`entry_direction: forward` (goal yaw + pi, position unchanged) together with
a front `scan_topic`. The default stays `backward`, so existing configs keep
their behaviour.

Once per run the handler looks up base_link <- scan frame and:
- fails the action if the scan plane is tilted more than 5 deg;
- fails the action if the lidar faces the side opposite to entry_direction,
  instead of writing a reversed goal;
- mirrors the bearings when the lidar is mounted upside down (roll pi),
  as the trolley handler does. No config key is needed for that.

Tests: forward vs backward, direction mismatch, upside-down V / taped V /
arc, tilted scan plane, invalid entry_direction.
2026-11-10 15:06:00 +07:00
5bbcf37f1d feat: load v_shape from the profile YAML, add the dock measuring guide
Read v_shape per profile and fail loud on an unknown value. The start log now prints the loaded v_shape so it can be checked without opening the YAML on the robot. Add doc/MEASURE_AND_CONFIGURE.md with figures and link it from the README.
2026-10-27 13:09:30 +07:00