Skip to content

[BUG FIX] Fix terrain collision detection.#1338

Merged
duburcqa merged 1 commit intoGenesis-Embodied-AI:mainfrom
duburcqa:fix_terrain_collision
Jun 30, 2025
Merged

[BUG FIX] Fix terrain collision detection.#1338
duburcqa merged 1 commit intoGenesis-Embodied-AI:mainfrom
duburcqa:fix_terrain_collision

Conversation

@duburcqa
Copy link
Collaborator

@duburcqa duburcqa commented Jun 30, 2025

Description

  • Exposing low-level MPR interface allowing to explicitly passing the desired geometries' center as input argument of MPR

Motivation and Context

The collision detection algorithm from ANY vs TERRAIN is based on MPR under the hood. This involves dynamically computing the "center" of terrain by is modifying geoms_info[i_gb].center on-the-fly. This should be avoided because it creates collisions when dealing with batched environments.

This bug was uncovered by passing cfg_optimization=False to taichi.init method. Taichi's optimisations are apparently hiding the bug, possibly because of some temporary variable elision of something. But it should have failed from the start.

Related Issue

Related to #1329

@duburcqa duburcqa requested a review from YilingQiao as a code owner June 30, 2025 16:21
@duburcqa duburcqa enabled auto-merge (squash) June 30, 2025 16:23
@duburcqa duburcqa force-pushed the fix_terrain_collision branch from 3674737 to 79d36e7 Compare June 30, 2025 17:16
@duburcqa duburcqa merged commit 9e02679 into Genesis-Embodied-AI:main Jun 30, 2025
13 checks passed
Milotrince pushed a commit to Milotrince/Genesis that referenced this pull request Jul 5, 2025
@duburcqa duburcqa deleted the fix_terrain_collision branch July 17, 2025 10:14
YilingQiao pushed a commit to YilingQiao/Genesis that referenced this pull request Aug 22, 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.

2 participants