Metadata-Version: 2.4
Name: teledex
Version: 0.0.8
Summary: Phone-based Dexterous Robots teleoperation library
Author-email: Omar Rayyan <olr7742@nyu.edu>
License: MIT
Project-URL: Homepage, https://www.orayyan.com/teledex
Project-URL: Repository, https://github.com/omarrayyann/teledex
Keywords: robotics,teleoperation,ar,ios
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: websockets
Requires-Dist: qrcode
Dynamic: requires-python

# <img src="https://github.com/user-attachments/assets/be6974a5-d5a7-4f97-8c6a-5468801dc360" width="75" align="center" alt="Logo">&nbsp;&nbsp;Teledex

[![PyPI version](https://img.shields.io/pypi/v/teledex)](https://pypi.org/project/teledex/) [![Downloads](https://static.pepy.tech/badge/teledex)](https://pepy.tech/project/teledex) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) 

teledex lets you control robot frames and hands using your iOS device's AR data.

<p align="left">
  <img src="media/oranges_43.gif" width="24%" alt="Oranges">
  <img src="media/react1_43.gif" width="24%" alt="Reactive">
  <img src="media/coffee_43.gif" width="24%" alt="Coffee">
  <img src="media/yuchen_43.gif" width="24%" alt="Handover">
  <img src="media/batteries_43.gif" width="24%" alt="Batteries">
  <img src="media/wipes_43.gif" width="24%" alt="Wipes">
  <img src="media/notes_43.gif" width="24%" alt="Notes">
  <img src="media/precise_43.gif" width="24%" alt="Precise manipulation">
</p>

## Installation

You can install teledex package using pip:

```bash
pip install teledex
```

You can download the app from the [App Store](https://apps.apple.com/ae/app/mujoco-ar/id6612039501).

## Before You Get Started
You can use Teledex in phone-only mode (streams only the device pose) or with an optional 3D-printed holder to track finger motion while teleoperating. All printable parts are available in [`printables`](printables) folder.

See [**ASSEMBLY_GUIDE**](./printables/README.md) for assembly notes and [**SETUP_GUIDE**](GUIDE.md) to get started with your phone and robot setup.
 

## Basic Usage

### Basic Setup

```python
import teledex

session = teledex.Session()
session.start()

# Retrieve AR data
data = session.get_latest_data()
# Returns: {"position": (3,), "rotation": (3, 3), "button": bool, "button_secondary": bool, # "toggle": bool}
```

### MuJoCo Setup

Control MuJoCo frames (body, geom, or site) with Teledex:

```python
import teledex

session = teledex.Session()

mujoco_handler = teledex.MujocoHandler(model=my_model, data=my_data)
session.add_handler(mujoco_handler)

mujoco_handler.link_body(name="eef_target")

session.start()
```

### MuJoCo Studio Setup

TeleDex ships a [MuJoCo Studio](https://mujoco.readthedocs.io/en/latest/studio/index.html) plugin that drives a mocap body and adds a TeleDex panel (QR code, status, live pose). It needs the MuJoCo nightly (`pip install --pre mujoco -f https://py.mujoco.org/`):

```bash
python -m mujoco.studio.viewer --model=demos/scene0.xml --gfx=web --plugins=demos/studio_plugin.py
```

`demos/scene0.xml` is a gripper and a table of objects (put the marker in the mug), `demos/scene1.xml` is a slowly turning lazy Susan carrying plates of treats, and `demos/scene2.xml` has no robot at all. The plugin drives a mocap body named `target` if there is one and an actuator named `gripper` with the app's Toggle; in any scene you can also double-click a body and press **Drive selected** to move it with the phone.

### Connecting Over the Internet

By default the phone and computer must be on the same Wi-Fi. With `remote=True` the phone can connect from any network:

```python
session = teledex.Session(remote=True)
```

The phone still tries the local connection first. If that fails, the two sides connect directly over signed UDP. A small rendezvous server ([`signal/`](signal)) only exchanges their addresses, and your poses never pass through it. To run your own server, pass `signal_url=` or set `TELEDEX_SIGNAL_URL`.

## Additional Functions

```python
session.vibrate(sharpness=0.8, intensity=0.4, duration=0.01)
session.pause_updates()
session.resume_updates()
session.reset_position()
```

## Acknowledgment

The CAD is based on the models from [ACE Teleop](https://ace-teleop.github.io).

## Citation

If you use Teledex in your research, please cite:

```bibtex
@article{rayyan2026teledex,
  title={TeleDex: Accessible Dexterous Teleoperation},
  author={Rayyan, Omar and Gilles, Maximilian and Cui, Yuchen},
  journal={arXiv preprint arXiv:2603.17065},
  year={2026}
}
