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.
This commit is contained in:
@@ -10,6 +10,11 @@ actions_dock:
|
||||
action_types: [DetectCharger]
|
||||
output_frame: dock_target
|
||||
scan_topic: /f_scan
|
||||
# backward: lùi vào, heading goal hướng RA; forward: tiến vào, heading hướng VÀO trạm.
|
||||
# Đổi hướng phải đổi scan_topic theo phía lidar; TF tự xác định lidar lộn ngược.
|
||||
# offset_x theo |footprint sau| khi backward, |footprint trước| khi forward; offset_y dương
|
||||
# sang trái hệ hình, tức bên PHẢI robot khi forward.
|
||||
entry_direction: backward
|
||||
settle_delay: 0.0 # [s] test tự điều khiển đồng hồ
|
||||
timeout: 5.0 # [s]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user