GithubHelp home page GithubHelp logo

jackzhousz / resonant-scanned-lidar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhsun0357/resonant-scanned-lidar

0.0 0.0 0.0 684 KB

Scripts for the paper "Phase controlled resonance scanner", simulation and experiments

C++ 19.50% Python 5.74% C 0.18% CMake 0.11% Jupyter Notebook 74.46%

resonant-scanned-lidar's Introduction

Resonant-Scanned-LiDAR

Scripts for the paper "Resonant scanning design and control for fast spatial sampling".

Zhanghao Sun, Ronald Quan, Olav Solgaard

In this repository, we will include three useful scripts related to the paper:

  1. Resonant scanning pattern optimization with binary Regions-of-Interest (RoIs) (fast implementation).
  2. Resonant scanning pattern optimization with float valued Regions-of-Interest.
  3. LiDAR odometry based on resonantly scanned point cloud (coming soon).

Dependencies installation

To run the resonant scanning pattern optimization, please refer to the environment.yaml file. GPU is not required.

To run the LiDAR odometry scripts, since we adapt the scripts from the repo "LOAM" https://github.com/laboshinl/loam_velodyne. Please refer to the link for dependencies installation.

Resonant scanning pattern optimization, binary RoI

An example is given in the jupyter notebook "Binary_RoI_Optimization.ipynb".

In this case, Regions-of-Interest (RoIs) are given by a binary map, where elements with value 1 (or other positive constants) belong to RoIs, while elements with value 0 belong to regions not of interest.

Due to the simple format of the RoI, we use an approximate nearest neighbor search (FLANN https://github.com/flann-lib/flann) in the script, to increase the running speed. Usually, the optimization converges within 10-20 iterations. We implement the gradient descent optimization framework with PyTorch.

Resonant scanning pattern optimization, float RoI

An example is given in the jupyter notebook "Float_RoI_Optimization.py".

Different from the binary RoI case, here the RoIs are given through a float value "weight map". Each element in the weight map indicates the importance of corresponding spatial location. A spatial location is assigned a higher value if it is more important. Fast implementation is not provided in this case and the optimizatin converges have complicated dependencies on the initialization condition and the weight map definition.

LiDAR odometry with resonantly scanned point cloud

Please follow the jupyter notebook "liss_odometry/Lissajous_odometry_simulations.ipynb". Before running the scripts, please first download the necessary dataset files into the folder "liss_odometry":

resonant-scanned-lidar's People

Contributors

zhsun0357 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.