Technical Breakdown of Humanoid Robot Marathon Rules: From Rulebook to System Specs

    This article breaks down the rules of a humanoid robot half-marathon as a compressed system acceptance specification. It shows how to translate natural-language clauses into engineering parameters: mapping terrain complexity into a three-layer cost map, defining the boundary for human intervention as an onboard autonomy interface, deriving energy and reliability strategies from penalty tables, building deterministic fault classification, and managing segment cutoffs with time budgets. It also outlines a reusable methodology and a layered validation approach with fault injection. Readers will learn a practical method for converting competition rules into tunable weights, state machines, and a unified objective function.

    1. Why a Rulebook Is Worth Reading as a Technical Specification

    A half-marathon for humanoid robots looks like a showcase where sports meet technology. In practice, it is a highly compressed system acceptance specification. It decomposes the abstract notion of “autonomy” into observable, penalty-bearing behavioral clauses: which actions the robot must perform on its own, which forms of external intervention incur time penalties, and which failures fall within a tolerable range.

    For developers, the value of these rules is that they map long-standing hard-to-quantify metrics—path planning robustness, dynamic balance, energy management strategy, and fault self-recovery—onto explicit boundary conditions and cost functions.

    Compared with a lab environment, the defining differences of a race are that it is non-repeatable and non-reversible. A single loss of balance that cannot be recovered autonomously costs results directly; one wrong battery-swap decision adds several minutes to the total time. The right way to read the rules, then, is not to memorize clauses but to translate them into state machines, timeout thresholds, and cost tables.

    2. Track Complexity: Abstracting Terrain into Computable Constraints

    The track information in the rules can be abstracted into a few structured parameters: a total distance of about 21.0975 km; more than 10 terrain types covering flat ground, slopes, curves, and narrow sections; 12 left turns and 10 right turns, including small-radius turns close to 90 degrees; and an ecological park section, which means surface material, lighting, and ground friction will change frequently.

    In engineering terms, these descriptions should be converted into three map layers:

    • Geometry layer: elevation, slope, curvature, and corridor width, used to generate a feasible corridor;
    • Semantic layer: terrain category and expected friction range, used to select gait and speed limits;
    • Risk layer: slip-prone areas, narrow passing zones, and occluded sightlines, used to reserve safety margin.

    An illustrative cost function can be written as:

    1. # Illustrative only: convert terrain and risk into traversal cost
    2. def edge_cost(segment):
    3. w_slope = 2.0 * max(0.0, segment.slope - 0.10) # slope penalty
    4. w_curve = 1.5 * abs(segment.curvature) # curvature penalty
    5. w_narrow = 3.0 if segment.width < 0.9 else 0.0 # narrow-section penalty
    6. w_risk = segment.risk_level * 2.5 # slip/occlusion risk
    7. return 1.0 + w_slope + w_curve + w_narrow + w_risk

    Note that the parameters above are a generic modeling example and do not represent official values from any specific event. The real value lies in the method: turn natural-language clauses into tunable weights, then drive both planning and evaluation with the same set of weights, avoiding the split of “train one way, race another.”

    3. Autonomous Navigation Constraints: The Boundary of Human Intervention Is the Boundary of the System Interface

    The rules encourage autonomous navigation and impose stricter requirements on human intervention, while requiring the robot to recover on its own from minor balance loss and strictly prohibiting human assistance. This effectively draws a clear interface red line: any design that depends on external commands to keep moving forward will be judged as insufficient capability at the rule level.

    The corresponding architectural choices therefore become clear:

    1. The sense–localize–plan–control loop must close entirely onboard, without relying on a remote teleoperation channel to sustain basic walking;
    2. The remote link carries monitoring and telemetry only, not real-time control;
    3. Recovery strategies must be built in, including balance-loss detection, posture correction, in-place relocalization, and autonomous detour after a “stuck” determination.

    A minimal viable recovery state machine can be described as:

    1. STABLE -> (balance loss detected) -> RECOVERING
    2. RECOVERING -> (posture restored) -> STABLE
    3. RECOVERING -> (timeout without recovery) -> LOCAL_REROUTE
    4. LOCAL_REROUTE -> (feasible corridor found) -> STABLE
    5. LOCAL_REROUTE -> (no feasible solution) -> SAFE_STOP

    Each transition should carry a timeout and a retry limit to avoid repeated oscillation during recovery that wastes time for nothing.

    4. Robot Replacement and Battery Swapping: Reverse-Engineering Energy and Reliability Strategy from the Penalty Table

    The rules set a cap on robot replacements with escalating penalties, allow in-station battery swaps without penalty but count the time toward the total, and restrict out-of-station swaps to emergencies such as sudden battery failure with penalties that accumulate per occurrence. Read together, these clauses yield a very clear optimization goal: minimize the weighted sum of “total time + penalty time,” rather than simply chasing the fastest pace.

    Three strategies follow:

    • Front-load the energy budget: estimate consumption from the track profile and set the battery safety threshold at a level where “the worst section can still be completed,” not at the average;
    • Prioritize swaps: an in-station swap carries no penalty but its duration enters the final result, so it is worth doing only when queueing and operation time are less than the extra time cost of driving slower;
    • Reliability is results: factor the failure rate of critical components into pace decisions, and slow down proactively on segments with high failure probability, trading time for completion rate.

    A simplified decision rule can be expressed as:

    1. # Illustrative only: whether to perform an in-station battery swap
    2. def should_swap(runtime_left, energy_margin, swap_duration, slowdown_cost):
    3. if energy_margin < SAFE_MARGIN:
    4. return True
    5. return swap_duration < slowdown_cost * runtime_left

    5. Falls, Collisions, and Fault Grading: The Core of Fault Tolerance Is “Decidability”

    Graded handling matters because it discretizes the continuous real world into decidable categories: minor balance loss must be recovered autonomously, and only more severe cases allow external intervention at a cost. For the system, this requires fault determination itself to be deterministic and explainable, rather than relying on a pile of fuzzy thresholds.

    Practical recommendations include:

    • Build a grading criteria table that maps indicators such as posture angle, angular velocity, stall duration, and abnormal joint current to explicit levels;
    • Bind each level to a fixed action and a fixed timeout so behavior is reproducible;
    • Log all determination inputs and outputs in full to support post-race review and threshold regression;
    • Apply a conservative bias against “misjudging as recoverable,” because a wrong autonomous attempt often costs more than a timely safe stop.

    6. Segment Cutoffs and Retirement: Splitting the Overall Time Limit into Sub-Deadlines

    The overall cutoff time and the cutoff times at multiple checkpoints are equivalent to a set of sub-deadline constraints. In engineering, such constraints are best managed with a “time budget”: allocate a budget to each segment, continuously monitor the ratio of remaining budget to remaining distance, and adjust the target speed dynamically.

    1. # Illustrative only: speed adjustment based on time budget
    2. def target_speed(remain_dist, remain_budget):
    3. if remain_budget <= 0:
    4. return 0.0
    5. base = remain_dist / remain_budget
    6. return base * (1.0 + 0.1 * (remain_budget / total_budget))

    When the predicted arrival time exceeds a segment’s cutoff, the system should proactively switch to a “finish at all costs” mode: reduce willingness to attempt complex terrain, prefer low-risk corridors, and cut down unnecessary autonomous relocalization.

    7. A Reusable Engineering Methodology

    Once the clauses above are abstracted, they settle into a process that is independent of any specific event:

    1. Structure the clauses: convert rules into parameters, thresholds, penalties, and transition tables;
    2. Make metrics observable: define recordable telemetry fields for each constraint so the race can be reviewed afterward;
    3. Unify costs: convert time, penalties, and fault risk into a single objective function;
    4. Regress thresholds: replay historical segments to validate every parameter change;
    5. Plan for degradation: define the trigger conditions for safe stop, conservative traversal, and emergency handling.

    For validation, a layered testing approach is recommended: first cover all terrain and fault injection in simulation, then run a small-scale replay in a closed venue, and only then move to continuous runs over the full distance. Fault injection should cover at least four scenarios: localization loss, single-leg slip, battery anomaly, and communication interruption.

    8. Conclusion

    The real output of a race rulebook is not rankings but a reusable set of system design constraints. Turning terrain complexity into a cost map, intervention limits into an onboard closed loop, the penalty table into energy and reliability strategy, and cutoff times into time-budget management—this ability to translate natural-language clauses into engineering parameters is what determines whether a robot system can finish reliably in complex scenarios.