Skip to content

PneuNet fingers

Pneumatic actuation is supported through loads.add_pressure_cavity, a follower pressure load on a closed surface inside a solid. Here it inflates a silicone PneuNet finger, a two-finger gripper and a reduced finger.

python examples/robotics/pneunet_finger.py
cavity = trusty.loads.add_pressure_cavity(
    world, body, cavity_faces(world, body))
trusty.loads.set_cavity_pressure(world, cavity, pressure_at(step, steps, p_max))
world.step()

A gripper on a turning hub

Soft fingers are pinned to a rigid hub with add_pin, and the hub turns on an actuated affine joint.

hub = trusty.affine.add_affine_body(world, Vh, Fh, density=1000.0, stiffness=1e8)
axle = trusty.affine.add_revolute_joint(world, hub, (0.0, 0.0, 0.0), (0.0, 0.0, HUB),
                                        stiffness=1e8)
actuator = trusty.actuators.add_joint_drive(world, axle, stiffness=10.0)
constraints.add_pin(world, body, np.flatnonzero(V[:, 0] == 0.0).tolist(), to=hub)
python examples/robotics/pneunet_gripper.py

A reduced finger

A reduced body with a basis learned from the full finger's motion and a fitted cubature rule. Pressure cavities work on it unchanged. A step takes about 2 ms against 34 ms for the full finger (blue).

body = subspace.add_hex_body(world, mesh, trusty.StableNeoHookean(**MATERIAL),
                             density=DENSITY, basis=subspace.Basis.modal(modes))
if cubature:
    rule = subspace.fit_cubature(world, body)
    subspace.set_cubature(world, body, rule)
    print(f"cubature: {len(rule.elements)} of {len(np.asarray(mesh.elements))} elements")
python examples/robotics/pneunet_pod_subspace.py