Performance: Recovery behaviors
Recovery behaviors impact how quickly a robotic system can resume normal operation after a failure, affecting interaction responsiveness and system stability.
def recovery_behavior(): if not sensor_ok(): schedule_retry(delay=1) # non-blocking retry else: resume_operations()
def recovery_behavior(): while not sensor_ok(): time.sleep(1) # blocking wait resume_operations()
| Pattern | Blocking Behavior | Control Loop Delay | System Responsiveness | Verdict |
|---|---|---|---|---|
| Blocking wait in recovery | Yes | High | Low | [X] Bad |
| Non-blocking scheduled retry | No | Minimal | High | [OK] Good |
recovery_behaviors:
- name: rotate_recovery
type: "rotate_recovery/RotateRecovery"Pass the test and this pattern moves unknown