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

sdformat_to_mjcf: specify nconmax and njmax in SDFormat #69

Open
scpeters opened this issue Jun 9, 2022 · 2 comments
Open

sdformat_to_mjcf: specify nconmax and njmax in SDFormat #69

scpeters opened this issue Jun 9, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@scpeters
Copy link
Member

scpeters commented Jun 9, 2022

Desired behavior

While running in MuJoCo a friction demo world converted from SDFormat, I got several error messages complaining about needing to increase nconmax and njmax and the simulated behavior was very weird. After increasing the values, I saw reasonable simulated behavior.

<mujoco model="default">
  <size nconmax="300" njmax="1000"/>
  <worldbody>
    ...
  </worldbody>
</mujoco>

It would be nice to be able to specify these values in an SDFormat file so they can be passed through to MJCF during conversion.

<sdf version="...">
  <world name="world_name" xmlns:mjcf="https://github.com/gazebosim/gz-mujoco">
    <mjcf:size nconmax="300" njmax="1000"/>
  </world>
</sdf>

Alternatives considered

Implementation suggestion

Additional context

@scpeters scpeters added the enhancement New feature or request label Jun 9, 2022
@azeey
Copy link
Collaborator

azeey commented Jun 13, 2022

This might be mitigated by #75.

@scpeters
Copy link
Member Author

This might be mitigated by #75.

nice! that fixes the friction_demo from #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants