Skip to main content

A connector to receive position and rotation data from a connected application.

Project description

MujocoAR

A Python package that allows the retrieval of iOS ARKit data from a connected iOS device using 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


Download files

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

Source Distribution

mujoco_ar-0.3.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

mujoco_ar-0.3.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file mujoco_ar-0.3.0.tar.gz.

File metadata

  • Download URL: mujoco_ar-0.3.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for mujoco_ar-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b0dce70582570bc9a3b71c7c66aa559583f68f17abb37bb349b2ea8e8634deaa
MD5 0b6a4a6b9a012c1b3d5a0a9fcb017b89
BLAKE2b-256 89f09502289b44bdb6908ea0e668d665b28501b30e0576edd7978168ce8ed49d

See more details on using hashes here.

File details

Details for the file mujoco_ar-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mujoco_ar-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for mujoco_ar-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a54f258281340e5384d3fe707f76cd1d87d8e2038bcb02da423ee0831c82bf1f
MD5 94ab8fb02268b45c6113f79c043fc92c
BLAKE2b-256 62309318d7147d5981d331c81cdc96b5ae3b05c95c0df785a4bd0ea7e22e9d50

See more details on using hashes here.

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