Skip to content

fix g1 com example#187

Merged
stephane-caron merged 2 commits intostephane-caron:mainfrom
nmarticorena:feat-fix-g1-example
Apr 20, 2026
Merged

fix g1 com example#187
stephane-caron merged 2 commits intostephane-caron:mainfrom
nmarticorena:feat-fix-g1-example

Conversation

@nmarticorena
Copy link
Copy Markdown
Contributor

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

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
@YuehChuan
Copy link
Copy Markdown

Great, I test, it works!

@stephane-caron stephane-caron merged commit 369bd15 into stephane-caron:main Apr 20, 2026
13 of 14 checks passed
@stephane-caron
Copy link
Copy Markdown
Owner

Thank you for raising the issue and proposing this fix 👍 I could reproduce the issue, and checked that the fix works.

@YuehChuan
Copy link
Copy Markdown

Screencast.from.2026-04-23.13-18-21.webm

Thanks for the great effort, I tried python humanoid_g1_com.py
it slips off at the end. Is this a normal behavior?

@YuehChuan
Copy link
Copy Markdown

Oh I saw this, it is right.
Still have to solve the sliping issue.
#186

@nmarticorena
Copy link
Copy Markdown
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.

@YuehChuan
Copy link
Copy Markdown

@nmarticorena TQ!

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