File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ namespace KDL
6969 // else silently ignore
7070 }
7171
72- void ChainIkSolverVel_pinv::setMaxIter (const unsigned int maxiter_in)
72+ void ChainIkSolverVel_pinv::setMaxIter (const int maxiter_in)
7373 {
7474 if (maxiter_in >= 1 )
7575 maxiter = maxiter_in;
Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ namespace KDL
8787
8888 /* *
8989 * Set maxIter
90- * \pre 1 <= maxiter , otherwise maxiter is ignored
90+ * \pre maxiter >= 1 , otherwise maxiter is ignored
9191 */
92- void setMaxIter (const unsigned int maxiter_in);
92+ void setMaxIter (const int maxiter_in);
9393
9494 /* *
9595 * Retrieve the number of singular values of the jacobian that are < eps;
@@ -117,7 +117,7 @@ namespace KDL
117117 * Get maximum number of iterations
118118 * \pre maxiter >= 1, otherwise maxiter is ignored
119119 */
120- unsigned int getMaxIter () const { return static_cast < unsigned int >( maxiter) ; }
120+ int getMaxIter () const { return maxiter; }
121121
122122 /* *
123123 * Retrieve the latest return code from the SVD algorithm
@@ -146,7 +146,7 @@ namespace KDL
146146 std::vector<JntArray> V;
147147 JntArray tmp;
148148 double eps;
149- unsigned int maxiter;
149+ int maxiter;
150150 unsigned int nrZeroSigmas;
151151 int svdResult;
152152 double sigmaMin;
Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ void SolverTest::FkPosAndIkPosTest()
517517
518518void SolverTest::IkSingularValueTest ()
519519{
520- unsigned int maxiter = 30 ;
520+ int maxiter = 30 ;
521521 double eps = 1e-6 ;
522522 int maxiter_vel = 30 ;
523523 double eps_vel = 0.1 ;
@@ -697,9 +697,9 @@ void SolverTest::IkVelSolverWDLSTest()
697697}
698698void SolverTest::IkVelSolverPinvTest ()
699699{
700- unsigned int maxiter = 30 ;
700+ int maxiter = 30 ;
701701 double eps = 1e-6 ;
702- unsigned int maxiternew = 10 ;
702+ int maxiternew = 10 ;
703703 double epsnew = 0.1 ;
704704
705705 std::cout << " KDL-IK Pinv Vel Solver Tests for Near Zero SVs" << std::endl;
You can’t perform that action at this time.
0 commit comments