isaac-sim / IsaacGymEnvs

Isaac Gym Reinforcement Learning Environments
Other
1.8k stars 396 forks source link

Is there any variable/method for detecting collision in Isaac Gym? #100

Open zjwzcx opened 1 year ago

zjwzcx commented 1 year ago

Hi, thanks for your awesome work!

I create a dynamic robot and some static obstacles (asset) in my custom Isaac Gym env. How can I get the collision signal when that dynamic robot collides with certain obstacle?

(I tried to use keywords like "collision" and "occupancy" in the doc to retrieve the variable or method I wanted, but failed.)

Look forward to your reply!

TextZip commented 1 year ago

Have you looked at get_env_rigid_contacts ?

AndrePatri commented 1 year ago

Hi, is there an equivalent method to get_env_rigid_contacts which conforms to Gym's tensor API? Running get_env_rigid_contacts while using GPU, as expected, returns an error. Thanks in advance