This repository contains example files for the following MATLAB and Simulink Robotics Arena videos on walking robots.
- Modeling and simulation
- Actuation and control
- Trajectory optimization
- Walking pattern generation
- Deep reinforcement learning
You can also learn more about this example from our blog post.
For any questions, email us at roboticsarena@mathworks.com.
Run startupWalkingRobot.m
to get the MATLAB path ready
There are 4 main folders containing the various walking robot examples
-
ModelingSimulation
-- Shows how to build the simulation of the walking robot, including contact forces, various actuator models, and importing from CAD. -
Optimization
-- Shows how to use genetic algorithms to optimize joint angle trajectories for stability and speed. -
ControlDesign
-- Shows how to create closed-loop walking controllers using common techniques like Zero Moment Point (ZMP) manipulation and Model Predictive Control (MPC) for pattern generation. -
ReinforcementLearning
-- Shows how to set up and train a Deep Deterministic Policy Gradient (DDPG) reinforcement learning agent for learning how to walk.
Each of these folders has its own separate README with more information.
For convenience, local copies of the Simscape Multibody Multiphysics Library and Simscape Multibody Contact Forces Library have been included with this submission. If you would like to install the latest version of these libraries, you can find them from the Add-On Explorer, or on the File Exchange
- Simscape Multibody Multiphysics Library: https://www.mathworks.com/matlabcentral/fileexchange/37636-simscape-multibody-multiphysics-library
- Simscape Multibody Contact Forces Library: https://www.mathworks.com/matlabcentral/fileexchange/47417-simscape-multibody-contact-forces-library