Skip to main content

fastgripper-openarm — DM-J4310 Worm-Gear Gripper Toolkit

Standalone control for the worm-gear gripper: calibrate, home, and drive it over CAN. No ROS required; plain Python ≥ 3.10 over SocketCAN (Linux) or gs_usb/slcan USB adapters (macOS bench use).

New here? Start with docs/QUICKSTART.md — parts to working gripper in ~30 minutes (the gripper ships without an actuator; you supply a Damiao DM-J4310).

Install

pip install fastgripper-openarm            # core
pip install "fastgripper-openarm[pad]"     # + gamepad support

(Bleeding edge, with repo access: pip install "git+ssh://git@github.com/Transcend-Mechanics/fastgripper-openarm.git".)

Python must be ≥ 3.10 (python3 --version; stock JetPack ships 3.8 — the scripts fail on it at import with TypeError: unsupported operand type(s) for |). fastgripper-gui additionally needs the system package python3-tk.

Calibration data

Tools look for gripper_cal.json in the current directory first, then ~/.config/fastgripper/gripper_cal.json. Generate it once per assembly by probing the hardstops (jaws empty!):

fastgripper-autocal full --expected_span <rad, from your gripper's label / product page> \
    --interface socketcan --channel canX

Motor IDs live in the cal file — no ID flags needed after this.

Bus setup (Linux)

The gripper speaks classic CAN 2.0 at 1 Mbit/s. Find the interface the USB-CAN adapter created (do NOT assume can1 — plug/unplug and watch ip -br link | grep can), then:

sudo ip link set canX up type can bitrate 1000000   # rerun after every reboot

Sharing an existing classic-CAN bus instead: the motor must be re-ID'd off-bus first — a factory DM-J4310 (ID 0x01) collides with OpenArm's joint 1 (their map is 0x01–0x08/0x11–0x18). Wiring: stub < 30 cm, no extra terminator mid-bus. Never share a CAN FD bus — a classic device errors on every FD frame and can disrupt the other nodes. Always pass --interface socketcan --channel canX explicitly. On a dedicated channel a factory motor needs no configuration at all.

Use

fastgripper-autocal home --interface socketcan --channel canX
    # ~20 s re-anchor against the closed stop. JAWS EMPTY. Run once after
    # unboxing, and any time behavior looks off.
fastgripper-pad --keyboard --interface socketcan --channel canX
    # hold a = open, d = close, space = stop, Ctrl-C = quit
fastgripper-pad --interface socketcan --channel canX
    # gamepad: LT = open, RT = close, pressure = speed  (needs [pad] extra)
fastgripper-drive 40 --interface socketcan --channel canX
    # scriptable: go to 40% closed and exit — read fastgripper/drive.py
    # to embed the gripper in your own Python
fastgripper-gui --interface socketcan --channel canX
    # Tk GUI (desktop session required)
fastgripper-doctor --interface socketcan --channel canX
    # no-motion diagnosis when position/state look wrong

Safety

  • Jaws empty for any fastgripper-autocal run — an object in the jaws gets squeezed or fakes a stall.
  • The worm gear holds position with the motor off: grip survives power cuts (feature) and will NOT release on power cut (hazard — run a tool to open).
  • All tools are dead-man by construction, position-bounded to the calibration, and torque-capped. The worm multiplies motor torque into large jaw force — don't raise --tmax/--probe_tmax casually.
  • Keep hands out of jaw and linkage travel while any tool is running.

Troubleshooting

Symptom Do this
TypeError: unsupported operand type(s) for | at import Python < 3.10 — see Install
"no feedback from motor" 24 V, common CAN ground, channel name, ip -details link show canX, motor IDs vs cal file (factory motor = 0x01/0x00)
worked yesterday, dead after reboot rerun the ip link set ... up (not persistent)
ModuleNotFoundError: pygame install the [pad] extra, or use --keyboard
tool refuses: "restored position ... stale state" fastgripper-autocal home (jaws empty)
close stops early / open overruns same — that's the turn-alias symptom; fastgripper-doctor explains without moving the motor
probe aborts on free-run torque per-unit friction: read the printed free-run median/p95 and set --contact_torque just above the p95

fastgripper-calibrate (keyboard jog, mark endpoints by eye, real TTY required) is the manual fallback if autocal can't be tuned for your unit.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastgripper_openarm-0.1.2.tar.gz (38.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastgripper_openarm-0.1.2-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file fastgripper_openarm-0.1.2.tar.gz.

File metadata

  • Download URL: fastgripper_openarm-0.1.2.tar.gz
  • Upload date:
  • Size: 38.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for fastgripper_openarm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 51086c92f664868f37627cf9a2eeafc249cd0a457b31970aecb04c24b6704df0
MD5 8e68a3d8599e0a43a6190ccdee8b0698
BLAKE2b-256 3132f427e75067261e714766ca901a32cfd1660877ac0429a6715899360c37a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastgripper_openarm-0.1.2.tar.gz:

Publisher: release.yml on Transcend-Mechanics/fastgripper-openarm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fastgripper_openarm-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fastgripper_openarm-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cccd3fc7710b74abd569d374d6a94d0549a34a57dec164346f1170df023fcb23
MD5 f62db01c4055cbc3d52b034ae0292b03
BLAKE2b-256 2fbb03b20b055c7466643578ab299140c9306d3ad312aacbe63a2a7ca1f57639

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastgripper_openarm-0.1.2-py3-none-any.whl:

Publisher: release.yml on Transcend-Mechanics/fastgripper-openarm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page