Commit f1d8fa72 authored by Kelly Guo's avatar Kelly Guo Committed by Kelly Guo

Fixes benchmark script import for RSL RL (#248)

# Description

Fixes benchmark script import for RSL RL

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->
parent 1f9437f7
...@@ -13,11 +13,13 @@ ...@@ -13,11 +13,13 @@
"""Launch Isaac Sim Simulator first.""" """Launch Isaac Sim Simulator first."""
import argparse import argparse
import os
import sys import sys
import time import time
from isaaclab.app import AppLauncher from isaaclab.app import AppLauncher
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../.."))
import scripts.reinforcement_learning.rsl_rl.cli_args as cli_args # isort: skip import scripts.reinforcement_learning.rsl_rl.cli_args as cli_args # isort: skip
# add argparse arguments # add argparse arguments
...@@ -63,7 +65,6 @@ imports_time_begin = time.perf_counter_ns() ...@@ -63,7 +65,6 @@ imports_time_begin = time.perf_counter_ns()
import gymnasium as gym import gymnasium as gym
import numpy as np import numpy as np
import os
import torch import torch
from datetime import datetime from datetime import datetime
...@@ -85,8 +86,6 @@ from isaacsim.core.utils.extensions import enable_extension ...@@ -85,8 +86,6 @@ from isaacsim.core.utils.extensions import enable_extension
enable_extension("isaacsim.benchmark.services") enable_extension("isaacsim.benchmark.services")
from isaacsim.benchmark.services import BaseIsaacBenchmark from isaacsim.benchmark.services import BaseIsaacBenchmark
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../.."))
from isaaclab.utils.timer import Timer from isaaclab.utils.timer import Timer
from scripts.benchmarks.utils import ( from scripts.benchmarks.utils import (
log_app_start_time, log_app_start_time,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment