Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision attribute of the option element is referenced, but it does not exist #1747

Open
salehrayan opened this issue Jun 19, 2024 · 1 comment
Assignees

Comments

@salehrayan
Copy link

salehrayan commented Jun 19, 2024

I was trying to optimize my model for MJX on GPU according to this by making pre defined contact pairs.

The contact/pair section in XML Reference says:

This element creates a predefined geom pair, which will be checked for collision if the collision attribute of option is set to “all” or “predefined”.

This attribute is referenced a few times but it does not exist in documentation. And parsing an XML with this attribute included will return the usual attribute-not-existing error.

Also according to my testing, the predefined collision pairs will not be the only collisions checked.
If you have any alternatives for my task I would appreciate it.

@salehrayan salehrayan changed the title Collision attribute of option element is referenced, but it does not exist Collision attribute of the option element is referenced, but it does not exist Jun 19, 2024
@yuvaltassa
Copy link
Collaborator

Ah ya, we need to fix that in the MJX docs. Thanks for bringing that to our attention.

This attribute has been removed, you can disable non-pair contacts in the usual way:

<default>
  <geom contype="0" conaffinity="0"/>
</default>

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

No branches or pull requests

3 participants