Fall Recovery & Transport Mode Example
Description
- Note: This feature is not available on the Roban2 Advanced Version B product. To avoid damaging the gripper, you can enable this feature by replacing the robot's end effector with a dummy hand or a dexterous hand. For the specific configuration file, see Quick Debugging
- This example implements Roban's remote-controlled fall recovery and transport mode, switching between transport mode and recovery actions via gamepad button combinations.
- Note: This example is implemented on the lower-level controller's
TransportFallStandscheduler. Button-combination events enter theTriggerBufferand are consumed by the in-process scheduler dispatched byControlLogic. - Example configuration (gamepad button mapping):
src/leju-controllers/leju-rl-controller/config/17/teleop_bindings.yaml - Main files and brief descriptions:
src/leju-controllers/leju-rl-controller/config/17/teleop_bindings.yaml— gamepad button combination →TransportFallStandevent bindingssrc/leju-controllers/leju-rl-controller/src/runtime/transport_fall_stand_scheduler.cpp— transport/recovery coordinator scheduling (event consumption)src/leju-controllers/leju-rl-controller/src/runtime/input/trigger_buffer.cpp— button-combination event buffer
Operating Steps
-
Robot standing
- Use the gamepad to make the robot stand up and enter control mode.
- Remove the transfer lift from the robot's back to avoid collisions.
-
Enter transport mode stage 1
- Press
LB+RB+Yon the remote controller to enter transport mode stage 1 (pressLB+RB+Ato exit). - Note: During this stage, hold the handle on the robot's back; the robot must not leave the ground.
- Press
-
Enter transport mode stage 2 (LOCK)
- Press
LT+RB+Aon the remote controller to enter transport mode stage 2. The robot can now be safely lifted and moved.
- Press
-
Exit transport mode (standing state)
- Press
LB+RB+Aon the remote controller to exit transport mode and restore normal remote control.
- Press
-
Fall recovery (robot in a fallen state)
At this point Roban is lying flat or face-down on the ground with the joint motors locked. Perform the recovery as follows:
- Press
LB+RB+Xto execute a stand-up action from the "ready-to-transport pose" to the standing state, exit transport mode, and restore the normal standing state (AMP). - Alternatively, hold
LB+RB+Bfor a full two seconds: all motors immediately drop their enable signal and the joint motors unlock. Then pressLB+RB+Xthe first time to execute the initial recovery pose, and pressLB+RB+Xthe second time to execute the stand-up action to the standing state and exit transport mode.
- Press
Running Effect
Interface Definition
The button events in this example are defined by actions of type TransportFallStand in teleop_bindings.yaml, and the scheduling layer distinguishes behavior based on the transport state:
| Button Operation | type | name Event | AMP Gait | Transport Stage 1 | Transport Stage 2 |
|---|---|---|---|---|---|
LB+RB+Y | TransportFallStand | transport.enter | Enter stage 1 | None | None |
LT+RB+A | TransportFallStand | transport.lock | None | Enter stage 2 (LOCK) | None |
LB+RB+A | TransportFallStand | transport.exit | None | Restore AMP | Restore AMP when standing / no response otherwise |
LB+RB+B (hold 2s) | TransportFallStand | transport.fall_down | None | None | Drop enable |
LB+RB+X | TransportFallStand | fallstand.standup | None yet | Stand up after falling | Stand up after falling |
Configuration example (teleop_bindings.yaml):
- buttons: ["LB", "RB", "Y"]
action: { type: TransportFallStand, args: { name: transport.enter } }
- buttons: ["LT", "RB", "A"]
action: { type: TransportFallStand, args: { name: transport.lock } }
- buttons: ["LB", "RB", "B"]
hold: 2.0
action: { type: TransportFallStand, args: { name: transport.fall_down } }
- buttons: ["LB", "RB", "X"]
action: { type: TransportFallStand, args: { name: fallstand.standup } }Scheduling states (TransportFallStandScheduler internal state machine):
| State | Description |
|---|---|
INACTIVE | Transport mode not entered; fallstand.standup uses the standalone recovery chain |
ACTIVE | Transport mode active; fallstand.standup uses the hard recovery chain |
HANDING_OVER | Handover in progress; fallstand.standup uses the soft two-press recovery |