Closed iron76 closed 3 years ago
This problem seems to be due to a dimension mismatch between ROBOT_DOF - a matlab variable that you should set in your workspace - with the length of the list associated to the WBI. The main point is that we still do not provide clear information when these sizes do not match (see #38 ). Anyway, further information can be found at https://github.com/robotology-playground/WBI-Toolbox#using-the-toolbox and https://github.com/robotology-playground/WBI-Toolbox#notes-on-configuration-files
This happens as @DanielePucci has pointed out when the variable ROBOT_DOF
is defined to something different from the DOF of the corresponding list that you have defined for the current robot. To debug do the following:
$CODYCO_SUPERBUILD_DIR/install/codyco/contexts/wholeBodyInterfaceToolbox
It should read something like this by default.robot icubGazeboSim
localName simulink
worldRefFrame l_sole
robot_fixed false
wbi_id_list ROBOT_TORQUE_CONTROL_JOINTS
wbi_config_file yarpWholeBodyInterface.ini
If you are using the simulator, then the value for robot
is fine. With the last changes robot_fixed
does not matter anymore and it will be deprecated soon. wbi_id_list
is correct in this case if you want to control 25-DOF. If you are using one of the latest controllers this should be ROBOT_TORQUE_CONTROL_JOINTS_WITHOUT_PRONOSUP
which correspond to a 23-DOF iCub. These lists names can be found in $CODYCO_SUPERBUILD_DIR/install/share/codyco/robots/icubGazeboSim
YARP_ROBOT_NAME
in ./bashrc
or from within Matlab (e.g. using setenv('YARP_ROBOT_NAME', 'icubGazeboSim')
as I believe you're doing) to for example iCubGenova01
or icubGazeboSim
. Depending on whether you use the real robot or the simulator. wbi_id_list = ROBOT_TORQUE_CONTROL_JOINTS_WITHOUT_PRONOSUP
ROBOT_DOF = 23;
localName = 'simulink';
robotName = 'icubGazeboSim';
Ts = 0.010;
If you are using the real robot instead remember this variable robotName corresponds to icub
(not iCubGenova01
). If ROBOT_DOF
is 25, this means you should have wbi_id_list = ROBOT_TORQUE_CONTROL_JOINTS
in the WBI-Toolbox configuration file as explained in 1.
Once you have checked all of this you're good to run the simulation.
@iron76 Can we close this? :)
Probably yes. Closing :-) @jeljaik @iron76
Description: The installation seems to work fine in general but the block wholeBodyModel/Jacobians/Link Jacobian is giving me the following error:
Further Information:
Darwin Francescos-MacBook-Pro.local 14.1.0 Darwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64
master
312396067ce921bbfeb330652fe61b41c01263d9
/Users/iron/Code/bin/share/yarp:/share/iCub:/Users/iron/Code/codyco-superbuild/build/install/share/codyco
/Users/iron/Code/bin/bin/yarpserver