IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Question] How to Configure PhysxCfg in omni.isaac.lab.sim API for Isaac Lab?

Open H-Hisamichi opened this issue 2 years ago • 4 comments

Hello everyone,

I am working on reinforcement learning with a custom hexapod, but I'm encountering a "collisionStackSize buffer overflow" error. I'd like to expand the buffer size to fix this. However, I'm not sure where and how to set gpu_collision_stack_size in my RL code (possibly in def _setup_scene).

If anyone has any pointers, I'd really appreciate it.

Thank you!

H-Hisamichi avatar Nov 07 '24 02:11 H-Hisamichi

Hi! Could you please try setting it in your config class as shown here?

AsawareeBhide avatar Nov 07 '24 23:11 AsawareeBhide

Hello @AsawareeBhide,

Thank you for the advice. I was able to allocate the buffer successfully.

H-Hisamichi avatar Nov 08 '24 04:11 H-Hisamichi

Hello @AsawareeBhide,

A new error has come up: [Error] [omni.physx.plugin] PhysX error: Patch buffer overflow detected, please increase its size to at least 167788 in the scene desc!

RL training runs fine at first, but after a while, this error appears. In this case, which buffer in PhysxCfg should I increase?

H-Hisamichi avatar Nov 08 '24 05:11 H-Hisamichi

Increasing the gpu_max_rigid_patch_count buffer resolved the error. Thank you for your help!

H-Hisamichi avatar Nov 10 '24 01:11 H-Hisamichi