Skip to content

Commit

Permalink
Take into account coupling while evaluating joint limits in GazeboYar…
Browse files Browse the repository at this point in the history
…pControlBoardDriver::setMinMaxPos()
  • Loading branch information
xEnVrE committed Mar 26, 2020
1 parent 01796a2 commit 8d43622
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/controlboard/src/ControlBoardDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,15 @@ bool GazeboYarpControlBoardDriver::setMinMaxPos()
yWarning() << "Missing LIMITS section";
}

// handle coupling
for (size_t cpl_cnt = 0; cpl_cnt < m_coupling_handler.size(); cpl_cnt++)
{
if (m_coupling_handler[cpl_cnt])
{
m_coupling_handler[cpl_cnt]->decouplePosLimits(m_jointPosLimits);
}
}

return true;
}

Expand Down

0 comments on commit 8d43622

Please sign in to comment.