# Locomotion

**URL:** https://forum.menlo.ai/c/locomotion/19.md

[Latest](https://forum.menlo.ai/latest.md) · [Categories](https://forum.menlo.ai/categories.md) · [Tags](https://forum.menlo.ai/tags.md)

---

## [About the Locomotion category](https://forum.menlo.ai/t/about-the-locomotion-category/33)

<div class="topic-metadata">

**Author:** [@menlo](https://forum.menlo.ai/u/menlo)\
**Replies:** 0

</div>

---

## [Why we chose Reinforcement Learning to train our locomotion policy](https://forum.menlo.ai/t/why-we-chose-reinforcement-learning-to-train-our-locomotion-policy/48)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 1\
**Last updated:** [November 17, 2026, 9:14am UTC](https://forum.menlo.ai/t/why-we-chose-reinforcement-learning-to-train-our-locomotion-policy/48 "2026-11-17T09:14:35Z")

</div>

How do Asimov training tasks? What’s the scalable ways to do it? Let’s first understand what are the approaches out there to enable a robot to perform desired tasks and behaviors and the difference between them. In rob…

---

## [How to train a task with Reinforcement learning](https://forum.menlo.ai/t/how-to-train-a-task-with-reinforcement-learning/49)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 1\
**Last updated:** [November 15, 2026, 9:50pm UTC](https://forum.menlo.ai/t/how-to-train-a-task-with-reinforcement-learning/49 "2026-11-15T21:50:31Z")

</div>

Before learning how to train a reinforcement learning policy for robot control, we first need to understand which types of tasks are suitable for RL. For systems that are easy to model and predict, model-based methods a…

---

## [Tutorial 4: Domain Randomization (How to make the policy robust)](https://forum.menlo.ai/t/tutorial-4-domain-randomization-how-to-make-the-policy-robust/42)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 1\
**Last updated:** [November 15, 2026, 11:45am UTC](https://forum.menlo.ai/t/tutorial-4-domain-randomization-how-to-make-the-policy-robust/42 "2026-11-15T11:45:02Z")

</div>

There are two main ways to reduce the sim-to-real gap. The first is accurate system identification, where we try to model the real robot as precisely as possible in simulation. However, real systems often contain complex…

---

## [Tutorial 7: Motion prior approach to make Asimov walk naturally (Or walk while dancing!)](https://forum.menlo.ai/t/tutorial-7-motion-prior-approach-to-make-asimov-walk-naturally-or-walk-while-dancing/45)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 0\
**Last updated:** [July 9, 2026, 10:07am UTC](https://forum.menlo.ai/t/tutorial-7-motion-prior-approach-to-make-asimov-walk-naturally-or-walk-while-dancing/45 "2026-07-09T10:07:55Z")

</div>

The previous locomotion approach worked well in terms of sim-to-real transfer: the policy could track velocity and handle pushes robustly. However, the gait was still slightly limping and conservative, and further improv…

---

## [Tutorial 6: Rewards Engineering (Define what should Robot learn)](https://forum.menlo.ai/t/tutorial-6-rewards-engineering-define-what-should-robot-learn/44)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 0\
**Last updated:** [July 9, 2026, 10:06am UTC](https://forum.menlo.ai/t/tutorial-6-rewards-engineering-define-what-should-robot-learn/44 "2026-07-09T10:06:40Z")

</div>

In locomotion RL, rewards define what behavior the policy should learn. Instead of directly telling the robot how to move each joint, we define reward terms that encourage desired behaviors and penalize undesirable ones…

---

## [Tutorial 5: Termination](https://forum.menlo.ai/t/tutorial-5-termination/43)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 0\
**Last updated:** [July 9, 2026, 10:05am UTC](https://forum.menlo.ai/t/tutorial-5-termination/43 "2026-07-09T10:05:03Z")

</div>

Termination is used to stop an episode when the robot enters an invalid or unhelpful state, so the policy does not keep learning from messy failure motions. Here we use two termination conditions: fell over termination …

---

## [Tutorial 3: Actuator modeling](https://forum.menlo.ai/t/tutorial-3-actuator-modeling/41)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 0\
**Last updated:** [July 9, 2026, 10:01am UTC](https://forum.menlo.ai/t/tutorial-3-actuator-modeling/41 "2026-07-09T10:01:54Z")

</div>

Kp and Kd setting In position control, each actuator is commanded to track a desired joint position: τ = Kp(q\_target - q) - Kd q\_dot A higher Kp makes the actuator track the target position more aggressively, improving…

---

## [Tutorial 2: URDF/XML modeling (Understand robot description)](https://forum.menlo.ai/t/tutorial-2-urdf-xml-modeling-understand-robot-description/35)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 0\
**Last updated:** [July 9, 2026, 9:01am UTC](https://forum.menlo.ai/t/tutorial-2-urdf-xml-modeling-understand-robot-description/35 "2026-07-09T09:01:37Z")

</div>

1. how to read/visualize xml An XML file is a structured description of the simulated robot and its environment. In asimov\_1.xml, it defines the simulation environment, robot links and kinematic structure, joints, collis…

---

## [Tutorial 1: Quick Deployment (if you just want to launch the training](https://forum.menlo.ai/t/tutorial-1-quick-deployment-if-you-just-want-to-launch-the-training/34)

<div class="topic-metadata">

**Author:** [@Ariel\_Hu](https://forum.menlo.ai/u/Ariel_Hu)\
**Replies:** 0\
**Last updated:** [July 9, 2026, 8:33am UTC](https://forum.menlo.ai/t/tutorial-1-quick-deployment-if-you-just-want-to-launch-the-training/34 "2026-07-09T08:33:19Z")

</div>

Requirements Our training code is based on mjlab, which uses MuJoCo Warp, a GPU accelerated backend optimized for NVIDIA GPUs. Locomotion training, especially with on policy algorithms such as PPO, requires many parallel…
