LEAPP Deployment Environment#
Use LeappDeploymentEnv to run a LEAPP-exported policy in an Isaac Lab scene. For command-line deployment instructions and prerequisites, see the
LEAPP deployment guide.
- class isaaclab.envs.LeappDeploymentEnv[源代码]#
Runs a LEAPP-exported policy in an Isaac Lab scene.
The environment sets up the simulation scene and physics from a standard Isaac Lab config, then wires raw sensor/command data to a LEAPP
InferenceManagerand writes the model outputs back to the corresponding scene entities.I/O wiring is driven entirely by the
isaaclab_connectionmetadata field in the LEAPP YAML. Each connection string encodes the type of access, the scene entity name, and the property or method to call:state:{entity}:{property}-- readscene[entity].data.{property}command:{name}-- readcommand_manager.get_command(name)write:{entity}:{method}-- callscene[entity].{method}(tensor, ...)
No observation, action, reward, termination, or curriculum managers are used. The LEAPP model already contains all pre/post-processing.
Methods:
__init__(cfg, leapp_yaml_path)Initialize the deployment environment.
reset()Reset the scene and inference state.
step([external_inputs])Run one environment step: read -> infer -> write -> physics.
close()Clean up the environment and release simulator-owned resources.
- reset() dict[str, torch.Tensor][源代码]#
Reset the scene and inference state.
- 返回:
The initial input tensors (for logging / debugging).
- step(external_inputs: dict[str, torch.Tensor] | None = None) dict[str, torch.Tensor][源代码]#
Run one environment step: read -> infer -> write -> physics.
- 参数:
external_inputs¶ -- Optional overrides keyed by
"ModelName/input_name". Takes precedence over auto-resolved state/command values.- 返回:
The dict of pipeline outputs from
InferenceManager.run_policy().