-
Hi, What we would like to have is the two feet as end effectors and perform online inverse kinematics. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
cc @KevinAStein |
Beta Was this translation helpful? Give feedback.
-
Hi @hu-yue Assuming your legs kinematics is "v2.5", you have first to make sure that the following conditions are met:
Finally, within your code, you can do: Property option;
option.put("device","cartesiancontrollerclient");
option.put("remote","/icub/cartesianController/left_leg");
option.put("local","/client/left_leg");
PolyDriver clientCartCtrl(option);
ICartesianControl *icart=NULL;
if (clientCartCtrl.isValid()) {
clientCartCtrl.view(icart);
} |
Beta Was this translation helpful? Give feedback.
-
I've added the configuration files as suggested and it seems to work fine. |
Beta Was this translation helpful? Give feedback.
-
You can find the documentation of the DH chains used for the two legs in http://wiki.icub.org/wiki/ICubForwardKinematics , in particular http://wiki.icub.org/wiki/ICubWaistRightLegKinematicsV2.5 and http://wiki.icub.org/wiki/ICubWaistLeftLegKinematicsV2.5 . |
Beta Was this translation helpful? Give feedback.
-
I see, thanks! =) |
Beta Was this translation helpful? Give feedback.
-
@hu-yue there was a typo (fixed now) in my previous comment. The correct line is: option.put("remote","/icub/cartesianController/left_leg"); I believe you figured it out anyway. |
Beta Was this translation helpful? Give feedback.
-
Yes, no problem with the code! I'm always aware that we don't have arms! =) |
Beta Was this translation helpful? Give feedback.
Hi @hu-yue
Assuming your legs kinematics is "v2.5", you have first to make sure that the following conditions are met:
robotInterface
is running with the legs Cartesian controllers launched.To have an idea, look at
iCubGenova01
app directory where we set up configuration files for the arm controllers. Theicub_all.xml
should then contain pointers to those files. You'll find attached an example for suchleft_leg_cartesian.xml
.yarp-config context --import cartesianSolver cartesianSolver.ini
to copy in your local path the configuration file and then edit the version tov2.5
. The final file should look like thiscartesianSolver.ini
.Now you can launch the solver:
iKinCartesianSolver --p…