diff --git a/src/Mod/Robot/App/kdl_cp/chain.cpp b/src/Mod/Robot/App/kdl_cp/chain.cpp index e7e7ff702..d7510ad11 100644 --- a/src/Mod/Robot/App/kdl_cp/chain.cpp +++ b/src/Mod/Robot/App/kdl_cp/chain.cpp @@ -43,7 +43,7 @@ namespace KDL { nrOfJoints=0; nrOfSegments=0; segments.resize(0); - for(unsigned int i=0;ichain.getNrOfSegments()) + else if(segmentNr>static_cast(chain.getNrOfSegments())) return -1; else{ int j=0; - for(unsigned int i=0;ichain.getNrOfSegments()) + else if(segmentNr>static_cast(chain.getNrOfSegments())) return -1; else{ int j=0; - for (unsigned int i=0;i(jac.columns())) return -1; T_tmp = Frame::Identity(); SetToZero(t_tmp);