Repository navigation
Conversation
Keep the ordered translational Hessian factors and the upstream-only angular dependency while applying the existing higher-order product rule. Replace the obsolete tensor fixture with independent Hessian differences and add closed-form third through fifth derivative regressions. Co-Authored-By: ChatGPT (GPT-6 Astra Pro) <noreply@openai.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 113 |
| Duplication | 125 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
ETS.partial_fkine0applies the same cross-product recurrence to every pair of joints. This lets downstream joints change upstream angular axes and uses the wrong translational factors when the joint order is reversed.Valid third-order calls differ from independent Hessian differences by about 0.98 on a Panda. A planar arm also gives an incorrect Cartesian jerk when the tensor is contracted with constant joint rates.
Change
Retain the existing higher-order product rule, but start it from the ordered translational Hessian factors: the angular column of the earlier joint and the linear column of the later joint. Angular terms remain zero when the differentiated joint does not precede the output joint. Each factor keeps its assigned derivative indices.
Numerical change: higher kinematic derivatives now respect serial-chain dependencies. The tensor layout and public signatures are unchanged; the layout is documented.
The old 2,400-line expected tensor encoded the incorrect recurrence. Replace it with independent central differences of the existing Hessian, retaining coverage of both ETS and Robot entry points.
Validation
mypy: all 166 source files passed. New-test Ruff lint/format andgit diff --checkpass.Prior work
Checked all 109 prior fork heads and relevant upstream searches/patches. No earlier fork implementation changes this recurrence. #833 changes its documentation and comments; the mutation-cache change in #957 is separate.
Primary contributor: Afloat16.
Prepared with ChatGPT (GPT-6 Astra Pro) assistance.