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

MPV2.5: refactor in order to remove the assumption of the single kin chain #36

Merged
merged 4 commits into from
Jul 5, 2023

Conversation

Nicogene
Copy link
Member

@Nicogene Nicogene commented Jul 3, 2023

In this PR I refactored the code in order to remove the assumption of the single kin chain.

In particular, I populate the idyntree model in two separate steps.
First, the plugin iterates over all the parts, retrieves all the mass and kin properties of the links, and adds links to the idyntree model.
For what concern the joints instead, at this step, I am assuming that the first part that owns a specific axis is the parent link, and the second one will be the child link.
This is an approximation due to the fact right now I couldn't ask for this information from Creo.
After this iteration over all parts, I start adding the joints using the informations retrieved the previous step and voila, for the case of 1 kin chain (MVP2) it works flawlessly:

immagine

cc @traversaro @pattacini @mfussi66 @fiorisi

@Nicogene Nicogene merged commit 44b18af into master Jul 5, 2023
@Nicogene Nicogene deleted the mvp2.5 branch July 5, 2023 13:22
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.

CREO2URDF – Start investigating how to retrieve child/parent links from joints
1 participant