Uploaded August 2025 | Updated November 2026, 3 days ago
Only three years later, I'm rejoined by Dr. Christian Hubicki to continue our series on robot controllers. Dr. Hubicki gives a presentation on the history of legged robots (like ASIMO and Boston Dynamics) and the principles behind the Raibert Hopper. Then, we attempt to implement a 1D hopping robot simulation in p5.js using a PID controller. Code: thecodingtrain.com/tracks/robot-controllers/robot-controllers/robot-controller-2
p5.js Web Editor Sketches:
πΉοΈ 1D Raibert Hopper: editor.p5js.org/codingtrain/sketches/CjfAtvdGx
πΉοΈ 1D Raibert Hopper: editor.p5js.org/codingtrain/sketches/EYOfSWBaF
πΉοΈ 1D Spring Simulation: editor.p5js.org/codingtrain/sketches/EhhzPIB-h
πΉοΈ 2D Hopper: editor.p5js.org/codingtrain/sketches/W_hxT-8ST
π» Code Example: gist.github.com/shiffman/9eea780b9cada3725887d26ed174d49e
π₯ Previous: youtu.be/fWQWX9-8_sA
References:
π Dr. Christian Hubicki: christianhubicki.com
π€ Optimal Robotics Lab: optimalroboticslab.com
π The Nature of Code: natureofcode.com
Videos:
π youtu.be/fWQWX9-8_sA
π youtu.be/P_xJMH8VvAE
π youtu.be/DHPfoqiE4yQ
Related Coding Challenges:
π youtu.be/Rr-5HiXquhw
Timestamps:
0:00:00 Waiting to Start
0:05:17 Welcome to The Coding Train
0:08:35 Revisiting Part 1 from 2022
0:10:13 Introducing Dr. Christian Hubicki
0:20:10 Dr. Hubicki's Presentation: How to Make a Robot Hop
0:24:00 History of Legged Locomotion: Safety vs. Agility
0:27:09 The 'Safety First' Approach (ZMP, ASIMO)
0:30:34 The 'Agility First' Approach (Mark Raibert, Boston Dynamics)
0:38:17 Whiteboard Explanation: PID Controllers
0:51:30 Whiteboard Explanation: The Raibert Hopper Controller
0:58:07 Transition to Coding in p5.js
1:03:04 Connecting to Nature of Code and Steering Behaviors
1:10:40 Starting with the p5.js Spring Simulation Code
1:24:27 Implementing Hopping Phases (Stance vs. Flight)
1:48:01 Implementing the PID Controller for Hopping Height
2:09:59 Reviewing a Pre-made, Working 1D Hopper Example
2:16:40 Previewing a 2D Hopper Starter Code
2:23:04 Where to Find Dr. Christian Hubicki
2:24:53 What's Next for The Coding Train
2:29:43 Outro and Goodbyes
Christian Hubicki is an Associate Professor of Mechanical Engineering at the FAMU-FSU College of Engineering. His groupβs research at the Optimal Robotics Laboratory specializes in legged robotics, applied optimal control, biomechanical modeling, and fast algorithms for adaptive robot behaviors. He earned both his bachelor's and masterβs degrees in mechanical engineering from Bucknell University, earned his dual-degree PhD in Robotics and Mechanical Engineering at Oregon State University, and completed his postdoctoral work in the Mechanical Engineering and Physics departments at the Georgia Institute of Technology. His research awards include a Best Technical Paper Finalist at ICRA 2016, Best Paper Winner in 2019 from IEEE Robotics and Automation Magazine, Outstanding Locomotion Paper Winner at ICRA 2022, and a Young Faculty Researcher Grant from the Toyota Research Institute in 2021. His work has been featured at the National Academy of Engineeringβs Gilbreth Lecture Series, the TEDx lecture series, and in media outlets from the Science Channel to CBSβs βThe Late Show with Stephen Colbert.
Music from Epidemic Sound
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#robotics #p5js #pidcontroller #raiberthopper #simulation #physics #leggedlocomotion #robotcontrol #p5js #matlab
Only three years later, I'm rejoined by Dr. Christian Hubicki to continue our series on robot controllers. Dr. Hubicki gives a presentation on the history of legged robots (like ASIMO and Boston Dynamics) and the principles behind the Raibert Hopper. Then, we attempt to implement a 1D hopping robot simulation in p5.js using a PID controller. Code: thecodingtrain.com/tracks/robot-controllers/robot-controllers/robot-controller-2
p5.js Web Editor Sketches:
πΉοΈ 1D Raibert Hopper: editor.p5js.org/codingtrain/sketches/CjfAtvdGx
πΉοΈ 1D Raibert Hopper: editor.p5js.org/codingtrain/sketches/EYOfSWBaF
πΉοΈ 1D Spring Simulation: editor.p5js.org/codingtrain/sketches/EhhzPIB-h
πΉοΈ 2D Hopper: editor.p5js.org/codingtrain/sketches/W_hxT-8ST
π» Code Example: gist.github.com/shiffman/9eea780b9cada3725887d26ed174d49e
π₯ Previous: youtu.be/fWQWX9-8_sA
References:
π Dr. Christian Hubicki: christianhubicki.com
π€ Optimal Robotics Lab: optimalroboticslab.com
π The Nature of Code: natureofcode.com
Videos:
π youtu.be/fWQWX9-8_sA
π youtu.be/P_xJMH8VvAE
π youtu.be/DHPfoqiE4yQ
Related Coding Challenges:
π youtu.be/Rr-5HiXquhw
Timestamps:
0:00:00 Waiting to Start
0:05:17 Welcome to The Coding Train
0:08:35 Revisiting Part 1 from 2022
0:10:13 Introducing Dr. Christian Hubicki
0:20:10 Dr. Hubicki's Presentation: How to Make a Robot Hop
0:24:00 History of Legged Locomotion: Safety vs. Agility
0:27:09 The 'Safety First' Approach (ZMP, ASIMO)
0:30:34 The 'Agility First' Approach (Mark Raibert, Boston Dynamics)
0:38:17 Whiteboard Explanation: PID Controllers
0:51:30 Whiteboard Explanation: The Raibert Hopper Controller
0:58:07 Transition to Coding in p5.js
1:03:04 Connecting to Nature of Code and Steering Behaviors
1:10:40 Starting with the p5.js Spring Simulation Code
1:24:27 Implementing Hopping Phases (Stance vs. Flight)
1:48:01 Implementing the PID Controller for Hopping Height
2:09:59 Reviewing a Pre-made, Working 1D Hopper Example
2:16:40 Previewing a 2D Hopper Starter Code
2:23:04 Where to Find Dr. Christian Hubicki
2:24:53 What's Next for The Coding Train
2:29:43 Outro and Goodbyes
Christian Hubicki is an Associate Professor of Mechanical Engineering at the FAMU-FSU College of Engineering. His groupβs research at the Optimal Robotics Laboratory specializes in legged robotics, applied optimal control, biomechanical modeling, and fast algorithms for adaptive robot behaviors. He earned both his bachelor's and masterβs degrees in mechanical engineering from Bucknell University, earned his dual-degree PhD in Robotics and Mechanical Engineering at Oregon State University, and completed his postdoctoral work in the Mechanical Engineering and Physics departments at the Georgia Institute of Technology. His research awards include a Best Technical Paper Finalist at ICRA 2016, Best Paper Winner in 2019 from IEEE Robotics and Automation Magazine, Outstanding Locomotion Paper Winner at ICRA 2022, and a Young Faculty Researcher Grant from the Toyota Research Institute in 2021. His work has been featured at the National Academy of Engineeringβs Gilbreth Lecture Series, the TEDx lecture series, and in media outlets from the Science Channel to CBSβs βThe Late Show with Stephen Colbert.
Music from Epidemic Sound
π Website: thecodingtrain.com
πΎ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: github.com/CodingTrain/Suggestion-Box
π‘ GitHub: github.com/CodingTrain
π¬ Discord: thecodingtrain.com/discord
π Membership: youtube.com/thecodingtrain/join
π Store: standard.tv/codingtrain
ποΈ Twitter: twitter.com/thecodingtrain
πΈ Instagram: instagram.com/the.coding.train
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new
#robotics #p5js #pidcontroller #raiberthopper #simulation #physics #leggedlocomotion #robotcontrol #p5js #matlab


![Spring Show 2021 in SpatialChat (ITP/IMA/IMA Low Res)
Connect with the students LIVE in a science fair style show! Meet students and view project demos in SpatialChat, a multiuser 2D-platform. Ill be live broadcasting my experience at the show but you can join yourself! https://spatial.chat/s/springshow2021
Register for this event, and youβll be emailed the link when the event starts. Or, check our website for the event link at 8pm ET. https://itp.nyu.edu/show
The [ITP/IMA/Low Res] Spring Show 2021
Monday May 17 β Tuesday May 18
A Festival of the Recently Possible
Please join us! The events are free and open to the public.
All student projects will be exhibited in the YORB Gallery starting Monday May 17 [Morning]. Watch Live Performances on Monday May 17 [Night]. Meet the creators and learn more about their work at The Show on Tuesday May 18 [Night]. All details below.
Learn how to attend the events here: https://itp.nyu.edu/shows/spring2021/schedule/
We encourage you to register to add the events to your calendar and to receive event links on the day of. However registration is not required to attend all event links will go live here on our website each day.
π» https://thecodingtrain.com/CodingChallenges
π» https://editor.p5js.org/codingtrain/sketches/
π Website: http://thecodingtrain.com/
π Patreon: https://patreon.com/codingtrain
π Store: https://standard.tv/codingtrain
π Books: https://www.amazon.com/shop/thecodingtrain
π¬ Discord https://discord.gg/codingtrain
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π Processing: https://processing.org Spring Show 2021 in SpatialChat (ITP/IMA/IMA Low Res)](https://i.ytimg.com/vi/3njRN7xM7C0/mqdefault.jpg)







