Reachy Mini documentation

Compliant Mode Demo

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Compliant Mode Demo

This demo turns the Reachy Mini into compliant mode and compensates for the gravity of the robot platform to prevent it from falling down.

You can gently push the robot and it will follow your movements. When you stop pushing it, it will stay in place. This is useful for applications like human-robot interaction, where you want the robot to be compliant and follow the user’s movements.

Note: This demo currently only works with Placo as the kinematics engine.


import time

from reachy_mini import ReachyMini

print(
    "This demo currently only works with Placo as the kinematics engine. Start the daemon with:\nreachy-mini-daemon --kinematics-engine Placo"
)
with ReachyMini(media_backend="no_media") as mini:
    try:
        mini.enable_gravity_compensation()

        print("Reachy Mini is now compliant. Press Ctrl+C to exit.")
        while True:
            # do nothing, just keep the program running
            time.sleep(0.02)
    except KeyboardInterrupt:
        pass
    finally:
        mini.disable_gravity_compensation()
        print("Exiting... Reachy Mini is stiff again.")
Update on GitHub