Skip to main content

GitHub  •  LinkedIn  •  X  •  Discord

Telekinesis TF

A Python library for working with coordinate frames, transformations, and visualization. It includes:

  • A TransformTree class for creating and managing transformation trees
  • Utilities for converting between pose representations, including quaternions, Euler angles, and rotation vectors, and for measuring the error between two poses
  • Pattern layouts (tfpattern): grids, staggered rows, rings and stacks of slots for trays, pallet layers, racks and fixtures, with orientation rules and the order a robot visits them
  • Visualization tools for frames using Rerun

Telekinesis TF is currently in its early development phase (pre-1.0). There will be continuous minor version updates that may introduce new data models and improvements. To ensure compatibility and have the latest features, please always install or upgrade to the latest version of the package..

Installation

  1. Create an isolated environment to avoid dependency conflicts. We recommend installing Miniconda by following the instructions from here.
    conda create -n telekinesis-tf python=3.11
    
  2. Activate the environment:
    conda activate telekinesis-tf
    
  3. Install tf using pip:
pip install telekinesis-tf

Example

Run a sample Python script to quickly test your installation

from telekinesis.tf import tftree

tf_tree = tftree.TransformTree("world")
tf_tree.add("world", "new_frame", [0, 0, 1, 0, 0, 0], rot_type="deg")
tf_tree.visualize_rerun()

Lay out the pockets of a tray and put them in the order a robot visits them:

from telekinesis.tf import tfpattern

tray = tfpattern.generate_grid(columns=4, rows=3, pitch=(0.1, 0.1))
tray = tfpattern.mask_slots(tray, keep=lambda slot: (slot.column, slot.row) != (1, 1))
for slot in tfpattern.order_slots(tray, order="serpentine"):
    tf_tree.add("new_frame", f"pocket_{slot.column}_{slot.row}", [slot.x, slot.y, slot.z, 0, 0, slot.yaw_deg], rot_type="deg")
tf_tree.visualize_rerun()

More examples are in examples/: tftree_example.py, tfutils_example.py and tfpattern_example.py.

Tests

pip install -e ".[test]"
python -m pytest tests

Resources

Support

For issues and questions:

Metadata

Release files for telekinesis-tf 0.1.7

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

Source distribution (sdist)

Source distribution for telekinesis-tf 0.1.7
File Size Uploaded Provenance Actions
telekinesis_tf-0.1.7.tar.gz 27.7 kB Without provenance Details for telekinesis_tf-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for telekinesis-tf 0.1.7
File Interpreter ABI Platform Actions
telekinesis_tf-0.1.7-py3-none-any.whl Python 3 none any Details for telekinesis_tf-0.1.7-py3-none-any.whl

Total release size: 51.7 kB

Release files / telekinesis_tf-0.1.7.tar.gz

Download URL telekinesis_tf-0.1.7.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1f59c9c1fbba61debbb4baec0585fd54e41b45178b6846d1ebfffbae8f62c3be
BLAKE2b-256 checksum
How to use checksums
eec4e3b6270b11ed7452bb9829008954184cdaaaaad5c2c20f1adc4fb539a13c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / telekinesis_tf-0.1.7-py3-none-any.whl

Download URL telekinesis_tf-0.1.7-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7178e330cdb221d20bbba14678500dbb7c15f54ad19de19b5103f33e0be01a06
BLAKE2b-256 checksum
How to use checksums
3417f4ef562fc5a28467f212be0aa6976beb6fb92f942fa9241d836368b5d235
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for telekinesis-tf 0.1.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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