Steps to use the RPLIDAR

Environment Setup used :

  • Host operating system : Windows 10 (64-bit)

  • Oracle Virtual box Version 6.1

  • Os in virtual machine : Ubuntu 18.04 (64-bit)

Prerequisites:

  • RPLIDAR SDK must be downloaded, you can also find more information in Slamtech Support.

  • Make cmd must be installed,

  • Steps to install make in Ubuntu OS:

    ◦ sudo apt-get install build-essential ◦ sudo apt-get update

Steps to run RPLIDAR-A3 SDK

  1. Extract the RpLidar SDK

  2. Go the the root SDK folder and run cmd : make

  3. Go to sdk/output/Linux/release folder stucture.

  4. Run application along with the arg - driver path : program drv ./ultra_simple /dev/ttyUSB0

Expected Output:

../_images/Lidar_SDK_Example_Output.png

Expected Issues:

../_images/Lidar_SDK_Expected_Issues.png

For bind errors follow the steps

  • cmd: sudo chmod 666 /dev/ttyUSB0

  • specify the baud rate 256000 as a second argument

    eg: example_program /dev/ttyUSB0 256000