Skip to main content

# 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.

Metadata

Release files for simpub 2.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simpub 2.2.2
File Size Uploaded Provenance Actions
simpub-2.2.2.tar.gz 42.2 kB Without provenance Details for simpub-2.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simpub 2.2.2
File Interpreter ABI Platform Actions
simpub-2.2.2-py3-none-any.whl Python 3 none any Details for simpub-2.2.2-py3-none-any.whl

Total release size: 69.5 kB

Release files / simpub-2.2.2.tar.gz

Download URL simpub-2.2.2.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b4d70f08400b541ccc03fddc8d136ae1687e66cf5da1c412e8f663e704d1b03f
BLAKE2b-256 checksum
How to use checksums
83d7dcee5cb5a03caa1ba0b05daf11d5f0c2d91611384d3df815ce187fc80e93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / simpub-2.2.2-py3-none-any.whl

Download URL simpub-2.2.2-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67fc1e6385b63631c9f5bedc36ff5f73aba708593e4c54f9312a4958c3dba9cb
BLAKE2b-256 checksum
How to use checksums
9c814eaac8d36fd60e9fc6faae989bfd1aa56b1a20368a18c738275208989c75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Security for simpub 2.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page