Getting StartedΒΆ
To get a quick overview of what you can do with vuer, check out the following:
take a look at the basic tutorial or the tutorial for robotics: Vuer Basics
or try to take a look at the example gallery here
You can install vuer with pip:
pip install -U 'vuer==0.1.6'
Running Vuer from the BrowserΒΆ
Vuer can run directly in the web browser via PyScript and Pyodide. Server dependencies (websockets, aiohttp) are auto-excluded on Emscripten:
import micropip
await micropip.install("vuer")
from vuer.schemas import Scene, Box, Urdf
Now you should be able to run scripts show in the examples, and look at the results on vuer.ai.
To view the scene in VR or AR headsets, you need to install ngrok (see setting up ngrok) to promote the websocket
to wss.
Using ngrok to promote to wss://
You need to install ngrok to promote the local vuer server
from ws://localhost:8012 to wss://xxxx.ngrok.io, (note the double
w[ss] in the protocol), and pass it as a query parameter that
looks like this:
https://vuer.ai?ws=wss://xxxxx.ngrok.io
Note the repeated ws and then wss:// in the query string.
Running The Example GalleryΒΆ
To run the examples, youβll need to download the required assets:
git clone https://github.com/vuer-ai/vuer.gitDownload
vuer_doc_assetsfrom this Google Drive linkUnzip the downloaded file
Place the
vuer_doc_assetsfolder alongside the project directory and rename it toassets.
parent_directory/
βββ vuer/ # This project
β βββ docs/
β βββ vuer/
β βββ README.md
βββ assets/ # Downloaded assets folder
Run the examples:
cd docs/examples/meshes
python mesh_loading.py
Note: you need to install a few optional dependencies such as open3d and trimesh
for loading and processing point cloud and mesh data. The core vuer itself does not
depend on these libraries.
Open3D for Apple Sillicon (2024-03)
The newest version of Open3D seems not compatible with Apple Silicon.
If you are using M1, M2 or M3 macs, install the open3d==0.15.1 or
other patches of 0.15.
Developing Vuer (Optional)ΒΆ
If you want to develop vuer, you can install it in editable mode plus dependencies relevant for building the documentations:
Using uv (recommended):
cd vuer
uv sync --group dev
source .venv/bin/activate
Using pip:
cd vuer
pip install -e '.[dev]'
To build the documentation:
make clean # clean the cache from previous building
make docs # Build HTML documentation
make preview # Live preview with auto-reload
For more information on contributing, see CONTRIBUTING.md.