Skip to main content

Wire format primitives for the rFabric realtime control bridge (UDS/CBOR Frame envelope + payload constants)

Project description

rfabric-control-wire

Wire-format primitives shared between every Python consumer of the rFabric realtime control bridge.

The Rust agent (rfabric-agent) terminates the operator-side WebRTC data channel and forwards length-prefixed CBOR Frames onto a Unix-domain socket. This package owns the Python side of that contract:

  • Frame, read_frame, write_frame — length-prefixed CBOR framing.
  • CONTROL_KIND / STATE_KIND / MODE_KIND / ACK_KIND — frame envelope kinds.
  • PAYLOAD_* constants and lightweight payload dataclasses (JointTargetsPayload, JointDeltasPayload, JointVelocityPayload, EndEffectorPayload, StopPayload, HomePayload) — the discriminated set of payload.kind values an operator may send.

Consumers today: the lerobot teleoperator (rfabric_remote) and the standalone YAM bridge (rfabric-yam-bridge). Anything else that wants to implement a follower binds the same UDS, accepts the same frames, and uses this package to decode them.

Wire envelope

Each frame on the wire is

[ u32 little-endian length ][ CBOR-encoded Frame map ]

where the CBOR map carries kind, seq, tsNs, and payload. The same shape is emitted by agent-src/src/media/envelope.rs and app/src/frontend/components/intervention/envelope.ts — so this package is the canonical Python mirror of that single contract.

Project details


Download files

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

Source Distribution

rfabric_control_wire-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

rfabric_control_wire-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file rfabric_control_wire-0.1.0.tar.gz.

File metadata

  • Download URL: rfabric_control_wire-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rfabric_control_wire-0.1.0.tar.gz
Algorithm Hash digest
SHA256 30515b66a94d2cb12e37453bba25b08dd7d3e42cf556040ed4398609b87b8a70
MD5 d324b10f41ad3a88c693af8e5ad8b6b2
BLAKE2b-256 39d6eb6440872c09dbf61396ce93aaa417a572fa13337a599a4b4b2770a1473e

See more details on using hashes here.

Provenance

The following attestation bundles were made for rfabric_control_wire-0.1.0.tar.gz:

Publisher: publish.yml on rfabric/rfabric-control-wire

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

File details

Details for the file rfabric_control_wire-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rfabric_control_wire-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8aa10ed0c9c7e4119a8ca5fa4bf63d8ca81c2b3b523aa023732e320039276bd
MD5 01068c9b8ace9aeb5d1fe5bc11bf4d18
BLAKE2b-256 bfcb7ce086477ae4b0173d16b499249bec1d3addeef53d9a593534bfeac1aa94

See more details on using hashes here.

Provenance

The following attestation bundles were made for rfabric_control_wire-0.1.0-py3-none-any.whl:

Publisher: publish.yml on rfabric/rfabric-control-wire

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page