fix(leg_pose_fit): estimate the taped range bias when every leg is taped, gated by its per-leg posterior std

This commit is contained in:
2026-10-30 10:58:55 +07:00
parent 588ed58b6d
commit a6c09f2386
11 changed files with 456 additions and 21 deletions

View File

@@ -173,6 +173,28 @@ LegProfile reflectiveTrolley()
// 1. Dò đúng
// ================================================================================================
TEST(LegProfile, ValidatesAllBrightBiasThreshold)
{
LegProfile p = tciTrolley();
std::string error;
EXPECT_TRUE(p.validate(error)) << error;
for (double value : {-0.001, 0.101, std::numeric_limits<double>::quiet_NaN()})
{
p.tape_range_bias_all_max_std = value;
EXPECT_FALSE(p.validate(error));
}
p.tape_range_bias_all_max_std = 0.02;
EXPECT_FALSE(p.validate(error));
p.tape_enabled = true;
EXPECT_FALSE(p.validate(error));
p.tape_range_bias_sigma = 0.05;
EXPECT_TRUE(p.validate(error)) << error;
p.tape_range_bias_all_max_std = 0.0;
p.tape_enabled = false;
p.tape_range_bias_sigma = 0.0;
EXPECT_TRUE(p.validate(error)) << error;
}
TEST(LegPatternMatcher, FindsACartFacingTheSensor)
{
const LegProfile p = tciTrolley();