Fix location of *_foot_* links in iCub3 models and add tests on the location of FT sensors #243
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The test added in the first commit of this PR ensures that the FT sensor frames origin are coincident with the origin of the frames of the child link of the joint to which they are attached, to ensure that they can be correctly simulated in Gazebo (see gazebosim/sdformat#130). To get the test to work I also needed to update iDynTree to version 2.0.0, but that should not influence
See icub-tech-iit/ergocub-software#146 for more details.
Note that the first commit of this PR will fail due to the problem discussed in icub-tech-iit/ergocub-software#146, with error (see https://github.com/robotology/icub-models-generator/actions/runs/5532882398/jobs/10095587053?pr=243):
While the third commit fixes the tests by moving manually the origin of the links:
in the iCub3 simmechanics file, from having the origin aligned with the sole of the robot, to having the origin aligned with the FT sensor frame. Users interesting in getting the location of the sole should use the
l_sole
andr_sole
frames, as documented in https://icub-tech-iit.github.io/documentation/icub_kinematics/icub-model-naming-conventions/icub-model-naming-conventions/#1-dof-joints .