Two links, two motors
A shoulder motor turns link 1 (θ₁). An elbow motor turns link 2 (θ₂). Pick both angles and the gripper lands somewhere.
You point at the cup. Two motors have to agree on two angles. Scroll to take the arm apart.
A shoulder motor turns link 1 (θ₁). An elbow motor turns link 2 (θ₂). Pick both angles and the gripper lands somewhere.
Fully stretched, the tip sits 0.55 m out. Fully folded, 0.05 m. Everything in between is the workspace.
Look down. Shoulder, elbow and target form a triangle with three known sides. The law of cosines reads the elbow angle off it.
acos returns ±θ₂, so the same fingertip has two arms. The ghost is the other one.
Put the cup at 0.60 m. Plain Newton whirls. Damped least squares stretches toward the cup and stops at the fingertip. Example 3 starts both from (0.3, 0.3) rad.
Drag on the bench. The arm solves, the shadow triangle flexes, and the numbers update.
Drag the cup, then name θ₂ for elbow down at (0.35, 0.20).
θ₁ -8.5° θ₂ 86.2° tip (0.350, 0.200) · tip error 0.0 mm
Drag the cup out to (0.60, 0). Does the law of cosines name an angle?
θ₁ 0.0° θ₂ 0.0° tip (0.550, 0.000) · tip error 50.0 mm
../sources/shared/modern-robotics-lynch-park-2019-preprint.pdf)../sources/shared/manipulation-ch03-basic-pick-and-place.html)../sources/L27/page-mink-docs.html)