TactivergeLite

Lite / Intelligent Robotic Systems / Week 12

Modelling rotating parts: x = L cos θ, y = L sin θ

A windscreen wiper, a crane jib and a robot's first link all trace the same shape. Which equation draws all three?

About 30 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Every revolute joint turns a link about a pivot. Its tip runs round a circle of radius L, and its position is the unit circle scaled up by L. This one model, used twice, is the whole of two-link forward kinematics next term: trigonometry is how a robot knows where its hand is.

Predict

A 0.5 m link rotates from 0° to 90° in 1 second. How far does its tip travel along its arc?

  1. 0.5 m
  2. About 0.785 m
  3. About 0.707 m
  4. 1 m
Guess first, then reveal

About 0.785 m: arc length = L × θ = 0.5 × π/2 ≈ 0.785 m. The straight-line distance between start and end is 0.707 m, shorter than the arc.

Discover

In the robot-arm lab, set the elbow to 0° so the arm is one straight link of length L1 + L2. Turn only the shoulder and read the hand position at 0°, 30°, 90°, 150°, 210°. For each, check x = L cos θ and y = L sin θ on a calculator. Then do the reverse: from the readout's (x, y), recover θ with atan2.

What the interactive shows (text version)

With the elbow straight, the robot-arm lab behaves as one link of length L1 + L2 turning about the shoulder. For a 0.8 m arm the hand reads (0.8, 0) at 0°, (0.693, 0.4) at 30°, (0, 0.8) at 90°, (−0.693, 0.4) at 150° and (−0.693, −0.4) at 210°.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Watch for how sine and cosine become coordinates; then imagine stretching the circle to radius L.

Defines sine and cosine as the coordinates of a point going round a circle, so they work for every angle, not just inside a triangle.

“Introduction to the unit circle | Trigonometry | Khan Academy” by Khan Academy (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

A link is a scaled unit circle

A link of length L at angle θ (from +x, anticlockwise) has its tip at x = L cos θ, y = L sin θ. It's the unit-circle point (cos θ, sin θ) stretched by L. If the pivot is not at the origin but at (px, py), add that offset: x = px + L cos θ, y = py + L sin θ.

Going back: angle from position

Given a tip position (x, y) relative to the pivot, the joint angle is θ = atan2(y, x) and the length is √(x² + y²). This is the seed of inverse kinematics: working backwards from where the tip is (or should be) to the angle that puts it there. atan2, not tan⁻¹, because joints swing through every quadrant.

How fast does the tip move?

If the joint turns at angular speed ω (rad/s), the tip moves along its circle at v = L·ω. Long links make fast tips: a 2 m crane jib turning at 0.5 rad/s moves its tip at 1 m/s. The tip's velocity points along the circle, perpendicular to the link: (−L ω sin θ, L ω cos θ).

Explain it another way

Intuitive

Hold a ruler by one end and swing it. The far end draws a circle. How far left-right it is: cos. How far up-down: sin. A longer ruler draws a bigger circle, and its end moves faster for the same swing.

Technical

The tip position is p(θ) = L·(cos θ, sin θ). Differentiating with respect to time gives ṗ = L·θ̇·(−sin θ, cos θ), perpendicular to p with magnitude L|θ̇|.

Mathematical

L = 0.8 m, θ = 150°: x = 0.8 × (−0.866) = −0.693 m, y = 0.8 × 0.5 = 0.4 m. Back: atan2(0.4, −0.693) = 150.0°, √(0.48 + 0.16) = 0.8 m. ✓

Applied

A crane operator's display shows the hook's position computed from the jib angle sensor with exactly this formula, plus the slewing angle for the third dimension.

Worked example 1

A crane jib 12 m long, pivoted 3 m above the ground, is raised to 40°. How high is its tip?

y = 3 + 12 sin 40° = 3 + 12 × 0.6428 ≈ 10.71 m. Its tip is 12 cos 40° ≈ 9.19 m out from the pivot.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

m

m

°

m/s

Practice 5. A wiper pivots at (0.2, 0) m and is 0.5 m long. Which gives its tip at angle θ?

Apply it

A robot's single-link arm (0.35 m) must touch points at (0.2, 0.287) m and (−0.35, 0) m. For each, decide if it lies on the tip's circle, and if so give the joint angle in degrees.

Reflect

Why would a robot designer put the heaviest, slowest-moving parts close to a joint and keep long links light?

Write your answer on paper or in your own notes. Lite never stores what you write.

Go further

← Radians and the unit circlePeriodic motion: A·sin(ωt + φ) →