Skip to content

Commit feaca4d

Browse files
committed
Add some comments in Task
1 parent 5d66d55 commit feaca4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/task/task.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Task( const std::string& n )
5050
,withDerivative(false)
5151
,controlGainSIN( NULL,"sotTask("+n+")::input(double)::controlGain" )
5252
,dampingGainSINOUT( NULL,"sotTask("+n+")::in/output(double)::damping" )
53+
// TODO As far as I understand, this is not used in this class.
5354
,controlSelectionSIN( NULL,"sotTask("+n+")::input(flag)::controlSelec" )
5455
,errorSOUT( boost::bind(&Task::computeError,this,_1,_2),
5556
sotNOSIGNAL,
@@ -315,6 +316,9 @@ computeJacobian( dynamicgraph::Matrix& J,int time )
315316

316317
while( cursorJ+nbr>=dimJ )
317318
{ dimJ *= 2; J.conservativeResize(dimJ,nbc); }
319+
// TODO If controlSelectionSIN is really to be removed,
320+
// then the following loop is equivalent to:
321+
// J.middleRows (cursorJ, nbr) = partialJacobian;
318322
for( int kc=0;kc<nbc;++kc )
319323
{
320324
// if( selection(kc) )

0 commit comments

Comments
 (0)