Skip to content

Commit

Permalink
[Robot] chainiksolverpos_lma.cpp: Fix compil warng
Browse files Browse the repository at this point in the history
"Warning: Comparison between signed and unsigned integer expressions [-Wsign-compare]"
Fixed by declaring loop index as library-provided type 'Eigen::Index' instead of raw 'unsigned int'.
  • Loading branch information
howetuft authored and wwmayer committed Aug 22, 2019
1 parent ad73247 commit 7b265be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Robot/App/kdl_cp/chainiksolverpos_lma.cpp
Expand Up @@ -195,7 +195,7 @@ int ChainIkSolverPos_LMA::CartToJnt(const KDL::JntArray& q_init, const KDL::Fram

svd.compute(jac);
original_Aii = svd.singularValues();
for (unsigned int j=0;j<original_Aii.rows();++j) {
for (Eigen::Index j=0;j<original_Aii.rows();++j) {
original_Aii(j) = original_Aii(j)/( original_Aii(j)*original_Aii(j)+lambda);

}
Expand Down

0 comments on commit 7b265be

Please sign in to comment.