btx0424 / OmniDrones

https://omnidrones.readthedocs.io/
MIT License
147 stars 25 forks source link

Which version of torchrl and tensordict do I need to install when I want to run the distribution based on isaac sim 2022.2.0? #42

Open zhangyq-227 opened 8 months ago

zhangyq-227 commented 8 months ago

Hello, recently I want to try Omnidrones in my project. But I met some problems. I want to use the Omnidrones program based on the isaac sim2022.2.0 version, but the latest versions of torchrl and tensordict libraries only support python3.8 and later versions. However, when I use the old versions of torchrl and tensordict libraries, they are not compatible with the Omnidrones codes. How can I solve this problem? I‘m looking forward to your early reply.

btx0424 commented 8 months ago

Hi there! Can you post the specific issues you encountered? If it is because TorchRL says it needs torch>=2.1.0, just comment out the item in setup.py.

We started this project at roughly the same time TorchRL was started so the code was refactored multiple times during the last year as TorchRL gradually matured. So it is indeed hard to find a compatible version now. I would suggest using Isaac Sim 2023 instead.

zhangyq-227 commented 8 months ago

First of all, thank you for your work. I am sure this is a very meaningful project! I tried to use Omnidrones based on the isaac sim 2022.2.0 , but the required Python version for 2022.2.0 is 3.7, while the latest torchRL requires Python to be 3.8 or later. Therefore, I had to try to use an older version of torchRL for adaptation. However, doing so would encounter errors, as it seems that some specific API functions are missing in the old version of torchRL (for example, in my test, the Python interpreter would prompt that it could not find the _replace_last function in torchrl.env.utils). This caused me some difficulties. However, I am now trying to use Omnidrones based on the isaac sim 2023.1.0 version, and the new version seems to not have this problem. I think the official documentation should provide instructions for the latest installation method based on Python 3.10 to accommodate current software dependencies.

ErinTUDelft commented 6 months ago

I was also having some errors, but they turned out to be the same as mentioned in this issue: https://github.com/btx0424/OmniDrones/issues/49 (solved by downgrading Isaac Sim from 2023.1.1 to 2023.1.0). Is that also what you encountered or did you have different problems?