Skip to content

[Feature] Joint friction / frictionloss#1479

Merged
duburcqa merged 14 commits intoGenesis-Embodied-AI:mainfrom
YilingQiao:yiling/250728_frictionloss
Aug 5, 2025
Merged

[Feature] Joint friction / frictionloss#1479
duburcqa merged 14 commits intoGenesis-Embodied-AI:mainfrom
YilingQiao:yiling/250728_frictionloss

Conversation

@YilingQiao
Copy link
Collaborator

@YilingQiao YilingQiao commented Jul 31, 2025

Description

Support joint friction

Try

import genesis as gs

gs.init(backend=gs.cpu)

scene = gs.Scene(
    sim_options=gs.options.SimOptions(
        dt=0.02,
    ),
    viewer_options=gs.options.ViewerOptions(
        camera_pos=(1.5, 1.0, 1.5),
        camera_lookat=(0.0, 0.0, 0),
        camera_fov=60,
    ),
    show_viewer=True,
)
franka = scene.add_entity(
    gs.morphs.MJCF(
        file="xml/frictionloss_pendulum.xml",
    ),
)
scene.build()

for i in range(10000):
    scene.step()

You should be able to see the static joint friction

frictionloss.mp4

And you can also run the tests

pytest -s -v tests/test_rigid_physics.py::test_frictionloss

Related Issue

#1453

Resolves Genesis-Embodied-AI/Genesis#

Motivation and Context

How Has This Been / Can This Be Tested?

Screenshots (if appropriate):

Checklist:

  • I read the CONTRIBUTING document.
  • I followed the Submitting Code Changes section of CONTRIBUTING document.
  • I tagged the title correctly (including BUG FIX/FEATURE/MISC/BREAKING)
  • I updated the documentation accordingly or no change is needed.
  • I tested my changes and added instructions on how to test it for reviewers.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@YilingQiao YilingQiao marked this pull request as ready for review July 31, 2025 02:08
@YilingQiao YilingQiao requested a review from duburcqa as a code owner July 31, 2025 02:08
@Kashu7100
Copy link
Collaborator

This is awesome!!!

@duburcqa duburcqa force-pushed the yiling/250728_frictionloss branch 2 times, most recently from 8bbfaff to af015a5 Compare August 5, 2025 04:17
@duburcqa duburcqa enabled auto-merge (squash) August 5, 2025 04:17
duburcqa
duburcqa previously approved these changes Aug 5, 2025
@duburcqa duburcqa force-pushed the yiling/250728_frictionloss branch 4 times, most recently from dc09754 to 3290fb8 Compare August 5, 2025 06:02
duburcqa
duburcqa previously approved these changes Aug 5, 2025
@duburcqa duburcqa force-pushed the yiling/250728_frictionloss branch from 3b55aeb to 246c8c6 Compare August 5, 2025 06:03
@duburcqa duburcqa merged commit bbf905d into Genesis-Embodied-AI:main Aug 5, 2025
17 checks passed
YilingQiao added a commit to YilingQiao/Genesis that referenced this pull request Aug 22, 2025
Co-authored-by: Alexis Duburcq <alexis.duburcq@gmail.com>
winnieyangwannan pushed a commit to winnieyangwannan/Genesis that referenced this pull request Sep 14, 2025
Co-authored-by: Alexis Duburcq <alexis.duburcq@gmail.com>
Kashu7100 pushed a commit to Kashu7100/Genesis that referenced this pull request Jan 26, 2026
Co-authored-by: Alexis Duburcq <alexis.duburcq@gmail.com>
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