The 3-D arm model used so far is rather simple:
To model the degrees of freedom and describe the arm pose, we use a
cascaded spherical coordinate system:
Phi1 and Psi1 describe the orientation of the upper arm with respect to the shouler coordinate frame O1.
Phi2 and Psi2 describe the orientation of the forearm with respect to the elbow coordinate frame O2.
O2 is fixed with respect to the upper arm axis, in the sense that it's X axis is along the upper arm axis, and it's Y axis is always parallel to the ground plane and perpendicular to the upper arm axis.
Note that this coordinate system is not anatomically correct; we assign only two (2) degrees of freedom to the shoulder and two (2) to the elbow. However, for our simple conical model, this system is indistinguishable from the true distribution of degrees of freedom.