haosulab / ManiSkill

SAPIEN Manipulation Skill Framework, a GPU parallelized robotics simulator and benchmark
https://maniskill.readthedocs.io/en/latest/
Apache License 2.0
561 stars 97 forks source link

use zeros_like in scene setup gpu to avoid nan #400

Closed hzaskywalker closed 1 week ago

hzaskywalker commented 1 week ago

Here, px.cuda_rigid_body_data.torch() may contain NAN in certain cases. Just multiplying 0 won't eliminate the nan and it is better to set it to zero explicitly.