yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
YDLIDAR 4ROS 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.RPi 5 Docker course
  • 1.Overview and installation
  • 2.Common commands
  • 3.Understand and publish images
  • 4.Hardware interaction data processing
  • 5.Enter docker container
  • 6.Update docker images
  • 7.Docker container to install ROS using accessories
Download
  • ROS1-Code
  • ROS1-VMFile
  • ROS2-Code
  • ROS2-VMFile
  • Other File
  • ROS2_Basic_VM
Download ZIP

Welcome to YDLIDAR 4ROS LiDAR repository

1.Overview and installation

1.Overview and installation

 

1.Overview and installation1.1、Docker overview1.1.1、why docker appears1.1.2、Docker's core idea1.1.3、Compare virtual machines to Docker1.1.4、docker architecture1.1.5、Docker core objects1.1.6、images, containers, repositories1.1.7、Docker operation mechanism1.2、docker installation

Docker Chinese website: https://www.docker-cn.com

Docker Hub (repository) official website: https://hub.docker.com

 

1.1、Docker overview

Docker is an application container engine project, developed based on the Go language and open source.

At present, ROS2's courses are all placed in Docker containers, and customers can experience learning to use containerized development methods.

1.1.1、why docker appears

Let's start with a few scenarios:

  1. O&M deploys the project you developed to the server, telling you that there is a problem and cannot be started. You ran around locally and found that there was no problem...
  2. The project to be launched is unavailable due to the update of some software versions...
  3. There are a lot of environmental content involved in the project, various middleware, various configurations, and the deployment of multiple servers...

These problems can actually be summed up in relation to the environment. To avoid various problems caused by different environments, it is best to deploy the project together with the various environments required by the project. For example, the project involves environments such as REDIS, MYSQL, JDK, ES, etc., and the entire environment is brought with you when deploying the JAR package. So the question is, how can you bring the project with the environment?

Docker is here to solve this problem!

1.1.2、Docker's core idea

 

image-20230424111123951

This is the logo of Docker, a whale full of containers, on the back of the whale, the containers are isolated from each other, which is the core idea of Docker. For example, if there were multiple applications running on the same server before, there may be port occupation conflicts of software, but now they can run alone after isolation. In addition, Docker can maximize the power of the server.

1.1.3、Compare virtual machines to Docker

 

  • The docker daemon can communicate directly with the main operating system to allocate resources to individual docker containers; It can also isolate containers from the main operating system and isolate individual containers from each other. Virtual machines take minutes to start, while docker containers can start in milliseconds. Since there is no bloated from the operating system, Docker can save a lot of disk space as well as other system resources.
  • Virtual machines are better at completely isolating the entire operating environment. For example, cloud service providers often use virtual machine technology to isolate different users. Docker is often used to isolate different applications, such as front-end, back-end, and database.
  • Docker containers are more resource-efficient and faster (start, shut down, create, delete) than virtual machines

1.1.4、docker architecture

Docker uses a client-server architecture. The Docker client communicates with the Docker daemon, which is responsible for building, running, and distributing the Docker container. The Docker client and daemon can run on the same system, or you can connect a Docker client to a remote Docker daemon. The docker client and daemon communicate using REST APIs over UNIX sockets or network interfaces. Another Docker client is Docker Compose, which lets you work with applications that consist of a set of containers.

30f24e4195234f58afbe43525dd57504

 

  • docker client is a docker command that is used directly after installing docker.
  • Docker host is our docker host (i.e. the operating system on which docker is installed)
  • Docker Daemon is Docker's background daemon that listens for and processes Docker client commands and manages Docker objects such as images, containers, networks, and volumes.
  • registry is a remote repository where docker pulls images, providing a large number of images for download, and saving them in images (local image repository) after downloading.
  • Images is a local image repository of docker, and image files can be viewed through docker images.

1.1.5、Docker core objects

 

1.1.6、images, containers, repositories

Image:

A docker image is a read-only template. Images can be used to create docker containers, and one image can create many containers. Just like classes and objects in Java, classes are images and containers are objects.

Container:

xxxxxxxxxx
Docker uses containers to run independently of an application or set of applications. A container is a running instance created from an image. It can be started, started, stopped, removed. Each container is an isolated platform for security. Think of a container as a simple version of the Linux environment (including root privileges, process space, user space, network space, etc.) and the applications running in it. The definition of a container is almost identical to an image, and it is also a unified view of a bunch of layers, the only difference is that the top layer of the container is readable and writable.

Repository:

xxxxxxxxxx
A repository is a place where image files are stored centrally. Repositories are divided into two forms: public repositories and private repositories.
The largest public repository is Docker Hub (https://hub.docker.com/), which houses a huge number of images for users to download. Domestic public warehouses include Alibaba Cloud, NetEase Cloud, etc.

You need to correctly understand the concepts of warehousing/image/container:

  • Docker itself is a container runtime carrier, or management engine. We package the application and configuration dependencies to form a shippable runtime environment, and this packaged runtime environment is like an image image file. Only this image file can generate a docker container. An image file can be thought of as a template for a container. Docker generates an instance of the container from the image file. The same image file allows you to generate multiple container instances running at the same time.
  • The container instance generated by the image file is itself a file, called an image file.
  • A container runs a service, and when we need it, we can create a corresponding running instance through the docker client, which is our container.
  • As for the repository, it is a place where a bunch of images are placed, we can publish the images to the repository, and pull them from the repository when needed.

1.1.7、Docker operation mechanism

Docker pull execution process:

  1. The client sends instructions to Docker Daemon
  2. Docker Daemon first check whether there are relevant images in the local images
  3. If there is no relevant image locally, request the mirror server to download the remote mirror to the local computer

docker run execution process:

  1. Check whether the specified image exists locally and download it from the public repository
  2. Create and start a container from the image
  3. Assign a file system (lite Linux system) and mount a read-write layer outside the read-only image layer
  4. Bridge a virtual interface from the bridge interface configured by the host to the container
  5. Configure an IP address from the address pool to the container
  6. Execute the application specified by the user

1.2、docker installation

  1. Official website installation reference manual: https://docs.docker.com/engine/install/ubuntu/
  2. You can use the following commands to install with one click:
xxxxxxxxxx
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
  1. Check the docker version
xxxxxxxxxx
sudo docker version

image-20230424113920974

  1. Test the command
xxxxxxxxxx
sudo docker run hello-world

The following output indicates that the Docker installation was successful

image-20230424113848585

RTAB 3D mapping and navigation
Common commands

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/中文