www.ydlidar.com Copyright 2015-2019 EAI
10
/
12
(
2
)
If there is a problem with the installation, update the source cache and reinstall it.
RVIZ Check the scan results
Run the launch file and open rviz to view the X2 scan results, as shown in the following
figure:
FIG13 YDLIDAR X2 RVIZ
Modify the scan angle problem
The scanning data seen by running the launch file is displayed by default with 360-
degree data. To modify the display range, you need to modify the configuration
parameters in the launch file. The specific operation is as follows:
(
1
)
Go to X2.launch's directory and use vim to edit X2.launch. The contents are as
shown in the figure:
$ roscd ydlidar/launch
$ vim lidar.launch
$ sudo apt-get install python-serial ros-kinetic-serial g++ vim \
ros-kinetic-turtlebot-rviz-launchers
$ sudo apt-get update