Skip to main content

xclean (package xstereo-slam)

xclean is a real-time stereo visual-inertial SLAM system in Python (CuPy and Numba), by Necessity Robotics. It needs no C++ build step and no ROS. It publishes one pose for each frame, live. Licence: Apache-2.0.

The Python package is named xstereo-slam. It installs the command xclean and the module xclean. (The name xclean on PyPI belongs to another project.)

What you need

  • An NVIDIA GPU of the RTX 20 series or newer, and a driver that supports CUDA 13 (R580 or newer).
  • Windows 11 (64-bit), or Linux on x86-64 or ARM64 (not Jetson: see below).
  • Python 3.10 to 3.13. We test with Python 3.12.
  • A calibrated stereo camera, or a recorded stereo sequence. xclean does nothing without input.

Install with pip

pip install "xstereo-slam[gpu]"
xclean doctor
  • The gpu extra installs CuPy for CUDA 13 and the NVIDIA pip packages with the CUDA kernel compiler and the CUDA headers. You need no conda and no CUDA Toolkit.
  • xclean doctor checks the machine: Python, the packages, the driver, the GPU and the CUDA compiler. It prints a fix for each problem. xclean doctor --full also runs the self-test of the GPU front end.
  • For a Luxonis OAK camera, add the oak extra: pip install "xstereo-slam[gpu,oak]".

The exact tested versions

pip installs the newest versions of NumPy, SciPy, Numba and OpenCV that the package allows. Our published results were made with fixed versions. To get exactly those, use the constraints file of the repository. The constraints file needs Python 3.11 or newer (3.12 is the tested Python):

pip install "xstereo-slam[gpu]" -c https://raw.githubusercontent.com/necessityrobotics/xclean/v0.3.1/constraints-tested.txt

What we measured on our machine (Windows 11, RTX 5090, Python 3.12), on all 2912 frames of EuRoC V1_01_easy in lock-step, against xclean 0.3.0 in the conda environment:

pip install Poses against 0.3.0 (conda)
Exact tested versions (constraints file) The same pose for every frame.
Newest versions on 2026-11-25 (NumPy 2.5.5, SciPy 1.18.1, Numba 0.68.1, llvmlite 0.50.0, opencv-python 5.1.0.95) The same pose for the first 341 frames. After that the positions differ: at most 3.0 cm, median 0.7 cm, on a path of 58 m.

With the newest versions xclean runs, but it does not repeat our results digit for digit. Against the EuRoC ground truth, the position error (ATE) of this one run is 3.65 cm with the newest versions and 3.74 cm with the exact tested versions. That is one sequence, not a test of accuracy with other versions. To compare your results with ours, use the exact tested versions. xclean doctor prints a warning for each package that is not the tested version.

Other ways to install

  • conda (the route of our published results; it pins every version): see the README of the repository.
  • NVIDIA Jetson (JetPack's own CUDA): do not use the gpu extra. Follow docs/LINUX_JETSON.md in the repository.

What is tested

Route State
conda environment, Windows 11, RTX 5090 Tested by us; the route of the published results.
pip with the gpu extra, Windows 11, RTX 5090 Tested by us with the CUDA Toolkit of the machine hidden. Not tested on a machine that never had a CUDA Toolkit.
pip with the gpu extra, Linux x86-64 and ARM64 Installs and passes the test suite on GitHub's Linux machines without a GPU; every GPU kernel compiles with the pip compiler. Not run on a Linux GPU.
NVIDIA Jetson Not run on a device.

Tested on one machine: AMD Ryzen 9 9950X, NVIDIA RTX 5090, Windows 11. Other CPUs, GPUs and drivers are not tested.

Contact: necessityrobotics@gmail.com

Metadata

Release files for xstereo-slam 0.3.1

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

Source distribution (sdist)

Source distribution for xstereo-slam 0.3.1
File Size Uploaded Provenance Actions
xstereo_slam-0.3.1.tar.gz 1.2 MB With provenance Details for xstereo_slam-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xstereo-slam 0.3.1
File Interpreter ABI Platform Actions
xstereo_slam-0.3.1-py3-none-any.whl Python 3 none any Details for xstereo_slam-0.3.1-py3-none-any.whl

Total release size: 2.3 MB

Release files / xstereo_slam-0.3.1.tar.gz

Download URL xstereo_slam-0.3.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
00770e0a3d59bbd8c7e7e198e34b1cb5c2645794410bc9bff641588e5e185663
BLAKE2b-256 checksum
How to use checksums
7bc59c35775d45d8e4126fd96f369e7fd6a43ec3b15fb3c235d8e5d7cb06b557
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / xstereo_slam-0.3.1-py3-none-any.whl

Download URL xstereo_slam-0.3.1-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1694464c683cad8482a267f370d50e193484b1ab8ae6b4883dff91e9878dadbb
BLAKE2b-256 checksum
How to use checksums
6f2d3d743f2002e0a2cd7c4cc993a3865c061e20a850a52b9dbb5a1fb0ca520a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for xstereo-slam 0.3.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xstereo_slam-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files Full provenance

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