Skip to content

Commit

Permalink
Fix the option to enable joint retargeting in BLF-IK
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi authored and iCubGenova09 committed Sep 16, 2022
1 parent 3bfe374 commit c591e97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/WholeBodyControllers/src/IntegrationBasedIK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ bool IntegrationBasedIK::initialize(
}

m_usejointRetargeting = false;
ptr->getParameter("use_joint_retargeting", m_usejointRetargeting);
int usejointRetargeting = 0;
ptr->getParameter("use_joint_retargeting", usejointRetargeting);
m_usejointRetargeting = usejointRetargeting != 0;

m_useRootLinkForHeight = false;
ptr->getParameter("use_root_link_for_height", m_useRootLinkForHeight);
Expand Down

0 comments on commit c591e97

Please sign in to comment.