route_completion_percent

Formula

route_completion_percent = clamp(distance(start, final_ego) / distance(start, goal) * 100, 0, 100)

If the route length is zero, RoboCI returns 100.0.

Hand-Computable Example

Start (0, 0), final ego (5, 0), goal (10, 0).

Expected output: 50.0.

Edge Cases

  • Empty episode returns 0.0.
  • Missing goal returns 0.0.
  • Progress beyond the goal clamps to 100.0.

Limitations

The base metric uses straight-line distance. Rich route semantics must come from scenario or simulator-specific artifacts.

Test References

  • tests/golden/test_domain_metrics_golden.py
  • tests/test_metrics.py