Fin Ray finger¶
Frictional contact between soft solids and actuated rigid bodies, demonstrated by a tetrahedral Fin Ray finger wrapping around a sphere driven into it on a prismatic joint.
# The sphere slides along x on a rail, driven by an actuator.
height = 0.5 * LENGTH
center = (front_flank_x(height) - GAP - SPHERE_RADIUS, 0.5 * DEPTH, height)
Vs, Fs = icosphere(SPHERE_RADIUS, center)
sphere = trusty.affine.add_affine_body(world, Vs, Fs, density=1200.0, stiffness=1e8,
friction_mu=0.5)
rail = trusty.affine.add_prismatic_joint(world, sphere, center, (1.0, 0.0, 0.0),
stiffness=1e8)
actuator = trusty.actuators.add_joint_drive(world, rail, stiffness=1e5)
trusty.contact.set_self_contact(world, finger, False)
trusty.contact.enable(world, trusty.contact.Config(dhat=2e-4))
On the Franka hand¶
A Fin Ray finger under each of the Franka hand's fingers picks a ball off a table and carries it sideways. Each finger is a reduced body with a corotated basis: a floating frame carries it with the hand while 12 displacement modes describe how it bends.
basis = trusty.subspace.Basis.corotated(pod_modes(mesh, material, g))
body = trusty.subspace.add_tet_body(world, mesh, material, density=FINRAY_RHO, basis=basis,
friction_mu=FINRAY_MU)
trusty.constraints.add_pin(world, body, g["base"].tolist(), to=franka.bodies[link],
stiffness=BOND_STIFFNESS)
The hand grips with a set force: each finger's drive target is kept a fixed distance past where the finger is.