v1.1.6; fix terrain_weighted_summary bug
This commit is contained in:
@@ -142,9 +142,9 @@ class FrictionMarginMetric(BaseMetric):
|
||||
if force_data['normal'] <= self.force_threshold:
|
||||
continue
|
||||
if force_data['friction_limit'] <= self.force_threshold:
|
||||
logger.warning(
|
||||
f"Friction margin metric got too small friction limit on foot {foot_name}, returning 0 for this foot."
|
||||
)
|
||||
# logger.warning(
|
||||
# f"Friction margin metric got too small friction limit on foot {foot_name}, returning 0 for this foot."
|
||||
# )
|
||||
foot_margins.append(0.0)
|
||||
foot_normal_forces.append(force_data['normal'])
|
||||
utilization_values.append(float('inf'))
|
||||
|
||||
@@ -172,7 +172,7 @@ class MultiPipeline:
|
||||
for mean_name, values in means.items():
|
||||
twv = float(np.mean(values))
|
||||
if summary['terrain_name'] in SEARCH_LEVELS_TERRAINS:
|
||||
twv = 0.09 * (summary['terrain_level'] - 1) + 0.19 * v
|
||||
twv = 0.09 * (summary['terrain_level'] - 1) + 0.19 * twv
|
||||
summary['terrain_weighted_summary'][metric][mean_name] = f"{twv:.4f} ± {float(np.std(values)):.4f}"
|
||||
|
||||
save_path = multi_logger.log_dir / "aggregated_results.yaml"
|
||||
|
||||
Reference in New Issue
Block a user