Skip to main content

A cross-environment tool to publish objects from simulation for Augmented Reality and Human Robot Interaction.

Project description

# SimPublisher

[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/) [![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-390/) [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/) [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/) [![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3120/)

A versatile Python tool designed to seamlessly render objects from simulations or sensors to Mixed Reality (MR) and Augmented Reality (AR) headsets.

## Table of Contents - [Introduction](#Introduction) - [Features](#Features) - [Installation](#Installation) - [Usage](#Usage)

## Introduction

Are you looking to integrate your Human-Robot Interaction (HRI) application with MR/VR/AR headsets effortlessly? This repository is perfect for you.

We provide a ROS-style interface that allows you to easily use Python code to project simulation scenes onto MR headsets. Additionally, you can use input data from the headset to control virtual robots and objects within the simulation environment or even real robots.

This repository uses ZMQ to communicate with MR applications, featuring automatic device discovery and reconnecting capabilities.

Currently we support two hardware platforms including [Meta Quest 3](https://github.com/intuitive-robots/IRIS-Meta-Quest3) and HoloLens 2. These applications are built based on a Unity Package named [IRIS-Viz](https://github.com/intuitive-robots/IRIS-Viz), which is a Unity Package that is easy to deploy for projecting and updating simulation scenes in MR headsets.

## Features

### Easy Connection to Headset

  • Automatic Device Discovery: SimPub will search for all devices in the subnet and connect to them fully automatically.

  • Auto-Reconnecting: Automatically reconnects to the PC if you shutdown the Python script.

  • Remote Logger: The log will be sent to the PC simulation, including FPS and latency information.

### Supported Simulation Environments

### Supported Headsets

## Installation

1. Install the dependencies: `bash pip install zmq trimesh `

2. Install this repository: `bash cd $the_path_to_this_project pip install -e . `

## Usage

1. Deploy the Unity application to your headset with the device name. Please refer to the [website](https://github.com/intuitive-robots/IRXR-Unity).

2. Connect your simulation PC and headset to the same subnet. For example, if your simulation PC address is 192.168.0.152, the headset address should share the same prefix, such as 192.168.0.142 or 192.168.0.73. We recommend using a single WiFi router for PC-headset communication to ensure optimal connectivity. Additionally, using a wired cable to connect your PC can significantly reduce latency.

  1. Run the usage examples under the folder /demos/, then wear the headset, start the Unity application and enjoy!

### Isaac Sim Please check [this](./demos/IsaacSim/README.md) for information on how to set up SimPub with Isaac Sim.

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

simpub-2.2.0.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

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

simpub-2.2.0-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file simpub-2.2.0.tar.gz.

File metadata

  • Download URL: simpub-2.2.0.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for simpub-2.2.0.tar.gz
Algorithm Hash digest
SHA256 789aeb6bab43f60c1b90500a1e30835567a3f1dd19442fe32bd520b16701b5e6
MD5 10df1704e0633dd65675cd5bbcef3f7d
BLAKE2b-256 69210ce4089cea8b014a4185198ac601c3e7608d485acd27c0bc4ad40175631b

See more details on using hashes here.

File details

Details for the file simpub-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: simpub-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for simpub-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a3a5ab76531360b2868bc8efc568ef2cd4adc7faeca6892242905c6210bea29
MD5 f96197d9b5716338f612f71804603bdc
BLAKE2b-256 422906937b664039f1ec87360bacda99ff905a155f135c2da4c9172bc715e581

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