2024-12-04 10:50:50 [1,299,156ms] [Error] [carb.scripting-python.plugin] KeyError: ‘EXP_PATH’
At:
/home/cesiro-nvidia/.local/share/ov/pkg/isaac-sim-4.2.0/kit/python/lib/python3.10/os.py(680): getitem
/home/cesiro-nvidia/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/app/app_launcher.py(538): _config_resolution
/home/cesiro-nvidia/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/app/app_launcher.py(111): init
/tmp/carb.9PJ76s/script_1733309450.py(24):
KeyError: ‘EXP_PATH’
At:
/home/cesiro-nvidia/.local/share/ov/pkg/isaac-sim-4.2.0/kit/python/lib/python3.10/os.py(680): getitem
/home/cesiro-nvidia/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/app/app_launcher.py(538): _config_resolution
/home/cesiro-nvidia/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/app/app_launcher.py(111): init
/tmp/carb.9PJ76s/script_1733309450.py(24):
2024-12-04 10:50:50 [1,299,156ms] [Error] [omni.kit.app.plugin] [py stderr]: KeyError: ‘EXP_PATH’
At:
/home/cesiro-nvidia/.local/share/ov/pkg/isaac-sim-4.2.0/kit/python/lib/python3.10/os.py(680): getitem
/home/cesiro-nvidia/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/app/app_launcher.py(538): _config_resolution
/home/cesiro-nvidia/IsaacLab/source/extensions/omni.isaac.lab/omni/isaac/lab/app/app_launcher.py(111): init
/tmp/carb.9PJ76s/script_1733309450.py(24):
Hello, can anyone help me to fix this error?
Trying to run this example code from Isaac Lab documentation:
Copyright (c) 2022-2024, The Isaac Lab Project Developers.
All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
“”“This script demonstrates how to run the RL environment for the cartpole balancing task.”“”
“”“Launch Isaac Sim Simulator first.”“”
import argparse
from omni.isaac.lab.app import AppLauncher
add argparse arguments
parser = argparse.ArgumentParser(description=“Tutorial on running the cartpole RL environment.”)
parser.add_argument(“–num_envs”, type=int, default=16, help=“Number of environments to spawn.”)
append AppLauncher cli args
AppLauncher.add_app_launcher_args(parser)
parse the arguments
args_cli = parser.parse_args()
launch omniverse app
app_launcher = AppLauncher(args_cli)
simulation_app = app_launcher.app
“”“Rest everything follows.”“”
import torch
from omni.isaac.lab.envs import ManagerBasedRLEnv
from omni.isaac.lab_tasks.manager_based.classic.cartpole.cartpole_env_cfg import CartpoleEnvCfg
def main():
“”“Main function.”“”
# create environment configuration
env_cfg = CartpoleEnvCfg()
env_cfg.scene.num_envs = args_cli.num_envs
# setup RL environment
env = ManagerBasedRLEnv(cfg=env_cfg)
# simulate physics
count = 0
while simulation_app.is_running():
with torch.inference_mode():
# reset
if count % 300 == 0:
count = 0
env.reset()
print("-" * 80)
print("[INFO]: Resetting environment...")
# sample random actions
joint_efforts = torch.randn_like(env.action_manager.action)
# step the environment
obs, rew, terminated, truncated, info = env.step(joint_efforts)
# print current orientation of pole
print("[Env 0]: Pole joint: ", obs["policy"][0][1].item())
# update counter
count += 1
# close the environment
env.close()
if name == “main”:
# run the main function
main()
# close sim app
simulation_app.close()