Handling kinematic coupling
masterThe library assumes a standard series of joints, but some robots have kinematic coupling (e.g., where moving one joint physically affects the position of another).
If your robot has coupling, you must manually correct the angles returned by inverse(). For example, if moving $R_1$ also changes the angle at $J_2$, you may need to add the $R_1$ value to $R_2$ after calculating the inverse kinematics.
// Example correction for coupling
let angles = RobotKin.inverse(...pose)
angles[2] += angles[1]
// set angles, do stuff