
Copyright 2015-2020 YDLIDAR
7/11
LINUX ROS OPERATION
This article only uses Ubuntu 16.04, Kinetic version ROS as an example.
SDK driver address
:
https://github.com/YDLIDAR/YDLidar-SDK
;
ROS driver address
:
https://github.com/YDLIDAR/ydlidar_ros_driver
;
ydlidar_ros_driver depends on YDLidar-SDK library, If you have never installed YDLidar-SDK or it is
out of date, you must first install YDLidar-SDK.
Device connection
Under Linux, Lidar and PC interconnect processes are consistent with those under Windows. See
Device Connection under Window.
YDLidar-SDK Installation
Before doing the following, make sure that the git and cmake is installed correctly.
1.Download or Clone the YDLIdar-SDK repository on GitHub.
2.Compile and Install the YDLidar-SDK.
Note
:
Users can also choose Type-C on G2/G4/G6 to get started quickly. Connect the PC and G2/G4/G6
directly with Type-C data cable and download the vcp serial port driver of G6 on the
www.ydlidar.com
.
After that, start the PCV to scan the map and observe the data.
$git clone https://github.com/YDLIDAR/YDLidar-SDK
$ cd YDLidar-SDK/build
$ cmake ..
$ make
$ sudo make install