Repository navigation
feat(controllers): coupled damping design for impedance control - #50
Merged
Merged
Conversation
CoupledDamping(M, K, zeta) returns D = 2 zeta W M W with W = diag(sqrt(omega_i)) and omega_i = sqrt(K_i / M_ii): each joint gets the single-mass damper 2 zeta sqrt(K_i M_ii) on its diagonal, and the damper couples the joints where the mass matrix does. With equal frequencies it is 2 zeta omega M, so every mode is damped at zeta. A joint with no inertia gets no damping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014WUWh8Fw5EhcfvNuXz3jjU
…tical 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.53s | ||
| ✅ CPP | clang-format | 218 | 0 | 0 | 0 | 2.63s | |
| ✅ CPP | cppcheck | 218 | 0 | 0 | 4.5s | ||
| ✅ DOCKERFILE | hadolint | 1 | 0 | 0 | 0.71s | ||
| ✅ JSON | jsonlint | 8 | 0 | 0 | 0.09s | ||
| ✅ JSON | prettier | 8 | 2 | 0 | 0 | 0.46s | |
| ✅ MARKDOWN | markdownlint | 86 | 0 | 0 | 0 | 2.53s | |
| ✅ MARKDOWN | markdown-table-formatter | 86 | 0 | 0 | 0 | 0.24s | |
| lychee | 134 | 1 | 0 | 2.26s | |||
| ✅ YAML | prettier | 12 | 0 | 0 | 0 | 0.55s | |
| ✅ YAML | yamllint | 12 | 0 | 0 | 0.74s |
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
…tiations Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014WUWh8Fw5EhcfvNuXz3jjU
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014WUWh8Fw5EhcfvNuXz3jjU
…oupled-damping # 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/controllers/manipulator/CoupledDamping.hpp, providing:CoupledDamping(M, K, ζ)→ D = 2ζ·W·M·W, with W = diag(√ωᵢ) and ωᵢ = √(Kᵢ / Mᵢᵢ).What the damper gives:
Why
A diagonal damper sized from each joint's own inertia ignores the coupling in the mass matrix. On e-robot-arm's reference arm, that left the coupled shoulder–elbow mode and the light wrist poorly damped at a 10 ms period, and they oscillated. e-robot-arm's joint- and Cartesian-impedance controllers already use this design (
arm-controllers.md) through a local helper. This PR moves the design into the toolbox next to the impedance controller.Tests (
TestCoupledDamping)Docs
doc/controllers/manipulator/CoupledDamping.md, following the template.doc/controllers/manipulator/README.md.README.mdDocumentation table.Testing
cmake --build --preset host-single-Debug: builds cleanctest --preset host-single-Debug: 7/7 suites pass; the controllers suite passes 67/67CoupledDamping.cppcompiles with-DROBOTICS_TOOLBOX_COVERAGE_BUILDNote
#48 and #49 also add a cell to the root
README.mdDocumentation table. When one merges, the others get a small table conflict, which I'll resolve.Generated by Claude Code