This guide provides detailed instructions for installing and building the Lightweight Stereo VIO system.
We provide two installation methods:
- Native Build (Ubuntu 22.04) - Direct installation on your system
- Docker - Containerized environment (Recommended)
This method builds the project and all its dependencies directly on your system. It has been tested on Ubuntu 22.04.
- Ubuntu 22.04 LTS
- C++17 Compiler (g++)
- CMake (>= 3.10)
- Git
git clone https://github.com/93won/lightweight_vio.git
cd lightweight_vioThe provided build.sh script will automatically install system dependencies (like OpenCV, Eigen, etc.) and then build the third-party libraries (Ceres, Pangolin) and the main application.
chmod +x build.sh
./build.shUsing Docker is the recommended method as it provides a self-contained, consistent environment across different systems.
- Docker installed on your system
- X11 forwarding support (for visualization)
If Docker is not installed on your system:
# Install Docker
sudo apt update
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
# Add your user to docker group (optional, avoids sudo)
sudo usermod -aG docker $USER
# Log out and log back in for group changes to take effectFollow the official Docker installation guide for your distribution.
git clone https://github.com/93won/lightweight_vio.git
cd lightweight_viochmod +x docker.sh
./docker.sh buildThis command builds a Docker image named lightweight-vio:latest with all necessary dependencies and source code.
Check that the image was created successfully:
docker images | grep lightweight-vio