Post-processing representation method of raster maps for human-computer interaction

By performing direction detection, noise removal and noise processing on the raster map, the problem of reading difficulty caused by the initial orientation angle and noise interference is solved, the visualization and accuracy of the map are improved, and it is suitable for any indoor scene and reduces the reading difficulty for non-professional users. The usage cost increases the interaction efficiency of service robots.

CN115731360BActive Publication Date: 2024-10-15ZHONGKE NANJING SOFTWARE TECH RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111011689.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-31
Publication Date
2024-10-15
Estimated Expiration
2041-08-31

AI Technical Summary

Technical Problem

In the existing technology, raster maps are difficult for non-professional users to read due to factors such as initial orientation angle and laser data noise, and there is a problem of mismatch between local terrain and actual conditions, which affects the human-computer interaction process of service robots.

Method used

Adopt a grid map post-processing representation method for human-computer interaction, including map direction detection and direction correction, automatic removal of laser noise interference and abstraction of wall straight line features, manual removal of map noise and addition of obstacles. Through laser data conversion, straight lines Detection and binarization processing, removing noise and correcting the map direction, improving the visualization and accuracy of the map.

Benefits of technology

It improves the versatility and robustness of the map, reduces the reading cost for non-professional users, reduces the use of computing resources, enhances the accuracy and real-time nature of the map, and promotes the market application of service robots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115731360B_ABST
    Figure CN115731360B_ABST
Patent Text Reader

Abstract

The present invention relates to a raster map post-processing representation method for human-computer interaction, and belongs to the field of robots in automation technology. The method comprises the following steps: the first step: map direction detection and direction correction; the second step: automatic removal of laser noise interference and abstraction of wall straight line features; the third step: manual removal of map noise points and addition of obstacles. The method of the present invention can greatly reduce the time cost of non-professional users, thereby promoting the market application of service robots.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a raster map post-processing representation method oriented to human-computer interaction, and belongs to the field of robots in automation technology. Background Art

[0002] Service robots are an important part of the robotics field, among which wheeled mobile robot technology is widely used. The core functions of wheeled mobile service robots are mapping, motion planning, human-computer interaction, etc. The goal is to achieve autonomous navigation of robots in any non-special environment. In the process of robot recognition of the environment, various types of "maps" will be established, and the maps will be displayed to users as part of human-computer interaction. Maps are the basis for robot positioning and are also the prerequisite information for motion planning and control. Only after the map is determined can the robot accurately locate and determine its own posture; only after the map is determined can the robot perform large-scale motion planning. Maps are also objects that users directly operate through various input devices (such as touch screens, mobile phones, tablet clients, etc.) in human-computer interaction, so issues related to map visualization editing are very practical and important engineering application issues.

[0003] The current mainstream approach to robots is to use a robot solution based on the Robot Operation System (ROS), that is, relying on the basic framework provided by ROS, to build a complete algorithm system that can build an environmental map, determine the robot's position, and use a planning and control algorithm for path planning and navigation. The mapping and positioning method based on a single-line laser radar generally uses an occupancy grid type map, that is, a 2D plane grid processing of the robot's motion space, in which the value stored in each small grid corresponds to the probability of an obstacle at that location. When the map is established, the overall direction is generally determined by the robot's orientation at the start, which leads to a deviation from the usual user's usage habits, and non-professional users cannot quickly adapt to this map that does not conform to human reading habits.

[0004] In addition, the grid map created by the robot contains sensor "noise", which will cause the local terrain to not match the actual situation, such as wall deformation, laser beam "penetration" in the middle of the wall, etc., which will increase the difficulty of human reading the map and affect the human-machine interaction process of the service robot. The effect is shown in the figure below. Figure 1 as shown in . Summary of the invention

[0005] In view of the problem that in the process of humans using service robots, raster maps are inconvenient for non-professional users to use due to factors such as initial orientation angle and laser data noise, and the "interference" problem in raster maps due to the presence of laser noise and pedestrians, the present invention proposes a raster map post-processing representation method for human-computer interaction.

[0006] The present invention adopts the following technical solutions to solve the technical problems:

[0007] A raster map post-processing representation method for human-computer interaction includes the following steps:

[0008] Step 1: Map direction detection and direction correction;

[0009] At the initial stage of map construction, local laser data is used to quickly obtain the direction of the map; when the map is built, the raster map information of the entire map is used to detect straight lines in the form of pictures and determine whether they are map directions;

[0010] Step 2: Automatically remove laser noise interference and abstract the straight line features of the wall;

[0011] For the laser radar data noise caused by robot motion vibration or positioning error, the limited information characteristics of the grid map (unknown, feasible and obstacles) are used to extract a complete outer contour edge of the actual map, and based on this, the laser noise interference outside the outer contour is removed; and the straight line detection method is further used to abstract features such as walls;

[0012] Step 3: Manually remove map noise and add obstacles

[0013] For dynamic situations, that is, when there is interference from moving objects, which causes map noise in the map construction, a separate functional interface is opened to specify the area where noise needs to be removed or the area where obstacles need to be added, and the specified area is replaced to further facilitate user use.

[0014] The specific process of the first step is as follows:

[0015] 1) Convert laser data from sensor_msgs / LaserScan format into spatial point (x, y, z) format;

[0016] 2) Select reference points from the spatial points in the order of storage, and calculate the slope of the straight line one by one. If the slope is within the threshold, continue to calculate backward and store the point in the container, otherwise move the reference point;

[0017] 3) Take out the straight line with the most points in the laser data, check the length of the straight line, and if it is greater than the set threshold, it is considered that the map direction has been found;

[0018] 4) According to the map direction, the coordinate system of the grid map is rotated, and the map direction is no longer modified during the map construction process;

[0019] 5) During the map usage phase, the entire map Figure 2 The image layer is subtracted from the original raster map and the processed map to obtain the passable area that is useful to the user.

[0020] 6) Perform fast straight line detection on the passable area, make statistics on the detected straight line set, obtain the straight line with the highest slope, determine the direction to find the map, and repeat step 4).

[0021] The specific process of the second step is as follows:

[0022] A. Set the feasible area in the grid map to 0, the infeasible area to 100, and the unknown area to -1 for binarization processing to obtain an image containing only the feasible domain and the unknown area;

[0023] B. Perform edge detection on the binarized image to obtain a binary image with a grayscale value of 254 at the border and 0 in other areas. Subtract the original image from the binary image to obtain the map outline.

[0024] C. Perform fast straight line detection on the processed map and put the straight lines above the detection threshold into the container;

[0025] D. Perform pixel detection on both sides of the straight lines in the set. Based on the detection results, replace the straight lines in the set and the pixel values ​​on both sides of them to obtain a map after removing the laser Gaussian noise and abstracting the walls.

[0026] The specific process of the third step is as follows:

[0027] a) Convert the coordinates of the area to be removed to the corresponding array subscript. For non-horizontal and vertical rectangular areas, the straight lines need to be discretized;

[0028] b)Replace all array elements in the area with empty to remove noise points, and assign a value of 100 to indicate obstacles.

[0029] The beneficial effects of the present invention are as follows:

[0030] 1. Strong versatility, suitable for any indoor grid map scene.

[0031] 2. It uses less computing resources and memory resources, will not affect the main algorithm functions, and has strong real-time performance.

[0032] 3. Reduce the time cost of users reading maps.

[0033] 4. Enhance the robustness of map construction (no need to rebuild the map due to interference from factors such as pedestrians).

[0034] 5. It can greatly reduce the time cost of non-professional users, thereby promoting the market application of service robots. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a schematic diagram of the raster map effect.

[0036] Figure 2 It is a flow chart of a technical method combining laser line detection and line segmentation (Line Segment Detector, LSD).

[0037] Figure 3 It is a flow chart of the map noise removal method.

[0038] Figure 4 This is a schematic diagram of the map rotation effect. DETAILED DESCRIPTION

[0039] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0040] 1. Map direction detection and direction correction

[0041] In an actual indoor environment, the map direction is generally consistent with the direction of the long straight wall in the environment. It is assumed that the direction of the long straight line in the environment represents the map direction. In addition, the map interaction of the service robot exists in two links - the map construction link and the continuous positioning link. For the two links, the long straight line is detected using lidar data and the existing map is used to detect the long straight line from the perspective of image processing.

[0042] Specific steps are as follows Figure 2 As shown in , the process is:

[0043] 1) Laser data is converted from sensor_msgs / LaserScan (sensor message / laser ranging type) format into spatial point (x, y, z) form;

[0044] 2) Select reference points from the spatial points in the order of storage, and calculate the slope of the straight line one by one. If the slope is within the threshold, continue to calculate backward and store the point in the container, otherwise move the reference point;

[0045] 3) Take out the straight line with the most points in the laser data, check the length of the straight line, and if it is greater than the set threshold, it is considered that the map direction has been found;

[0046] 4) According to the map direction, the coordinate system of the grid map is rotated, and the map direction is no longer modified during the map construction process;

[0047] 5) During the map usage phase, the entire map Figure 2 The image layer is subtracted from the original raster map and the processed map to obtain the traversable area useful to the user.

[0048] 6) Perform fast straight line detection on the passable area, count the detected straight line set, get the straight line with the highest slope, determine the direction to find the map, and repeat step 4).

[0049] 2. Automatic removal of laser noise interference and abstraction of wall straight line features

[0050] The map noise generated by LiDAR is mainly concentrated in two aspects: the fluctuation of spatial point position caused by Gaussian noise; and the "ray"-like edges of the map caused by local maximum noise. Since 2D maps lack sufficient features to distinguish between noise and useful obstacle information, the map information is processed as a whole using a binary method.

[0051] Specific steps are as follows Figure 3 As shown in , the process is:

[0052] A. Binarize the feasible area (0), infeasible area (100), and unknown area (-1) in the grid map to obtain an image containing only the feasible area and the unknown area;

[0053] B. Perform edge detection on the binarized image to obtain a binary image with a grayscale value of 254 at the border and 0 in other areas. Subtract the original image from the binary image to obtain the map outline.

[0054] C. Perform fast straight line detection on the processed map and put the straight lines above the detection threshold into the container;

[0055] D. Detect the pixels on both sides of the straight lines in the set. Based on the detection results, replace the straight lines in the set and the pixel values ​​on both sides of them to obtain a map with the laser Gaussian noise removed and the wall abstracted.

[0056] 3. Manually remove map noise and add obstacles

[0057] During the mapping process, local pedestrian interference and other factors may affect the subsequent autonomous navigation, requiring the operator to remove some noise points. At the same time, there may be environmental changes or obstacle information such as glass walls that cannot be updated to the map, and obstacles need to be added manually.

[0058] The specific steps are:

[0059] a) Convert the coordinates of the area to be removed to the corresponding array subscript. For non-horizontal and vertical rectangular areas, the straight lines need to be discretized;

[0060] b)Replace all array elements in the area with empty to remove noise points, and assign a value of 100 to indicate obstacles.

[0061] Figure 4 This is the effect diagram obtained according to the method of map direction detection and direction correction. It can be seen that relative to the original map, a rotation operation is performed, and the original map is used as the origin to avoid the secondary translation operation caused by the direction correction.

Claims

1. A raster map post-processing representation method for human-computer interaction, characterized in that: The steps include: Step 1: Map direction detection and direction correction; At the initial stage of map construction, local laser data is used to quickly obtain the direction of the map; when the map is built, the raster map information of the entire map is used to detect straight lines in the form of pictures and determine whether they are map directions; Step 2: Automatically remove laser noise interference and abstract the straight line features of the wall; For the laser radar data noise caused by robot motion vibration or positioning error, the limited information characteristics of the grid map are used to extract a complete outer contour edge of the actual map, and based on this, the laser noise interference outside the outer contour is removed; and the straight line detection method is further used to abstract the wall features; Step 3: Manually remove map noise and add obstacles; For dynamic situations, that is, when there is interference from moving objects, resulting in map noise in the map construction, a separate function interface is opened to specify the area where noise should be removed or the area where obstacles need to be added, and to perform replacement operations on the specified area, which is further convenient for users to use; The specific process of the first step is as follows: 1) Convert laser data from sensor_msgs / LaserScan format into spatial point (x, y, z) format; 2) Select reference points from the spatial points in the order of storage, and calculate the slope of the straight line one by one. If the slope is within the threshold, continue to calculate backward and store the point in the container, otherwise move the reference point; 3) Take out the straight line with the most points in the laser data, check the length of the straight line, and if it is greater than the set threshold, it is considered that the map direction has been found; 4) According to the map direction, the coordinate system of the grid map is rotated, and the map direction is no longer modified during the map construction process; 5) In the map use stage, the entire map is binarized, and then Canny edge detection is performed, and the image layer subtraction operation is performed on the original raster map and the processed map to obtain the traversable area that is useful to the user; 6) Perform fast straight line detection on the passable area, make statistics on the detected straight line set, obtain the straight line with the highest slope, determine the direction to find the map, and repeat step 4).

2. The method for post-processing and representing a raster map for human-computer interaction according to claim 1, characterized in that: The specific process of the second step is as follows: A. Set the barrier-free area in the grid map to 0, the location with obstacles to 100, and the unknown area to -1 for binarization processing to obtain an image containing only barrier-free areas and unknown areas; B. Perform edge detection on the binarized image to obtain a binary image with a grayscale value of 254 at the border and 0 in other areas. Subtract the original image from the binary image to obtain the map outline. C. Perform fast straight line detection on the processed map and put the straight lines above the detection threshold into the container; D. Perform pixel detection on both sides of the straight lines in the set. Based on the detection results, replace the straight lines in the set and the pixel values ​​on both sides of them to obtain a map after removing the laser Gaussian noise and abstracting the walls.

3. The method for post-processing and representing a raster map for human-computer interaction according to claim 1, characterized in that: The specific process of the third step is as follows: a) Convert the coordinates of the area to be removed to the corresponding array subscript. For non-horizontal and vertical rectangular areas, the straight lines need to be discretized; b)Replace all array elements in the area with empty to remove noise points, and assign a value of 100 to indicate obstacles.