Skip to content

Conversation

@YilingQiao
Copy link
Collaborator

@YilingQiao YilingQiao commented Aug 18, 2025

Description

This PR enables the rigid solver to simulate different objects in different environments. In other words, an entity can have different morphs in different environments.

Currently, it only supports primitive and mesh morphs, and only the Pyrender rasterizer supports this feature. We plan to support variable articulation and additional rendering backends in the future.

Try

python examples/rigid/heterogeneous_simulation.py -v
het_sim.mp4

Related Issue

Resolves #1449
Resolves /issues/333

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 requested a review from duburcqa as a code owner August 18, 2025 06:24
@YilingQiao YilingQiao changed the title [FEATURE] Heterogeneous Simulation [DRAFT][FEATURE] Heterogeneous Simulation Aug 18, 2025
@Kashu7100
Copy link
Collaborator

Kashu7100 commented Aug 19, 2025

@YilingQiao Few questions regarding this new feature:

  1. Is the value obtained by grasping_object.get_mass() form the first element in batch?
  2. grasping_object.get_AABB() seems to return the same value regardless of the actual geom in batch. Is this expected?

@YilingQiao YilingQiao changed the title [DRAFT][FEATURE] Heterogeneous Simulation [FEATURE] Heterogeneous Simulation Aug 19, 2025
@YilingQiao
Copy link
Collaborator Author

@Kashu7100 get_AABB() and ge_mass() are fixed.

@Kashu7100
Copy link
Collaborator

@YilingQiao will this be merged sometime sooner?

@YilingQiao
Copy link
Collaborator Author

It will be merged after @SonSang differentiation PRs

@Kashu7100
Copy link
Collaborator

Ok thanks!!

@stergiosba
Copy link

Hello everyone. Can I ask what is the status of this PR and if it is going to be merged?

@YilingQiao
Copy link
Collaborator Author

YilingQiao commented Oct 24, 2025

@stergiosba We will merge this PR after #1808 (which has some code structure change will impact the implementation of this feature) is merged. Hopefully in ~2 weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants