Compass Gait Bipedal Robot with Computer Torque Control (CTC)
This is another small project for a robotics module at uni.
It takes a basic model of a compass gait walking robot derived from Lagrangian Mechanics and applies computer torque control to follow desired trajectories.
First, the Trajectory_Planner file is run that creates the desired trajectories of the Swing Foot Heel (position, velocity and acceleration) in Cartesian as well as joint space. The CTC needs the Qdot and Qdotdot information as its input.
The desired trajectories are created using piecewise cubic splines (based on initial, intersection and final conditions). It also looks at the Cartesian to joint transformation (The J matrix) to ensure that it is well-posed; i.e within the working envelope.
Afterwards, run the Simulink model that has all the function blocks including a Forward Kinematics block that gets the Cartesian position by using joint information.
There is also a file to display the results in an animation. It uses the joint information (from Simulink results) and performs forward kinematics to get all positions and draws it.
NOTE - ALL THE SIMULATION DATA IS FOR ONE SECOND ONLY AND THE FOOT IMPACT IS NOT MODELLED. HOWEVER, IT CAN BE DONE BY CONSIDERING PRE-IMPACT AND POST-IMPACT CONDITIONS AND CONSERVATION OF ANGULAR MOMENTUM.
For a full compass gait model; check this:
http://www.birl.ethz.ch/education/BIMC2012/uploads/compass_gait_mwe.m
Cite As
Ali (2023). Compass Gait Bipedal Robot with Computer Torque Control (CTC) (https://www.mathworks.com/matlabcentral/fileexchange/45979-compass-gait-bipedal-robot-with-computer-torque-control-ctc), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Piecewise Cubic Spline
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
CompassGait_CTCcontrol/
CompassGait_CTCcontrol/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |