feat(reflector_pair): make tape_core_intensity and tape_plateau_min_fraction optional

An unset core threshold defaults to tape_min_intensity and an unset plateau
fraction to 1.0, resolved once in ReflectorPairMatcher::configure(). Every
deployed profile already set the two thresholds equal (no bloom on the robot
lidar), so operators now configure one threshold. Profiles that set both keys
match exactly as before.
This commit is contained in:
2026-11-12 17:01:54 +07:00
parent 95c7df9055
commit 3c7b126f1e
5 changed files with 111 additions and 9 deletions

View File

@@ -27,6 +27,10 @@ bool ReflectorPairMatcher::configure(const ReflectorPairProfile& profile, std::s
return false;
}
profile_ = profile;
if (std::isnan(profile_.tape_core_intensity))
profile_.tape_core_intensity = profile_.tape_min_intensity;
if (std::isnan(profile_.tape_plateau_min_fraction))
profile_.tape_plateau_min_fraction = 1.0;
configured_ = true;
return true;
}