Repository navigation
Commit adfc10d
feat(solvers): support wide matrices in SVD; add roadmap items 53–65 (#353)
* feat(solvers): support wide matrices in SingularValueDecomposition
SingularValueDecomposition required Rows >= Cols, so callers with a
wide matrix (a 6×N task Jacobian with N > 6, an underdetermined
system) had to decompose the transpose and swap the factors by hand.
A wide matrix is now factored through its transpose: the tall
Golub–Kahan path runs on Aᵀ = U'ΣV'ᵀ and U() / V() return V' / U'.
The thin factors are U: Rows×k and V: Cols×k with k = min(Rows, Cols)
(SingularValueCount); tall and square instantiations keep their
existing types. PseudoInverse and SolveLeastSquares return the
minimum-norm solution for underdetermined systems.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mmp77ieEy16GxJL8KsLsVx
* docs(roadmap): make SE3Transform (#53) the single SE(3) spec, linear-first
roadmap/math/SE3Transform was left behind when the manipulator stack
moved to robotics-toolbox-cpp (#213), and robotics-toolbox-cpp grew its
own SE(3) spec with the opposite 6-vector ordering. Both carried the
robotics item id M6.
Keep one spec here, as master-list item 53, with robotics-toolbox-cpp's
ordering — twists (v; ω), wrenches (f; n), the ordering of a
linear-rows-first Jacobian and of Sophus/manif tangents — and its
content: Rotate, TransformTwist/TransformWrench, an SO(3) log that is
safe near 0 and π, and the log-map PoseError its controllers and pose
IK consume.
Also drop the stale MomentumObserver (M16) and
DynamicParameterIdentification (M22) index entries, which
robotics-toolbox-cpp owns, and point the canonical worked example at a
spec that exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mmp77ieEy16GxJL8KsLsVx
* docs(roadmap): add generic building blocks 54–65 from robotics-toolbox-cpp
robotics-toolbox-cpp's roadmap specified several algorithms that are
not robotics-specific. They move here as master-list items, specified
in the usual three files, and robotics-toolbox-cpp references them as
NT<n>:
- 54 AngleUtilities (math): wrap, shortest difference, unwrap.
- 55/56/60 PolynomialProfile, TrapezoidalProfile, SCurveProfile
(motion_profiles, new): the scalar motion profiles, moved whole.
- 57 FrictionCompensation (controllers): Coulomb + viscous + Stribeck,
moved whole.
- 58 SymplecticIntegrators (solvers): semi-implicit Euler, Verlet.
- 59 TridiagonalSolver (math) and 61 CubicSpline (math): the Thomas
solve and the vector-valued spline behind the joint-space spline.
- 62 DampedPseudoInverse (solvers): damped inverse and exact
null-space projector from one SVD.
- 63 IncrementalQrLeastSquares (estimators/offline): streaming Givens
QR with a rank-revealing solve.
- 64 LevenbergMarquardt (optimization): damped Gauss–Newton with a
retraction and a pluggable damping policy.
- 65 ActiveSetQp (solvers): Goldfarb–Idnani dense convex QP.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mmp77ieEy16GxJL8KsLsVx
* docs(roadmap): align the master-list table columns
Apply markdown-table-formatter's layout for the narrower
Target module column.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mmp77ieEy16GxJL8KsLsVx
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9b37e08 commit adfc10d
46 files changed
Lines changed: 2790 additions & 214 deletions
File tree
- doc/solvers
- numerical/solvers
- test
- roadmap
- controllers/FrictionCompensation
- estimators/offline/IncrementalQrLeastSquares
- math
- AngleUtilities
- CubicSpline
- SE3Transform
- TridiagonalSolver
- motion_profiles
- PolynomialProfile
- SCurveProfile
- TrapezoidalProfile
- optimization/LevenbergMarquardt
- solvers
- ActiveSetQp
- DampedPseudoInverse
- SymplecticIntegrators
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
32 | 49 | | |
33 | 50 | | |
34 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
35 | 183 | | |
36 | 184 | | |
37 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
| |||
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
89 | | - | |
| 98 | + | |
90 | 99 | | |
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
94 | | - | |
95 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
| |||
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
108 | | - | |
| 118 | + | |
| 119 | + | |
109 | 120 | | |
110 | 121 | | |
111 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
0 commit comments