Skip to main content

Minimal pyproject for the net_franky package

Project description

๐Ÿค– net_franky

Use the Franky library from non-realtime Machines.

License Status

๐Ÿ—๏ธ How it works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    RPyC     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    libfranka    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Your Laptop โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚ RT Server   โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ โ”‚ Franka Robotโ”‚
โ”‚             โ”‚             โ”‚             โ”‚                 โ”‚             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐ŸŽฏ Key Benefits:

  • ๐Ÿ”Œ Drop-in replacement for the franky library with function stubs
  • โšก Well proven - building on the common rpyc library
  • ๐Ÿš€ Simple - 5 minutes to get started

๐Ÿš€ Quick Start

1. Server Setup (Real-time machine)

# One-time setup
mkdir ~/net_franky && cd ~/net_franky
python -m venv .venv && source .venv/bin/activate
pip install "net_franky[server] @ git+https://github.com/yblei/net_franky.git"

2. Start server (Run in tmux/screen)

rpyc_classic -p 18812 --host 0.0.0.0

3. Client Usage (Your laptop)

pip install 'git+https://github.com/yblei/net_franky.git'
from net_franky import setup_net_franky
# Connect to remote server
setup_net_franky("server-ip", 18812)

from net_franky.franky import Robot

# Use exactly like local franky
robot = Robot("192.168.1.100")
robot.move_to([0.3, 0.4, 0.5])

That's it! ๐ŸŽ‰ Your robot code now runs remotely.


Only Deviation from franky: Wrapper around the robot class

Franky supports the registration of a callback function to a motion. This is useful to record trajectories or to stream pose information back for visualization. Since this function is called with 1000Hz and the calls are buffered, execution over the network leads to significant delays.

We therefore provide a pointer to the latest motion callback data in

robot_state, time_step, rel_time, abs_time, control_signal = robot.get_last_callback_data()

Warning: If you get segmentation faults, make sure you use the same version of python on the server and the client.

๐Ÿค Contributing

We welcome contributions!

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

net_franky-1.0.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

net_franky-1.0.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file net_franky-1.0.0.tar.gz.

File metadata

  • Download URL: net_franky-1.0.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for net_franky-1.0.0.tar.gz
Algorithm Hash digest
SHA256 48571f39c2f3b4f3ebc449ee171513697e8913ca139ad99513d52dc628e0a233
MD5 c738e159cf497e86334160833d853c2b
BLAKE2b-256 72ceba4e21f3aa9c63276e84052dca80d24e8c6e0517896a409e7942228a150a

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_franky-1.0.0.tar.gz:

Publisher: publish.yml on yblei/net_franky

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

File details

Details for the file net_franky-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: net_franky-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for net_franky-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55a282752accab32904c19c1ec1bef577c7298160b68872f287bab192f556655
MD5 92a39770465411502fa3b8a12cdb1c7d
BLAKE2b-256 7315f56316f30480864efdf1df1deac2265926e41baf2e44dd4930c9f99d158e

See more details on using hashes here.

Provenance

The following attestation bundles were made for net_franky-1.0.0-py3-none-any.whl:

Publisher: publish.yml on yblei/net_franky

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