-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the possibility to use BLF IK in walking module #118
Conversation
cae1e49
to
08d8772
Compare
08d8772
to
5c35a3f
Compare
c591e97
to
35ee076
Compare
bbb343f
to
ef6a08e
Compare
…argeting in the BLF-IK
@S-Dafarra I think you can review the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly minor comments. Let me know if something would require too much of rework
src/YarpUtilities/thrifts/WalkingControllers/YarpUtilities/HumanState.thrift
Outdated
Show resolved
Hide resolved
src/WalkingModule/app/robots/iCubGazeboV3/dcm_walking/joypad_control/qpInverseKinematicsBlf.ini
Outdated
Show resolved
Hide resolved
src/WalkingModule/app/robots/iCubGenova09/dcm_walking/joypad_control/qpInverseKinematicsBlf.ini
Outdated
Show resolved
Hide resolved
src/WalkingModule/app/robots/iCubGazeboV3/dcm_walking/joypad_control/tasks/torso.ini
Outdated
Show resolved
Hide resolved
src/RetargetingHelper/include/WalkingControllers/RetargetingHelper/Helper.h
Outdated
Show resolved
Hide resolved
[stance] | ||
name "stance" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't these two a bit redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this is the way in which the MultiStateWeightProvider
works. The provider wants a vector named stances
that contains the name of the groups associated to each state. Then for each state, we specify a name and the weight itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the name of the group be different from the name parameter? Do you envision some case where this could be useful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the name of the group be different from the name parameter?
Yes
Do you envision some case where this could be useful?
For the time being, I don't see the reason why they should be different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/WalkingModule/app/robots/iCubGenova09/dcm_walking/joypad_control/tasks/torso.ini
Outdated
Show resolved
Hide resolved
src/WholeBodyControllers/include/WalkingControllers/WholeBodyControllers/IntegrationBasedIK.h
Outdated
Show resolved
Hide resolved
m_usejointRetargeting = false; | ||
int usejointRetargeting = 0; | ||
ptr->getParameter("use_joint_retargeting", usejointRetargeting); | ||
m_usejointRetargeting = usejointRetargeting != 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this casting needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use_joint_retargeting
is actually a number stored in the main configuration file.
ptr->getParameter("use_joint_retargeting", m_usejointRetargeting);
will fail since m_usejointRetargeting
is a bool and the check inside blf fails. We should change the code in blf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why this works instead?
m_useRootLinkForHeight = false; | |
ptr->getParameter("use_root_link_for_height", m_useRootLinkForHeight); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the parameter use_root_link_for_height
is a boolean. By the way, this ami-iit/bipedal-locomotion-framework#566 should remove this limitation of blf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed here: 97b6c70
… for iCubGazeboV3
… for iCubGenova09
This requires ami-iit/bipedal-locomotion-framework#557