Skip to content

ayushkumar8340/Ransac-Planar-Segmentation-using-IMU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RANSAC Planar Segmentation using IMU

This repository implements a gravity-aligned RANSAC-based plane segmentation algorithm that integrates IMU data to improve plane fitting performance. The key idea is to guide the RANSAC plane hypothesis generation using the gravity direction estimated from an IMU, which stabilizes and accelerates convergence in real-world applications like SLAM or robotics.

DEMO

WhatsAppVideo2025-07-17at7 30 20PM-ezgif com-resize

The red part is the segmented plane.

✨ Features

  • Plane segmentation from 3D point clouds using RANSAC
  • Gravity direction estimation from IMU data
  • Accelerated plane hypothesis generation using gravity alignment
  • Robust to noise and partial surfaces
  • No dependency on ROS – implemented with Eigen, STL, and PCL

🔧 Dependencies

  • C++14 or later
  • Eigen3

Install Eigen on Ubuntu:

sudo apt install libeigen3-dev

Building

mkdir build
cd build
cmake ..
make -j

Running the code

  • This repo has an example script for realsense camera.
  • The example script segments the Z-plane
cd build
./tests/test_z_plane

About

This repo presents a faster solution for segmenting planes using RANSAC with IMU as initial guess

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published