Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier Stasse
sot-core
Commits
7fb0e1cc
Commit
7fb0e1cc
authored
Jan 31, 2020
by
Joseph Mirabel
Committed by
olivier stasse
Apr 09, 2020
Browse files
Fix rank computation
parent
d985c54c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sot/sot.cpp
View file @
7fb0e1cc
...
...
@@ -531,8 +531,10 @@ dynamicgraph::Vector &Sot::computeControlLaw(dynamicgraph::Vector &control,
svd
.
compute
(
*
Jt
,
Eigen
::
ComputeThinU
|
Eigen
::
ComputeThinV
);
else
svd
.
compute
(
*
Jt
,
Eigen
::
ComputeThinU
|
Eigen
::
ComputeFullV
);
svd
.
setThreshold
(
th
);
rankJ
=
svd
.
rank
();
rankJ
=
0
;
while
(
rankJ
<
svd
.
singularValues
().
size
()
&&
th
<
svd
.
singularValues
()[
rankJ
])
++
rankJ
;
/***/
sotCOUNTER
(
4
,
5
);
// SVD and rank
/* --- COMPUTE QDOT AND P --- */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment