This robot taught itself to walk in simulation then went for a stroll
Coding robots to do things is so yesterday - training them in simulation is the future and it's fast.
Key takeaways
- Through trial and error, it learned to move in a simulated world.
- Boston Dynamics is one of the world’s top makers of advanced robots.
- The first simulation, an open source training environment called MuJoCo, was where the algorithm drew upon a large library of possible movements and, through trial and error, learned to apply them.
Cite or link to this article
Griffin, M. (2021) 'This robot taught itself to walk in simulation then went for a stroll', 311 Institute, 2 June. Available at: https://www.311institute.com/this-robot-taught-itself-to-walk-in-simulation-then-went-for-a-stroll/ (Accessed: 1 October 2026).
Recently I showed off how training a robotic hand in simulation, which crammed hundreds of years of “learning” into mere days, ended up creating the world’s most dexterous robotic hand that can solve a Rubik’s cube single handed in under a minute. And that’s impressive – almost as impressive as the fact that it’s now so good it could replace all the human pickers jobs in warehouses, and even one day help with robo-surgeries. All of which is just the beginning.
Now, in a lab at Berkeley, a robot called Cassie has taught itself to walk, a little like a toddler might. Through trial and error, it learned to move in a simulated world. Then its handlers sent it strolling through a minefield of real-world tests to see how it’d fare.
And, as it turns out, it fared pretty darn well. With no further fine-tuning, the robot, which is basically just a pair of legs, was able to walk in all directions, squat down while walking, right itself when pushed off balance, and adjust to different kinds of surfaces. And the innovation could have future applications in everything from general purpose robots to exosuits.
It’s the first time a machine learning approach known as reinforcement learning has been so successfully applied in two-legged robots.
For years, the internet has been enthralled by videos of robots doing far more than walking and regaining their balance. All that is table stakes these days. Boston Dynamics, the heavyweight champ of robot videos, regularly releases mind-blowing footage of robots doing parkour, running, and complex dance routines. At times, it can seem the world of iRobot is just around the corner.
No coding required ...
This sense of awe is well-earned. Boston Dynamics is one of the world’s top makers of advanced robots.
But in these cases the companies behind the robots still have to meticulously hand program and choreograph the movements of the robots in their videos. This is a powerful approach, and the Boston Dynamics team has done incredible things with it.
In real-world situations, however, robots need to be robust and resilient. They need to regularly deal with the unexpected, and no amount of choreography will do. Which is how, it’s hoped, machine learning can help.
Reinforcement learning has been most famously exploited by Alphabet’s DeepMind to train algorithms that thrash humans at some the most difficult games. Simplistically, it’s modelled on the way we learn. Touch the stove, get burned, don’t touch the thing again, and so on.
In Cassie’s case, the Berkeley team used reinforcement learning to train an algorithm to walk in a simulation. It’s not the first AI to learn to walk in this manner. But going from simulation to the real world doesn’t always translate. Subtle differences between the two can literally trip up a fledgling robot as it tries out its sim skills for the first time.
To overcome this challenge, the researchers used two simulations instead of one. The first simulation, an open source training environment called MuJoCo, was where the algorithm drew upon a large library of possible movements and, through trial and error, learned to apply them. The second simulation, called Matlab SimMechanics, served as a low-stakes testing ground that more precisely matched real-world conditions.
Once the algorithm was good enough, it graduated to Cassie. And amazingly, it didn’t need further polishing. Said another way, when it was born into the physical world - it knew how to walk just fine. In addition, it was also quite robust. The researchers write that two motors in Cassie’s knee malfunctioned during the experiment, but the robot was able to adjust and keep on trucking.
Other labs have also been hard at work applying machine learning to robotics. Last year Google used reinforcement learning to train a simpler four legged robot to walk by itself. And OpenAI has used it with robotic arms. Boston Dynamics, too, will likely explore ways to augment their robots with machine learning. Then, new approaches - like this one from MIT which offers continuous learning beyond training - may also move the dial.
It’s still early stages though and while there’s no telling when machine learning will exceed more traditional methods based on the results it’s likely going to be sooner rather than later. And in the meantime, Boston Dynamics robots, for example, are now helping clean up the real world, from assisting the NYPD to cleaning up nuclear plants …
FAQ
Why does this matter?
Coding robots to do things is so yesterday - training them in simulation is the future and it's fast.

About the author
Matthew Griffin Founder, 311 Institute
Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath."
Read full bio
Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath." 15-time best selling author of the "Codex of the Future" series, Matthew is the Founder and Futurist in Chief of the 311 Institute, a global Futures and Deep Futures advisory firm working with royal households, world leaders, G7, G20, and G77 governments, NGOs, and multi-national mid and mega cap firms to help them explore, shape, and lead the next 50 years of business and society.
An award-winning YouTube creator with over a million followers, with an unrivalled global reach and impact, Matthew is a highly sought-after international keynote speaker, lecturer, and mentor who collaborates with global leaders through the United Nations Alliance of Civilizations (UNAOC) and United Nations General Assembly (UNGA) to shape pivotal initiatives such as the UN’s AI for Humanity program, the United Nations Conference of the Parties (UN COP), and the World Economic Forum in Davos.
As the former Global Head of Cloud, National Security, and Enterprise Sales for companies including Atos, Dell-EMC, and IBM, Matthew has a proven track record of building multi-billion dollar business units and turning failing divisions into market leaders. His ability to identify, analyse, and communicate the implications of hundreds of emerging technologies and trends is unparalleled, and his insights are trusted by many of the world’s most respected organisations, including ABB, Accenture, Adidas, AON, ARM, BCG, Centrica, Citi, Coca-Cola, Dentons, Deloitte, Dow Jones, EY, Google, KPMG, Lego, Legal & General, LinkedIn, Microsoft, PepsiCo, Qualcomm, RWE, Samsung, Siemens AG and Siemens Energy, T-Mobile, UBS, VISA, Walmart, Workday, Worldpay and many others.
Regularly featured in the global media including the AP, BBC, Bloomberg, CNBC, Discovery, Forbes, Khaleej Times, Telegraph, TIME, ViacomCBS, WIRED, and the WSJ, Matthews mission is to help organisations create a fair and sustainable future whose benefits are shared by everyone irrespective of their ability, background, or circumstances.
What future do you need to see?
Choose one to get started on robotics and the future of your organisation.
Sources and further reading
- a robot called Cassie has taught itself to walk arxiv.org
- meticulously hand program and choreograph the movements spectrum.ieee.org
- OpenAI has used it with robotic arms theverge.com
Source: first published by the 311 Institute on 2 June 2021. Cite as: Griffin, M. (2021). This robot taught itself to walk in simulation then went for a stroll. 311 Institute. https://www.311institute.com/this-robot-taught-itself-to-walk-in-simulation-then-went-for-a-stroll/
You are welcome to quote this article with credit and a link to the original.