Skip to main content

rfabric-yam-bridge

Standalone bridge between the rFabric realtime control UDS and an i2rt YAM arm (single or bimanual). Pip-install this package on the robot host, run the rfabric-yam-bridge CLI as a systemd unit, and rfabricd will drive your YAM the moment an operator session opens.

Install

i2rt is not on PyPI. Install both in one step:

uv tool install rfabric-yam-bridge \
  --with "i2rt @ git+https://github.com/i2rt-robotics/i2rt.git"

Run

Single arm:

rfabric-yam-bridge --can-channel can0 --gripper linear_4310

Bimanual:

rfabric-yam-bridge \
    --left-channel can0  --left-gripper linear_4310 \
    --right-channel can1 --right-gripper linear_4310

The socket defaults to $XDG_RUNTIME_DIR/rfabric/control.sock (typically /run/user/<uid>/rfabric/control.sock). Override with --socket-path when running under a systemd unit that pre-creates /run/rfabric/.

The bridge:

  • Binds the UDS, accepts a single client (rfabricd), and decodes inbound length-prefixed CBOR Frames (control wire version 2; a frame of another version is dropped and the arms hold).
  • Declares the arms in a capabilities frame on connect: the fingerprint, stateNames, actionNames, the action groups, accepts, positionHold: true, each group's home row (--home, --left-home, --right-home) and its velocityScale: per joint the joint_velocity gain (--velocity-gain; rad/s, the gripper's normalised stroke per second, at normalised velocity 1), which rfabricd uses to bound operator velocities by the group's maxRate. See Embodiment.
  • Maps every operator payload kind (joint_targets, joint_deltas, joint_velocity, end_effector_velocity, stop, home) into the same per-arm latest target / latest velocity, integrated by a single fixed-rate tick (default 100 Hz) into MotorChainRobot.command_joint_pos. A joint_targets frame (arm names the group) is commanded as given, clipped to the joint range: rfabricd limits how fast consecutive targets move (the group's maxRate) and turns an operator home into targets toward the home row; a home that reaches the bridge is the home row as one target.
  • Follows end_effector_velocity (gamepad) commands like joint_velocity: each frame is the arm's latest command, and every tick low-pass smooths it and integrates it over the real tick time, then solves the commanded tool pose with i2rt's IK against the arm's MJCF. See End-effector velocity.
  • Sends one snapshot at --state-publish-hz (default 30 Hz): the fingerprint and every arm's joint positions and velocities, packed as float32 in stateNames order.
  • Drops any per-arm command stream older than --watchdog-ms so the arm freezes when the operator UI stutters, and holds on a malformed payload; the i2rt motor 400 ms safety timeout is the second line of defence. The gripper keeps its commanded target through the watchdog, a stop and idle, so a grip never loosens.

The wire format is the same one consumed by the LeRobot teleoperator plugin lerobot_teleoperator_rfabricd: both surfaces share the rfabric-control-wire package.

Embodiment

The robot's Embodiment on the platform must declare the state components and action groups below, with the same names, joints and order: rfabricd compares its fingerprint with the bridge's (embodiment) and refuses the session when they differ.

Part Name Declared as Elements
Action group, one per arm arm for a single arm; left, right for a bimanual YAM target: joints, mode: position joint1 to joint6, then gripper when fitted
State component, per arm <group>_position quantity: joint_position the same joints
State component, per arm, after its position <group>_velocity quantity: joint_velocity the joints whose velocities i2rt reports (the same joints)

Arms come in left, right order. Values are i2rt's: radians and rad/s, the gripper normalised 0..1. With a gripper, a single YAM's fingerprint is 2947396534 and a bimanual YAM's 622219696.

The matching Embodiment of a single YAM with a gripper (add low, high and maxRate to the group; a remote inference session needs maxRate):

{
  "state": {"components": [
    {"name": "arm_position", "quantity": "joint_position", "joints": ["joint1", "joint2", "joint3", "joint4", "joint5", "joint6", "gripper"]},
    {"name": "arm_velocity", "quantity": "joint_velocity", "joints": ["joint1", "joint2", "joint3", "joint4", "joint5", "joint6", "gripper"]}
  ]},
  "actions": {"groups": [
    {"name": "arm", "target": "joints", "mode": "position", "joints": ["joint1", "joint2", "joint3", "joint4", "joint5", "joint6", "gripper"]}
  ]}
}

End-effector velocity

Every value of an end_effector_velocity command is a fraction (-1..1) of a top speed:

Input Moves Top speed (default)
linear.x/y/z the wrist point, in the arm's base frame (+x forward, +y left, +z up) --tip-speed (0.1 m/s)
pitch tilts the gripper about its wrist; positive raises the fingertips --pitch-speed (1.0 rad/s)
roll turns the gripper about its approach axis; positive is clockwise seen from behind the gripper --roll-speed (1.5 rad/s)
gripper opens (+) or closes (-) the jaws the gripper's --velocity-gain (1.0 stroke/s)
  • Frames (from the YAM MJCF): the tool frame is grasp_site; the wrist point is the origin of body link4, the anchor of the wrist pitch joint joint4; the pitch axis is the tool's +X (the jaw-stroke axis, parallel to joint4 at the zero pose), positive being the right-hand turn. At the zero pose a pure tilt moves joint4 alone, like wrist_flex on an SO-101. The roll axis is the tool's +Z (the approach axis out of the jaws), the axis of the last joint joint6, positive being the right-hand turn: a pure roll moves joint6 alone.
  • Smoothing: the command is low-passed with --velocity-tau-s (0.1 s); a released input eases to rest, then stops.
  • No wind-up: after each solve the commanded pose is the forward kinematics of the solved joints, clipped to their limits; an unreachable target or a solve that would flip a joint holds the arm joints. Pushing on at a limit winds nothing up, and the reverse moves at once.
  • Gripper: its target moves only on a non-zero gripper input, leading the measured jaws by at most --gripper-lead-cap (0.1 of the stroke), so a grip squeezes with a bounded force. At zero it keeps its target.
  • Stops: a stale command or stop holds the arm at once; joint_targets, joint_deltas, joint_velocity and home leave Cartesian control. Coming back seeds the pose and the gripper from the commanded joints.

The speed, lead and smoothing settings apply to every arm.

Metadata

Release files for rfabric-yam-bridge 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rfabric-yam-bridge 0.1.5
File Size Uploaded Provenance Actions
rfabric_yam_bridge-0.1.5.tar.gz 20.8 kB With provenance Details for rfabric_yam_bridge-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rfabric-yam-bridge 0.1.5
File Interpreter ABI Platform Actions
rfabric_yam_bridge-0.1.5-py3-none-any.whl Python 3 none any Details for rfabric_yam_bridge-0.1.5-py3-none-any.whl

Total release size: 45.3 kB

Release files / rfabric_yam_bridge-0.1.5.tar.gz

Download URL rfabric_yam_bridge-0.1.5.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
47bb32a9a65579ef6b1ca9411603998dbdda78da6041c4ad57bf8106339e929d
BLAKE2b-256 checksum
How to use checksums
c0c3a764fd1d069da7840edd02e341dc48f5971b76c6b61ae671d8ec0a07da57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / rfabric_yam_bridge-0.1.5-py3-none-any.whl

Download URL rfabric_yam_bridge-0.1.5-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e898c511b489d659779980a4d0ae99abb2a78a3f8d9adee87b2b8cd8f74818e8
BLAKE2b-256 checksum
How to use checksums
aa62a51bfa6d0eec9df1d55d492a7f724f5d9ea81d04c2507d2b53b7024382cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for rfabric-yam-bridge 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rfabric_yam_bridge-0.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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