Git Product home page Git Product logo

lidar-obstacle-detection-project's Introduction

LiDAR Obstacle Detection

Introduction

This project shows how to process raw point cloud data obtained from a LiDAR sensor to perform obstacle detection. In this project, the point cloud processing is done using C++ and Point Cloud Library (PCL). Point cloud segmentation is done using Random Sampling Consensus (RANSAC) algorithm and Euclidean Clustering is used to find clusters in the point cloud data. Finally, a bounding box is created around the detected clusters which show the obstacles detected in the scene. The LiDAR data is pre-processed before applying all the steps mentioned above. Pre-processing is done to downsample the LiDAR data so that obstacle detection can be done efficiently without unnecessarily processing a large number of data points. Voxel grid is used for downsampling the LiDAR data points. Voxel grid allows only one point per voxel which decreases the resolution of the point cloud allowing faster processing. The result of LiDAR point cloud processing is shown in the GIF above.

Project Build Instructions

Ubuntu

git clone https://github.com/sumukhpatil/LiDAR-Obstacle-Detection-Project.git
cd LiDAR-Object-Detection
mkdir build && cd build
cmake ..
make
./environment

Build Dependencies

Point Cloud Library (PCL) Installation

Ubuntu

sudo apt update
sudo apt upgrade
sudo apt install libpcl-dev

Windows

http://www.pointclouds.org/downloads/windows.html

MAC

Install via Homebrew

  1. install homebrew
  2. update homebrew
    brew update
  3. add homebrew science tap
    brew tap brewsci/science
  4. view pcl install options
    brew options pcl
  5. install PCL
    brew install pcl

lidar-obstacle-detection-project's People

Contributors

sumukhpatil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lidar-obstacle-detection-project's Issues

error: the value of ‘NrDims’ is not usable in a constant expression

Greeting,

I was building the code and got the following error :

error: the value of ‘NrDims’ is not usable in a constant expression

I checked the build dependencies and they match the requirements.

  • cmake version 3.22.1
  • GNU Make 4.3
  • gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  • g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  • libpcl-dev is already the newest version (1.12.1+dfsg-3build1).

There are a series of errors, here is the last one :

/usr/include/pcl-1.12/pcl/point_representation.h:310:7:   required from here
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: error: the value of ‘NrDims’ is not usable in a constant expression
/usr/include/pcl-1.12/pcl/point_representation.h:253:19: note: ‘NrDims’ was not initialized with a constant expression
  253 |         const int NrDims = pcl::traits::datatype<PointDefault, Key>::size;
      |                   ^~~~~~
/usr/include/pcl-1.12/pcl/point_representation.h:254:48: note: in template argument for type ‘int’
  254 |         Helper<Key, FieldT, NrDims>::copyPoint (p1_, p2_, f_idx_);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/environment.dir/build.make:76: CMakeFiles/environment.dir/src/environment.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/environment.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Any idea on how to fix this ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.