-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
45 lines (39 loc) · 1.05 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
1- install ROS2
2- create workspace
mkdir -p ros2_ws/src
3- download and install YDLidar SDK
3_1 install CMake
sudo apt install cmake pkg-config
sudo apt-get install python swig
sudo apt-get install python-pip
3_2 Build YDLidar-SDK
git clone https://github.com/YDLIDAR/YDLidar-SDK.git
cd YDLidar-SDK
mkdir src
cmake ..
make
sudo make install
4-Test the installation
cd YDLidar-SDK/build
./tri_test
for X2L use 115200 [0] as baudrate
[Whether the Lidar is one-way communication[yes/no]:yes
when it works
---------done!-----------
ydlidar driver with ros2
1- Clone ydlidar_ros2_driver
from my repo email2
2- Build ydlidar_ros2_driver package:
cd ydlidar_ros2_ws
2_1- source
source /opt/ros/humble/setup.bash
source install/setup.bash
colcon build --symlink-install
------done!--------
launch file with and without rviz
ros2 launch ydlidar_ros2_driver ydlidar_launch.py
ros2 launch ydlidar_ros2_driver ydlidar_launch_view.py
in laserScan select /scan as Topic and Best effort as Reliability policy
-----------done!----------------
TODO:
SLAM with ydlidar X2 and ROS2