Skip to content

Commit

Permalink
[Robot] treeiksolvervel_wdls.cpp: Fix compil warns
Browse files Browse the repository at this point in the history
"Warning: comparison between signed and unsigned integer expressions [-Wsign-compare]"
Changed 'unsigned int' into 'Eigen::Index' type for several loop indexes...
  • Loading branch information
howetuft authored and wwmayer committed Aug 22, 2019
1 parent c6748d8 commit 945e76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Robot/App/kdl_cp/treeiksolvervel_wdls.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 945e76d

Please sign in to comment.