You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I want to express my sincerest gratitude for your great work in developing warp and bringing VBD Integrator into the community. I have been playing with the newest VBD integrator release at 1.6.0 and found it really stable for simulating deformable cloth.
But I found some issues when using it:
Modelbuilder.color() will report an indexing error when there is no trimesh graph for coloring in the scene
Missing rigid body integration (for vel/pos update) in VBD integrator
To repeat the issue, I follow the example_cloth_self_contact.py to create a similar env:
By running the provided python file, it will fail to run by reporting the following traceback, which is the first issue I mentioned:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "test_env.py", line 149, in<module>
example = VBDEnv(stage_path=args.stage_path, num_frames=args.num_frames)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "test_env.py", line 85, in __init__
builder.color()
File ".venv/lib/python3.12/site-packages/warp/sim/model.py", line 4483, in color
self.particle_coloring = color_trimesh(
^^^^^^^^^^^^^^
File ".venv/lib/python3.12/site-packages/warp/sim/graph_coloring.py", line 176, in color_trimesh
graph_edge_indices = wp.array(trimesh_edge_indices[:, 2:], dtype=int, device="cpu")
~~~~~~~~~~~~~~~~~~~~^^^^^^^
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
After adding the cloth to the environment, the program can run, but the box shape added to the scene holds its initialized position instead of falling during the simulation. I have checked the VBDIntegrator implementation, it feels like it computes force and applied integrations only on particles (within the colored graph), but the force/position on the rigid body is not computed and updated.
Please correct me if the previous suspects are wrong. If my guess is true, is there any plan for integrating rigid body dynamics in your developing timeline. I would appreciate your clarification with it.
The color function will also report the similar traceback if replace the cloth with a rectangular tetrahedral FEM grid (created by function add_soft_grid).
Bug Description
Hi,
Firstly, I want to express my sincerest gratitude for your great work in developing warp and bringing VBD Integrator into the community. I have been playing with the newest VBD integrator release at 1.6.0 and found it really stable for simulating deformable cloth.
But I found some issues when using it:
To repeat the issue, I follow the example_cloth_self_contact.py to create a similar env:
By running the provided python file, it will fail to run by reporting the following traceback, which is the first issue I mentioned:
After adding the cloth to the environment, the program can run, but the box shape added to the scene holds its initialized position instead of falling during the simulation. I have checked the VBDIntegrator implementation, it feels like it computes force and applied integrations only on particles (within the colored graph), but the force/position on the rigid body is not computed and updated.
Please correct me if the previous suspects are wrong. If my guess is true, is there any plan for integrating rigid body dynamics in your developing timeline. I would appreciate your clarification with it.
System Information
$ lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 Codename: jammy $ python3 --version Python 3.12.8 $ pip list | grep warp warp-lang 1.6.0
The text was updated successfully, but these errors were encountered: