File Exchange

image thumbnail

Running Robot Model in Simscape

version 1.5.0.0 (18.3 MB) by Steve Miller
Quadruped robot model with electrical actuation, including gait analysis and design workflow.

82 Downloads

Updated 18 Apr 2019

View License

Models a quadruped robot with electrical actuation. The robot runs with trotting gait on four legs. Supporting models explain and automate the design process for the limbs, joint angle trajectories, and electrical system. This model is similar to quadruped robots such as those seen in the video, “Introducing Spot“ https://www.youtube.com/watch?v=M8YjvHYbZ9w



Please read the README.txt file to get started.

This model is based on the example covered in the paper "Tool-Supported Mechatronic System Design"
http://ieeexplore.ieee.org/document/4758205/?reload=true

Find other Simscape examples by searching posts for the keyword "physical modeling"
https://www.mathworks.com/matlabcentral/fileexchange/?term=%22physical+modeling%22

Learn more about MathWorks Simscape Products:
https://www.mathworks.com/physical-modeling/

Cite As

Steve Miller (2019). Running Robot Model in Simscape (https://www.mathworks.com/matlabcentral/fileexchange/64237-running-robot-model-in-simscape), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (15)

zp qiu

Hey,
could you please send the file version which is compatible with matlab 2016a?
Thank you.

HAO YAN

xiang WANG

Can we have a discussion about that? I have recently implemented this control strategy in 2D environment but failed in 3D environment. @Shuo Yang

Shuo Yang

I also used your contact model. And I implemented Marc Raibert's "Legged Robots that Balance" virtual leg placement strategy in two directions, so my robot can stably run in 3D environment. Thanks to your contact model!

Shuo Yang

Hi Steve, nice work! I just found your work this morning and I learned a lot.

I made a quadruped simulation as well. In some aspect better than yours, but some are not. If you are interested, check it out: https://github.com/paulyang1990/QuadrupedSim

xiang WANG

Hello, Miller. I do not understand how to implement single-plane motion. Could you please give me some details about the "Body Constraints" module?Thank you!

sorry about that just now checked

Steve Miller

@Rasmus Koefoed: That diagnostic indicates you do not have a required product. Which release are you using? elec_lib in R2018a opens Simscape Electronics. In R2018b it opens Simscape Electrical, which is the merge of Simscape Electrical and Simscape Power Systems.

I get the error: "Failed to load library 'elec_lib'" for multiple blocks. Seems Simscape Electrical has been changed, because i haven't been able to find a download that includes the "elec_lib" library

Yang Meng

Updates

1.5.0.0

Added R19a version.

1.4.0.1

Added R18b version.

1.4.0.0

Updated Contact Force Library in all versions to use v4.1.

1.3.0.0

Added R2018a version, which uses Simscape Multibody Contact Force Library v4.0.

1.2.0.0

Updating contact force library only, no changes to running robot example.

1.1.0.0

Added R2016b and R2017b versions.

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Simscape Multibody Contact Forces Library

Running_Robot_4_Legs_R18a

Running_Robot_4_Legs_R18a/Design

Running_Robot_4_Legs_R18a/Libraries/CFL_Libs

Running_Robot_4_Legs_R18a/Libraries/CFL_Libs/Libraries

Running_Robot_4_Legs_R18a/Libraries/CFL_Libs/Libraries/Help

Running_Robot_4_Legs_R18a/Libraries/CFL_Libs/Scripts_Data

Running_Robot_4_Legs_R18a/Libraries/CFL_Libs/Scripts_Data/Doc

Running_Robot_4_Legs_R18a/Libraries/CFL_Libs/Scripts_Data/Extrusions

Running_Robot_4_Legs_R18a/Scripts_Data

Running_Robot_4_Legs_R18b

Running_Robot_4_Legs_R18b/Design

Running_Robot_4_Legs_R18b/Libraries/CFL_Libs

Running_Robot_4_Legs_R18b/Libraries/CFL_Libs/Libraries

Running_Robot_4_Legs_R18b/Libraries/CFL_Libs/Libraries/Help

Running_Robot_4_Legs_R18b/Libraries/CFL_Libs/Scripts_Data

Running_Robot_4_Legs_R18b/Libraries/CFL_Libs/Scripts_Data/Doc

Running_Robot_4_Legs_R18b/Libraries/CFL_Libs/Scripts_Data/Extrusions

Running_Robot_4_Legs_R18b/Scripts_Data

Running_Robot_4_Legs_R19a

Running_Robot_4_Legs_R19a/Design

Running_Robot_4_Legs_R19a/Libraries/CFL_Libs

Running_Robot_4_Legs_R19a/Libraries/CFL_Libs/Libraries

Running_Robot_4_Legs_R19a/Libraries/CFL_Libs/Libraries/Help

Running_Robot_4_Legs_R19a/Libraries/CFL_Libs/Scripts_Data

Running_Robot_4_Legs_R19a/Libraries/CFL_Libs/Scripts_Data/Doc

Running_Robot_4_Legs_R19a/Libraries/CFL_Libs/Scripts_Data/Extrusions

Running_Robot_4_Legs_R19a/Scripts_Data

Running_Robot_4_Legs_R18a

Running_Robot_4_Legs_R18a/Design

Running_Robot_4_Legs_R18a/Libraries

Running_Robot_4_Legs_R18a/Libraries/CFL_Libs/Libraries

Running_Robot_4_Legs_R18b

Running_Robot_4_Legs_R18b/Design

Running_Robot_4_Legs_R18b/Libraries

Running_Robot_4_Legs_R18b/Libraries/CFL_Libs/Libraries

Running_Robot_4_Legs_R19a

Running_Robot_4_Legs_R19a/Design

Running_Robot_4_Legs_R19a/Libraries

Running_Robot_4_Legs_R19a/Libraries/CFL_Libs/Libraries

Running_Robot_4_Legs_R18a/Design/html

Running_Robot_4_Legs_R18a/html

Running_Robot_4_Legs_R18b/Design/html

Running_Robot_4_Legs_R18b/html

Running_Robot_4_Legs_R19a/Design/html

Running_Robot_4_Legs_R19a/html