Skip to content

Franka: insertion and snapping

Tight-tolerance assembly is supported through interpenetration-free contact with friction, between rigid, soft and rod bodies. The Franka, steered as in reach and pick, inserts a peg, snaps in a clip and routes a cable.

A peg in a tight hole

A rigid peg pushed into a chamfered hole with 0.1 mm clearance, aimed 0.75 mm off-axis. The hole is a static contact wall:

trusty.contact.add_wall(world, "fixture", np.asfortranarray(Vf), np.asfortranarray(Ff),
                        friction_mu=MU)
python examples/robotics/peg_in_hole.py

--clearance sets the room around the peg.

A snap-fit clip

A soft hexahedral clip whose barbed arms bend through a rigid slot and spring back out under its lip:

clip = trusty.fem.add_hex_solid(
    world, trusty.make_hex_mesh(V, H),
    trusty.StableNeoHookean(youngs_modulus=args.youngs, poisson_ratio=CLIP_NU),
    density=CLIP_RHO, friction_mu=CLIP_MU)
python examples/robotics/snap_fit.py

A cable into three clips

A rod cable pressed into clips whose jaws are affine bodies on spring-loaded hinges:

material = trusty.rods.RodMaterial()
material.youngs_modulus, material.poisson_ratio = CABLE_E, 0.4
material.radius, material.density = CABLE_R, CABLE_RHO
X0 = cable_rest()
cable = trusty.rods.add_rod(world, X0, material, friction_mu=CABLE_MU)
trusty.constraints.add_pin(world, cable, [0])
trusty.rods.pin_twist(world, cable, [0])
body = trusty.affine.add_affine_body(
    world, np.ascontiguousarray(V @ R.T + c), np.ascontiguousarray(F), density=JAW_RHO,
    stiffness=fr.BODY_STIFFNESS, friction_mu=CLIP_MU)
hinge = trusty.affine.add_revolute_joint(
    world, body, tuple(R @ [-CLIP_HALF_L, hy, hz] + c), tuple(R @ [CLIP_HALF_L, hy, hz] + c),
    stiffness=fr.JOINT_STIFFNESS)
trusty.actuators.add_joint_drive(world, hinge, stiffness=JAW_K)
python examples/robotics/cable_route.py