unilab.base.backend.mujoco.xml¶
Functions
|
在 MuJoCo XML 的 sensor 节点下添加传感器的通用函数。 |
|
|
|
Resolve MuJoCo-style body ids from XML without importing mujoco. |
|
为 MuJoCo 后端注入 tracking sensors。 |
Build a MuJoCo model with generated hfield terrain and attached robot spec. |
|
Create a temporary scene XML with task/scene fragments merged. |
|
|
Create a temporary scene XML with visual-only overrides applied. |
|
- unilab.base.backend.mujoco.xml.get_named_body_ids(model_file, names)[source]¶
Resolve MuJoCo-style body ids from XML without importing mujoco.
- unilab.base.backend.mujoco.xml.materialize_scene_visual_override(source_model_file, *, ground_texture_file=None, ground_texrepeat=None, skybox_rgb1=None, skybox_rgb2=None)[source]¶
Create a temporary scene XML with visual-only overrides applied.
- unilab.base.backend.mujoco.xml.materialize_scene_fragments(source_model_file, *, fragment_files)[source]¶
Create a temporary scene XML with task/scene fragments merged.
- unilab.base.backend.mujoco.xml.materialize_mujoco_hfield_attached_scene(*, model_file, terrain_cfg, output_dir, fragment_files=(), hfield_name='terrain_hfield', geom_name='floor', return_surface_sampler=False)[source]¶
Build a MuJoCo model with generated hfield terrain and attached robot spec.