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

Fix custom XML file display in simulation environment #553

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Likhithsai2580
Copy link
Contributor

Fixes #548

Add handling for contype and conaffinity attributes in the simulation environment.

  • Update genesis/utils/mjcf.py to parse contype and conaffinity attributes in the parse_geom function and set them to 0 if not specified.
  • Update genesis/engine/entities/rigid_entity/rigid_entity.py to handle contype and conaffinity attributes in the _load_MJCF method and pass them to the RigidGeom constructor.

Fixes Genesis-Embodied-AI#548

Add handling for `contype` and `conaffinity` attributes in the simulation environment.

* Update `genesis/utils/mjcf.py` to parse `contype` and `conaffinity` attributes in the `parse_geom` function and set them to 0 if not specified.
* Update `genesis/engine/entities/rigid_entity/rigid_entity.py` to handle `contype` and `conaffinity` attributes in the `_load_MJCF` method and pass them to the `RigidGeom` constructor.
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.

自定义的xml 文件不在仿真环境显示
1 participant