For generalized coordinates q=[yzθϕ]⊤ the system’s kinetic and potential energy are
TV=21(mQ(y˙2+z˙2)+IQθ˙2+mP(y˙P2+z˙P2))=gmQz+gmP(z−lcos(ϕ))
where
y˙P=y˙+lϕ˙cos(ϕ)+l˙sin(ϕ),z˙P=z˙+lϕ˙sin(ϕ)−l˙cos(ϕ).
The two forces acting on the system and their action arms are
F1,2=u1,2[−sin(θ)cos(θ)],r1,2=[y∓acos(θ)z∓asin(θ)].
We will also consider disturbances acting on the system
D1,2=dC1,2[−10],s1=[yz],s2=[y+lsin(ϕ)z−lcos(ϕ)].
The individual terms of the manipulator equations are then
McτpBE=mQ+mP00lmPcos(ϕ)0mQ+mP0lmPsin(ϕ)00IQ0lmPcos(ϕ)lmPsin(ϕ)0l2mP=−lmPsin(ϕ)ϕ˙2+2l˙mPcos(ϕ)ϕ˙lmPcos(ϕ)ϕ˙2+2l˙mPsin(ϕ)ϕ˙02mPll˙ϕ˙=0−g(mP+mQ)0−glmPsin(ϕ)=−sin(θ)cos(θ)−a0−sin(θ)cos(θ)a0=−C1−C20−C2lcos(θ)0
The presence of time-variant parameters p results in an additional term in
c(q,q˙;p,p˙)=∂q˙∂q∂2Tq˙+∂q˙∂p∂2Tp˙−∂q∂T.