Roban2 Docs
Feature Examples

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 TransportFallStand scheduler. Button-combination events enter the TriggerBuffer and are consumed by the in-process scheduler dispatched by ControlLogic.
  • Example configuration (gamepad button mapping): src/leju-controllers/leju-rl-controller/config/17/teleop_bindings.yaml
  • Main files and brief descriptions:
    1. src/leju-controllers/leju-rl-controller/config/17/teleop_bindings.yaml — gamepad button combination → TransportFallStand event bindings
    2. src/leju-controllers/leju-rl-controller/src/runtime/transport_fall_stand_scheduler.cpp — transport/recovery coordinator scheduling (event consumption)
    3. src/leju-controllers/leju-rl-controller/src/runtime/input/trigger_buffer.cpp — button-combination event buffer

Operating Steps

  1. 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.
  2. Enter transport mode stage 1

    • Press LB+RB+Y on the remote controller to enter transport mode stage 1 (press LB+RB+A to exit).
    • Note: During this stage, hold the handle on the robot's back; the robot must not leave the ground.
  3. Enter transport mode stage 2 (LOCK)

    • Press LT+RB+A on the remote controller to enter transport mode stage 2. The robot can now be safely lifted and moved.
  4. Exit transport mode (standing state)

    • Press LB+RB+A on the remote controller to exit transport mode and restore normal remote control.
  5. 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+X to 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+B for a full two seconds: all motors immediately drop their enable signal and the joint motors unlock. Then press LB+RB+X the first time to execute the initial recovery pose, and press LB+RB+X the second time to execute the stand-up action to the standing state and exit transport mode.

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 Operationtypename EventAMP GaitTransport Stage 1Transport Stage 2
LB+RB+YTransportFallStandtransport.enterEnter stage 1NoneNone
LT+RB+ATransportFallStandtransport.lockNoneEnter stage 2 (LOCK)None
LB+RB+ATransportFallStandtransport.exitNoneRestore AMPRestore AMP when standing / no response otherwise
LB+RB+B (hold 2s)TransportFallStandtransport.fall_downNoneNoneDrop enable
LB+RB+XTransportFallStandfallstand.standupNone yetStand up after fallingStand 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):

StateDescription
INACTIVETransport mode not entered; fallstand.standup uses the standalone recovery chain
ACTIVETransport mode active; fallstand.standup uses the hard recovery chain
HANDING_OVERHandover in progress; fallstand.standup uses the soft two-press recovery