Skip to content

[FEATURE] Add Fem fixed constraint for implicit solver#1562

Merged
duburcqa merged 74 commits intoGenesis-Embodied-AI:mainfrom
Libero0809:fem-fixed-constraint
Aug 14, 2025
Merged

[FEATURE] Add Fem fixed constraint for implicit solver#1562
duburcqa merged 74 commits intoGenesis-Embodied-AI:mainfrom
Libero0809:fem-fixed-constraint

Conversation

@Libero0809
Copy link
Contributor

Description

Added fixed vertex constraint for implicit solver. Using the same existing api. Does not support attachment to rigid body yet.

Related Issue

Resolves Genesis-Embodied-AI/Genesis#

Motivation and Context

Fixed constraint is useful for some cases. It now support implicit solver.

How Has This Been / Can This Be Tested?

Added two tests.

Screenshots (if appropriate):

477792521-aac3047e-a78b-4144-956b-58f002141162.mp4
477792474-d571c93f-2dc7-4f66-a739-6c8689dce70f.mp4
477792333-052459fb-b89a-4e26-af9f-40b52f5bcb7d.mp4

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.

positions, initial_target_poss, tol=0.0
), "Vertices should stay at initial target positions with hard constraints"
new_target_poss = initial_target_poss + gs.tensor(
[[0.1, 0.1, 0.1]],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gs.tensor instead of torch.tensor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why either one is clearly better than the other.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather keep gs.tensor where it is truly necessary. But let's move on.

@duburcqa duburcqa enabled auto-merge (squash) August 14, 2025 21:34
auto-merge was automatically disabled August 14, 2025 21:43

Head branch was pushed to by a user without write access

@duburcqa duburcqa enabled auto-merge (squash) August 14, 2025 21:47
@duburcqa duburcqa disabled auto-merge August 14, 2025 22:11
@duburcqa duburcqa merged commit f324ed0 into Genesis-Embodied-AI:main Aug 14, 2025
18 checks passed
winnieyangwannan pushed a commit to winnieyangwannan/Genesis that referenced this pull request Sep 14, 2025
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.

5 participants