- C++ 85.6%
- Python 8.7%
- CMake 3.8%
- Shell 1.2%
- Dockerfile 0.3%
- Other 0.4%
|
|
||
|---|---|---|
| .ci | ||
| cmake_modules | ||
| data | ||
| doc | ||
| docker | ||
| include/basalt | ||
| python/basalt | ||
| scripts | ||
| src | ||
| test | ||
| thirdparty | ||
| .clang-format | ||
| .clang-tidy | ||
| .git-blame-ignore-revs | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| .gitmodules | ||
| .pre-commit-config.yaml | ||
| .style.yapf | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| LICENSE | ||
| README.md | ||
| vcpkg-configuration.json | ||
| vcpkg.json | ||
Basalt for Monado
This is a fork of Basalt improved for tracking XR devices with Monado. Many thanks to the Basalt authors.
Installation
-
Prebuilt (Ubuntu/Raspberry/Radxa): Download latest .deb and install with
sudo apt install -y ./basalt-monado-*.deb -
From source (Linux)
git clone --recursive https://gitlab.freedesktop.org/mateosss/basalt.git cd basalt && ./scripts/install_deps.sh cmake --preset library # use "development" instead of "library" if you want extra binaries and debug symbols sudo cmake --build build --target install -
From source (Windows): See the build guide for Windows.
Usage
If you want to run OpenXR application with Monado, you need to set the
environment variable VIT_SYSTEM_LIBRARY_PATH to the path of the basalt library.
By default, Monado will try to load the library from /usr/lib/libbasalt.so if
the environment variable is not set.
If you want to test whether everything is working you can download a short dataset with EuRoC (ASL) format format like MOO09_short_1_updown from the Monado SLAM datasets:
wget https://huggingface.co/datasets/collabora/monado-slam-datasets/resolve/main/M_monado_datasets/MO_odyssey_plus/MOO_others/MOO09_short_1_updown.zip
unzip MOO09_short_1_updown.zip
-
Try it standalone with a dataset (requires extra binaries)
basalt_vio --show-gui 1 --dataset-path MOO09_short_1_updown/ --dataset-type euroc --cam-calib /usr/share/basalt/msdmo_calib.json --config-path /usr/share/basalt/msdmo_config.json -
Use a RealSense camera without Monado (requires extra binaries) You'll need to calibrate your camera if you want the best results but meanwhile you can try with these calibration files instead.
-
RealSense D455 (and maybe also D435)
basalt_rs_t265_vio --is-d455 --cam-calib /usr/share/basalt/d455_calib.json --config-path /usr/share/basalt/default_config.json -
Realsense T265: Get t265_calib.json from this issue and run
basalt_rs_t265_vio --cam-calib t265_calib.json --config-path /usr/share/basalt/default_config.json
-
-
Try it through
monado-cliwith a datasetmonado-cli slambatch MOO09_short_1_updown/ /usr/share/basalt/msdmo.toml results -
Try it with
monado, a dataset, and an OpenXR app# Run monado-service with a fake "euroc device" driver export EUROC_PATH=MOO09_short_1_updown/ # dataset path export EUROC_HMD=false # false for controller tracking export EUROC_PLAY_FROM_START=true # produce samples right away export SLAM_CONFIG=/usr/share/basalt/msdmo.toml # includes calibration export SLAM_SUBMIT_FROM_START=true # consume samples right away export XRT_DEBUG_GUI=1 # enable monado debug ui monado-service & # Get and run a sample OpenXR application wget https://gitlab.freedesktop.org/wallbraker/apps/-/raw/main/VirtualGround-x86_64.AppImage chmod +x VirtualGround-x86_64.AppImage ./VirtualGround-x86_64.AppImage normal -
Use a real device in Monado.
When using a real device driver you might want to enable the
XRT_DEBUG_GUI=1andSLAM_UI=1environment variables to show debug GUIs of Monado and Basalt respectively.Monado has a couple of drivers supporting SLAM tracking (and thus Basalt). Most of them should work without any user input.
- WMR (troubleshoot)
- Rift S (might need to press "Submit to SLAM", like the Vive Driver).
- Northstar / DepthAI (This hand-tracking guide has a depthai section).
- Vive Driver (Valve Index) (read before using)
- RealSense Driver (setup).
Development
If you want to set up your build environment for developing and iterating on Basalt, see the development guide.