Coder Social home page Coder Social logo

typho22 / pcl_lidarvisualization Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 226 KB

Example how to visualize the sensor data of YLidars-Lidarsensors and visualize it with the PCL-Library

License: MIT License

CMake 7.83% C++ 92.17%
ydlidar-x4 ydlidar lidar-point-cloud lidar point-cloud pointcloud pcl-library pcl lidar-data ydlidar-sdk

pcl_lidarvisualization's Introduction

PCL_Lidarvisualization

Project for visualization of lidar data with a YDLIDAR X4 lidarsensor from YDLIDAR (www.ydlidar.com) and the pointcloudlibrary(https://pointclouds.org/) The X4 is a belt-driven 360° rangefinder. It has range frequency of 5K, and detection radius of 10m. The project is developed under Ubuntu 20.04.

Build Instruction:

Install:
The pcl lib is mandatory does not matter if you build YDLidar from source or use the prebuilt library. (If you are using a mac-computer keep in mind that there are some issues with pcl visualization on mac)

sudo apt install libpcl-dev

Option 1: Build YDLidar from source Get YLidar sdk frome them https://github.com/YDLIDAR/YDLidar-SDK
in YLidar folder:

mkdir build   
cmake ..
make -j 
sudo make install 

In PCL_Lidarvisualization root CMakeLists.txt set(UseLidarInstall ON) In PCL_Lidarvisualization root folder:

mkdir build 
cmake ..
make -j 

Option 2: Use prebuilt static library (was built with Ubuntu 20.04) In PCL_Lidarvisualization CMakeLists.txt set "UseLidarInstall off"

mkdir build 
cmake ..
make -j 
sudo make install 

Starting the Lidar Go to PCL_Lidarvisualization build folder and execute with root-privilegs (thats mandatory):

sudo ./LidarVisu 

Baudrate: 128000

one-way communication: no

set scan frequency to 8 (others value in range are also working)

With PCLVISUALIZER: Screenshot from 2022-03-30 22-31-45 With RANGE points which are nearer than others become more redish Screenshot from 2022-03-30 22-39-15 With no visualization in main.cpp set visuMode_ to visualization::IVisualizationHandler::visuMode::NONE Screenshot from 2022-03-30 22-41-29

pcl_lidarvisualization's People

Contributors

typho22 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.