Repository navigation
docs(ik): demonstrate inverse kinematics with a locked joint - #933
Conversation
Addresses petercorke#825. Co-authored-by: ChatGPT (OpenAI GPT-6) <noreply@openai.com>
Up to standards ✅🟢 Issues
|
petercorke
left a comment
There was a problem hiding this comment.
Thanks for the example, a couple of minor points
| >>> target = ets.fkine(q_goal) | ||
| >>> reduced = ets.fixjoint(2, q_goal[2]) | ||
| >>> reduced.n | ||
| 6 |
There was a problem hiding this comment.
don't include results in a runblock. The code is executed during doco build, and actual results are substituted.
| >>> seed = np.delete(q_goal, 2) + 0.02 | ||
| >>> sol = reduced.ikine_LM(target, q0=seed) | ||
| >>> sol.success | ||
| True |
| >>> seed = np.delete(q_goal, 2) + 0.02 | ||
| >>> sol = reduced.ikine_LM(target, q0=seed) | ||
| >>> sol.success | ||
| True |
There was a problem hiding this comment.
as above, but actually this line gives False for me. atol is maybe too small.
petercorke
left a comment
There was a problem hiding this comment.
Thank you for the update. I re-ran the example on a compiled build and on the pure-Python install: sol.success is True and the last line is now True as well (maximum difference 3.9e-7). This looks good to me.
|
Thank you, merged. A worked example with one joint locked is a useful addition for Issue #825, and the tighter tolerance makes the last line print True. Thank you for updating it after review. |
Summary
Adds a runnable Panda inverse-kinematics example with one joint locked, addressing the remaining IK documentation task in #825.
The example uses
ETS.fixjoint()to lock the third joint of a seven-joint Panda arm, solves the reduced six-joint problem withikine_LM, and verifies the recovered end-effector pose.Validation
docs/source/IK/numerical.rst(29 added lines).main. Updated CI validation is pending.No runtime logic or public API changes.
AI assistance: ChatGPT (GPT-6) assisted with documentation preparation and review.