The dynamics of the system were simulated in MATLAB using kinematic relationships, Lagrangian Dynamics, and Euler's method for numerical integration. Results can be seen below:


Slowed-down videos of the forward and backward directions are shown below: