Skip to content
IFAI

Open source

Terra simulates real muscles and bones for AI locomotion

Published Reach 48

Researchers just open-sourced Terra, an AI system that teaches simulated bodies to navigate complex terrain using realistic musculoskeletal mechanics rather than simple joint controls. Trained on over 9 hours of motion data, it walks across slopes and steps, and can be fine-tuned for jumps and rolls under the Apache 2.0 license.

Terra simulates real muscles and bones for AI locomotion
Image: arxiv.org

Terra is an open-source AI motion control system that teaches simulated human bodies to move across complex terrain using realistic musculoskeletal mechanics. Unlike most video game characters or humanoid robots that move by directly rotating joint motors, Terra simulates real biology, where muscles contract to pull on bones and produce movement.

All project code has been released on GitHub under the permissive Apache 2.0 license, along with instructions for downloading and running the simulations locally on your machine.

What it does

Most existing muscle-actuated character systems only work on perfectly flat floors. Throw a flight of stairs or a bumpy trail at them, and the simulation usually collapses in a tangle of limbs.

Terra takes simulated humans into the wild. In benchmark demonstrations, the AI successfully navigates steep slopes, walks up flights of stairs, and crosses jagged, uneven ground without losing balance.

Beyond basic locomotion, researchers showed that you can take the core muscle model and fine-tune specialized policies to pull off much more dynamic acrobatics, including jumps and rolls.

How it works

Teaching simulated muscles to handle non-flat terrain has always faced a big data hurdle: motion capture datasets almost never record the physical shape of the ground underneath the actor.

Terra bypasses this with an end-to-end pipeline that reconstructs support geometry from kinematic trajectories alone. By combining terrain priors, contact point estimations, and negative free-space evidence, it figures out what the ground must have looked like under each step.

During retargeting, the pipeline enforces strict anatomical limits, tendon-continuity rules, and realistic ground-contact constraints to prevent unnatural bone bending or ground clipping.

Using motion-terrain pairs built from five different datasets, the team trained a single general muscle-actuated policy on 9.4 hours of diverse movement covering 18 distinct locomotion behaviors.

How to run it

The team open-sourced the entire project on GitHub under the Apache 2.0 license, meaning developers and researchers can modify and use it with minimal restrictions.

The repository provides step-by-step instructions to set up the dependencies and run the simulation locally on your own computer, alongside links to the project website and technical paper.

Keep in mind that running real-time musculoskeletal physics alongside deep reinforcement learning policies will demand a capable modern GPU and proper simulation toolchains.

Why it matters

If you work in 3D character animation, biomechanics research, or bio-inspired robotics, Terra is worth checking out right now. Animating natural human movement over uneven obstacles used to require tedious manual cleanup; having a physically grounded muscle policy handle it automatically changes the game.

It also matters for the future of humanoid hardware. Electric actuators directly driving joints often look stiff and lack the natural compliance of real flesh and tendon. As robotics companies explore compliant actuators and artificial muscles, algorithms like Terra show that AI can effectively master true musculoskeletal balance across rugged, real-world terrain.

Sources (2)

  1. [1]
    youtube.com(opens in a new tab)Originalyoutube.com
  2. [2]

Best of AI, daily