[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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user