Planning a motion investigation
Is a longer arm less precise? 'Obviously' is not an answer. How would you find out, fairly, in a simulator?
About 40 min · 3 goals · Checked by automated tests
1.Why should I care?
The term ends by using the maths as an engineer would: to answer a question with evidence. Simulations make it easy to run many controlled trials, and just as easy to fool yourself. A good plan, written before you press any buttons, keeps the comparison fair.
- ◇ Turn a question about an arm's motion into a testable hypothesis with one independent variable.
- ◇ Design a controlled comparison in the kinematics lab, choosing what to hold fixed and what to measure.
- ◇ Report accuracy with units and an honest statement of uncertainty and model limits.
2.Predict
You want to test whether link length affects how much a 0.5° shoulder error moves the hand. Which plan is fair?
Guess first. Being wrong here is how the surprise works.
3.Understand
Question, hypothesis, variables
Start with a question you can answer in the lab. Name the independent variable (what you change, e.g. θ2), the dependent variable (what you measure, e.g. hand shift in mm) and the controlled variables (everything else: link lengths, error size, θ1). Write a hypothesis with a reason: 'hand shift grows as the arm straightens, because the shoulder-to-hand distance grows'.
Method: fair and repeatable
Choose at least five values of the independent variable spread across the range. Record each setting and result in a table with units. A simulation is deterministic, so repeats won't vary; uncertainty here comes from reading precision (how many decimal places the readout shows) and from the model itself. Say both. Predict each result with the formula d·Δθ before you measure it.
Evidence and limits
Plot result against setting. Does the pattern match your prediction? Where doesn't it, and why? Finish with the model's limits: the lab assumes perfect rigid links, no gravity sag, no backlash and no joint friction (see its notes). Real arms add errors your simulation can't show, so state your conclusion as 'in this model'.
Explain it another way
A fair test changes one thing at a time. If you change two, you can't tell which one did it.
This is a one-factor-at-a-time sensitivity study of the FK map. For small errors, Δp ≈ J·Δθ; for a shoulder error the hand shift magnitude is d·|Δθ1|, so the study effectively measures how d varies with the independent variable.
L1 = 0.5 m, L2 = 0.35 m, Δθ1 = 0.5° = 0.00873 rad. d = √(L1² + L2² + 2L1L2 cos θ2): θ2 = 0° → d = 0.85 m, shift 7.42 mm; θ2 = 90° → d = 0.610 m, 5.33 mm; θ2 = 150° → d = 0.263 m, 2.30 mm.
Robot integrators run exactly this kind of study before installing a cell, to decide where in the workspace to put the most precise operations.
Worked example 1
Write a one-line method for 'does θ1 affect the hand shift from a shoulder error?'
Hold L1 = 0.5 m, L2 = 0.35 m, θ2 = 60° and Δθ1 = 0.5° fixed; set θ1 = −90°, −45°, 0°, 45°, 90°; record the hand position before and after the nudge; compute the shift in mm. (Prediction: no effect, since d doesn't depend on θ1.)
Common mix-ups
- A simulation gives exact answers, so uncertainty doesn't apply.
✓ Readout precision and model simplifications are real uncertainties; state them. - Changing several settings at once gives more information per trial.
✓ It confounds causes. Change one variable at a time unless you plan a proper multi-factor design.
4.Discover
Pick ONE question (for example: how does the elbow angle change the hand shift caused by a 0.5° shoulder error?). Write your hypothesis and what you'll hold fixed BEFORE running anything. Then record at least five settings in the kinematics lab, nudging the shoulder by the error and noting the hand position each time.
Explorer 01 — Robotic kinematics
From joint angles to a position, and back again
Forward kinematics turns joint angles into an end-effector position. Inverse kinematics asks the harder question: which angles put the tip where I want it?
Fig. — 2-link planar arm · units cm · y up
Joint angles (relative)
Arm geometry
- End x
- 15.1 cm
- End y
- 26.4 cm
- Distance r
- 30.4 cm
- workspace 5.0–35.0 cm
- |sin θ2|
- 0.87
- well-conditioned
- Tip angle φ
- 95.0°
State
Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).
Forward kinematics. Joint angles: joint 1 35°, joint 2 60°. End effector at x 15.1 cm, y 26.4 cm, 30.4 cm from the base. Elbow well-conditioned (|sin θ2| = 0.87).
How to read this
The base sits at the centre (grid squares are 10 cm). Each thick bar is a link; circles are joints J1, J2. The shaded ring is the workspace: every point the tip can reach with unlimited joint travel. Its outer edge is L1 + L2; the inner hole appears when one link is longer than the others combined.
Arcs show each joint angle. θ1 is measured from the dashed horizontal; θ2 from the dashed extension of link 1. In inverse mode the square is the target (dashed and labelled unreachable when outside the ring), and the arm is solved with the law of cosines. Most targets have two solutions: elbow-up and elbow-down.
Assumptions & limitations
- Ideal rigid links and revolute joints with no mass, friction, backlash, or flex.
- Joints may rotate a full ±180°; real joints have hard limits that shrink the workspace, and links cannot pass through each other or the floor.
- Kinematics only: nothing here says whether the motors are strong or fast enough to hold or reach a pose (that is dynamics).
- Three-link inverse kinematics is made solvable by fixing the tool angle φ; real controllers choose among redundant solutions with extra goals.
- Unreachable targets are projected onto the nearest edge of the reachable ring for display; a real controller would refuse or plan around them.
Can't use the interactive? Read a description instead
The kinematics lab shows a two-link arm with sliders for each joint and a readout of the hand position. The investigation can be run from the readout alone: record the hand position, nudge the shoulder by the chosen error, record again, and compute the distance between the two positions.
5.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
In a study of how θ2 affects hand shift, which should be a controlled variable?
6.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2 · a fresh version every time
An arm (L1 = 0.4 m, L2 = 0.4 m) holds its elbow at θ2 = 45°. The shoulder encoder is off by 0.1°. Roughly how far does the hand end up from where the controller thinks it is, in millimetres? (2 decimal places)
Practice 3 · a fresh version every time
A two-link arm has L1 = 0.4 m and L2 = 0.3 m. The shoulder is at θ1 = 60° and the elbow at θ2 = 45° (measured from link 1). What is the hand's x position, in metres? (3 decimal places)
Practice 4
The lab gives identical numbers every time you repeat a setting. Where does uncertainty in your results come from?
Practice 5
Predict the hand shift for d = 0.85 m and a 0.5° shoulder error, in mm. (2 decimal places)
7.Apply it
Write a one-page plan for your investigation: question, hypothesis with a reason, variables (independent, dependent, controlled), at least five settings, a prediction table using d·Δθ, and the model's limits. This is the first deliverable of the term project.
8.Reflect
9.Go further
- Sensitivity analysis (Wikipedia) ↗How engineers study which inputs matter most to an output.
Concepts: Forward kinematics · Variables, controls and confounders · Measurement error and uncertainty