background image

www.ydlidar.com Copyright 2015-2019 YDLIDAR

11 / 14

$ mkdir -p ~/ydlidar_ws/src

$ cd ~/ydlidar_ws

$ catkin_make

$ echo "source ~/ydlidar_ws/devel/setup.bash" >> ~/.bashrc

$ source ~/.bashrc

$ cd ~/ydlidar_ws/src/ydlidar/startup

$ sudo chmod +x initenv.sh

$ sudo sh initenv.sh

Select the configuration as shown above, click ‘check for updates’, if there is no new version, the
system will prompt no update; when there is a new version, the software version information will be
filled in the information box, click

to update the client software.

LINUX ROS OPERATION

Because there are many Linux versions, this article only uses Ubuntu 16.04, Kinetic version
ROS as an example.

Document description

Download the latest ROS driver package for YDLIDAR X4 on GitHub

https://github.com/YDLIDAR/ydlidar/tree/G4

;

Device connection

Under Linux, the X4 and PC interconnect processes are consistent with those under
Windows. See Device Connection under Window.

ROS Driver Installation

Before doing the following, make sure that the Kinetic version ROS environment is
installed correctly.

(1)

Use the command to create the ydlidar_ws workspace and copy the ROS driver

package ydlidar in the X4 package to the ydlidar_ws/src directory. Switch to the
ydlidar_ws workspace and compile again.

(2)

After the compilation is complete, add the ydlidar environment variable to the

~/.bashrc file and make it effective.

(3)

Add a device alias /dev/ydlidar to the X4 serial port.

Summary of Contents for G4

Page 1: ...YDLIDAR G4 USER MANUAL Doc 01 13 000009...

Page 2: ...3 Device connection 3 Driver Installation 4 Evaluation software usage 6 LINUX ROS OPERATION 11 Document description 11 Device connection 11 ROS Driver Installation 11 RVIZ installation 12 RVIZ Check t...

Page 3: ...Lidar The G4 has an integrated motor drive for motor control USB Type C cable 1 Use with USB adapter board to connect G4 and PC USB cable is both a power supply cable and a data cable USB adapter boar...

Page 4: ...ONNECTION STEP 2 Connect the adapter board with G4 first then connect the USB cable to the USB port of the adapter board and the PC Note that the Type C interface of the USB cable is connected to the...

Page 5: ...an be downloaded from our official website or downloaded from the official website of Silicon Labs http ydlidar com http cn silabs com products development tools software usb to uart bridge vcp driver...

Page 6: ...o access the Device Manager Expand Port to see the serial port name corresponding to the identified USB adapter that is the driver installation is successful The following figure shows COM3 Note that...

Page 7: ...nd real time scanning frequency are provided on YDLIDAR At the same time the version information of G4 can be read and the scan data can be saved offline to an external file for further analysis Befor...

Page 8: ...inuously to make it work normally If the scanning frequency is stopped the Lidar will stop scanning Currently G4 and F4 are compatible with this function and X4 and X4 are not compatible If the connec...

Page 9: ...will pop up FIGURE 11 CLIENT SETTINGS BOX As shown in the figure you can configure and detect the Lidar on this setup page as well as Lidar firmware upgrade client software upgrade etc Save Data Durin...

Page 10: ...he demand When the lidar is in the scanning state you need to click the scan control again after adjusting the scanning frequency Ranging frequency is used to switch the Lidar s ranging frequency The...

Page 11: ...s completed click the system will automatically save the calibration parameters and the calibration will take effect after saving 5 Lock calibration function After the calibration is saved click again...

Page 12: ...inetic version ROS as an example Document description Download the latest ROS driver package for YDLIDAR X4 on GitHub https github com YDLIDAR ydlidar tree G4 Device connection Under Linux the X4 and...

Page 13: ...d reinstall it RVIZ Check the scan results Run the launch file and open rviz to view the X4 scan results as shown in the following figure FIG14 YDLIDAR X4 RVIZ Modify the scan angle problem The scanni...

Page 14: ...ng environment temperature of G4 is too high or too low it will affect the accuracy of the distance measuring system It may also damage the structure of the scanning system and reduce the life of the...

Page 15: ...is subject to interference in outdoor strong sunlight reflection environments Power demand During the development process since the drive current of the USB interface of each platform or the USB inte...

Reviews: