Skip to content

Commit f36ad6d

Browse files
author
ccarigna
committed
changed maxiter back to int
1 parent 554b2cc commit f36ad6d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

orocos_kdl/src/chainiksolvervel_pinv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

orocos_kdl/src/chainiksolvervel_pinv.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

orocos_kdl/tests/solvertest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ void SolverTest::FkPosAndIkPosTest()
517517

518518
void 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
}
698698
void 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;

0 commit comments

Comments
 (0)