Skip to content

Commit d735765

Browse files
committed
Fix usage of activated DoF in entity Sot
1 parent 1a807b9 commit d735765

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sot/sot.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -560,13 +560,13 @@ computeControlLaw( dynamicgraph::Vector& control,const int& iterTime )
560560
computeJacobianConstrained( task,K );
561561
/***/sotCOUNTER(2,3); // compute JK
562562

563+
/* --- COMPUTE S --- */
564+
computeJacobianActivated( dynamic_cast<Task*>( &task ),JK,iterTime );
565+
/***/sotCOUNTER(3,4); // compute JK*S
566+
563567
/* --- COMPUTE Jt --- */
564568
if( 0<iterTask ) Jt.noalias() = JK*(*PrevProj); else { Jt = JK; }
565-
/***/sotCOUNTER(3,4); // compute Jt
566-
567-
/* --- COMPUTE S --- */
568-
computeJacobianActivated( dynamic_cast<Task*>( &task ),Jt,iterTime );
569-
/***/sotCOUNTER(4,5); // Jt*S
569+
/***/sotCOUNTER(4,5); // compute Jt
570570

571571
/* --- PINV --- */
572572
svd.compute (Jt);

0 commit comments

Comments
 (0)