Skip to content

Simulation of Velodyne's VLP-16 LiDAR Sensor and a Golf Ball Trajectory Generator

Notifications You must be signed in to change notification settings

Eddy-M-K/MATLAB-LiDAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MATLAB-LiDAR

This repository includes MATLAB code for the simulation of the Velodyne VLP-16 LiDAR sensor as well as algorithms for finding the intersections of the emitted lasers with triangles and moving golf balls. Intersections with golf balls are calculated through generation of a golf ball's trajectory under situations such as gravity, drag, and lift.

Call any functions to use the simulator within main.m. Helper functions, which should not be called by the user within the main.m file, have the "_H" tag at the end of the file name.

Example:

The code is customizable so that multiple instances of VLP-16s can be placed along the golf ball's trajectory with options to rotate the sensor and use it in a way that takes advantage of the horizontally spinning lasers. Below is an example where the user has chosen Lift, Drag and Gravity conditions with a golf shot with initial velocity 45 m/s, an angle of 12 degrees, 1 rad/s for rifle spin, side spin, and back spin, and 1 degree for spin angle.

4 LiDAR sensors, two upright and two placed on their side so that the rotation of lasers run perpendicular to the golf ball's trajectory, have the following x, y, z positions:

and their functions are called as Precise_Moving_Golf_Ball_Intersection and Parallel_Rotated_Precise_Moving_Golf_Ball_Intersection. The result is a general trajectory and emission pattern diagram as well as a diagram of just the theoretical intersections that would appear:

Output is exported as an xlsx file:

Credit for the logic implemented within Drag.m, Lift.m, Both.m, and Gravity.m which are files used to generate a golf ball's trajectory, go to UW Chemical Engineering Student Rama Al-Enzy.

About

Simulation of Velodyne's VLP-16 LiDAR Sensor and a Golf Ball Trajectory Generator

Topics

Resources

Stars

Watchers

Forks

Languages