Skip to main content

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


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.8.0.tar.gz (5.3 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.8.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mujoco_ar-0.8.0.tar.gz
  • Upload date:
  • Size: 5.3 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.8.0.tar.gz
Algorithm Hash digest
SHA256 ce796ab309a47a39b899a2aca8d44ecd3a7bcd05e1d111ab9ab09a4c02b72228
MD5 c396c33337f71fd69a374e2b07581eec
BLAKE2b-256 0f1835aea14b9fe352184f681a2a9e1d63f9755ec549f315a0361908cfbb80ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mujoco_ar-0.8.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

Hashes for mujoco_ar-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db05b35758f64dd7104df744dde1f4a6cc9fc387934a0fdfd0dbbf1fce082c43
MD5 6371918773db5b386a7bb4ca08b2dd81
BLAKE2b-256 ebfa16455c7a481ed0a5c141253378f0b6badf3b5f237cba1f0a86596c507b5a

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