EasyManua.ls Logo

YDLIDAR G2 - LINUX ROS OPERATION; Device Connection; Compile and Install YDLidar-SDK; ROS Driver Installation

YDLIDAR G2
18 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Copyright 2015-2021 EAI
3 LINUX ROS OPERATION
There are many Linux versions,this article only uses Ubuntu 18.04, Melodic version
ROS as an example.
SDK driver address:
https://github.com/YDLIDAR/YDLidar-SDK
ROS driver address:
https://github.com/YDLIDAR/ydlidar_ros_driver
3.1 Device Connection
Under Linux, the G2 and PC interconnect processes are consistent with those under
Windows. See Device Connection under Window.
3.2 Compile and Install YDLidar-SDK
ydlidar_ros_driver depends on the YDLidar -SDK library. If you have never installed
the YDLidar -SDK library, or it has expired, you must first install the YDLidar-SDK library. If
you have the latest version of YDLidar -SDK installed, please skip this step, then go to the
next step.
3.3 ROS Driver Installation
1) Cloning GitHub's ydlidar_ros_driver Package:
2) Build the ydlidar_ros_driver software package:
$ git clone https://github.com/YDLIDAR/YDLidar-SDK.git
$ cd YDLidar-SDK/build
$ cmake ..
$ make
$ sudo make install
$ git clone https://github.com/YDLIDAR/ydlidar_ros_driver.git
ydlidar_ws/src/ydlidar_ros_driver
$ cd ydlidar_ws
$ catkin_make