\(\DeclareMathOperator*{\oiint}{{\subset\!\supset} \llap{\iint}}\)
\(\DeclareMathOperator*{\oiiint}{{\Large{\subset\!\supset}}
\llap{\iiint}}\) The Torus as
the Configuration Space of a 2R Robot Arm
Consider a double-pendulum robot arm with c-space a 2D torus
\(T^2\).
A 2R robot arm (click on image for OnShape CAD model).
My 3D print of my 2D CAD model
The 2D c-space of my double pendulum CAD model with a (not closed)
geodesic traced out on it
A video of Prof. Jim Yorke
displaying chaotic properties of the double pendulum
at a Mardem lecture at UWM.
The quote that got me into
engineering:
"The more chaotic a dynamical system is, the more controllable it is."
- Dr.
John Hubbard (Cornell University), Marden Lecture in Mathematics, UWM (2008)
(I haven't actually found the quote to be true, but it is the quote
that got me into engineering.)
A video of Prof. Steve
Brunton displaying control engineering of the chaos on the double
pendulum.
We shall identify \(T^2\) with \([0,2\pi]^2\), with units of
radians, via the standard coordinate patch \(\phi: [0, 2\pi]^2 \to
T^2\) given by
\(\phi(\theta_1, \theta_2) = ((\cos(\theta_1), \sin(\theta_1)),
(\cos(\theta_2), \sin(\theta_1)))\) and therefore endow it with the
units of radians, although it is technically unitless. The Riemannian
metric (r-metric) \(g(\theta_1, \theta_2)\) (written as \(M(\theta)\)
in the
following graphic from https://youtu.be/BjD-pL819LA?si=q8_It-jJFEq0AmEu&t=212;
\(g(\theta)\) in the following graphic is the gravity term) may be read
off the equation of motion (EoM):
The Riemannian metric in the standard coordinate patch \((\theta_1,
\theta_2) \in [0, 2\pi)^2 \cong T^2\) for this planar double-pendulum
robot arm depends solely on the relative joint angle \(\theta_2\) and
is given by
\[
g(\theta_1, \theta_2) = \begin{bmatrix}
I_{zz,1} + I_{zz,2} + \frac{1}{4}m_1 l_1^2 + m_2 l_1^2 + \frac{1}{4}m_2
l_2^2 + m_2 l_1 l_2 \cos\theta_2 & I_{zz,2} + \frac{1}{4}m_2 l_2^2
+ \frac{1}{2}m_2 l_1 l_2 \cos\theta_2 \\[1.5ex]
I_{zz,2} + \frac{1}{4}m_2 l_2^2 + \frac{1}{2}m_2 l_1 l_2 \cos\theta_2
& I_{zz,2} + \frac{1}{4}m_2 l_2^2
\end{bmatrix}.
\],
\]
where \(m_i\), \(l_i\), \(r_{ci}\), and \(I_{zz,i}\) denote the mass,
link length, proximal-to-center-of-mass distance, and centroidal moment
of inertia of link \(i \in \{1, 2\}\), respectively.
For definiteness, for this particular double-pendulum robot arm, the
values of the parameters are \(m_1 = m_2 = 0.181\text{ kg}\),
\(I_{zz,1} = I_{zz,2} = 0.001\text{ m}^2\cdot\text{kg}\), and \(l_1 =
l_2 = 0.250\text{ m}\) (\(r_{c1} = r_{c2} = 0.125\text{ m}\)) in SI.
With these values, the Riemannian metric works out to
\[
g(\theta_1, \theta_2) = \begin{bmatrix}
0.0113\cos\theta_2 + 0.0190 & 0.00566\cos\theta_2 + 0.00383 \\[1ex]
0.00566\cos\theta_2 + 0.00383 & 0.00383
\end{bmatrix}\text{ m}^2\cdot\text{kg}.
\]
Note that the entries in the Riemannian metric
have dimensions of \(\left[\text{Length}^2 \cdot
\text{Mass}\right]\).
(It should be noted that there are
dimensions/units used for the
describing the robot arm and hence, perhaps bizarrely, for describing
the
Riemannian metric. Points in the
manifold and tangent vectors to the manifold are part of the intrinsic
topology of the underlying smooth manifold of the c-space and have only
dimensions of [Angular Measure], while inner products/norms of tangent
vectors and
lengths of curves/distances between points in the manifold depend on
Riemannian metric, which is extrinsic to the topology of the underlying
manifold; inner products of tangent vectors have dimensions of
\(\displaystyle\left[\text{Angular Measure}^2\cdot\text{Length}^2 \cdot
\text{Mass}\right]\) while norms of tangent vectors and lengths of
curves/distances between points have units of
\(\displaystyle\left[\text{Angular Measure}\cdot\text{Length} \cdot
\text{Mass}^{\frac{1}{2}}\right]\). This kind of r-metric is known as
the "mass matrix'" and morally has dimensions of mass. The way that
things work out here, there are \(I_{zz}\) terms, and we can't just
move the lengths to the \(\theta\) factors. But, morally, the mass
matrix has dimensions of mass.)
This link, curvature.m,
computes the sectional
curvature correctly in
MATLAB, and it is not identically 0. There is a check that
\(\displaystyle \oiint_{T^2}\ K\ dS\ = 4\pi \chi(T^2) = 0\). This link,
Curvature03.nb (shamelessly pirated from [1]),
validates the
computation of the sectional curvature of my Riemannian manifold in
Mathematica (although it heavily uses the fact we are in dimension 2;
I'll need to work on that). This is the scalar curvature as computed in
MATLAB:
This is the scalar curvature as computed in
Mathematica:
This link, TorusVolumeForm01.nb,
shows that the volume of the torus is
\(\displaystyle\oiint_{[T^2]}\ \eta_{\text{Vol}_g} = 0.253\
\text{rad}^2\cdot\text{m}^2\cdot\text{kg}\) in the inertial r-metric.