The objective of this part of my PhD was to develop a four-link inverted pendulum model that behaved similarly to a human when exposed to shipboard motions.

Based on Kane’s method and the principle of virtual work, Euler’s equations of motion of a system can be written as:

for translational motion, and:

for rotational motion of rigid bodies. The index *k* is cycled over the number of bodies in
the system, and the index *i* is cycled over the total number of generalized coordinate
derivatives, .
The terms **w**^{k}
and **v**^{k}_{G}
are the angular velocity and the velocity of the centre of mass, respectively.

These equations can be reformulated as:

where:

** A** contains the mass and inertia-related terms, and

In the formulation above, the matrices are all algorithmically generated based on the mass, inertia, geometry, and previous state of the system. Generation the equations of motion this way has the advantage that it is fairly simple to code and debug. The major downside is that it does not provide an algebraic representation of the equations for use in deriving a control system.

The model was validated by constraining its joints and comparing it to simpler published models. In all validation cases the results were very close.

The first model was called GRM3D, which consisted of a 3D rigid body, with no articulation, exposed to 6 DOF ship motion:

The results matched very well:

The second model it was compared to was called PSM3D, a single-segment, single-joint spatial inverted pendulum model with 6 DOF ship motion.

Again the results were very good.

To validate the motion of all four links the model was compared to a cart/inverted pendulum model with published equations for 4 links.

Here are the results: