Skip to content

sdformat_to_mjcf: specify nconmax and njmax in SDFormat #69

@scpeters

Description

@scpeters

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions