Skip to content
A cinder block talks to RPLidars, with production ready sample
C++ C
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


A cinder block talks to RPLidars via USB, with production ready sample.


There is a production ready example in the Sample folder, in the xml settings file,


Set the lidar's position/angle/port name, min/max for scan area, threshold is the minimum number of points each cluster has to contain, this can effectively remove reflection noises.

There is also a bug in the SDK I believe, that when closing the app sometimes the Lidar will not stop, so there is a time section in the xml:


After the time set, the app will force the lidar to stop so it doesn't run overnight. Say if the exhibition ends at 6pm, you can set the time to be


Then lidar will stop at 6:01pm.

Also to deal with possible floor reflections, filter dot can be added with x/y/r(adius) parameters, anything within that circle range will be considered noise and removed before sending for clustering:

You can’t perform that action at this time.