Model of the dynamics of the task. Inverse dynamics model of the cart-and-pendulum system alone are shown. θ, Pendulum angle; d, pendulum length; Finter, interaction force; mc, mass of the cart; mp, mass of the pendulum; X, cart position; Ẋ, cart velocity; Ẍ, cart acceleration.