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

[ergoCubGazeboV1*]: model feet contacts are unstable #174

Closed
martinaxgloria opened this issue Sep 19, 2023 · 10 comments · Fixed by #176
Closed

[ergoCubGazeboV1*]: model feet contacts are unstable #174

martinaxgloria opened this issue Sep 19, 2023 · 10 comments · Fixed by #176
Assignees
Labels
domain-software Related to Software prj-ergocub Related to ErgoCub Project team-fix Related to Team Fix

Comments

@martinaxgloria
Copy link
Member

martinaxgloria commented Sep 19, 2023

Trying to import ergoCubGazeboV1* models on gazebo, I spotted that the model was unstable, it was like wobbling on the feet. Together with @Nicogene, we used git bisect to understand which commit introduced the bug and it was the aae9cd6. We verified that the bug was not due to the introduction of the ft frames but the changes in the inertial values, actually some values have a different sign (see for example here)

Any idea on how to fix this problem?

cc @traversaro

@pattacini
Copy link
Member

Similar to robotology/icub-models#209.

@Nicogene Nicogene changed the title [ergoCubGazeboV1*]: wrong inertial values on the feet [ergoCubGazeboV1*]: model feet contacts are unstable Sep 19, 2023
@traversaro
Copy link
Member

Which version of Gazebo you are using?

@Nicogene Nicogene added domain-software Related to Software prj-ergocub Related to ErgoCub Project team-fix Related to Team Fix labels Sep 19, 2023
@martinaxgloria
Copy link
Member Author

Which version of Gazebo you are using?

I have the 11.10.2

@traversaro
Copy link
Member

traversaro commented Sep 20, 2023

Related PR: #158 .

We verified that the bug was not due to the introduction of the ft frames but the changes in the inertial values, actually some values have a different sign (see for example here)

Good catch! Let me think a bit about it. For sure we could add a check on the physical consistency of the inertial parameters in the CI, by using the iDynTree::SpatialInertia::isPhysicallyConsistent() method

@traversaro
Copy link
Member

We verified that the bug was not due to the introduction of the ft frames but the changes in the inertial values, actually some values have a different sign (see for example here)

Good catch! Let me think a bit about it. For sure we could add a check on the physical consistency of the inertial parameters in the CI, by using the iDynTree::SpatialInertia::isPhysicallyConsistent() method

Actually that is not the problem: the inertial parameter that changed sign is the com Z, and that make sense as it is expressed in the link frame, and we moved the link frame up, so the COM w.r.t. the link frame is now negative. However, it is not clear how this influences gazebo.

@traversaro
Copy link
Member

traversaro commented Sep 20, 2023

I do not think the problem is in the COM location, by looking into the model, it seems that the collision of the links r_foot_rear, r_foot_front, l_foot_rear, l_foot_front are wrongly placed, and so the link that is actually colliding with the ground is r_ankle_2 and l_ankle_2 :

mismatch_collision_sole

@traversaro
Copy link
Member

And for completeness: the problem is that r_ankle_2 and l_ankle_2 bodies are not simple geometries, and we do not set their contact parameters in the .yaml file.

@traversaro
Copy link
Member

traversaro commented Sep 20, 2023

I proposed a solution in #175, the PR also contains a (hopefully) detailed description of what happened, please comment if it is not clear.

Unfortunately #161 removed the simmechanics generation machinery, so to propose the change I created a ergocub-0.3 branch out of v0.3.4 and I opened the PR there. @Nicogene feel free to decide what is the best option to propagate this modifications in the master branch.

@martinaxgloria
Copy link
Member Author

Thank you @traversaro!

@Nicogene
Copy link
Member

I proposed a solution in #175, the PR also contains a (hopefully) detailed description of what happened, please comment if it is not clear.

Unfortunately #161 removed the simmechanics generation machinery, so to propose the change I created a ergocub-0.3 branch out of v0.3.4 and I opened the PR there. @Nicogene feel free to decide what is the best option to propagate this modifications in the master branch.

I can use the yaml you proposed with creo2urdf and publish the fixed urds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain-software Related to Software prj-ergocub Related to ErgoCub Project team-fix Related to Team Fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants