Skip to content

Inverse dynamics: the forces for a given motion

Given the motion, find the forces at the joints.

The Inverse dynamics tab of a closed loop

field meaning
Include inverse dynamics in this model the checkbox at the top. Switched off, the model has no inverse dynamics settings and cannot run it. The motion is saved with these settings, so it needs them on
time [t0, tf], step the duration of the motion and the spacing of the results

The motion that the joints follow is set in the Motion tab. It is also what a forward-dynamics controller follows when it is set to Follow the motion. For a closed loop the motion is given for the motors only, and it must start near the model's start pose: see the Motion tab.

When you switch on inverse dynamics for a robot that has none, the motion starts from the model's own start pose and moves a little (1 rad for a revolute joint, 0.2 m for a prismatic one).

If you edit the file by hand

time [t0, tf] and step are flat keys under invdyn::

invdyn:
  time: [0, 2]
  step: 0.01
  trajectory:               # the motion: see the Motion tab
    quintic: {q0: [0, 0], qf: [1.0, 0.5]}