MuJoCo Playground RL Task Authoring & Training (rl_task_check.py)
Author, optionally inspect in MuJoCo Studio, audit, GPU-train (Impl.WARP +
RSL-RL), diagnose in TensorBoard, and deploy locomotion, dexterous in-hand, or
vision manipulation RL tasks in mujoco_playground.
1. Fast Discovery, Public APIs, & Zero-Churn Workflow
- Workspace & Accelerator Setup:
-
Clone and sync (
make syncon CUDA 13,make sync-cu12on Linux CUDA 12, ormake sync-cpuon macOS/CPU):bashgit clone https://github.com/google-deepmind/mujoco_playground.git && cd mujoco_playground && make sync -
Invoke
.venv/bin/python/.venv/bin/playground(oruv run --no-sync) directly souvnever re-syncs over your chosen accelerator group. On headless Linux NVIDIA GPUs, setMUJOCO_GL=egl(omit on macOS), and pass--wp_kernel_cache_dir=""toplayground train rsl_rlsorl_task_check.pyand training share Warp's default user cache (compiling kernels once).
-
- One-Pass Survey (No Piecemeal Introspection Churn):
- Check
mujoco_playground/robots/(g1,so101,trossen_wxai,yam) and one reference task inmujoco_playground/tasks/(manipulation/pick_cube/{task,mdp,reset}.pyorwhole_body/tracking/), reusing existing robot scenes/constants instead of duplicatingrobots/<robot>/. - Load Menagerie MJCFs via
asset.get("github:google-deepmind/mujoco_menagerie/<robot>/<file>.xml").spec(). When binding an unfamiliar Menagerie robot, inspect all bodies, joints, ranges, actuators (gainprm/biasprm/forcerange), sites, cameras, keyframes, and active collision geoms in one Python command, and rely on Section 3'sreaf_simreference rather than readingthird_party/reaf_sim/internals or runninginspect.getsource.
- Check
- Public Imports & AST Audit Rules in
tasks/&robots/:-
rl_task_check.pyrejects private._srcimports,__all__, and any module-scope.compile()call (includingMjSpec.compile()orre.compile()) insidetasks/androbots/. Import public facades only:pythonfrom mujoco_playground import asset, rl, wrapper from reaf.simulation import torch as reaf_sim from reaf.simulation.torch import ( action_history, environment, feature_producer, flat_scene, math as reaf_math, model_randomization, mujoco_types, noise, processors, resetter, tensors, termination_checker, ) -
Build ground planes, boxes, and mocap targets directly on
mujoco.MjSpec(spec.worldbody.add_body(...)) instead ofmujoco_playground._src.objects.
-
- Single-Command Audit (Skip Redundant Test/Formatter Churn):
rl_task_check.py(--action=all) validates AST sync/import rules, CPUImpl.CPPreset/step, CUDAImpl.WARPtorch.cuda.set_sync_debug_mode("error")reset/step, finite observations/rewards, andflat_scene.make_deployment_config. Do not write redundanttask_test.pysuites or run formatters unless asked.- MuJoCo Studio Inspection: Load
mujoco-studio-sidecar+mujoco-studiowhen interactive visual inspection in MuJoCo Studio (sidecar://robotics/mujoco_studio/) is requested; for headless CLI/batch training requests, go directly fromrl_task_check.pytorsl_rl.train.
2. High-Throughput GPU MjSpec, Collisions, & warn_overflow = 0
- Solver Caps & Mandatory
warn_overflow = 0(10x–40xFaster Training):-
Configure solver & buffer caps on
flat_scene.Sim(applied after allMjSpec.attachcalls, avoiding parent100/50overrides;nconmaxandnjmaxare per-world capacities, never multiplied bynworld):- Locomotion & dexterous hands (
50 Hz):simulation_timestep=0.005,control_timestep=0.02(decimation=4),iterations=6,ls_iterations=10,nconmax=32–48,njmax=128–192,integrator=mujoco.mjtIntegrator.mjINT_IMPLICITFAST,cone=mujoco.mjtCone.mjCONE_PYRAMIDAL,solver=mujoco.mjtSolver.mjSOL_NEWTON. - Tabletop arm manipulation (
20 Hz):simulation_timestep=0.005,control_timestep=0.05(decimation=10,2.5xfewer substeps/iter than0.1s/0.004s),iterations=8,ls_iterations=10,ccd_iterations=35,nconmax=32,njmax=128.
- Locomotion & dexterous hands (
-
CRITICAL — Silence
mujoco_warpwp.printfOverflow Floods:mjw.put_modeldefaultswarp_model.opt.warn_overflowtoOverflowType.ALL. Withiterations=6–8, random RL exploration hits the iteration cap across thousands of GPU threads and prints millions of"solver/linesearch iterations limit reached"lines via CUDAwp.printf, stalling training from100k+FPS to1.4kFPS! Always disablewarn_overflowinsideEnvironmentReset.on_startup(self)(which executes beforeSimulatorcaptures its CUDA step graph, strippingwp.printfat Warp compile time):pythonsim = self._env.device_layer.sim if sim is not None and sim.impl == reaf_sim.Impl.WARP: sim.warp_model.opt.warn_overflow = 0(If using only
DomainRandomizationResetterwithout a custom resetter, add a"startup"termlambda model, spec, dev: setattr(model.obj.opt, "warn_overflow", 0) if hasattr(model.obj.opt, "warn_overflow") else None.)
-
- Primitive Colliders & Self-Collision Bitmasks (
4xFaster MJWarp + Instant Compile):- Name every unnamed geom (
f"{body.name}_geom_{i}") before attaching, and ensure floating bases have a named freejoint ("root"). - Menagerie hands and grippers often have dozens of
mjGEOM_MESH/mjGEOM_CYLINDERcolliders and internal rail/housing boxes that trigger multi-minute GJKccd_kernelcompilations, self-collisionnjmaxoverflows, and4xslower stepping:- Convert active (
contype != 0 or conaffinity != 0)mjGEOM_MESHandmjGEOM_CYLINDERcolliders to local AABBmjGEOM_BOXprimitives using a one-timem0 = spec.compile()(center, half = m0.geom_aabb[gid, :3], np.maximum(m0.geom_aabb[gid, 3:], 1e-3), shiftingg.posbyR_geom @ center, settingg.type = mujoco.mjtGeom.mjGEOM_BOX,g.size = half,g.meshname = ""; merge multi-piece palm hull splits into a single union AABB box on the palm). - Disable collisions (
contype = conaffinity = 0) on non-contacting internal gripper carriages, rails, and camera housings, keeping only finger pads, wrist/forearm capsules, manipuland, and table/terrain active. - Separate robot vs. environment collision bitmasks (
robot: contype=1, conaffinity=2;object/table/terrain: contype=2, conaffinity=3) when robot self-collision sensing is not needed.
- Convert active (
- Name every unnamed geom (
- Actuator Damping Sign (
biasprm[2] < 0!) & Palm-Up Hand Mounting:-
In MuJoCo
mjBIAS_AFFINE,force = gainprm[0] * ctrl + biasprm[0] + biasprm[1] * qpos + biasprm[2] * qvel, sobiasprm[2]MUST be strictly negative (-kd)! Preserve Menagerie servos only whenbiasprm[2] < 0. Whenever an asset has pure torque<motor>s (biastype == mjBIAS_NONE), undamped servos (biasprm[2] == 0), or positive anti-dampingbiasprm[2] > 0(a common Menagerie hand bug where+kd * qvelinjects energy and causes violent bang-bang finger chatter!), set negative velocity damping (act.biasprm[2] = -0.05 * kpandj.damping[0] = max(float( j.damping[0]), 0.02)on finger joints, or replace torque motors on legs withkp=25.0, kd=0.5,j.armature[0] = 0.01,j.damping[0] = 0.1,j.frictionloss[0] = 0.0— index[0]onMjsJoint3-vector fields!) by mutating attributes on the returnedMjsActuator(spec.add_actuator(name=j, target=j)raisesTypeErroron kwargs):pythonact = spec.add_actuator(name=j, target=j) act.trntype = mujoco.mjtTrn.mjTRN_JOINT act.dyntype = mujoco.mjtDyn.mjDYN_NONE act.gaintype = mujoco.mjtGain.mjGAIN_FIXED act.biastype = mujoco.mjtBias.mjBIAS_AFFINE act.gainprm[0] = kp act.biasprm[1:3] = [-kp, -kd] act.ctrllimited = False act.forcelimited = True act.forcerange[:] = [-effort, effort] -
Dexterous Hand Palm-Up Orientation: Standalone Menagerie hands often mount upright (
+zalong fingers) atqpos=0, dropping objects immediately. Check fingertip motion from open to flexedqpos(mj_forward) to find the palmar curl direction, mount the hand root palm-up (+z) atz ≈ 0.25 min a mid-flexed cuppedhome_qposwith the thumb opposed over the palm center, and spawn a high-friction (1.2)4.5–5.0 cmobject3–4 cmabove the palm so all fingers can reach and roll it.
-
3. Exact flat_scene & reaf_sim Reference (Zero Introspection Needed)
- Top-Level
flat_scene.EnvironmentStructure:- Fields:
base_scene: mujoco.MjSpec,device_layer: flat_scene.DeviceLayer,task_layer: flat_scene.TaskLayer,observation_adapter: dict[str, flat_scene.ObsGroup],resetters: dict[str, flat_scene.Component],sim: flat_scene.Sim,episode_length_secs: float = 20.0,nan_termination: bool = True. flat_scene.Component(Cls, **runtime_kwargs)auto-injectsname(dict key),nworld, andxpu_devicefordevices,command_processors,command_feature_producers,feature_producers, andtermination_checkers, exceptresetters, which instantiatesCls(**runtime_kwargs)directly and injectsself._env,self._nworld, andself._xpu_deviceviaset_env(env).- Every
flat_scene.ObsinObsGroup(terms={...}, enable_noise=...)needs.configure(output_shape=(D,))(string shortcutObs("feat/key")takes no kwargs before.configure(...)). task_layer.terminationsTermfunctions take(features, **params)and returntorch.where(cond, termination_checker.TerminationResult.TERMINATE, termination_checker.TerminationResult.DO_NOT_TERMINATE); sim-onlyresetter.TerminationResetter(terms=[reaf_sim.Term(fn, ...)])takes(device_layer, **params)and returns boolean(nworld,).
- Fields:
- Core
DeviceLayer&TaskLayerComponents (Exact Keys & Shapes):-
reaf_sim.ActuatorDevice(targets=list(JOINTS), measurements=["joint_pos", "joint_vel"], home_ctrl=list(HOME))-> consumes"{key}/ctrl": (B, nu), emits"{key}/joint_pos": (B, nu),"{key}/joint_vel": (B, nu)(resetsdata.ctrlonly; writedata.qpos/data.qvelinon_resetusingtensors.masked_fill(target, env_mask, val)). -
reaf_sim.ArticulatedDevice(joint_names=list(JOINTS), home_qpos=list(HOME), measurements=["joint_pos", "joint_vel", "home_qpos", "joint_range"])-> emits"{key}/joint_pos": (B, nq),"{key}/joint_range": (B, nq, 2). -
reaf_sim.FreeDevice(body_name=..., joint_name=..., measurements=["xpos", "xquat", "joint_vel"], reference_site_name=None)-> emits"{key}/xpos": (B, 3),"{key}/xquat": (B, 4)[w,x,y,z],"{key}/joint_vel": (B, 6)([:, :3]world lin vel -> rotate viareaf_math.quat_rotate_inverse(quat, vel[:, :3]);[:, 3:6]body ang vel); setters:set_pos(env_mask, pos),set_quat(env_mask, quat),set_vel(env_mask, vel). -
reaf_sim.MocapDevice(body_name=...)-> emits"{key}/mocap_pos": (B, 3),"{key}/mocap_quat": (B, 4); setters:set_pos,set_quat.reaf_sim.SiteDevice(site_name=...)->"{key}/xpos","{key}/xmat". -
flat_scene.Component(reaf_sim.ContactSensorDevice, fields=("found", "force"), history_length=decimation).configure_spec(objtype="geom"|"body"| "xbody", objname=..., reftype=..., refname=..., reduce="maxforce", num=1)-> emits"{key}/{f}": (B, n_sensors, dim_f)(found: 1,force: 3) and"{key}/{f}_history": (B, n_sensors, history_length, dim_f). -
action_history.ActionHistory(key="action", feature_shape=(nu,), history_length=1)(intask_layer.command_feature_producers) -> consumes"action", emits"action": (B, nu)and"action_history": (B, 1, nu). Pair withprocessors.TransformActions(input_key="action", output_key="robot/ctrl", scale=..., offset=..., consume=True)(passconsume=Truewheninput_key != output_keyso"action"is consumed!). -
feature_producer.FeatureProducersubclass methods:nameproperty,produced_features_spec() -> Mapping[str, specs.Array],required_features_keys() -> set[str], pureproduce_features(features) -> Mapping[str, Tensor], plus statefulon_step(features),on_begin_stepping(features, env_mask=None), andreset(env_mask=None). Execution-order rule:TaskLayercallson_step(features)beforeproduce_features(features)andcompute_reward()on every step! Therefore in any progress/goalFeatureProducer, compute and cacheself._rot_delta = self._prev_err - cur_errandself._goal_reached = (cur_err < thr).float()insideon_step()before resamplingself._goal_quaton reached worlds and updatingself._prev_err, then return those cached tensors fromproduce_features()(otherwiseprev_err - cur_erris identically0!). Mark critic/reward-only producers with.mark_privileged(). -
Vision Cameras (
32x32Raytracing +Impl.CPPSmoke Support): Render atcam_resolution=[(32, 32)](~85kFPS on A100,3xfaster than64x64without extra downsampling) withuse_precomputed_rays=Falseand 1castshadow=Truekey light (set fill lightscastshadow=False). Becauseenv_registry.register()'sbuild()popsimplfromkwargsbefore callingenv_cfg_fn(), forwardimplinenv_registry.pywhen"impl" in inspect.signature(env_cfg_fn).parameters(defaulting to"warp" if device_str.startswith("cuda") else "cpp") and branch inenv_cfg_fn(impl="warp"):pythonif impl == "cpp": opt = mujoco.MjvOption() opt.flags[mujoco.mjtRndFlag.mjRND_SHADOW] = 1 cfg.device_layer.devices["camera"] = flat_scene.Component( reaf_sim.MujocoCameraDevice, camera_name=cam, width=32, height=32, render_rate_hz=rate_hz, scene_option=opt, image_output_name_prefix=cam, rgb_output_name_suffix="_rgb") else: cfg.device_layer.devices["camera"] = flat_scene.Component( reaf_sim.CameraDevice, cam_name=[cam], cam_resolution=[(32, 32)], render_rate_hz=rate_hz, render_rgb=True, render_depth=False, enabled_geom_groups=(0, 2), use_precomputed_rays=False, use_shadows=True)
-
4. Zero-Sync CUDA Rules & High-Score Domain RL Formulations
- Zero-Sync CUDA Rules (Enforced in Both
step()andreset()/ DR):- Never call
.item(),.cpu(),.numpy(),.tolist(),.nonzero(),.new_tensor(),bool(), or.any()/.all()withoutdim=. - No boolean mask indexing on CUDA tensors (
x[env_mask] = ...ormodel.jnt_qposadr[ltd]triggersnonzero()D2H sync!). Precompute index tensors inon_startup()and write masked updates viatensors.masked_fill(dst, env_mask, val)ortorch.where. - No
torch.tensor([...], device=cuda)ortorch.as_tensor(val, device=cuda)inside hot/reset functions (host literal upload syncs CUDA!). Note:noise.sample_so3_uniformcallstorch.as_tensor(low, device=device)internally and stripsshape[-1]; sample uniform SO(3) unit quaternions zero-sync viaq = torch.randn((n, 4), device=device); q = q / torch.linalg.norm(q, dim=-1, keepdim=True).clamp(min=1e-8).
- Never call
- Domain Formulation Recipes (
FunctionalRewardProviderscales all rewards bycontrol_dt):- Locomotion (Quadrupeds & Bipedal Humanoids):
- Actions:
TransformActions(input_key="action", output_key="robot/ctrl", scale=SCALE, offset=DEFAULT_POS, consume=True)(0.25for quadrupeds; per-joint(0.25 * effort / kp).clamp(0.15, 0.45)around bent-knee pose on bipeds). - Asymmetric
ObsGroups:"policy"(enable_noise=True) gets bodyang_vel,projected_gravity,command(vx, vy, wz),joint_pos - default_pos,joint_vel,action;"critic"(enable_noise=False) adds clean bodylin_veland foot contacts. - Rewards (avoid the standing-frozen local optimum!): Make velocity tracking
dominant —
track_lin_vel_xy = torch.exp(-err_xy_sq / 0.25)(weight=3.0) andtrack_ang_vel_z = torch.exp(-err_wz_sq / 0.25)(weight=1.5), keepalivemodest (0.2on bipeds, never>= 1.0), and makefeet_air_timestrictly non-negative (`torch.clamp(last_air_time- 0.15, min=0.0, max=0.35) * first_contact / control_dt
,weight=0.75— a negativeminpunishes early baby steps and freezes the robot!). Add upright||g_proj_xy||^2(-2.5),v_z^2(-2.0),||w_xy||^2(-0.05),||a_t - a_{t-1}||^2(-0.015),||qvel||^2(-5e-4), non-sagittal posture (hip_roll,hip_yaw, waist, arms,-0.25), stand-still (-0.5), and undesired contacts (-1.0`).
- 0.15, min=0.0, max=0.35) * first_contact / control_dt
- Actions:
- Dexterous In-Hand SO(3) Reorientation:
- Actions & exploration: Fix any
biasprm[2] >= 0anti-damping first! Use wide joint authorityTransformActions(input_key="action", output_key="robot/ctrl", scale=0.65, offset=CUPPED_HOME, clip=(Q_LOW, Q_HIGH), consume=True)(so fingers sweep their full range to roll the object) at50 Hz,episode_length_secs=10.0, paired withinit_std=0.5andentropy_coef=0.002inRslRlOnPolicyRunnerCfg. - Observations:
reaf_math.quat_box_minus(goal_quat, obj_quat)(3D tangent rotation error),obj_pos - palm_pos, fingertip site positions relative toobj_pos,joint_pos - home_qpos,joint_vel, andaction; critic addsobj_lin_velandobj_ang_vel. - Active rotation + finger engagement rewards: Combine (1) fingertip
engagement
mean_i exp(-||tip_i - obj_pos|| / 0.05)(weight=1.0, so all fingers immediately contact the object), (2) rotation progress(prev_rot_err - rot_err) / control_dt(weight=3.0, whererot_err = reaf_math.quat_error_magnitude(obj_quat, goal_quat)), (3) dense alignment1.0 / (rot_err + 0.1)(weight=1.5), (4) palm centeringexp(-||obj_pos - palm_center||^2 / 0.05^2)(weight=1.0), (5) goal-reached impulse(rot_err < 0.4).float() / control_dt(weight=10.0— divide bycontrol_dtso* control_dtpreserves the full+10.0bonus!), resampling a new Haar-uniform quaternion on goal-reached worlds inon_step()and trackingconsecutive_successes, plus (6) drop termination (||obj_pos - palm_center|| > 0.10orobj_z < palm_z - 0.04).
- Actions & exploration: Fix any
- Vision & Sim-to-Real Tabletop Manipulation:
- Smooth delta servo control (
20 Hz,control_timestep=0.05): wireprocessors.DeltaActions(output_key="robot/ctrl", scale=DELTA_SCALE, offset=HOVER_OPEN_POSE, action_clip=(-1.0, 1.0), smoothing=0.5, clip=(JOINT_MIN, JOINT_MAX))andprocessors.StochasticSubstepCommands( keys="robot/ctrl", delay=(0.0, 0.005)). Center-crop(B, C, H, W)images before any resize. - Calibration
bias& visual DR: Add per-episodebias=noise.Noise( dist=noise.Uniform(low=..., high=...), op="add")on"policy"joint_pos(±0.01rad) andee_pos(±0.0025m). Dim headlight (diffuse=[0.1, 0.1, 0.1]), add multi-directional room lights targetingworkspace_center, strip textures (override_flat_materials), randomize robotgeom_rgbaand high-contrast HSV object vs. floor/tablegeom_rgba(trigger="reset"; squeezergbwhenbound.geom_rgba.ndim == 2), and randomizelight_pos,light_dir,light_diffuse,cam_pos(±5mm),cam_quat(4deg), andcam_fovy(0.9–1.1x). - Grounded 4-stage rewards:
reaching(exp(-d^2 / 0.06^2),weight=1.0) -> proximity-gatedgrasp(exp(-d^2 / 0.03^2) * ((open_pos - q_grip) / (open_pos - closed_pos)).clamp(0.0, 1.0),weight=1.5) ->lift&bringing(weight=3.0each; settable_z = surface_z + cube_half_size, e.g.0.75 + 0.02 = 0.77on elevated tables vs0.018onz=0floors, andlift_height_threshold = table_z + 0.03) ->success(weight=2.0), plusfloor_contact(-1.0),action_rate(-0.02), andjoint_pos_limits.
- Smooth delta servo control (
- Locomotion (Quadrupeds & Bipedal Humanoids):
5. Compiled RSL-RL Training, TensorBoard Diagnostics, & Safe Deploy
-
Runner Registration (
_src/rl/rsl_rl/env_rl_config.py&_src/rl/env_registry.py):- Set
torch_compile_mode: str | None = "default"onRslRlOnPolicyRunnerCfgsubclasses (~2xfaster PPO updates on CUDA; auto-disabled on CPU) andsave_interval: int = 50. Never setclip_actions(RslRlVecEnvWrapperraisesValueError("clip_actions is not supported.")). - State tasks:
nworld=4096,num_steps_per_env=24,hidden_dims=(512, 256, 128),obs_normalization=True,num_learning_epochs=5,num_mini_batches=4,init_std=1.0(0.8on 29-DOF bipeds;0.5withentropy_coef=0.002on20+DOF hands). - Vision tasks:
obs_groups={"actor": ["policy", "camera"], "critic": ["critic"]},nworld=4096(2048if GPU is shared),num_steps_per_env=16,num_learning_epochs=4,actor = RslRlCNNModelCfg(hidden_dims=(256, 256, 128), obs_normalization=True, cnn_cfg={"camera": RslRlCNNCfg(output_channels=(16, 32), kernel_size=(5, 3), stride=(2, 2), activation="elu", max_pool=False)}), and asymmetric statecritic = RslRlMLPModelCfg(hidden_dims=(512, 256, 128), obs_normalization=True). Register an uncalledenv_cfg_fnin_src/rl/env_registry.py.
- Set
-
Audit, Pre-Train Sanity Rollout, & One-Shot GPU Training:
bash# On macOS, omit MUJOCO_GL=egl. MUJOCO_GL=egl .venv/bin/python <skill_dir>/scripts/rl_task_check.py --action=all --repo_root=. --task_dir=mujoco_playground/tasks/<category>/<task> --env_id=<EnvId> MUJOCO_GL=egl .venv/bin/playground train rsl_rl --env=<EnvId> --wp_kernel_cache_dir="" --logdir=<logdir> --overrides='{"max_iterations": 350, "save_interval": 50}' .venv/bin/tensorboard --logdir=<logdir> --port=6006- Pre-train 5-step sanity check -> ONE training run: Before launching
rsl_rl.train, stepnworld=4for 5 random actions in a 2-second snippet to confirm stateful progress rewards are non-zero. Then run one GPU training job (300–400iterations, matching the requested minimum plus a small margin) usingNotificationTimeoutSecondsinstead of polling loops. - Do NOT run speculative 2nd/3rd retraining loops once
<logdir>has completed the requested iterations with finite, risingTrain/mean_reward(on20+DOF dexterous hands,300–400iterations establishes stable cradling, rising reward/episode length, and initialconsecutive_successes > 0, whereas fullrot_err < 0.5rad takes2,000+iterations; launching late re-trains risks hitting evaluation wall-clock timeouts!). Neverrm -rfa completed<logdir>. - TensorBoard Scalar Diagnostics:
Train/mean_reward,reward_episode/<term>, &Metrics/<metric>: Climbingreachingwith flatlift-> miscalibratedtable_zor missing proximity-gated grasp; flatrot_err ≈ 2.0rad on hands ->biasprm[2] >= 0anti-damping, small actionscale, or missing fingertip engagement; frozenlin_vel_xy_error-> negativefeet_air_timeclamp or highalive.Loss/entropy,Loss/value,Perf/total_fps, &Train/mean_episode_length: LowPerf/total_fpswith huge stdout logs indicates missingwarp_model.opt.warn_overflow = 0.
- Pre-train 5-step sanity check -> ONE training run: Before launching
-
Fast-Fail Checkpoint Deployment (
deploy.pywithabsl.flags):- Use
absl.app+absl.flags(--checkpoint,--mode,--num_steps) and validate--checkpoint(epath.Path(ckpt).expanduser(), verifying the.ptfile or amodel_*.ptinside a directory exists) at the top ofmain()before lazymujoco/warp/rsl_rlimports orcreate_env(), so path typos fail in<0.2swhile physical servos stay idle. - Build single-world inference (
nworld=1) viaflat_scene.make_deployment_config(cfg, observation_groups=actor_groups)(flat_scene.build_env(deploy_cfg)in sim, orwrapper.TorchDeviceLayerWrapperwith maskedSIGINTreturn-to-rest on hardware), settingrunner_cfg.nworld = 1andrunner_cfg.obs_groups = {"actor": list(actor_groups), "critic": [actor_groups[0]]}so checkpoint loading never requires stripped privileged critic observations.
- Use


