YDLIDAR X4 Lidar User Manual V1.3 (211230)
YDLIDAR X4 Lidar User Manual V1.3 (211230)
YDLIDAR X4 Lidar User Manual V1.3 (211230)
000002
X4
USER MANUAL
www.ydlidar.com
Connect the adapter board with X4 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
USB_DATA of the USB adapter board.
The drive current of USB interface of some development platforms or PC is not sufficient. X4
need to be connected to the auxiliary power supply of +5V, otherwise the lidar will be abnormal.
Development
Platform
5V Power
Supply
https://www.ydlidar.com/dowfile.html?id=97
http://cn.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
After decompressing the driver package, run the CP2102's Windows driver installation file (exe
file under CP210x_VCP_Windows). Please select the 32-bit version (x86) or 64-bit version (x64)
installation program according to the version of the windows operating system.
Double-click the exe file and follow the prompts to install it.
After the installation is complete, right-click on [My Computer] and select [Properties]. On the
open [System] screen, select [Device Manager] from the left menu to access the [Device Manager].
Before using the YDLIDAR software, make sure that the X4 USB adapter board serial port
driver is installed successfully, and interconnect the X4 with the USB port of the PC. Run the
evaluation software: LidarViewer.exe, select the corresponding serial port number and model
number. Meanwhile, users could choose language on the top right corner.
Choose one according to needs, move the mouse to the test position, right-click the pop-up
menu, and select [Lock Mouse Tracking].
To record lidar data, click to start recording, and click to stop recording.
2.3.5 Debug
Click [Tools] in the main menu, and then select [DebugON] to output the raw lidar data to the
"viewer_log.txt" and "viewer_log_err.txt" files.
Note: For more functions of LidarViewer, please click [Help], select [More Information], and learn more about
how to use it.
https://github.com/YDLIDAR/YDLidar-SDK
https://github.com/YDLIDAR/ydlidar_ros_driver
$ cd YDLidar-SDK/build
$ cmake ..
$ make
$ cd ydlidar_ws
$ catkin_make
$ source ./devel/setup.sh
Note: Add permanent workspace environment variables. It will be very convenient if ROS
environment variables are automatically added to the bash session every time when start a new shell:
$ source ~/.bashrc
4) Verify that the package path is set, echo the ROS_PACKAGE_PATH variable.
$ echo $ROS_PACKAGE_PATH
$ sudo sh src/ydlidar_ros_driver/startup/initenv.sh
Note: After completing the previous operation, re-insert the LIDAR again.
Note: Take G4 as an example by default, if use other types of lidar, need to change lidar.launch in
lidar_view.launch file to the corresponding **.launch file. (If X4 lidar is used, it needs to be changed to
X4.launch)
1) Switch to the directory where the corresponding [launch file] is located, edit the file, and its
content is as shown in the figure:
Note: For more information about the file contents, please refer to:
https://github.com/YDLIDAR/ydlidar_ros_driver#configure-ydlidar_ros_driver-internal-parameter
2) The X4 lidar coordinates follow the right-hand rule within ROS, with an angle range of [-180,
180]. "angle_min" is the start angle, and "angle_max" is the endangle. The specific scope needs
to be modified according to actual use.
4 CAUTION
4.1 Ambient Temperature
When the working environment temperature of X4 is over high or over low, it will affect the
accuracy of the distance measuring system. It may also damage the structure of the scanning system
If the user need to use it outdoors, please avoid the X4's vision system directly facing the sun,
which may cause permanent damage to the vision system's photosensitive chip, which will invalidate
the range finding.
The X4 standard version will cause interference in the distance measurement under the
conditions of strong sunlight reflection outdoors, please pay attention to it.