diff --git a/newton/_src/sim/builder.py b/newton/_src/sim/builder.py index bcce19a38..dcc4bd786 100644 --- a/newton/_src/sim/builder.py +++ b/newton/_src/sim/builder.py @@ -1427,6 +1427,7 @@ def add_usd( load_sites: bool = True, load_visual_shapes: bool = True, hide_collision_shapes: bool = False, + parse_mujoco_options: bool = True, mesh_maxhullvert: int = MESH_MAXHULLVERT, schema_resolvers: list[SchemaResolver] | None = None, ) -> dict[str, Any]: @@ -1456,6 +1457,7 @@ def add_usd( load_sites (bool): If True, sites (prims with MjcSiteAPI) are loaded as non-colliding reference points. If False, sites are ignored. Default is True. load_visual_shapes (bool): If True, non-physics visual geometry is loaded. If False, visual-only shapes are ignored (sites are still controlled by ``load_sites``). Default is True. hide_collision_shapes (bool): If True, collision shapes are hidden. Default is False. + parse_mujoco_options (bool): Whether MuJoCo solver options from the PhysicsScene should be parsed. If False, solver options are not loaded and custom attributes retain their default values. Default is True. mesh_maxhullvert (int): Maximum vertices for convex hull approximation of meshes. schema_resolvers (list[SchemaResolver]): Resolver instances in priority order. Default is no schema resolution. Schema resolvers collect per-prim "solver-specific" attributes, see :ref:`schema_resolvers` for more information. @@ -1527,6 +1529,7 @@ def add_usd( load_sites=load_sites, load_visual_shapes=load_visual_shapes, hide_collision_shapes=hide_collision_shapes, + parse_mujoco_options=parse_mujoco_options, mesh_maxhullvert=mesh_maxhullvert, schema_resolvers=schema_resolvers, ) @@ -1545,6 +1548,7 @@ def add_mjcf( parse_meshes: bool = True, parse_sites: bool = True, parse_visuals: bool = True, + parse_mujoco_options: bool = True, up_axis: AxisType = Axis.Z, ignore_names: Sequence[str] = (), ignore_classes: Sequence[str] = (), @@ -1577,6 +1581,7 @@ def add_mjcf( parse_meshes (bool): Whether geometries of type `"mesh"` should be parsed. If False, geometries of type `"mesh"` are ignored. parse_sites (bool): Whether sites (non-colliding reference points) should be parsed. If False, sites are ignored. parse_visuals (bool): Whether visual geometries (non-collision shapes) should be loaded. If False, visual shapes are not loaded (different from `hide_visuals` which loads but hides them). Default is True. + parse_mujoco_options (bool): Whether solver options from the MJCF `