SOFA/PhysX/MuJoCo/Bullet environments for testing gripper and cloth interaction
To use:
-
Compile SOFA (tested on v19.06) and SoftRobots plugin;
-
Move obj files in assets to $SOFA_ROOT_DIR/src/share/mesh/ because the loader seems to always load from there...
-
Run SOFA simulator runSofa from build directory; the installed one cannot correctly load the python script;
-
Load the python script by opening it as a scene; Press Animate button to start the simulation;
-
Use CTRL+UP/DOWN/LEFT/RIGHT/+/- to move and open/close the gripper.
PhysX 3.4 (Need to join NVIDIAGameWorks organization)
To use:
-
Build PhysX 3.4; Note that PxCloth is deprecated after 3.4 and NvCloth is now the product for cloth simulation;
-
Modify the path in env.sh to point to your PhysX SDK folder and source env.sh;
-
mkdir build and cd build and cmake ..
-
make and run ./SnippetGripperCloth
-
Press SPACE to run the simulation; use J/K/L/I/O/P to move and open/close the gripper.
To use:
-
Install mujoco_py;
-
Run the python script;
-
Use A/S/D/W/O/P to move and open/close the gripper.
Note: the simulation window got stuck if we choose to render cloth texture. Looks like an issue of mujoco_py because the original mujoco example works.
To use:
-
Build bullet3; Tested on commits on Aug 14th, 2020; Simulating deformable bodies appears to be faster on commits of Apr 3rd, 2020;
-
Modify the path in env.sh to point to your Bullet SDK folder and source env.sh;
-
mkdir build and cd build and cmake ..
-
make and run ./App_GripperClothGui
-
Press SPACE to run the simulation; use UP/DOWN/LEFT/RIGHT/O/P to move and open/close the gripper.
Note: The tested commits introduce new ways of simulating soft dynamics as DeformableMultiBody, in contrast to original SoftBody. The environment uses a macro USE_DEFORMABLE_BODY in App_GripperCloth.h to disable/enable the old solver.