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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user