Hokuyo URG-04LX LIDAR Driver for MATLAB

This a simple driver for the Hokuyo URG-04LX USB LIDAR for MATLAB.
1.9K Downloads
Updated 17 May 2012

View License

The files establish a serial comm link with Lidar with the required settings. The function LidarScan.m is called with serial communication object as argument to return a range vector consisting of decoded Lidar Scan data.

It returns the data after a full scan (-120 to +120 degrees) with 682 points.

Edit SetupLidar.m with the correct COM Port to use this file.

The file is a quick and easy way to stream range data from a Hokuyo Lidar in the MATLAB environment.

It works well for the URG-04LX as the decoder function supports only two and three bit encoding.

Cite As

Shikhar Shrestha (2024). Hokuyo URG-04LX LIDAR Driver for MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/36700-hokuyo-urg-04lx-lidar-driver-for-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Hokuyu URG-04LX driver for MATLAB/Hokuyu Lidar driver/

Version Published Release Notes
1.1.0.0

Corrected a typo in the Lidar name. The Lidar is from Hokuyo and not Hokuyu.

1.0.0.0