fix(leg_pattern): let cart_dim_tolerance widen the confidence score
The fit term divided the residual by the lidar noise only, so a trolley that is a few cm off the profile (machining tolerance between carts of the same type) scored a "poor fit" even though its pose was accurate: 3 legs seen and a 3 cm error gave confidence 0.38 < 0.5 and the action timed out on the KIT robot. Add FitNoise::model_sigma and divide by sqrt(sigma^2 + model_sigma^2) when scoring. The matcher passes cart_dim_tolerance / 2. Only the score changes: the fit weights, the pose and the rms are bit-identical. A cart far outside the tolerance is still rejected by the pair gates. Tests: model_sigma changes the score but not the pose; a cart 3 cm narrower and 2.5 cm longer than the profile is accepted with 4 and with 3 legs; a cart 15 cm wider is rejected. v/arc/circle tests unchanged.
This commit is contained in:
@@ -165,6 +165,11 @@ tường) và bề rộng biểu kiến → giả thuyết từ cặp chân kh
|
||||
phải đứng thì loại) → lòng xe trống → chọn cạnh vào (dải `entry`, prior, hoặc cạnh quay về cảm
|
||||
biến) → cổng prior → từ chối khi hai xe điểm sát nhau ở hai chỗ.
|
||||
|
||||
**Điểm tin** = ½ · (số chân thấy / 4) + ½ · clamp(2 − RMS chuẩn hoá, 0, 1). RMS chuẩn hoá chia phần dư
|
||||
cho `sqrt(σ_điểm² + (cart_dim_tolerance / 2)²)`: σ_điểm là nhiễu lidar (`range_sigma`), còn
|
||||
`cart_dim_tolerance / 2` là σ của mô hình, cho sai số gia công giữa các xe cùng loại. Phần σ mô hình
|
||||
chỉ đổi điểm số, không đổi pose khớp.
|
||||
|
||||
Quy ước đầu ra giống V/arc: `center_yaw` là pháp tuyến cạnh vào hướng về cảm biến; lật theo cách
|
||||
robot chui (tiến/lùi) là việc của handler. Plan đầy đủ: `Test/docs/trolley_detection_action/` của
|
||||
workspace phát triển.
|
||||
|
||||
Reference in New Issue
Block a user