<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>ETH Zurich Robotics</title>
        <link>https://eth-robotics.pages.dev/</link>
        <description>Notes from robotics classes at ETH Zurich</description>
        <lastBuildDate>Sun, 29 Nov 2026 22:21:22 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>Astro Chiri Feed Generator</generator>
        <language>en-US</language>
        <copyright>Copyright © 2026 Alexandros Pantalos</copyright>
        <atom:link href="https://eth-robotics.pages.dev/rss.xml" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[Robot Dynamics]]></title>
            <link>https://eth-robotics.pages.dev/robot-dynamics</link>
            <guid isPermaLink="false">https://eth-robotics.pages.dev/robot-dynamics</guid>
            <pubDate>Sun, 29 Nov 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[Hold a hammer by the end of its handle and tilt it until it’s horizontal. Now grip it just below the head and try again. The hammer weighs the same in both grips. Your wrist has an easier job when the...]]></description>
            <content:encoded><![CDATA[<p>Hold a hammer by the end of its handle and tilt it until it’s horizontal. Now grip it just below the head and try again. The hammer weighs the same in both grips. Your wrist has an easier job when the head is close to your hand. Try starting a swing from each grip. You can feel the difference there too.</p>
<p>The two experiments measure different things. Holding the hammer tells us how much torque gravity produces. Starting the swing tells us how much torque it takes to change the hammer’s speed. A robot joint has to do both jobs, and distance matters differently for each one.</p>
<h2>Holding an arm in place</h2>
<p>Let’s replace the hammer with a point mass $m$ on a rigid rod. The rod is massless, the pivot is frictionless, and a motor at the pivot can apply a torque $\tau$. We’ll call the angle $q$, measured from straight down and increasing counterclockwise.</p>
<p><img src="https://eth-robotics.pages.dev/_astro/one-joint-arm.AFIHkwCA_op4gX.webp" alt="A point mass on a rod at angle q from vertical. Its weight points down, and the horizontal distance from the pivot to the line of action is r sin q." /></p>
<p>Gravity pulls down with force $mg$. To find the torque, draw a vertical line through the mass. The distance that matters is the shortest distance from the pivot to that line. In the picture it’s $r\sin q$, where $r$ is the distance along the rod. Gravity pulls toward smaller $q$ here, so its signed torque is $-mgr\sin q$.</p>
<p>The motor holds the arm still by applying an equal and opposite torque.</p>
<p>$$
\tau_{\text{hold}} = mgr\sin q.
$$</p>
<p>With the rod hanging straight down, gravity’s line passes through the pivot and the motor needs no holding torque. With the rod pointing horizontally to the right, gravity has the full distance $r$ to work with. A one-kilogram mass 30 centimeters from the pivot needs about $2.9,\mathrm{N,m}$ of holding torque in that pose. Slide it to 60 centimeters and the required torque doubles.</p>
<h2>Getting the arm moving</h2>
<p>Imagine starting both arms from rest. This time we want them to start turning at the same angular acceleration $\ddot q$. The mass on the longer arm has to cover more distance for each degree of rotation. At twice the radius, the same angular acceleration gives twice the tangential acceleration, $r\ddot q$, and so takes twice the tangential force.</p>
<p>That force also acts twice as far from the pivot. Multiplying it by the distance gives the net torque that accelerates the arm.</p>
<p>$$
\tau_{\text{net}} = r(mr\ddot q) = mr^2\ddot q.
$$</p>
<p>The factor $mr^2$ is the <strong>moment of inertia</strong> about the pivot. One factor of $r$ comes from making the mass accelerate faster along its arc. The other comes from turning that force into torque. At twice the radius, holding the same pose takes twice the torque, and producing the same acceleration takes four times the net torque.</p>
<p><img src="https://eth-robotics.pages.dev/_astro/distance-and-torque.24ivnY0u_Z1la08r.webp" alt="At a fixed horizontal pose, doubling the distance of the mass from the pivot doubles the holding torque and quadruples the rotational inertia." /></p>
<p>Putting the two experiments together gives the equation for our motor:</p>
<p>$$
\tau = \underbrace{mr^2\ddot q}<em>{\text{accelerate the arm}} + \underbrace{mgr\sin q}</em>{\text{counter gravity}}.
$$</p>
<p>We can read it in either direction. If we know the acceleration we want, it tells us what torque to command. That’s <strong>inverse dynamics</strong>. If we know the torque the motor applies, we can subtract the gravity term and divide by the inertia to find the acceleration. That’s <strong>forward dynamics</strong>, the calculation a simulator makes before advancing to the next instant.</p>
<h2>An elbow changes things</h2>
<p>Give the arm an elbow, then lock it at a fixed angle. Swinging from the shoulder with the elbow extended carries the hand through a large arc. Fold the elbow in and the hand travels a shorter arc for the same shoulder rotation. Even with the same links and the same payload, the shoulder now feels a different inertia.</p>
<p>Unlock the elbow and there’s a second effect. Accelerating the shoulder also accelerates the forearm. To accelerate the shoulder while keeping the elbow angle fixed, the elbow motor generally has to apply a torque of its own. A single number for each joint would miss that interaction.</p>
<p>For a fixed-base rigid arm with a motor at each joint, and with friction and external contacts left out, the equation becomes</p>
<p>$$
\boldsymbol{\tau} = M(q)\ddot q + c(q,\dot q) + G(q).
$$</p>
<p>Here $q$ collects all the joint angles. The <strong>mass matrix</strong> $M(q)$ maps joint accelerations to torques at the current pose. Its off-diagonal entries capture interactions like the one between the shoulder and elbow. The term $G(q)$ gives the torques needed to hold the arm at rest against gravity. The term $c(q,\dot q)$ accounts for velocity-dependent effects, such as the centripetal acceleration of a mass moving along a curved path. It vanishes when the joints are at rest.</p>
<p>So one way to read the larger equation is to picture three experiments. Hold the arm still to isolate gravity. Start it from rest to see how torques at different joints contribute to acceleration. Then look at what changes when the arm is already moving. The hammer got us through the first two experiments, and adding an elbow showed why the second one needs a matrix.</p>
<h2>Further reading</h2>
<ul>
<li><a href="https://underactuated.mit.edu/pend.html">The Simple Pendulum</a> in Russ Tedrake’s <em>Underactuated Robotics</em> notes.</li>
<li><a href="https://modernrobotics.northwestern.edu/nu-gm-book-resource/8-1-3-understanding-the-mass-matrix/">Understanding the Mass Matrix</a> in Kevin Lynch and Frank Park’s <em>Modern Robotics</em>.</li>
</ul>
]]></content:encoded>
        </item>
    </channel>
</rss>