yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
T-mini Plus LiDAR📖
01.Linux basic course
  • 1.Introduction to Linux system
  • 2.Ubuntu file system
  • 3.Ubuntu common commands
  • 4.Ubuntu common editors
  • 5.Ubuntu software operation commands
  • 6.Virtual machine installation
  • 7.SSH remote control
  • 8.VNC remote control
  • 9.Transfer files remotely
  • 10.Driver library and communication
  • 11.Static IP and hotspot mode
  • 12.Bind device ID
  • 13.Capacity expansion and resource allocation
  • 14.Update system software sources
  • 15.Set root user password
  • 16.sudo free password
  • 17.Connect to WiFi network
  • 18.View system version
  • 19.Customized service management
  • 20.Back up system image
02.ROS1 basic course
  • 1.ROS introduction
  • 2.ROS installation
  • 3.ROS common command tools
  • 4.ROS workspace
  • 5.ROS function package
  • 6.ROS node
  • 7.ROS topic publisher
  • 8.ROS topic subscribers
  • 9.ROS service client
  • 10.ROS service server
  • 11.ROS action client
  • 12.ROS action server
  • 13.ROS custom message reception
  • 14.ROS-launch file
  • 15.ROS-TF transformation
  • 16.ROS parameter service
  • 17.ROS-rviz use
  • 18.ROS-rqt tool usage
  • 19.Topic message recording and playback
  • 20.urdf model introduction
  • 21.gazebo introduction
  • 22.ROS distributed communication
03.ROS1 lidar course
  • 0.Instructions before use
  • 1.Preparation
  • 2.Handheld lidar mapping
  • 3.Lidar avoiding
  • 4.Lidar guard
  • 5.Lidar follow
  • 6.Lidar mapping
  • 7.rrt_exploration mapping algorithm
  • 8.Navigation
  • 9.APP Mapping and Navigation
  • 10.RTAB 3D mapping and navigation
04.ROS2 basic course
  • 1. Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
05.ROS2 lidar course
  • 0.ReadMe
  • 1.Preparation
  • 2.Handheld lidar mapping
  • 3.Lidar avoiding
  • 4.Lidar follow
  • 5.Lidar guard
  • 6.Lidar patrol
  • 7.gmapping mapping
  • 8.cartographer mapping
  • 9.Navigation and avoiding
  • 10.APP Mapping and Navigation
  • 11.RTAB 3D mapping and navigation
06.Raspberry Pi5 course
1.Docker course
  • 1. Overview and installation
  • 2. Common commands
  • 3. Docker images deeply understand and publish images
  • 4. Docker hardware interaction and data processing
  • 5. Enter the robot's docker container
2.ROS1 lidar course
  • 0.Instructions before use
  • 1.Preparation
  • 2.Handheld lidar mapping
  • 3.Lidar avoiding
  • 4.Lidar guard
  • 5.Lidar follow
  • 6.Lidar mapping
  • 7.rrt_exploration mapping algorithm
  • 8.Navigation
  • 9.APP Mapping and Navigation
  • 10.RTAB 3D mapping and navigation
3.ROS2 lidar course
  • 0.ReadMe
  • 1.Preparation
  • 2.Handheld lidar mapping
  • 3.Lidar avoiding
  • 4.Lidar follow
  • 5.Lidar guard
  • 6.Lidar patrol
  • 7.gmapping mapping
  • 8.cartographer mapping
  • 9.Navigation and avoiding
  • 10.APP Mapping and Navigation
  • 11.RTAB 3D mapping and navigation
Download
  • Code
  • VM_File
  • RPi5_SystemFile
  • Data Sheet
  • 3D_Model_File
  • PC_Software
  • ROS2_Basic_VM
Download ZIP

Welcome to T-mini Plus LiDAR repository

1.Preparation

1. Environment setup

1. Install sdk driver

Based on the specifications of the lidar you purchased, locate the compressed file labeled "YDLidar-SDK" in the provided source code package. Extract the "YDLidar-SDK" folder; this folder contains the SDK files for this lidar. Since using the ROS function package for this lidar requires the SDK to be installed beforehand, the "YDLidar-SDK" folder contains the lidar's driver files. Open a terminal in this folder and type:

mkdir build
cd build
cmake..
make -j4
sudo make install

If no errors are reported during operation, the driver is successfully installed.

2. Create a new workspace and compile function packages

  • (Recommended) The first method is to unzip yahboomcar_ws in the source code to your own root directory, and then compile it directly using colcon build.
xxxxxxxxxx
cd yahboomcar_ws
colcon build

After the compilation is passed, add the path of the workspace to .bashrc.

xxxxxxxxxx
sudo gedit ~/.bashrc

Copy the following content to the end of the file,

xxxxxxxxxx
source ~/yahboomcar_ws/devel/setup.bash --extend
  • The second method is to create a self-named workspace. Take the name oradar_ws as an example and enter it in the terminal.
xxxxxxxxxx
mkdir oradar_ws
cd oradar_ws
mkdir src
cd src
catkin_init_workspace

Then copy the decompressed source code yahboomcar_ws/src function package to the oradar_ws/src directory, and then use colcon build to compile in the oradar_ws directory.

xxxxxxxxxx
cd oradar_ws
colcon build

After the compilation is passed, add the path of the workspace to .bashrc.

xxxxxxxxxx
sudo gedit ~/.bashrc

Copy the following content to the end of the file,

xxxxxxxxxx
source ~/oradar_ws/devel/setup.bash --extend

3. Bind lidar port name

Open the terminal in the root directory of the Raspberry Pi and enter the following command,

xxxxxxxxxx
cd /etc/udev/rules.d/
sudo vi usb.rules

Then copy the following content into it,

xxxxxxxxxx
KERNEL=="ttyUSB*", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE:="0777", SYMLINK+="ydlidar"

image-20240423195203336

Then re-plug the radar serial port and enter ll /dev/ydlidar in the terminal.

image-20240423195100817

The above content indicates that the binding is successful. The end is not necessarily 0 and changes according to the order in which the devices are inserted.

Then open our docker script and add it

xxxxxxxxxx
vi run_ros2.sh

image-20240424161257967

4. Drive radar

First go into the docker we provide, open a terminal in the Raspberry Pi directory and enter,

xxxxxxxxxx
./run_ros2.sh

image-20240424161452231

After that, enter the following statement to open the radar and display it in rviz,

xxxxxxxxxx
ros2 launch ydlidar_ros2_driver ydlidar_launch_view.py

image-20240424161544473

You can view radar node data through the following command, provided that you need to enter the same docker.

Enter in the Raspberry Pi terminal, which ID needs to be remembered?

xxxxxxxxxx
docker ps

image-20240424161736511

Then enter the command to log in to the same docker container

xxxxxxxxxx
docker exec -it b43d /bin/bash

image-20240424161908495

Enter the following command to view radar data,

xxxxxxxxxx
ros2 topic echo /scan

image-20240424161958055

ReadMe
Handheld lidar mapping

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文