btx0424 / OmniDrones

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

"it is illegal to call this method if PxSceneFlag::eENABLE_DIRECT_GPU_API is enabled!" while setting headless=False #50

Closed jinwoolee1230 closed 7 months ago

jinwoolee1230 commented 7 months ago

Dear Maintainers,

First of all, I really do appreciate your effort and work done on this project and I strongly believe this project is going to be a game-changer in RL-based control on UAV. I hope I could follow up on your simulation setup instruction and work on it.

I was following up the Omnidrones 0.1 documents for the installation, and I had slight warnings during the installation process but did not have any critical errors. So I reached to verification part of your instruction on "Workstation installation".

When I ran the command: python3 train.py algo=ppo headless=true wandb.entity=YOUR_WANDB_ENTITY it worked for many iterations without problem.

Aftter this, I wanted to check the progress of in the simulation so I disabled healess option on command so I ran this: python3 train.py algo=ppo headless=false wandb.entity=YOUR_WANDB_ENTITY and I have encountered numerous repitition of following error:

2024-03-01 09:53:25 [132,786ms] [Error] [omni.physx.plugin] PhysX error: PxArticulationLink::setGlobalPose(): it is illegal to call this method if PxSceneFlag::eENABLE_DIRECT_GPU_API is enabled!, FILE /buildAgent/work/eb2f45c4acc808a0/physx/source/physx/src/NpArticulationLink.cpp, LINE 343 I thought this is issue with some kind of initial setting of the simulation but I could not find any of related codes.. I might be lacking in skills but I think some of the other users are suffering from same error message.

could you please give me some insights about this issue?

Thank you so much for creating this amazing platform, and I cannot wait to do some RL project on this.

btx0424 commented 7 months ago

Hi. What version of Issac Sim are you using? Is the problem similar to #49 ? We suggest using Isaac Sim 2023.1.0-hotfix for now.

jinwoolee1230 commented 7 months ago

Thank you for responding. It may be similar issue from #49 but mine is working well in headless=True. I am now using 2023.1.1 so I will try again with 2023.1.0! Thank you for the kind instruction

jinwoolee1230 commented 7 months ago

It worked perfectly with 23.1.0 hotfix version. Thank you so much and closing the issue