Visual SLAM algorithm for removing dynamic object based on multi-sensor fusion
Multi-sensor fusion technology is used to filter and segment dynamic point clouds and construct mask coverage images, which solves the problem of insufficient accuracy and robustness of existing SLAM algorithms in dynamic environments and achieves high-precision dynamic object removal under low computing power. , suitable for small mobile robots.
Patent Information
- Application Number
- CN202410855678.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-29
AI Technical Summary
The accuracy of mapping and positioning of existing SLAM algorithms decreases in dynamic environments, and the algorithm for removing dynamic objects requires high computing power and is difficult to implement in small mobile robots.
Using multi-sensor fusion technology, IMU, wheeled odometry and millimeter wave radar are used to obtain real-time attitude angle and instantaneous velocity, filter dynamic point clouds, build masks and cover images through the principle of small hole imaging, remove dynamic objects, and generate stable maps .
It achieves high-precision removal of dynamic objects under low computing power, improves the robustness of the algorithm, and is suitable for autonomous driving of small mobile robots.
Smart Images

Figure CN118864744A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a visual SLAM algorithm for removing dynamic objects based on multi-sensor fusion, and belongs to the field of autonomous driving. Background Art
[0002] In terms of unmanned driving, robots, and augmented reality, SLAM is a key technology that can perform autonomous positioning and mapping at the same time, providing robots and other unmanned systems with navigation and positioning functions in unknown environments. Therefore, it has broad application prospects.
[0003] In the past few decades, SLAM technology has developed rapidly. Various sensors such as LiDAR, monocular camera, binocular camera, RGBD camera, IMU, etc. have been widely used, and various SLAM algorithms have been developed, such as MONOSLAM based on monocular camera, PTAM, and ORBSLAM compatible with monocular, binocular, and RGBD. However, since SLAM algorithms all assume that the environment is static, when encountering a dynamic environment, the accuracy of mapping and positioning will be greatly reduced, and the robustness of the algorithm is poor; in order to solve these problems, there are now many SLAM algorithms that can remove dynamic objects in advance, but most of them are based on deep learning and some geometric methods. Although these methods can remove dynamic objects, the high computing power required by these algorithms leads to the required computing hardware, which is not only expensive, but also large in size. Generally, it can only be used for large vehicles, etc. Most ordinary small mobile robots are equipped with computing hardware that cannot meet the computing power requirements of existing SLAM algorithms for removing dynamic objects due to their size and power.
[0004] Therefore, how to provide a new SLAM algorithm that only requires lower computing power to eliminate dynamic objects, and which not only has high accuracy but also good algorithm robustness, so that it is suitable for the autonomous driving of existing small mobile robots, is the research direction required by the present invention. Summary of the invention
[0005] In view of the problems existing in the above-mentioned prior art, the present invention provides a visual SLAM algorithm for removing dynamic objects based on multi-sensor fusion. Through a variety of multi-sensor fusion methods, the process of removing dynamic objects can be achieved with only low computing power. It not only has high accuracy but also good algorithm robustness, and is therefore suitable for autonomous driving of existing small mobile robots.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is: a visual SLAM algorithm based on multi-sensor fusion to remove dynamic objects, the specific steps are:
[0007] Step 1. Sensor Deployment: Install an IMU (i.e., Inertial Measurement Unit) at the center of the upper surface of the mobile robot platform to measure the real-time attitude angle of the mobile robot platform; install wheel odometers on each mobile wheel at the lower part of the mobile robot platform to obtain the instantaneous linear velocity of each mobile wheel; install two millimeter-wave radars on the upper surface of the mobile robot platform and symmetrically arrange them on both sides of the center line passing through the IMU to collect radar point clouds; the IMU, wheel odometers, and millimeter-wave radars all feed the collected data back to the data processor of the mobile robot platform;
[0008] Step 2. Data Acquisition: The mobile robot platform starts to drive normally. At this time, the IMU measures the real-time attitude angle of the mobile robot platform and feeds it back to the data processor. At the same time, the wheel odometers measure the instantaneous linear velocity of each mobile wheel of the mobile robot platform and feed it back to the data processor. The data processor fuses the real-time attitude angle (i.e., the traveling direction) and the instantaneous linear velocity of the mobile robot platform at the current moment (i.e., the IMU provides the moving direction of the mobile robot platform, and the wheel odometers provide the magnitude of the instantaneous velocity of the mobile robot platform) to obtain the instantaneous velocity of the mobile robot platform at the current moment;
[0009] Step 3. Screening of Dynamic Point Clouds: The two millimeter-wave radars collect the radar point cloud data of the surrounding environment at the current moment, so as to obtain the radar point cloud data with speed information (each point in the radar point cloud has the instantaneous velocity of the point itself). The data processor calculates the theoretical instantaneous velocity of the static points according to the relative velocity principle (i.e., the theoretical instantaneous velocity magnitude of the static points should be equal to and opposite to the instantaneous velocity of the mobile robot at this time) for the instantaneous velocity obtained in Step 2, and conducts dynamic point screening for each point in the point cloud data. The dynamic point screening criterion is: set a threshold b, V point_i is the velocity of the i-th point in the radar point cloud, V out is the theoretical instantaneous velocity of the static points. If |V point_i -V out |<b, then determine that this point is a static point and delete this point. After traversing all points in the point cloud data, screen out all dynamic points and form a dynamic point cloud;
[0010] Step 4. Preliminary Segmentation of Dynamic Point Cloud: First, conduct preliminary segmentation of the dynamic point cloud according to the speed. Set a threshold c, V point_i is the velocity of the i-th point in the dynamic point cloud, V poin_k is the velocity of the k-th point in the dynamic point cloud. If |V point_i -V poin_k |<c, then divide the i-th point and the k-th point in the dynamic point cloud into the same class of points and segment different classes of points to complete the preliminary segmentation;
[0011] Step 5: Secondary segmentation of dynamic point cloud: Secondary segmentation of the dynamic point cloud is performed according to the distance, and the point cloud segmented in step 4 is clustered and segmented using the DBSCAN algorithm to complete the secondary segmentation;
[0012] Step 6: Construct a mask: According to the pinhole imaging principle, the point clouds segmented in step 5 are projected onto the normalized camera imaging plane of the mobile robot platform in sequence, and the boundary points of each projected point cloud are connected, so as to form masks for each point cloud on the normalized camera imaging plane.
[0013] Step 7: Image coverage to remove dynamic objects: According to the conversion formula between the camera and the mask, the mask is projected onto the corresponding frame image taken by the camera of the mobile robot platform at the current moment, and each mask is covered on the image to remove the dynamic objects in the image;
[0014] Step 8: Image application: The image with dynamic objects removed in step 7 is passed into visual SLAM for subsequent processing to generate a stable map without interference from dynamic objects.
[0015] Furthermore, the conversion formula between the camera and the mask in step seven is:
[0016]
[0017] Where: u, v represent the coordinates of the pixel points in the image, X, Y represent the coordinates of the mask points on the camera normalized plane, and f x 、f y is the focal length of the camera, c x 、c y is the image principal point coordinate; the image principal point coordinate and the camera focal length are both known intrinsic parameters of the camera.
[0018] Furthermore, in step 1, the angle between the millimeter wave radar detection direction axis and the center line is 72.5°, and the detection range angle of the millimeter wave radar is 115°. This angle can achieve the best radar point cloud data acquisition effect.
[0019] Furthermore, the wheel odometer in step 1 contains an IMU (i.e., inertial measurement unit), and the Z axis of the IMU is coaxial with the rotation axis of the moving wheel to obtain the instantaneous linear velocity of the moving wheel; this structure utilizes the high output frequency of the IMU and, when the radius of the moving wheel is known, can output the instantaneous linear velocity with high accuracy.
[0020] Furthermore, in step seven, the mask is covered on the image in the following specific manner: the mask sets all three RGB channels of each pixel point within the corresponding position range of the image to zero, thereby removing dynamic objects in the image.
[0021] Compared with the prior art, when the mobile robot platform is driving normally, the present invention uses a combination of IMU and wheel odometer to obtain the instantaneous speed of the mobile robot platform, and the millimeter wave radar collects radar point cloud data of the surrounding environment to obtain radar point cloud data with speed information, and then performs dynamic point screening on the radar point cloud data to remove static points, thereby obtaining a dynamic point cloud composed of dynamic points; then the dynamic point cloud is secondary segmented, and the segmented point cloud is projected onto the camera imaging normalization plane to form a mask; finally, the mask is covered on the image taken by the camera at the current moment, thereby removing dynamic objects in the image; finally, the image is passed into the visual SLAM to generate a stable map without interference from dynamic objects. In the whole process, dynamic objects are removed by forming a mask and covering the image through multiple sensors, so that the subsequently generated map is not only of high accuracy, but also of good algorithm robustness; at the same time, it does not require deep learning or geometric processing methods, so it only requires low computing power to run, so it is suitable for the automatic driving of existing small mobile robots. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is the overall flow chart of the present invention;
[0023] Figure 2 is a front view of the mobile robot platform of the present invention;
[0024] Figure 3 yes Figure 1 A top view of
[0025] Figure 4 It is a schematic diagram of constructing a mask in the present invention.
[0026] In the picture: 1- camera, 2- millimeter wave radar, 3- IMU, 4- wheel odometer. DETAILED DESCRIPTION
[0027] The present invention will be further described below.
[0028] like Figure 1 As shown, the specific steps of the present invention are:
[0029] Step 1: Deploy sensors: Figure 2 and 3As shown in the figure, an IMU3 (i.e., an inertial measurement unit) is installed at the center of the upper surface of the mobile robot platform to measure the real-time attitude angle of the mobile robot platform; wheel odometers 4 are installed on each of the mobile wheels at the lower part of the mobile robot platform. The wheel odometer 4 contains an IMU3 (i.e., an inertial measurement unit). The Z-axis of the IMU3 is coaxial with the rotating shaft of the mobile wheel to obtain the instantaneous linear velocity of the mobile wheel. This structure can output a relatively high-precision instantaneous linear velocity by utilizing the characteristic of the high output frequency of the IMU and the known radius of the mobile wheel. Two millimeter-wave radars 2 are installed on the upper surface of the mobile robot platform and symmetrically arranged on both sides of the center line passing through the IMU3 to collect radar point clouds. And by measuring the rotation angle and translation amount of the millimeter-wave radar 2 relative to the IMU3 coordinate system respectively, the attitude relative to the IMU coordinate system can be obtained. Through this attitude, the point cloud of the millimeter-wave radar 2 can be compounded into the IMU coordinate system, which can largely solve the problem of the point cloud density coefficient of the millimeter-wave radar. The IMU3, the wheel odometer 4, and the millimeter-wave radar 2 all feedback the collected data to the data processor of the mobile robot platform; the camera of the mobile robot itself is installed at a position higher than the two millimeter-wave radars 2 to prevent the millimeter-wave radar 2 from blocking the line of sight;
[0030] Step 2: Collect data: The mobile robot platform starts to drive normally. At this time, the IMU3 measures the real-time attitude angle of the mobile robot platform and feedbacks it to the data processor. At the same time, the wheel odometer 4 measures the instantaneous linear velocity of each mobile wheel of the mobile robot platform and feedbacks it to the data processor. The data processor fuses the real-time attitude angle (i.e., the traveling direction) and the instantaneous linear velocity of the mobile robot platform at the current moment to obtain the instantaneous velocity of the mobile robot platform at the current moment;
[0031] Step 3: Screen dynamic point clouds: The two millimeter-wave radars 2 collect the radar point cloud data of the surrounding environment at the current moment, so as to obtain the radar point cloud data with velocity information (each point in the radar point cloud has the instantaneous velocity of the point itself). The data processor obtains the theoretical instantaneous velocity of the static points according to the relative velocity principle (that is, the theoretical instantaneous velocity magnitude of the static points should be equal to and opposite to the instantaneous velocity of the mobile robot at this time) for the instantaneous velocity obtained in Step 2, and screens each point in the point cloud data for dynamic points. The dynamic point screening criterion is: set the threshold b = 0.1V out , V point_i is the velocity of the i-th point in the radar point cloud, V out is the theoretical instantaneous velocity of the static point. If |V point_i -V out |<b, then it is determined that the point is a static point and the point is deleted. After traversing all points in the point cloud data, all dynamic points are screened out and composed into a dynamic point cloud;
[0032] Step 4. Preliminary segmentation of dynamic point cloud: First, the dynamic point cloud is preliminarily segmented according to speed. Set the threshold c = 0.05V out , V point_i is the speed of the i-th point in the dynamic point cloud, and V poin_k is the speed of the k-th point in the dynamic point cloud. If |V point_i - V poin_k | < c, then the i-th point and the k-th point in the dynamic point cloud are classified as the same type of points, and different types of points are segmented to complete the preliminary segmentation;
[0033] Step 5. Secondary segmentation of dynamic point cloud: The dynamic point cloud is secondarily segmented according to distance. The DBSCAN algorithm is used to cluster and segment the point cloud segmented in Step 4 to complete the secondary segmentation;
[0034] Step 6. Construct a mask: According to the principle of pinhole imaging, the point cloud segmented in Step 5 is sequentially projected onto the camera imaging normalization plane of the mobile robot platform, and all the boundary points of each projected point cloud are connected, so that masks are respectively formed for each point cloud on the camera imaging normalization plane as Figure 4 shown;
[0035] Step 7. Remove dynamic objects from the image by covering: According to the conversion formula between the camera and the mask, the specific formula is:
[0036]
[0037] In the formula: u and v represent the coordinate positions of pixel points in the image, X and Y both represent the coordinates of points on the mask in the camera normalization plane, f x and f y are the camera focal lengths, and c x and c y are the coordinates of the principal point of the image; the coordinates of the principal point of the image and the camera focal length are both known internal parameters of the camera;
[0038] Project the mask onto the corresponding frame image captured by the camera of the mobile robot platform at the current moment, and perform covering processing on each mask in the image. Specifically: The mask sets all three RGB channels of each pixel point within the corresponding position range of the image to zero, so as to remove dynamic objects in the image.
[0039] Step 8. Image application: Input the image from which dynamic objects have been removed in Step 7 into visual SLAM for subsequent processing, so as to generate a stable map without interference from dynamic objects.
[0040] As an improvement of the present invention, the angle between the detection orientation axis and the center line of the millimeter-wave radar 2 in Step 1 is 72.5°, and the detection range angle of the millimeter-wave radar 2 is 115°. This angle can achieve the optimal acquisition effect of radar point cloud data.
[0041] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A visual SLAM algorithm based on multi-sensor fusion to remove dynamic objects, characterized in that: The specific steps are: Step 1: Arrange sensors: Install the IMU at the center of the upper surface of the mobile robot platform to measure the real-time attitude angle of the mobile robot platform; install wheel odometers on each moving wheel at the bottom of the mobile robot platform to obtain the instantaneous linear velocity of each moving wheel; install two millimeter-wave radars on the upper surface of the mobile robot platform and symmetrically set them on both sides of the center line passing through the IMU to collect radar point clouds; the IMU, wheel odometer and millimeter-wave radar all feed back the collected data to the data processor of the mobile robot platform; Step 2: Collect data: The mobile robot platform starts to drive normally. At this time, the IMU measures the real-time attitude angle of the mobile robot platform and feeds it back to the data processor. At the same time, the wheel odometer measures the instantaneous linear velocity of each moving wheel of the mobile robot platform and feeds it back to the data processor. The data processor fuses the real-time attitude angle and instantaneous linear velocity of the mobile robot platform at the current moment to obtain the instantaneous velocity of the mobile robot platform at the current moment. Step 3. Screen dynamic point cloud: Two millimeter-wave radars collect the radar point cloud data of the surrounding environment at the current moment, so as to obtain the radar point cloud data with velocity information. The data processor calculates the theoretical instantaneous velocity of the static points according to the relative velocity principle based on the instantaneous velocity obtained in Step 2, and screens each point in the point cloud data for dynamic points. The dynamic point screening criterion is: Set a threshold b, V point_i is the velocity of the i-th point in the radar point cloud, V out is the theoretical instantaneous velocity of the static point. If |V point_i -V out |<b, then determine that this point is a static point and delete this point. After traversing all points in the point cloud data, all dynamic points are screened out and form a dynamic point cloud; Step 4: Preliminary segmentation of dynamic point cloud: First, the dynamic point cloud is preliminarily segmented according to speed, and a threshold c is set. V point_i is the speed of the i-th point in the dynamic point cloud, and V poin_k is the speed of the k-th point in the dynamic point cloud. If |V point_i - V poin_k | < c, then the i-th point and the k-th point in the dynamic point cloud are classified into the same class of points, and different classes of points are segmented to complete the preliminary segmentation; Step 5: Secondary segmentation of dynamic point cloud: Secondary segmentation of the dynamic point cloud is performed according to the distance, and the point cloud segmented in step 4 is clustered and segmented using the DBSCAN algorithm to complete the secondary segmentation; Step 6: Construct a mask: According to the pinhole imaging principle, the point clouds segmented in step 5 are projected onto the normalized camera imaging plane of the mobile robot platform in sequence, and the boundary points of each projected point cloud are connected, so as to form masks for each point cloud on the normalized camera imaging plane. Step 7: Image coverage to remove dynamic objects: According to the conversion formula between the camera and the mask, the mask is projected onto the corresponding frame image taken by the camera of the mobile robot platform at the current moment, and each mask is covered on the image to remove the dynamic objects in the image; Step 8: Image application: The image with dynamic objects removed in step 7 is passed into visual SLAM for subsequent processing to generate a stable map without interference from dynamic objects.
2. According to claim 1, the visual SLAM algorithm for removing dynamic objects based on multi-sensor fusion is characterized in that: The conversion formula between the camera and the mask in step 7 is: Where: u, v represent the coordinates of the pixel points in the image, X, Y represent the coordinates of the mask points on the camera normalized plane, and f x 、f y is the focal length of the camera, c x 、c y are the image principal point coordinates.
3. The visual SLAM algorithm for removing dynamic objects based on multi-sensor fusion according to claim 1 is characterized in that: In the step 1, the angle between the millimeter wave radar detection direction axis and the center line is 72.5°, and the detection range angle of the millimeter wave radar is 115°.
4. The visual SLAM algorithm for removing dynamic objects based on multi-sensor fusion according to claim 1 is characterized in that: In the step 1, the wheel odometer contains an IMU, and the Z axis of the IMU is coaxial with the rotating axis of the moving wheel to obtain the instantaneous linear velocity of the moving wheel.
5. The visual SLAM algorithm for removing dynamic objects based on multi-sensor fusion according to claim 1 is characterized in that: In step seven, the mask is covered on the image in the following way: the mask sets all three RGB channels of each pixel point within the corresponding position range of the image to zero, thereby removing dynamic objects in the image.
