How to quickly prototype/test new envs in IsaacLab - avoid simulation app loading delays? #1326
Replies: 1 comment
-
Hi, I would strongly recommend restarting the simulator every time. 10.5 seconds per run really isn't that bad for development; I find that it barely impedes my progress if at all. That being said, If you use a manager based RL Env, you can call
like in To reset the scene completely as if you launched the scene again. I'm not sure if this would work, but maybe you can try creating the simulator, and a manager based RL env. Then, call env.close() on your env, delete the thread, and then try creating a new stage and see what happens. If that clears the stage, try repeating the process of creating a new env, and then passing it to a new thread to step, and so on. This solution is quite hacky, and I would recommend restarting the sim each time, but if you're set on trying to optimize this restart might be worth a shot. If this doesn't work, just restart the env every time sorry! |
Beta Was this translation helpful? Give feedback.
-
Hi,
From what I understand from the documention, if I want to run any standalone scripts (lets call this
test_env.py
), I need to have the following snippet of code always at the very beginning of the script -Now, I have an example code, to test how long it takes to launch the simulation application which is as follows -
After I run this I get the following - which I think is expected -
It takes around 10.5 seconds to start the simulation app, which is managable - but this might cause large delays if I want to run this script say multiple times in succession.
So, in essense, my question is -
please let me know if such a thing is possible, and thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions