Skip to content

Commit 4a24591

Browse files
committed
Add JacobiSVD as member of MemoryTaskSOT
1 parent 127769a commit 4a24591

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

include/sot/core/memory-task-sot.hh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ namespace dynamicgraph {
4848

4949
dg::Matrix U,V;
5050
dg::Vector S;
51+
52+
typedef Eigen::JacobiSVD<dg::Matrix> SVD_t;
53+
SVD_t svd;
5154

5255
public:
5356
/* mJ is the number of actuated joints, nJ the number of feature in the task,

src/sot/memory-task-sot.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ initMemory( const unsigned int nJ,const unsigned int mJ,const unsigned int ffsiz
6767
V.resize( mJ,mJ );
6868
S.resize( std::min( nJ,mJ ) );
6969

70+
svd = SVD_t (nJ, mJ, Eigen::ComputeThinU | Eigen::ComputeThinV);
71+
7072
JK.fill(0);
7173
if (atConstruction) {
7274
Jt.setZero();

0 commit comments

Comments
 (0)