Environment Builder#

Environment compilation is the step that turns the three independent components — scene, embodiment, and task — into a runnable Isaac Lab environment. ArenaEnvBuilder does this by collecting the partial configuration each component contributes and merging them into a single ManagerBasedRLEnvCfg.

ArenaEnvBuilder merges Scene, Embodiment, and Task into a ManagerBasedRLEnv

ArenaEnvBuilder merges the Scene, Embodiment, and Task into a runnable ManagerBasedRLEnv.#

environment = IsaacLabArenaEnvironment(
    name="manipulation_task",
    embodiment=embodiment,
    scene=scene,
    task=task,
)

env_builder = ArenaEnvBuilder(environment, ArenaEnvBuilderCfg())
env = env_builder.make_registered()

How it works#

Each component (Scene, Embodiment, Task) exposes a set of get_*_cfg() methods that return its contribution to each Isaac Lab manager. The typical contributions of each component to each manager are tabulated below:

Isaac Lab Manager

Isaac Lab - Arena Component

Scene

Embodiment

Task

Scene

assets, lights

robot, sensors

task-specific assets

Observations

proprioception, cameras

goal observations

Actions

control interface

Events (resets)

object placement

robot reset

task reset

Terminations

success, failure

Rewards

dense rewards (RL)

Recorder

trajectories (opt-in)

ArenaEnvBuilder.build_env_cfg() first assembles the partial manager contributions from each component into a set of complete managers. Then it merges these complete managers into a single ManagerBasedRLEnvCfg.

By default, the builder also solves spatial relations for placed objects and supported robot embodiments. Set ArenaEnvBuilderCfg(solve_relations=False) in Python to disable this step. In an Experiment Run, set environment_builder.solve_relations: false. The Environment Runner exposes the equivalent --no_solve_relations option.

Seeds during compilation#

Environment compilation and rollout use more than one random stream, so locking a single global seed is not enough when you need layouts, object-set picks, or variation values to be reproducible independently.

What it is#

ArenaEnvBuilder exposes two seeds. They are independent — locking one does not fix the other.

Control

Experiment YAML / config

Default

Locking it reproduces

Environment seed

environment_builder.seed / ArenaEnvBuilderCfg.seed

42

Build-time and run-time variation values, and the simulation RNG (for example reset noise).

Placement seed

environment_builder.placement_seed / ArenaEnvBuilderCfg.placement_seed

None (unlocked)

Relation-solver layouts and random RigidObjectSet member assignment. With None, placement stays non-reproducible across runs.

There is no separate variation seed: each variation draws from its own generator, seeded from the environment seed and the variation’s <asset_name>.<variation_name> key. In-order asset selection does not use the seed. It takes the name at the rebuild index, which the Experiment Runner passes to ArenaEnvBuilder for each rebuild. Run-time variations hand out their values in episode-start order, so the k-th episode to start gets the same values for any num_envs. Which environment runs it still depends on num_envs and on when environments reset. See Variations and Pooled Placement.

How to set it#

Set the seeds you want to lock under environment_builder in an Experiment Run (or set the matching field on ArenaEnvBuilderCfg / placer_params in Python):

# Locks the environment seed and the placement seed.
runs:
  locked_seeds:
    environment:
      type: pick_and_place_maple_table
    environment_builder:
      # Build-time and run-time variation values, and simulation randomness
      # such as reset noise.
      seed: 42
      # Object layouts from the relation solver.
      placement_seed: 7
    policy:
      type: zero_action
    rollout_limit:
      num_steps: 100

Run it from the repository root:

python isaaclab_arena/evaluation/experiment_runner.py \
  --experiment_config isaaclab_arena_environments/experiment_configs/concepts/maple_table_seeds_experiment.yaml
  • Set seed to fix variation values and simulation draws.

  • Set placement_seed to fix object layouts.

  • Leave placement_seed unset when placement should vary across runs. To unlock it in this example without editing the YAML, append runs.locked_seeds.environment_builder.placement_seed=null to the command.

The compiled config is then registered with the gym registry under the environment’s name, and gym.make() returns the gym environment.

Mimic mode#

Passing --mimic at the command line compiles a ManagerBasedRLMimicEnv instead of a standard ManagerBasedRLEnv. The mimic environment is used for demonstration generation and includes subtask configurations from the task. Recorders are excluded in mimic mode.

python submodules/IsaacLab/scripts/imitation_learning/isaaclab_mimic/generate_dataset.py \
  --external_callback isaaclab_arena.environments.isaaclab_interop.environment_registration_callback \
  --mimic ...

Next Steps#

Continue to Relations and Strategies to learn how anchors and spatial relations describe a placement layout.