No description
  • C++ 85.6%
  • Python 8.7%
  • CMake 3.8%
  • Shell 1.2%
  • Dockerfile 0.3%
  • Other 0.4%
Find a file
2026-07-24 16:12:40 +02:00
.ci Add all TUM-VI datasets to CI 2026-04-17 00:20:10 +02:00
cmake_modules Upgrade to Eigen 5.0.1 2026-03-19 17:18:56 -03:00
data Add rosbag2 datasets to CI 2026-03-30 13:10:23 -03:00
doc Update radxa guides 2026-06-03 13:12:16 +02:00
docker Add support for rosbag2 datasets 2026-03-25 13:54:16 -03:00
include/basalt Add correct timing steps to patch optical flow 2026-06-15 21:23:05 +02:00
python/basalt Adding pre-commit hooks 2022-05-26 13:48:52 +00:00
scripts Add support for rosbag2 datasets 2026-03-25 13:54:16 -03:00
src Add support for OpenCV 5 2026-07-22 13:13:01 +02:00
test Improve solver robustness and add CI dataset evaluation 2025-06-08 20:58:23 -03:00
thirdparty Fix cmake configure on fedora 2026-07-24 16:12:40 +02:00
.clang-format Improve clang-format rules 2026-03-19 17:48:56 -03:00
.clang-tidy Add per-frame error plot 2025-01-31 17:34:52 +01:00
.git-blame-ignore-revs Improve clang-format rules 2026-03-19 17:48:56 -03:00
.gitignore Add Radxa Cubie A7Z build 2026-01-28 10:11:41 -03:00
.gitlab-ci.yml Upgrade Sophus to 1.24.6 2026-03-20 11:01:44 +01:00
.gitmodules Add support for rosbag2 datasets 2026-03-25 13:54:16 -03:00
.pre-commit-config.yaml Adding pre-commit hooks 2022-05-26 13:48:52 +00:00
.style.yapf ICCV'21 square root marginalization paper code release 2021-10-15 15:09:15 +02:00
CMakeLists.txt Add support for OpenCV 5 2026-07-22 13:13:01 +02:00
CMakePresets.json Fix android build, make visualization optional 2026-03-13 13:55:03 -03:00
LICENSE Initial commit 2019-04-14 21:08:32 +02:00
README.md Add build jobs for Raspberry Pi 4, 5 and Radxa Zero 3W 2025-07-08 18:50:59 -03:00
vcpkg-configuration.json Fix android build, make visualization optional 2026-03-13 13:55:03 -03:00
vcpkg.json Fix android build, make visualization optional 2026-03-13 13:55:03 -03:00

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-cli with a dataset

    monado-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=1 and SLAM_UI=1 environment 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.

Development

If you want to set up your build environment for developing and iterating on Basalt, see the development guide.