fix g1 com example#187
Merged
stephane-caron merged 2 commits intostephane-caron:mainfrom Apr 20, 2026
Merged
Conversation
Relaxed the constrains in the foots x and y positions to get the example working, I assume the errors comes from discrepancies between the current urdf of the G1 and the one available when this example was developed
|
Great, I test, it works! |
Owner
|
Thank you for raising the issue and proposing this fix 👍 I could reproduce the issue, and checked that the fix works. |
Screencast.from.2026-04-23.13-18-21.webmThanks for the great effort, I tried python humanoid_g1_com.py |
|
Oh I saw this, it is right. |
Contributor
Author
|
Yes the behavior is not ideal but in order to fix the slipping it required some tuning. In my examples it worked "fine" if the target COM is slightly translated in the x axis. |
|
@nmarticorena TQ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR is related to issue 186
The fix consist in relax the constraints in the foot's x and y positions. As mentioned before I assume the errors comes from discrepancies between the current urdf of the G1 and the one available when this example was developed.
Additionally, added a visualisation of the current com and the desired one for easier debugging.
I saw that viser was recently added as a visualization backend, happy to update this example to include for example interactive targets for the hands and some usefull sliders