An AR controller designed to seamlessly control objects in MuJoCo and for other general uses by receiving position and rotation data from a connected iOS application.
Project description
MujocoAR
A Python package that allows the retrieval of ARKit data from a connected iOS device for usage in MuJoCo.
Installation
You can install the package using pip:
pip install mujoco_ar
Usage
Here's an example of how to use MujocoAR in your Python project:
Basic Setup (without MuJoCo cameras)
from mujoco_ar import MujocoARConnector
# Initialize the connector with your desired parameters
connector = MujocoARConnector(ar_frequency=20)
# Start the connector
connector.start()
# Get latest AR data (after connecting the iOS device, check guide below)
data = get_latest_data() # {"position": (3,1), "rotation": (3,3), "grasp": bool}
Setup with a MuJoCo camera
from mujoco_ar import MujocoARConnector
# Initialize the connector with your desired parameters
connector = MujocoARConnector(
mujoco_model=my_model,
mujoco_data=my_data,
camera_name='my_camera',
camera_frequency=10,
)
# Start the connector
connector.start()
# Get latest AR data (after connecting the iOS device, check guide below)
data = get_latest_data() # {"position": (3,1), "rotation": (3,3), "grasp": bool}
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Omar Rayyan (olr7742@nyu.edu)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mujoco_ar-0.9.0.tar.gz.
File metadata
- Download URL: mujoco_ar-0.9.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83d81fdce7b08494c9e04d967b0affa094541192bbf81ac1bb2a1f3fa08fc2e4
|
|
| MD5 |
6d8b365ba0dd209ab9f9476d75aefa43
|
|
| BLAKE2b-256 |
fe411a94ca2af285299820642f989bab7a30e56d9ab5ee6bda0a6697fe242fa3
|
File details
Details for the file mujoco_ar-0.9.0-py3-none-any.whl.
File metadata
- Download URL: mujoco_ar-0.9.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e1a39685387d357ded16a270742c756524df972a3fcf19a5ba313cad648ff70
|
|
| MD5 |
0791a61d71583ecbb71fea9e36d8f1bb
|
|
| BLAKE2b-256 |
087f00e4984585d1ca6df9a1b0b6e3dc7eaa6522ede4cbab58ff136ae445cb9d
|