Skip to content

liboyangbj/ldlidar_sl_sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

操作指南

此SDK仅适用于深圳乐动机器人有限公司销售的激光雷达产品,产品型号为:

  • LDROBOT LiDAR LD14

0. 获取雷达的Linux SDK

$ cd ~

$ mkdir  ldlidar_ws

$ cd ldlidar_ws

$ git clone  https://github.com/ldrobotSensorTeam/ldlidar_sl_sdk.git
# 或者
$ git clone  https://gitee.com/ldrobotSensorTeam/ldlidar_sl_sdk.git

1. 系统设置

  • 第一步,通过板载串口或者USB转串口模块(例如,cp2102模块)的方式使雷达连接到你的系统主板.
  • 第二步,设置雷达在系统中挂载的串口设备-x权限(以/dev/ttyUSB0为例)
    • 实际使用时,根据雷达在你的系统中的实际挂载情况来设置,可以使用ls -l /dev命令查看.
$ cd ~/ldlidar_ws/ldlidar_sl_sdk

$ sudo chmod 777 /dev/ttyUSB0

2. 编译

$ cd ~/ldlidar_ws/ldlidar_sl_sdk
$ ./auto_build.sh

3. 运行

$ ./build/ldlidar_sl_node <serial_number>
# 例如 ./build/ldlidar_sl_node /dev/ttyS0

Instructions

This SDK is only applicable to the LiDAR products sold by Shenzhen LDROBOT Co., LTD. The product models are :

  • LDROBOT LiDAR LD14

step 0. get LiDAR Linux SDK

$ cd ~

$ mkdir  ldlidar_ws

$ cd ldlidar_ws

$ git clone  https://github.com/ldrobotSensorTeam/ldlidar_sl_sdk.git
# or
$ git clone  https://gitee.com/ldrobotSensorTeam/ldlidar_sl_sdk.git

step 1: system setup

  • Connect the LiDAR to your system motherboard via an onboard serial port or usB-to-serial module (for example, CP2102 module).

  • Set the -x permission for the serial port device mounted by the radar in the system (for example, /dev/ttyUSB0)

    • In actual use, the LiDAR can be set according to the actual mounted status of your system, you can use 'ls -l /dev' command to view.
$ cd ~/ldlidar_ws/ldlidar_sl_sdk

$ sudo chmod 777 /dev/ttyUSB0

step 2: build

$ cd ~/ldlidar_ws/ldlidar_sl_sdk
$ ./auto_build.sh

step 3: run

$ ./build/ldlidar_sl_node <serial_number>
# example ./build/ldlidar_sl_node /dev/ttyS0

About

LDROBOT Triangle LiDAR Linux SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.9%
  • CMake 7.0%
  • Shell 2.1%