Assets Module

Reusable world and scene XML for building models.

mujoco_toolbox.assets.WORLD_ASSETS = '  <asset>\n    <texture type="skybox" builtin="gradient" rgb1=".3 .5 .7" rgb2="0 0 0" width="32" height="512"/>\n    \n    <texture name="body" type="cube" builtin="flat" mark="cross" width="128" height="128" rgb1="0.8 0.6 0.4" rgb2="0.8 0.6 0.4" markrgb="1 1 1"/>\n    <material name="body" texture="body" texuniform="true" rgba="0.8 0.6 .4 1"/>\n    \n    <texture name="grid" type="2d" builtin="checker" width="512" height="512" rgb1=".1 .2 .3" rgb2=".2 .3 .4"/>\n    <material name="grid" texture="grid" texrepeat="1 1" texuniform="true" reflectance=".05"/> <!--Prior:0.2-->\n    \n    <texture name="background" type="2d" builtin="flat" width="256" height="256" rgb1="1 1 1"/>\n    <material name="background" texture="background" texuniform="true" rgba="1 1 1 1"/>\n  </asset>'

Pre-made world assets for MuJoCo simulation: skybox, grid, body, and background textures.

mujoco_toolbox.assets.glovebox(*, width=1.25, depth=0.75, height=1.0, glass_thickness=0.05, pos_x=0, pos_y=0)[source]

Create a glovebox with the given dimensions (in meters).

Return type:

str