[Robot] jacobian.cpp: Fix compiler warnings

"Warning: comparison between signed and unsigned integer expressions [-Wsign-compare]"
Changed 'unsigned int' into 'Eigen::Index' type for several loop indexes...
This commit is contained in:
howetuft
2019-08-15 16:56:46 +02:00
committed by wmayer
parent 7b265bee18
commit c6748d8d0b

View File

@@ -83,7 +83,7 @@ namespace KDL
}
void Jacobian::changeRefPoint(const Vector& base_AB){
for(unsigned int i=0;i<data.cols();i++)
for(Eigen::Index i=0;i<data.cols();i++)
this->setColumn(i,this->getColumn(i).RefPoint(base_AB));
}
@@ -97,7 +97,7 @@ namespace KDL
}
void Jacobian::changeBase(const Rotation& rot){
for(unsigned int i=0;i<data.cols();i++)
for(Eigen::Index i=0;i<data.cols();i++)
this->setColumn(i,rot*this->getColumn(i));;
}
@@ -111,7 +111,7 @@ namespace KDL
}
void Jacobian::changeRefFrame(const Frame& frame){
for(unsigned int i=0;i<data.cols();i++)
for(Eigen::Index i=0;i<data.cols();i++)
this->setColumn(i,frame*this->getColumn(i));
}