feat: read tape_range_bias_all_max_std and log the bias std

This commit is contained in:
2026-10-30 10:58:56 +07:00
parent d51f83804d
commit b00d320094
4 changed files with 39 additions and 6 deletions

View File

@@ -335,13 +335,14 @@ public:
const dock_pattern_detector::LegProfile& p = found->second;
robot::log_info("[trolley_detection][debug] '%s': detecting profile '%s' (cart %.3f x %.3f m, "
"leg %s %.3f m, min_legs %d, attached legs %s, tape %s/%s, bloom %.3f rad, "
"plateau %.3f, range bias sigma %.3f m, offset_yaw %.3f, prior %s in '%s') on '%s', entry "
"plateau %.3f, range bias sigma %.3f m, all max std %.3f m, offset_yaw %.3f, prior %s in '%s') on '%s', entry "
"%s -> '%s'.",
name_.c_str(), profile_name.c_str(), p.cart_opening, p.cart_depth,
dock_pattern_detector::toString(p.leg_shape), p.leg_width, p.min_legs,
p.accept_attached_legs ? "on" : "off",
p.tape_enabled ? "on" : "off", dock_pattern_detector::toString(p.tape_legs),
p.tape_bloom_max_angle, p.tape_plateau_min_fraction, p.tape_range_bias_sigma, p.offset_yaw,
p.tape_bloom_max_angle, p.tape_plateau_min_fraction, p.tape_range_bias_sigma,
p.tape_range_bias_all_max_std, p.offset_yaw,
p.has_prior ? "on" : "off", prior_frame_.c_str(), scan_topic_.c_str(),
toString(entry_direction_), output_frame_.c_str());
}
@@ -466,6 +467,7 @@ private:
nh_param(p_nh, "tape_bloom_max_angle", profile.tape_bloom_max_angle);
nh_param(p_nh, "tape_plateau_min_fraction", profile.tape_plateau_min_fraction);
nh_param(p_nh, "tape_range_bias_sigma", profile.tape_range_bias_sigma);
nh_param(p_nh, "tape_range_bias_all_max_std", profile.tape_range_bias_all_max_std);
nh_param(p_nh, "leg_cluster_gap", profile.leg_cluster_gap);
nh_param(p_nh, "leg_min_depth_gap", profile.leg_min_depth_gap);
nh_param(p_nh, "accept_attached_legs", profile.accept_attached_legs);
@@ -797,22 +799,22 @@ private:
{
robot::log_info("[trolley_detection][debug] '%s': cart at (%.3f, %.3f) yaw %.3f in '%s'%s, "
"legs seen %d (partial %d, attached %d, occluded %d, out of view %d), "
"measured %.3f x %.3f m, fit rms %.4f m, tape range bias %.3f m, confidence "
"measured %.3f x %.3f m, fit rms %.4f m, tape range bias %.3f m (std %.4f m; 0 = unavailable), confidence "
"%.2f.",
name_.c_str(), d.center_x, d.center_y, d.center_yaw, pending_frame_.c_str(),
scan_flipped_ ? " (upright view)" : "", d.legs_seen, d.legs_partial,
d.legs_attached, d.legs_occluded, d.legs_out_of_view, d.measured_opening,
d.measured_depth, d.fit_rms, d.tape_range_bias, d.confidence);
d.measured_depth, d.fit_rms, d.tape_range_bias, d.tape_range_bias_std, d.confidence);
}
else
{
robot::log_info("[trolley_detection][debug] '%s': cart at (%.3f, %.3f) yaw %.3f in '%s'%s, "
"legs seen %d (partial %d, attached %d, occluded %d, out of view %d), "
"measured %.3f x %.3f m, fit rms %.4f m, confidence %.2f.",
"measured %.3f x %.3f m, fit rms %.4f m, bias off (std %.4f m; 0 = unavailable), confidence %.2f.",
name_.c_str(), d.center_x, d.center_y, d.center_yaw, pending_frame_.c_str(),
scan_flipped_ ? " (upright view)" : "", d.legs_seen, d.legs_partial,
d.legs_attached, d.legs_occluded, d.legs_out_of_view, d.measured_opening,
d.measured_depth, d.fit_rms, d.confidence);
d.measured_depth, d.fit_rms, d.tape_range_bias_std, d.confidence);
}
}