Copyright 2015-2020 YDLIDAR
9/11
Run ROS Package
Run the corresponding launch file according to the lidar model, The command format is:
Examples of use are as follows:
a) X2 Lidar
b) X4 Lidar
c) G2 Lidar
d) G4/G5 Lidar
RVIZ results
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 displayed by default with 360- degree data.
$ roslaunch ydlidar_ros_driver X2.launch
$roslaunch ydlidar_ros_driver [launch file]
$ roslaunch ydlidar_ros_driver lidar.launch
$ roslaunch ydlidar_ros_driver G2.launch
$ roslaunch ydlidar_ros_driver X4.launch