[Robot] treeiksolvervel_wdls.cpp: Fix compil warns

"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 17:10:23 +02:00
committed by wmayer
parent c6748d8d0b
commit 945e76d915

View File

@@ -89,9 +89,9 @@ namespace KDL {
Wq_V.noalias() = Wq * V;
// tmp = (Si*Wy*U'*y),
for (unsigned int i = 0; i < J.cols(); i++) {
for (Eigen::Index i = 0; i < J.cols(); i++) {
double sum = 0.0;
for (unsigned int j = 0; j < J.rows(); j++) {
for (Eigen::Index j = 0; j < J.rows(); j++) {
if (i < Wy_t.rows())
sum += U(j, i) * Wy_t(j);
else