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

Update the contact forces in the case of impact #53

Open
VenusPasandi opened this issue Jul 13, 2021 · 2 comments
Open

Update the contact forces in the case of impact #53

VenusPasandi opened this issue Jul 13, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@VenusPasandi
Copy link
Contributor

VenusPasandi commented Jul 13, 2021

In the robotDynWithContacts, first the contact forces are computed using the maximum dissipation energy (https://github.com/dic-iit/matlab-whole-body-simulator/blob/master/lib/%2Bmwbs/%40Contacts/Contacts.m#L64). Then, if an impact is happening, the velocity vector of the robot after the impact is computed (https://github.com/dic-iit/matlab-whole-body-simulator/blob/master/lib/%2Bmwbs/%40Contacts/Contacts.m#L72). Then, the velocity vector after the impact and the contact forces before the impact are used for the forward dynamics (https://github.com/dic-iit/matlab-whole-body-simulator/blob/master/lib/%2Bmwbs/%2BRobotDynamicsWithContacts/%2BrobotDynWC/step_block.m#L41).
But, in case of impact, the contact forces should be updated and the contact forces after the impact is used for the forward dynamics. The simplest point is that in a new contact point, just became in contact through an impact, the contact forces are considered as zero.

@VenusPasandi VenusPasandi added the bug Something isn't working label Jul 13, 2021
@CarlottaSartore
Copy link
Collaborator

C.C. @nunoguedelha @Giulero @traversaro

@traversaro
Copy link
Contributor

As discussed in f2f, probably @VenusPasandi can try to fix this problem and see if it creates problem. If it does not create problems, @VenusPasandi can create a PR to fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants