Skip to content

Franka: cloth and water

Rigid bodies, MPM fluids and shells are coupled through contact in one solve. The Franka, steered as in reach and pick, pours water from one cup into another and folds a towel.

Pouring water

The water is MPM particles inside a rigid cup held by the gripper:

water = trusty.QuadraticVolume(bulk_modulus=WATER_BULK)
trusty.mpm.add_mpm_particles(world, water0, spacing**3, water, density=WATER_DENSITY,
                             cell_size=2.0 * spacing, cdpi_domain_scale=0.5)
python examples/robotics/pour.py

Folding a towel

The towel is a shell, pinched by the finger pads and folded onto itself:

cfg = trusty.shells.ShellConfig()
cfg.youngs_modulus, cfg.poisson_ratio = args.youngs, 0.3
cfg.thickness, cfg.density = args.thickness, 400.0
cfg.bending_model = trusty.shells.BendingModel.QuadraticLagrange
python examples/robotics/cloth_fold.py