Skip to content

Python function for implementing multi threading in accessing RPLidar values.

Notifications You must be signed in to change notification settings

mayankS1996/RPLidar-Processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

RPLidar-Processing

Python function for implementing multi threading in accessing RPLidar values.

Prerequisites

The function requires the Rplidar libary to work. The serial port for the RPLidar must be changed in the Class at the following line-

self.lidar = RPLidar('/dev/ttyUSB0')

The class can be imported as-

from LidarClass import Lidar_Class

Then the class object needs to be initialized.

lidar = Lidar_Class().start()

The values can be read using the following line-

values=lidar.read()

The code has been tested on RPLidar A1 with the Rapsberry pi model 3b and windows 10.

About

Python function for implementing multi threading in accessing RPLidar values.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages