EAI YDLIDAR G2 User Manual Download Page 7

www.ydlidar.com

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

Summary of Contents for YDLIDAR G2

Page 1: ...www ydlidar com Copyright 2015 2020 YDLIDAR 1 11 USER MANUAL...

Page 2: ...G6 3 WINDOWS USAGE GUIDE 4 Device connection 4 Driver Installation 5 LINUX ROS OPERATION 7 Device connection 7 YDLidar SDK Installation 7 ROS Driver Installation 8 RVIZ installation 8 Run ROS Package...

Page 3: ...The development kit of YDLIDAR is an accessory tool provided for performance evaluation and early development of the sensors YDLIDAR X2 X4 YDLIDAR X2 X4 USB Micro cable USB Adapter board PH2 0 8P YDL...

Page 4: ...pter board 1 This component is used for USB to UART functions Also supports the serial port DTR signal to the Lidar motor stop control PWR is provided for auxiliary power supply PH2 0 8P cable 1 This...

Page 5: ...forms or PCs is weak and the Lidar needs to access the 5V auxiliary power supply otherwise it will work abnormally FIG 3 AUXILIARY POWER SUPPLY Driver Installation To evaluate and develop the YDLIDAR...

Page 6: ...lick the exe file and follow the prompts to install it FIG 5 YDLIDAR DRIVER INSTALLATION I After the installation is complete you can right click on My Computer and select Properties On the Open Syste...

Page 7: ...connect 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...

Page 8: ...the compilation is complete add the ydlidar_ws environment variable to the bashrc file and make it effective 3 Add a device alias dev ydlidar to the YDLIDAR serial port RVIZ installation 1 Online ins...

Page 9: ...After running the launch file open rviz to view the YDLIDAR scan results as shown in the following figure FIG 8 YDLIDAR RVIZ Modify Angle Problem The scanning data seen by running the launch file is d...

Page 10: ...unch file of the corresponding Lidar model take X4 as an example The contents are as shown in the figure FIG 9 YDLIDAR LAUNCH FILE 2 YDLIDAR coordinates follow the right hand rule within ROS with an a...

Page 11: ...y illuminate the lidar s vision system If you need to use it outdoors please avoid that the its vision system is directly facing the sun This may cause permanent damage to the vision system s sensor c...

Reviews: