xiaofan4122/Elevator-LIO

Elevator-LIO Official implementation

What it solves

Traditional LiDAR-inertial odometry (LIO) assumes the robot moves in an inertial frame. Inside a moving elevator, the IMU feels the elevator’s acceleration while the LiDAR mostly sees relative geometry inside the cabin, so most existing LIO methods fail. Elevator-LIO separates the robot’s motion relative to the elevator from the elevator’s own motion, allowing continuous positioning across multiple floors.

How it works

The system processes IMU and LiDAR data in order: static IMU initialization, adaptive downsampling, mode-dependent state propagation, an iterated error-state Kalman filter for LiDAR updates, possible exit-from-elevator updates, and incremental ikd-tree mapping. It detects entering an elevator using LiDAR distance statistics (when the robot moves from an open area into a closed cabin). Exit detection relies on the estimated elevator vertical motion and its variance. Both events can also be triggered manually via ROS topics. When the elevator stops, a zero-velocity and zero-acceleration update re-anchors the estimated vertical displacement to the robot state, suppressing height drift accumulated during the ride.

Adaptive voxel downsampling tunes the voxel size online to keep the number of effective points near a target, preserving enough geometric detail inside the cabin while controlling computation in open scenes. The system can run as a normal LIO if the elevator mode is disabled in the YAML configuration, keeping the triggered updates and adaptive downsampling features.

Who it’s for

Roboticists and researchers developing autonomous navigation systems that must operate in multi-floor buildings, especially those using LiDAR-inertial odometry on platforms like quadruped robots, handheld mapping devices, or service robots. It supports ROS 1 Noetic and ROS 2 Humble, with the main test platform being the Livox MID-360 LiDAR, though other sensors like Ouster, Velodyne, XT32 are nominally supported but not extensively tested.

Highlights

  • Decouples robot motion from elevator motion, enabling continuous localization across floors where standard LIO fails.
  • Automatically detects elevator entry via door-closing patterns and exits via motion state, with manual override via ROS topics.
  • Provides triggered zero-velocity updates on exit to correct height drift.
  • Adaptive voxel downsampling maintains target point density regardless of scene size.
  • Supports relocation by loading PCD maps, plus optional high-frequency IMU output and visual debugging of covariance matrices.
  • Ships with a simulation node, dataset presets, and a rosbag management tool.

Related

  • Project
  • Project
  • Project
  • Project