Skip to content
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

fixing URDF for left- and right-foot-skin #248

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

simeonedussoni
Copy link
Contributor

as per this issue I swapped the corresponding reference frame coordinates to align the URDF to the actual hardware and skingui configuration

fixed triangles positions as per iCubPrague bugfix
bug corrected in right foot skin
@traversaro
Copy link
Member

Sorry, I need to have a table to check to double check the changes, based on the info on robotology/icub-main#899 :

Wrong ID (before) Correct ID (after)
3 15
4 0
2 14
1 11
12 12
13 1
8 2
9 3
10 4
11 14
14 8
15 9
0 10

So, the frame of CORRECT ID should get the position that before was of Wrong ID.

The changes seems correct, but I have a few doubts regarding this PR for @simeonedussoni :

I also had another doubt, that anyhow is not directly related to this PR. It seems that all the SCSYS_*_FOOT_SKIN_* and *_foot_skin_* frames share the same orientation. However, I tought that without an orientation it is not possible to orient the triangles and localize correctly the single taxel in 3D. However, checking the code to visualize the taxel positions in https://gitlab.fel.cvut.cz/body-schema/icub/icub-skin-calibration/-/blob/main/skin_models/skin_from_urdf.py#L34 does not use the orientation from the URDF and in https://github.com/robotology/icub-models-generator/blob/master/simmechanics/scripts/generate_taxels_3d_positions.py#L339, apparently the orientation from the .ini is the one used to orient the triangles.

@simeonedussoni
Copy link
Contributor Author

orientation

concerning the orientation, I also had this doubt. but if the orientations are wrong, one should see overlapping triangles in the plot, which is not the case, so the orientation info is taken elsewhere...

I go on by correcting the left foot.

@simeonedussoni
Copy link
Contributor Author

actually I was heavily misled by the plot which seems a right foot. I check the right foot mounting.

@simeonedussoni
Copy link
Contributor Author

I confirm the right foot patch has the same orientation as the left foot so the modifications already made are ok.

@simeonedussoni
Copy link
Contributor Author

simeonedussoni commented Sep 15, 2023

modified also the left foot, @traversaro and @pattacini

@simeonedussoni simeonedussoni changed the title fixing URDF for right-foot-skin fixing URDF for left- and right-foot-skin Sep 15, 2023
@traversaro
Copy link
Member

traversaro commented Sep 15, 2023

@pattacini
Copy link
Member

I would say yes!
cc @simeonedussoni

@pattacini
Copy link
Member

@traversaro
Copy link
Member

FYI @simeonedussoni @pattacini do you still want to integrate this change?

@pattacini
Copy link
Member

FYI @simeonedussoni @pattacini do you still want to integrate this change?

Definitely!
Kind reminder for @simeonedussoni

@simeonedussoni simeonedussoni marked this pull request as draft October 30, 2023 13:32
simeonedussoni added a commit to simeonedussoni/icub-main that referenced this pull request Oct 30, 2023
as per [this comment](robotology/icub-models-generator#248 (comment)) the pictures representing the left and right foot skin patches were not correctly reproducing the actual mounting and .ini file. fixed aligning the depicted positions to the actual ones.
@simeonedussoni
Copy link
Contributor Author

I checked the file mentioned by @traversaro above.

  • left foot: it seems the file in the iniGenerator folder has the correct positions and just the picture is misaligned (that is sounding since otherwise the .ini generated should have had the uncorrect triangles placement
  • right foot the same. the only misalignment is at the level of the applied labels to the picture, the positions generated are coherent with the .ini.

opened PR in icub-main

@simeonedussoni simeonedussoni marked this pull request as ready for review October 30, 2023 15:42
@traversaro
Copy link
Member

Ok, thanks!

@traversaro traversaro merged commit cf90d5e into robotology:master Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants