Repository navigation
feat(dynamics): effective joint inertia with the other joints free - #49
Merged
Merged
Conversation
EffectiveJointInertia returns 1/(M^-1)_ii for every joint: the inertia a joint feels when the others are free, at most its locked inertia M_ii. It factors M once (Cholesky) and uses (M^-1)_ii = |L^-1 e_i|^2, one forward substitution per joint, so M is never inverted. A mass matrix that is not positive definite gives no result. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014WUWh8Fw5EhcfvNuXz3jjU
✅
|
| Descriptor | Linter | Files | Fixed | Errors | Max errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|---|
| ✅ ACTION | actionlint | 7 | 0 | 0 | 0.76s | ||
| ✅ CPP | clang-format | 218 | 0 | 0 | 0 | 2.43s | |
| ✅ CPP | cppcheck | 218 | 0 | 0 | 4.76s | ||
| ✅ DOCKERFILE | hadolint | 1 | 0 | 0 | 0.43s | ||
| ✅ JSON | jsonlint | 8 | 0 | 0 | 0.11s | ||
| ✅ JSON | prettier | 8 | 2 | 0 | 0 | 0.35s | |
| ✅ MARKDOWN | markdownlint | 86 | 0 | 0 | 0 | 2.62s | |
| ✅ MARKDOWN | markdown-table-formatter | 86 | 0 | 0 | 0 | 0.24s | |
| lychee | 134 | 1 | 0 | 2.35s | |||
| ✅ YAML | prettier | 12 | 0 | 0 | 0 | 0.57s | |
| ✅ YAML | yamllint | 12 | 0 | 0 | 0.71s |
Detailed Issues
⚠️ SPELL / lychee - 1 error
📝 Summary
---------------------
🔍 Total..........389
🔗 Unique.........132
✅ Successful.....378
⏳ Timeouts.........0
🔀 Redirected.......5
👻 Excluded.........9
❓ Unknown..........0
🚫 Errors...........1
⛔ Unsupported......1
Errors in .github/workflows/static-analysis.yml
[403] https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$ (at 37:21) | Rejected status code: 403 Forbidden
Hint: Followed 5 redirects. You might want to consider replacing redirecting URLs with the resolved URLs. Use verbose mode (`-v`/`-vv`) to see redirection details.
Hint: You can configure accepted/rejected response codes with `-a` or `--accept`
Notices
REPOSITORY_GITLEAKS, REPOSITORY_KICS. See Removed linters to find their replacements.
See detailed reports in MegaLinter artifacts
Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)
- Documentation: Custom Flavors
- Command:
npx mega-linter-runner@10.2.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,CPP_CPPCHECK,CPP_CLANG_FORMAT,DOCKERFILE_HADOLINT,JSON_JSONLINT,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT

Show us your support by starring ⭐ the repository
…namespace Shorten the root README entry so the table stays within markdownlint's 400-column limit, and write the explicit instantiations with qualified names so no namespace block is left holding only them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014WUWh8Fw5EhcfvNuXz3jjU
…ffective-inertia # Conflicts: # README.md
|
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.



What
New header:
robotics/dynamics/EffectiveJointInertia.hpp.EffectiveJointInertia(M)returns 1/(M⁻¹)ᵢᵢ for every joint. This is the inertia joint i feels when every other joint is free. It never exceeds the locked inertia Mᵢᵢ.M is never inverted. It is factored once (Cholesky, M = L·Lᵀ), and each joint uses (M⁻¹)ᵢᵢ = ‖L⁻¹·eᵢ‖², which is one forward substitution and a squared norm. A mass matrix that isn't positive definite gives
std::nullopt.Why
Two consumers need this value:
e-robot-arm computes it twice today, in different ways:
ApparentInertiasdoes one Cholesky solve per unit vector;Tests (
TestEffectiveJointInertia)Docs
doc/dynamics/EffectiveJointInertia.md, following the template.doc/dynamics/README.md.README.mdDocumentation table.Testing
cmake --build --preset host-single-Debug: builds clean.ctest --preset host-single-Debug: 7/7 suites pass, and the dynamics suite passes 76/76.EffectiveJointInertia.cppcompiles with-DROBOTICS_TOOLBOX_COVERAGE_BUILD.Note
#48 also adds a cell to the root
README.mdDocumentation table. Whichever of the two merges second will hit a small table conflict, and I'll resolve it on that branch.Generated by Claude Code