CALCULATORS / ROBOTICS AND MANIPULATORS
Planar two-link inverse kinematics calculator
Two-link planar elbow-up solution; target within reach.
SCENARIO COMPARISON
Compare the numbers.
This source describes an analytical model. Its quantities and checks are the view.
| Scenario | cosElbow | elbowrad | shoulderrad |
|---|---|---|---|
| 0.0416667 | 1.52912 | -0.430988 | |
| 0.352083 | 1.211 | -0.385778 |
All calculated quantities are listed with the inputs. Switch to Source to inspect the equations.
Change an input to see the consequences.
BASELINE INPUTS
CALCULATED
Edits change the baseline source.
Illustrative first-order example. Checks are editable requirements, not design standards. The broader topic may require additional equations, data, and validation.
Formula and units
This example uses the following equations. Input names and units match the editable source above.
- cos elbow
cosElbow = (x^2+y^2-linkA^2-linkB^2)/(2*linkA*linkB)- elbow
elbow = acos(cosElbow) [rad]- shoulder
shoulder = atan2(y/linkA,x/linkA)-atan2(linkB*sin(elbow)/linkA,1+linkB*cos(elbow)/linkA) [rad]
Original worked example
These are the baseline values in the downloadable source. Edits above let you test your own values.
Given
- link a
- 200 mm
- link b
- 150 mm
- x
- 250 mm
- y
- 50 mm
Calculated
- cos elbow
- 0.0416667
- elbow
- 1.52912 rad
- shoulder
- -0.430988 rad
Assumptions and limits
Two-link planar elbow-up solution; target within reach.
The requirement checks use the limits written in this example. Passing a check does not establish that the model covers every load, material behavior, or operating condition in a real design.
Download this .napkin example ↓Take it further with your agent
Napkin keeps the inputs, equations, checks and assumptions together in one study. Your agent sets it up; you change the numbers.
codex 'Use Napkin (https://napkin.engineering/mcp, or the local Napkin plugin) to build a study: Planar two-link inverse kinematics. Inputs: link lengths; target point; branch. Outputs: joint angles; reachability. Model scope: Rigid links with explicit joints, loads and coordinate frames. Read napkin_capabilities and the current snapshot. Ask me for the values that matter, label assumptions with units, author .napkin source, validate it and apply it with napkin_source using the current revision, then open the study. Add checks for the limits I supply. Keep unsupported analyses explicit.'Claude needs the Napkin connector; Codex needs the Napkin plugin. Set up your agent ↗
The broader study
The topic brief below describes the broader scope. The worked example above states the particular calculation it implements.
- Inputs: link lengths, target point, branch
- Outputs: joint angles, reachability
- Modes: calculate, compare, sweep
- Drawing: Robot workspace and trajectory
EXECUTABLE WORKED EXAMPLE · FIRST-ORDER MODEL · CHECK THE SCOPE & ASSUMPTIONS
More in robotics and manipulators
- Robot arm reach calculator
- Serial-arm forward kinematics calculator
- Robot joint torque calculator
- Robot payload screening calculator
- Gripper force calculator
- Gripper opening and actuator stroke calculator
- Differential-drive robot sizing calculator
- Wheel odometry and error calculator
- Robot move-time estimate calculator
- Robot static stability calculator
- Tool-point compliance calculator