Skip to content
Discussion options

You must be logged in to vote

Just a quick question, how to perform the self-collision check in the code

What do you mean exactly? This is how this filtering is implemented:

        # Lazily compute geom vertices only for geoms that need neutral overlap checks
        geoms_verts: dict[int, np.ndarray] = {}
        if needs_neutral_check:
            self_root_indices = np.where(valid & same_root)[0]
            self_root_geom_idxs = np.unique(np.concatenate([row[self_root_indices], col[self_root_indices]]))

            # Compute vertices only for geoms involved in self-collision pairs,
            # shrunk by 0.1% to avoid false positive when detecting self-collision
            for gi in self_root_geom_idxs:
    …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@duburcqa
Comment options

@louhz
Comment options

Answer selected by louhz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants