Positioning correction method, device, lawn mowing robot and storage medium
Through time synchronization processing of the binocular images, inertial positioning data, satellite data and wheel speed data collected by the lawn mower robot, the matching relationship and depth value of the feature points are determined, multi-sensor data fusion is realized, and the problem caused by obstacles caused by the lawn mower robot is solved. eliminates the problem of inaccurate positioning and improves mowing efficiency and accuracy.
Patent Information
- Application Number
- CN202211074121.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-02
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-09-02
AI Technical Summary
During the lawn mowing operation, the lawn mower robot is prone to inaccurate positioning due to obstruction by obstacles, which affects the lawn mowing efficiency.
Binocular images, inertial positioning data, satellite data and wheel speed data are used for time synchronization processing to determine the matching relationship and depth value of feature points. The position of the lawn mower robot is corrected through multi-sensor data fusion to avoid inaccurate positioning caused by obstacle interference. .
It improves the positioning accuracy of the lawn mower robot, improves the mowing efficiency, and ensures the integrity and quality of the mowing operation.
Smart Images

Figure CN115493579B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a positioning correction method, device, lawn mowing robot and storage medium. Background Art
[0002] Mowing robots are widely used in maintaining lawns in home gardens and mowing large lawns. Mowing robots integrate technologies such as motion control, multi-sensor fusion, and path planning. In order to control the mowing robot to achieve mowing operations, it is necessary to plan the mowing path of the mowing robot so that it can completely cover all operating areas.
[0003] However, when the mowing robot is performing mowing operations, it is easy to lose positioning. For example, if there is an obstacle blocking a certain position in the mowing area, the positioning of the mowing robot will be inaccurate, which will affect the subsequent mowing operations. Summary of the invention
[0004] The embodiments of the present application provide a positioning correction method, device, lawn mowing robot and storage medium, which can improve the accuracy of positioning the lawn mowing robot.
[0005] In a first aspect, an embodiment of the present application provides a positioning correction method, comprising:
[0006] When the mowing robot performs mowing operations, binocular images, inertial positioning data, satellite data, and wheel speed data are collected over a continuous period of time;
[0007] Perform time synchronization processing on the collected binocular images, inertial positioning data, satellite data and wheel speed data;
[0008] Determine the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point;
[0009] The position of the mowing robot is corrected according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data.
[0010] Optionally, in some embodiments, the position of the mowing robot is corrected according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data, and the synchronized wheel speed data, including:
[0011] updating the timestamps of the synchronized inertial positioning data and the synchronized wheel speed data according to the feature point matching relationship;
[0012] Performing pre-integration processing on the updated inertial positioning data and the updated wheel speed data;
[0013] Based on the updated satellite data, single-point positioning of the lawn mowing robot is performed;
[0014] According to the pre-integration results and single-point positioning results, a positioning factor graph corresponding to multiple sensors is constructed;
[0015] The position of the lawn mowing robot is corrected based on the positioning factor graph and the depth value corresponding to each feature point.
[0016] Optionally, in some embodiments, constructing a positioning factor graph corresponding to multiple sensors according to the feature point matching relationship, the pre-integration result and the single point positioning result includes:
[0017] Constructing a positioning error term corresponding to the single point positioning result;
[0018] Construct a pre-integration error term corresponding to the pre-integration result;
[0019] Based on the positioning error term and the pre-integration error term, a positioning factor graph corresponding to the multi-sensor is constructed.
[0020] Optionally, in some embodiments, the correcting the position of the mowing robot based on the positioning factor graph and the depth value corresponding to each feature point includes:
[0021] Performing nonlinear optimization on the positioning factor graph to obtain a position estimation result corresponding to the lawn mowing robot;
[0022] Based on the position estimation result, determining an image key frame in the binocular image;
[0023] The position of the lawn mowing robot is corrected according to the image key frame.
[0024] Optionally, in some embodiments, the correcting the position of the lawn mowing robot according to the image key frame comprises:
[0025] According to the image key frames, an image map corresponding to the current mowing environment is established;
[0026] Detecting the image map based on a preset point cloud map;
[0027] When the detection result meets the preset conditions, the position of the lawn mowing robot is corrected.
[0028] Optionally, in some embodiments, the time synchronization processing of the collected binocular images, inertial positioning data, satellite data and wheel speed data includes:
[0029] Get the timestamp corresponding to each set of binocular images;
[0030] Based on the timestamp corresponding to each set of binocular images, the inertial positioning data, satellite data and wheel speed data are time-aligned with the corresponding binocular images.
[0031] Optionally, in some embodiments, determining a feature point matching relationship between adjacent synchronized binocular images and a depth value corresponding to each feature point includes:
[0032] Identify feature point information corresponding to feature points of the K-th frame of the binocular image and feature point information corresponding to feature points of the K-1-th frame of the binocular image, where K is an integer greater than 1;
[0033] Based on the identified feature point information, determining a feature point matching relationship between adjacent synchronized binocular images;
[0034] The binocular image is input into a preset depth recognition network to obtain the depth value of each feature point in the binocular image.
[0035] In a second aspect, an embodiment of the present application provides a positioning correction device, comprising:
[0036] The acquisition module is used to collect binocular images, inertial positioning data, satellite data and wheel speed data in a continuous time when the mowing robot performs mowing operations;
[0037] The synchronization module is used to perform time synchronization processing on the collected binocular images, inertial positioning data, satellite data and wheel speed data;
[0038] A determination module is used to determine the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point;
[0039] The correction module is used to correct the position of the mowing robot according to the matching relationship of the feature points, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data.
[0040] In the embodiment of the present application, when the lawn mower robot performs a lawn mowing operation, binocular images, inertial positioning data, satellite data and wheel speed data are collected in a continuous time, and then the collected binocular images, inertial positioning data, satellite data and wheel speed data are time-synchronized. Next, the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point are determined. Finally, the position of the lawn mower robot is corrected according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data. In the positioning correction scheme provided in the present application, the positioning of the lawn mower robot is corrected by utilizing the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point, and integrating the inertial positioning data, satellite data and wheel speed data, so as to avoid the problem of inaccurate positioning of the lawn mower robot when it is interfered by obstacles. Thus, the accuracy of the positioning of the lawn mower robot can be improved, thereby improving the mowing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1a is a schematic diagram of a scenario of a positioning correction method provided in an embodiment of the present application;
[0043] Figure 1b is a flow chart of a positioning correction method provided in an embodiment of the present application;
[0044] Figure 2 is a structural schematic diagram of a positioning correction device provided in an embodiment of the present application;
[0045] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0047] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for both fixing and circuit connection.
[0048] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0049] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0050] Embodiments of the present application provide a positioning correction method, device, lawn mowing robot and storage medium.
[0051] The positioning correction device can be integrated in the microcontroller unit (MCU) of the lawn mower robot, or in an intelligent terminal or server. The MCU is also called a single chip microcomputer or a single chip microcomputer, which appropriately reduces the frequency and specifications of the central processing unit (CPU), and forms a chip-level computer with peripheral interfaces such as memory, timer, USB, analog-to-digital conversion / digital-to-analog conversion, UART, PLC, DMA, etc., to make different combination controls for different application occasions. The lawn mower robot can walk automatically, prevent collisions, automatically return to charge within the range, has safety detection and battery power detection, has a certain climbing ability, and is particularly suitable for lawn mowing and maintenance in home courtyards, public green spaces and other places. Its characteristics are: automatic mowing, cleaning grass clippings, automatic rain shelter, automatic charging, automatic obstacle avoidance, small size, electronic virtual fence, network control, etc.
[0052] The terminal may be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication. The server may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. This application does not limit this.
[0053] For example, see Figure 1a The present application provides a mowing system, including a mowing robot 10, a server 20 and a user device 30 that are connected to each other by communication. The user can control the movement of the mowing robot 10 through the user device 30 in advance, set a mowing area based on the movement trajectory, and synchronize the data corresponding to the mowing area to the mowing robot 10 and the server 20.
[0054] When the mowing robot 10 is performing mowing operations in the mowing area, binocular images, inertial positioning data, satellite data and wheel speed data can be collected in a continuous time. For example, the binocular images, inertial positioning data, satellite data and wheel speed data of the entire mowing operation process can be collected, and the binocular images, inertial positioning data, satellite data and wheel speed data within a certain period of time can also be collected. Subsequently, the collected binocular images, inertial positioning data, satellite data and wheel speed data are time-synchronized, and then the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point are determined. Finally, the position of the mowing robot is corrected according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data.
[0055] In the positioning correction scheme provided in the present application, the positioning of the lawn mower robot is corrected by utilizing the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point, and integrating inertial positioning data, satellite data and wheel speed data, so as to avoid the problem of inaccurate positioning of the lawn mower robot when it is disturbed by obstacles. In this way, the accuracy of the positioning of the lawn mower robot can be improved, thereby improving the mowing efficiency.
[0056] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.
[0057] A positioning correction method comprises: when a lawn mowing robot performs a lawn mowing operation, collecting binocular images, inertial positioning data, satellite data and wheel speed data in a continuous time; performing time synchronization processing on the collected binocular images, inertial positioning data, satellite data and wheel speed data; determining a feature point matching relationship between adjacent synchronized binocular images and a depth value corresponding to each feature point; and correcting the position of the lawn mowing robot according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data.
[0058] See also Figure 1b , Figure 1b This is a flow chart of a positioning correction method provided in an embodiment of the present application. The specific flow of the positioning correction method can be as follows:
[0059] 101. When the mowing robot performs mowing operations, binocular images, inertial positioning data, satellite data and wheel speed data are collected over a continuous period of time.
[0060] Among them, the binocular image is based on the parallax principle and uses imaging equipment to obtain two images of the object to be measured from different positions, that is, the binocular image can specifically include a left-eye image and a right-eye image. The inertial positioning data can be collected by an inertial positioning unit, and the inertial positioning data can include the three-axis acceleration information and three-axis angular velocity information of the lawn mower robot, etc. The satellite data can be collected by a receiver, and the wheel speed data can be collected by a wheel speed meter, and the wheel speed data can include the distance traveled by the lawn mower robot and the rotation speed corresponding to each section of the tire, etc.
[0061] Optionally, in some embodiments, binocular images, inertial positioning data, satellite data and wheel speed data of the entire mowing operation process can be collected, and binocular images, inertial positioning data, satellite data and wheel speed data of part of the mowing operation process can also be collected. For example, when it is detected that the satellite positioning signal of the mowing robot is less than a preset value, the data collection operation is triggered, that is, the binocular images, inertial positioning data, satellite data and wheel speed data within a continuous time are collected.
[0062] 102. Perform time synchronization processing on the collected binocular images, inertial positioning data, satellite data and wheel speed data.
[0063] Since different sensors collect data at different speeds, the collected binocular images, inertial positioning data, satellite data, and wheel speed data may be out of sync in time, which is not convenient for subsequent joint positioning and correction of the position of the mowing robot. Therefore, in the present application, it is necessary to perform time synchronization processing on the collected binocular images, inertial positioning data, satellite data, and wheel speed data. Optionally, in some embodiments, the inertial positioning data, satellite data, and wheel speed data may be time synchronized based on the timestamp of the binocular image, that is, the step of "time synchronization processing on the collected binocular images, inertial positioning data, satellite data, and wheel speed data" may specifically include:
[0064] (11) Obtain the timestamp corresponding to each set of binocular images;
[0065] (12) Based on the timestamp corresponding to each set of binocular images, the inertial positioning data, satellite data, and wheel speed data are time-aligned with the corresponding binocular images.
[0066] It should be noted that the binocular camera captures a group of binocular images. Therefore, in the present application, the timestamp of the left image or the timestamp of the right image in the same group of binocular images can be used to time align the inertial positioning data, satellite data and wheel speed data with the corresponding binocular images.
[0067] 103. Determine a feature point matching relationship between adjacent synchronized binocular images and a depth value corresponding to each feature point.
[0068] In the present application, feature points are pixels containing special information in the binocular image, such as pixels containing position information, pixels containing angle information, or connection points of object contours (also called corner points), etc. The position of the lawn mower robot can be subsequently corrected based on the feature point matching relationship and the depth value. The feature point matching relationship can be used to assist in determining the relative position of the lawn mower robot and the target (i.e., the object in the image), and the depth value can be used to assist in determining the distance between the lawn mower robot and the target (i.e., the object in the image).
[0069] Optionally, in some embodiments, the feature point may be a corner point, and the feature point matching relationship is a corner point matching relationship. It should be noted that corner point matching refers to finding the corresponding relationship between feature pixel points of two images, so as to determine the positional relationship between the two images. Corner point matching can be divided into the following three steps:
[0070] Step 1: Find the most easily identifiable pixel points (corner points) in the two images to be matched, such as the edge points of objects with rich textures.
[0071] Step 2: For the detected corner points, use some mathematical features to describe them, such as gradient histogram, local random binary features, etc.
[0072] Step 3: Use the descriptors of each corner point to determine their correspondence in the two images.
[0073] At the same time, the synchronized binocular image can also be input into a preset depth recognition network to output the depth value corresponding to each feature point in the synchronized binocular image. That is, optionally, in some embodiments, the step of “determining the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point” can specifically include:
[0074] (21) identifying feature point information corresponding to feature points of the K-th frame binocular image and feature point information corresponding to feature points of the K-1-th frame binocular image;
[0075] (22) determining a feature point matching relationship between adjacent synchronized binocular images based on the identified feature point information;
[0076] (23) The binocular image is input into a preset depth recognition network to obtain the depth value of each feature point in the binocular image.
[0077] Among them, K is an integer greater than 1. For example, feature point information corresponding to feature points of the left-eye image of the second frame and feature point information corresponding to feature points of the left-eye image of the first frame are identified. The feature point information may be descriptor information, and the descriptor information may be gradient histogram information. The descriptor information is used to describe the number of occurrences of the gradient direction in the local area of the image. Of course, the descriptor information may be feature transformation information or accelerated robust feature information, which may be selected according to actual conditions and will not be elaborated here.
[0078] In addition, after the binocular image is input into the preset depth recognition network, the first output is the disparity map corresponding to the binocular image. The disparity map refers to the position deviation of the pixels of the same scene imaged under two cameras. Because the two binocular cameras are usually placed in water, the position deviation is generally reflected in the horizontal direction. For example, the X point in the scene is the horizontal coordinate (x coordinate) in the left camera, and the (x+d) coordinate in the right camera. Among them, d is the value of the x coordinate point in the disparity map. Then, the baseline and focal length of the acquisition device (such as a binocular camera) are obtained. Then, based on the sample disparity map, baseline and focal length, the depth value corresponding to each feature point in the binocular image is calculated.
[0079] It should be noted that in the present application, the execution order of the step of "determining the matching relationship of feature points between adjacent synchronized binocular images" and the step of "determining the depth value corresponding to each feature point" is not limited, and can be set according to actual conditions.
[0080] 104. Correct the position of the mowing robot according to the matching relationship of the feature points, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data, and the synchronized wheel speed data.
[0081] Since the binocular image, the inertial positioning data after synchronization, the satellite data after synchronization and the wheel speed data after synchronization are respectively collected by different sensors, in order to correct the position of the mowing robot later, it is necessary to fuse the collected data. Optionally, in some embodiments of the present application, the collected data can be fused through a factor graph to correct the position of the mowing robot. That is, the step of "correcting the position of the mowing robot according to the feature point matching relationship, the depth value corresponding to each feature point, the inertial positioning data after synchronization, the satellite data after synchronization and the wheel speed data after synchronization" can specifically include:
[0082] (31) updating the timestamps of the synchronized inertial positioning data and the synchronized wheel speed data according to the feature point matching relationship;
[0083] (32) performing pre-integration processing on the updated inertial positioning data and the updated wheel speed data;
[0084] (33) Based on the updated satellite data, the lawn mowing robot is positioned at a single point;
[0085] (34) constructing a positioning factor graph corresponding to multiple sensors based on the pre-integration results and the single point positioning results;
[0086] (35) Based on the positioning factor graph and the depth value corresponding to each feature point, the position of the lawn mowing robot is corrected.
[0087] Among them, factor graph, as a modeling tool for representing factor decomposition, is simple and universal, and has wide application value in the fields of coding, statistics, signal processing and artificial intelligence. Factor graph is a probabilistic graphical model. Unlike Bayesian network or Markov random field, it is represented by a bipartite graph consisting of variables and factor nodes. In this application, the sensor measurement value is used as a variable node, and the probabilistic relationship between the measurement value and the position and posture of the mowing robot is used as a factor node to construct a positioning factor graph.
[0088] Since the sampling frequency of the inertial detection unit is higher than that of the binocular camera, and the time alignment is performed based on the time of the binocular image in time synchronization, it is necessary to pre-integrate the inertial positioning data after synchronization and the wheel speed data after synchronization. It should be noted that since the feature points matched in different binocular images may be smaller than the recognized feature points, for example, the number of recognized feature points in the first frame of the binocular image is 100, the number of recognized feature points in the second frame of the binocular image is 150, and the number of feature points matching between the first frame of the binocular image and the second frame of the binocular image is 60, that is, based on the timestamp of the matched feature points, the inertial positioning data after synchronization and the wheel speed data after synchronization are pre-integrated. The timestamp of the data is updated, and the pre-integration solution results of the inertial positioning data after synchronization and the wheel speed data after synchronization are both information such as speed and acceleration. Further, based on the binocular image, the feature point matching relationship, the pre-integration result and the error corresponding to the single-point positioning result can be established, and then the error of the positioning factor graph is solved by a nonlinear optimization algorithm to obtain the estimated position of the lawn mower robot in the world coordinate system. Finally, the position of the lawn mower robot is corrected by the estimated position, that is, optionally, in some embodiments, the step of "constructing a positioning factor graph corresponding to multiple sensors according to the feature point matching relationship, the pre-integration result and the single-point positioning result" can specifically include:
[0089] (41) constructing a positioning error term corresponding to the single point positioning result;
[0090] (42) constructing a pre-integration error term corresponding to the pre-integration result;
[0091] (43) Based on the positioning error term and the pre-integration error term, a positioning factor graph corresponding to multiple sensors is constructed.
[0092] For example, specifically, the lawn mowing robot can be single-point positioned using single-point positioning technology, thereby determining the single-point positioning corresponding to each binocular image, and then, the parameter estimation method or the model method can be used to estimate the error of each single-point positioning, thereby constructing the error term corresponding to the single-point positioning result; for the pre-integration result, which includes the pre-integration result corresponding to the inertial positioning data and the pre-integration result corresponding to the wheel speed data, the acceleration error model and the gyroscope error model can be used to construct the error term corresponding to the inertial positioning data and the error term corresponding to the wheel speed data, and finally, based on the positioning error term and the pre-integration error term, a positioning factor graph corresponding to the multiple sensors is constructed.
[0093] Next, the positioning factor graph may be subjected to nonlinear optimization solution, such as using the least square method to solve the positioning factor graph, and then the solution result may be subjected to marginalized data residual processing to estimate the estimated position of the lawn mower robot, and the position of the lawn mower robot may be corrected based on the estimated position, that is, optionally, in some embodiments, the step of "correcting the position of the lawn mower robot based on the positioning factor graph and the depth value corresponding to each feature point" may specifically include:
[0094] (51) Perform nonlinear optimization on the positioning factor graph to obtain the position estimation result corresponding to the lawn mowing robot;
[0095] (52) determining an image key frame in the binocular image based on the position estimation result;
[0096] (53) Correct the position of the lawn mowing robot based on the image key frames.
[0097] For example, specifically, according to the position estimation result, the binocular image corresponding to the change in the positioning of the lawn mower robot is determined, the binocular image with the position change is determined as an image key frame, and a corresponding image map is established based on the image key frame. Finally, the position of the lawn mower robot is corrected based on the image map. That is, optionally, in some embodiments, the step of "correcting the position of the lawn mower robot according to the image key frame" may specifically include:
[0098] (61) establishing an image map corresponding to the current mowing environment according to the image key frames;
[0099] (62) Detecting the image map based on a preset point cloud map;
[0100] (63) When the detection result meets the preset conditions, the position of the lawn mowing robot is corrected.
[0101] For example, specifically, a preset image bag-of-words model is obtained, the binocular image is input into the image bag-of-words model, and the image category corresponding to each binocular image is output. Then, based on the image category, an image map corresponding to the current mowing environment is established. Next, the image map is detected based on the preset point cloud map, such as a geometric consistency test. When a closed loop is detected, a closed loop test is performed. Finally, the position of the mowing robot is corrected according to the closed loop error corresponding to the closed loop test.
[0102] In the embodiment of the present application, when the lawn mowing robot performs a lawn mowing operation, binocular images, inertial positioning data, satellite data and wheel speed data are collected in a continuous time, and then the collected binocular images, inertial positioning data, satellite data and wheel speed data are time-synchronized. Next, the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point are determined. Finally, the position of the lawn mowing robot is corrected according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data. In the positioning correction scheme provided in the present application, the positioning of the lawn mowing robot is corrected by utilizing the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point, and integrating the inertial positioning data, satellite data and wheel speed data, so as to avoid the problem of inaccurate positioning of the lawn mowing robot when it is interfered by obstacles. Thus, the accuracy of the positioning of the lawn mowing robot can be improved, thereby improving the mowing efficiency.
[0103] In order to better implement the positioning correction method of the embodiment of the present application, the embodiment of the present application also provides a positioning correction device based on the above. The meanings of the terms are the same as those in the above positioning correction method, and the specific implementation details can refer to the description in the method embodiment.
[0104] See also Figure 2 , Figure 2 The schematic diagram of the structure of the positioning correction device provided in the embodiment of the present application, wherein the positioning correction device may include a collection module 201, a synchronization module 202, a determination module 203 and a correction module 204, which may be specifically as follows:
[0105] The acquisition module 201 is used to acquire binocular images, inertial positioning data, satellite data and wheel speed data in a continuous time when the mowing robot performs mowing operations.
[0106] For example, the acquisition module 201 can acquire binocular images, inertial positioning data, satellite data, and wheel speed data during the entire mowing operation, or can acquire binocular images, inertial positioning data, satellite data, and wheel speed data during a portion of the mowing operation.
[0107] The synchronization module 202 is used to perform time synchronization processing on the collected binocular images, inertial positioning data, satellite data and wheel speed data.
[0108] Since different sensors collect data at different speeds, the collected binocular images, inertial positioning data, satellite data and wheel speed data may be out of sync in time, which makes it difficult to perform subsequent joint positioning and correct the position of the lawn mowing robot. Therefore, in the present application, it is necessary to perform time synchronization processing on the collected binocular images, inertial positioning data, satellite data and wheel speed data. Optionally, in some embodiments, the synchronization module 202 can be specifically used to: obtain the timestamp corresponding to each group of binocular images; based on the timestamp corresponding to each group of binocular images, time align the inertial positioning data, satellite data and wheel speed data with the corresponding binocular images.
[0109] The determination module 203 is used to determine the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point.
[0110] Optionally, in some embodiments, the determination module 203 can be specifically used to: identify feature point information corresponding to feature points of the Kth frame binocular image and feature point information corresponding to feature points of the K-1th frame binocular image; determine the feature point matching relationship between adjacent synchronized binocular images based on the identified feature point information; input the binocular image into a preset depth recognition network to obtain the depth value of each feature point in the binocular image.
[0111] The correction module 204 is used to correct the position of the mowing robot according to the matching relationship of the feature points, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data.
[0112] Since the binocular image, the inertial positioning data after synchronization, the satellite data after synchronization, and the wheel speed data after synchronization are collected by different sensors respectively, in order to correct the position of the mowing robot later, it is necessary to perform data fusion on the collected data. Optionally, in some embodiments of the present application, the correction module 204 may specifically include:
[0113] An updating unit, used for updating the timestamps of the synchronized inertial positioning data and the synchronized wheel speed data according to the feature point matching relationship;
[0114] A processing unit, used for pre-integrating the updated inertial positioning data and the updated wheel speed data;
[0115] A positioning unit, used for performing single-point positioning of the lawn mowing robot based on updated satellite data;
[0116] A construction unit, used for constructing a positioning factor graph corresponding to multiple sensors according to the pre-integration result and the single point positioning result;
[0117] The correction unit is used to correct the position of the mowing robot based on the positioning factor graph and the depth value corresponding to each feature point.
[0118] Optionally, in some embodiments of the present application, the construction unit can be specifically used to: construct a positioning error term corresponding to a single-point positioning result; construct a pre-integration error term corresponding to the pre-integration result; and construct a positioning factor graph corresponding to multiple sensors based on the positioning error term and the pre-integration error term.
[0119] Optionally, in some embodiments of the present application, the correction unit may specifically include:
[0120] A solver unit is used to perform nonlinear optimization on the positioning factor graph to obtain a position estimation result corresponding to the lawn mowing robot;
[0121] A determination subunit, used to determine an image key frame in the binocular image based on the position estimation result;
[0122] The correction subunit is used to correct the position of the mowing robot according to the image key frame.
[0123] Optionally, in some embodiments of the present application, the correction subunit can be specifically used to: establish an image map corresponding to the current mowing environment based on the image key frames; detect the image map based on a preset point cloud map; and correct the position of the mowing robot when the detection result meets preset conditions.
[0124] The acquisition module 201 of the embodiment of the present application acquires binocular images, inertial positioning data, satellite data and wheel speed data in a continuous time when the mowing robot performs mowing operations. Then, the processing module 202 performs time synchronization processing on the acquired binocular images, inertial positioning data, satellite data and wheel speed data. Next, the determination module 203 determines the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point. Finally, the correction module 204 corrects the position of the mowing robot according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data. In the positioning correction scheme provided in the present application, the positioning of the mowing robot is corrected by utilizing the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point, and integrating the inertial positioning data, satellite data and wheel speed data, so as to avoid the problem of inaccurate positioning of the mowing robot when it is disturbed by obstacles. Thus, the accuracy of the positioning of the mowing robot can be improved, thereby improving the mowing efficiency.
[0125] In addition, the present application also provides a lawn mowing robot. Figure 3 As shown, it shows a schematic diagram of the structure of the lawn mowing robot involved in the embodiment of the present application, specifically:
[0126] The lawn mowing robot may include components such as a control module 301, a travel mechanism 302, a cutting module 303, and a power supply 304. Those skilled in the art will appreciate that Figure 3 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0127] The control module 301 is the control center of the lawn mower robot. The control module 301 may specifically include components such as a central processing unit (CPU), a memory, an input / output port, a system bus, a timer / counter, a digital-to-analog converter, and an analog-to-digital converter. The CPU executes various functions of the lawn mower robot and processes data by running or executing software programs and / or modules stored in the memory, and calling data stored in the memory; preferably, the CPU may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the CPU.
[0128] The memory can be used to store software programs and modules. The CPU executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory may also include a memory controller to provide the CPU with access to the memory.
[0129] The traveling mechanism 302 is electrically connected to the control module 301 and is used to respond to the control signal transmitted by the control module 301 to adjust the traveling speed and traveling direction of the lawn mower robot, thereby realizing the self-moving function of the lawn mower robot.
[0130] The cutting module 303 is electrically connected to the control module 301 and is used to respond to the control signal transmitted by the control module to adjust the height and rotation speed of the cutting disc to achieve mowing operation.
[0131] The power supply 304 can be logically connected to the control module 301 through a power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system. The power supply 304 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0132] Although not shown, the lawn mowing robot may also include a communication module, a sensor module, a prompt module, etc., which will not be described in detail here.
[0133] The communication module is used to receive and send signals during the process of sending and receiving information. By establishing a communication connection with the user equipment, base station or server, the signal sending and receiving between the user equipment, base station or server is realized.
[0134] The sensor module is used to collect internal environment information or external environment information, and feed the collected environment data back to the control module for decision-making, so as to realize the precise positioning and intelligent obstacle avoidance function of the lawn mowing robot. Optionally, the sensor may include: ultrasonic sensor, infrared sensor, collision sensor, rain sensor, lidar sensor, inertial measurement unit, wheel speed meter, image sensor, position sensor and other sensors, which are not limited to this.
[0135] The prompt module is used to prompt the user of the current working status of the lawn mower robot. In this solution, the prompt module includes but is not limited to indicator lights, buzzers, etc. For example, the lawn mower robot can prompt the user of the current power status, motor working status, sensor working status, etc. through indicator lights. For another example, when the lawn mower robot is detected to be faulty or stolen, an alarm prompt can be implemented through a buzzer.
[0136] Specifically in this embodiment, the processor in the control module 301 will load the executable files corresponding to the processes of one or more application programs into the memory according to the following instructions, and the processor will run the application programs stored in the memory to implement various functions, as follows:
[0137] When the lawn mowing robot performs a lawn mowing operation, binocular images, inertial positioning data, satellite data and wheel speed data are collected in a continuous time; the collected binocular images, inertial positioning data, satellite data and wheel speed data are time-synchronized; the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point are determined; and the position of the lawn mowing robot is corrected according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data.
[0138] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0139] In the embodiment of the present application, when the lawn mowing robot performs a lawn mowing operation, binocular images, inertial positioning data, satellite data and wheel speed data are collected in a continuous time, and then the collected binocular images, inertial positioning data, satellite data and wheel speed data are time-synchronized. Next, the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point are determined. Finally, the position of the lawn mowing robot is corrected according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data. In the positioning correction scheme provided in the present application, the positioning of the lawn mowing robot is corrected by utilizing the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point, and integrating the inertial positioning data, satellite data and wheel speed data, so as to avoid the problem of inaccurate positioning of the lawn mowing robot when it is interfered by obstacles. Thus, the accuracy of the positioning of the lawn mowing robot can be improved, thereby improving the mowing efficiency.
[0140] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0141] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the positioning correction methods provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0142] When the lawn mowing robot performs a lawn mowing operation, binocular images, inertial positioning data, satellite data and wheel speed data are collected in a continuous time; the collected binocular images, inertial positioning data, satellite data and wheel speed data are time-synchronized; the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point are determined; and the position of the lawn mowing robot is corrected according to the feature point matching relationship, the depth value corresponding to each feature point, the synchronized inertial positioning data, the synchronized satellite data and the synchronized wheel speed data.
[0143] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0144] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0145] Since the instructions stored in the storage medium can execute the steps in any positioning correction method provided in the embodiments of the present application, the beneficial effects that can be achieved by any positioning correction method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0146] The above is a detailed introduction to a positioning correction method, device, lawn mowing robot and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A positioning correction method, characterized in that: include: When the mowing robot performs mowing operations, binocular images, inertial positioning data, satellite data, and wheel speed data are collected over a continuous period of time; Perform time synchronization processing on the collected binocular images, inertial positioning data, satellite data and wheel speed data; Determine the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point; updating the timestamps of the synchronized inertial positioning data and the synchronized wheel speed data according to the feature point matching relationship; Performing pre-integration processing on the updated inertial positioning data and the updated wheel speed data; Based on the updated satellite data, single-point positioning of the lawn mowing robot is performed; According to the pre-integration results and single-point positioning results, a positioning factor graph corresponding to multiple sensors is constructed; The position of the lawn mowing robot is corrected based on the positioning factor graph and the depth value corresponding to each feature point.
2. The method according to claim 1, characterized in that: The method of constructing a positioning factor graph corresponding to multiple sensors according to the pre-integration result and the single point positioning result includes: Constructing a positioning error term corresponding to the single point positioning result; Construct a pre-integration error term corresponding to the pre-integration result; Based on the positioning error term and the pre-integration error term, a positioning factor graph corresponding to the multi-sensor is constructed.
3. The method according to claim 1, characterized in that The method of correcting the position of the mowing robot based on the positioning factor graph and the depth value corresponding to each feature point includes: Performing nonlinear optimization on the positioning factor graph to obtain a position estimation result corresponding to the lawn mowing robot; Based on the position estimation result, determining an image key frame in the binocular image; The position of the lawn mowing robot is corrected according to the image key frame.
4. The method according to claim 3, characterized in that The step of correcting the position of the lawn mowing robot according to the image key frame comprises: According to the image key frames, an image map corresponding to the current mowing environment is established; Detecting the image map based on a preset point cloud map; When the detection result meets the preset conditions, the position of the lawn mowing robot is corrected.
5. The method according to any one of claims 1 to 4, characterized in that: The time synchronization processing of the collected binocular images, inertial positioning data, satellite data and wheel speed data includes: Get the timestamp corresponding to each set of binocular images; Based on the timestamp corresponding to each set of binocular images, the inertial positioning data, satellite data and wheel speed data are time-aligned with the corresponding binocular images.
6. The method according to any one of claims 1 to 4, characterized in that: The determining of the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point includes: Identify feature point information corresponding to feature points of the K-th frame of the binocular image and feature point information corresponding to feature points of the K-1-th frame of the binocular image, where K is an integer greater than 1; Based on the identified feature point information, determining a feature point matching relationship between adjacent synchronized binocular images; The binocular image is input into a preset depth recognition network to obtain the depth value of each feature point in the binocular image.
7. A positioning correction device, characterized in that: include: The acquisition module is used to collect binocular images, inertial positioning data, satellite data and wheel speed data in a continuous time when the mowing robot performs mowing operations; The synchronization module is used to perform time synchronization processing on the collected binocular images, inertial positioning data, satellite data and wheel speed data; A determination module is used to determine the feature point matching relationship between adjacent synchronized binocular images and the depth value corresponding to each feature point; The correction module is used to update the timestamps of the synchronized inertial positioning data and the synchronized wheel speed data according to the feature point matching relationship; perform pre-integration processing on the updated inertial positioning data and the updated wheel speed data; perform single-point positioning on the mowing robot based on the updated satellite data; construct a positioning factor graph corresponding to multiple sensors according to the pre-integration result and the single-point positioning result; and correct the position of the mowing robot based on the positioning factor graph and the depth value corresponding to each feature point.
8. A lawn mowing robot, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the positioning correction method as described in any one of claims 1-6 are implemented.
9. A storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the steps of the positioning correction method as described in any one of claims 1-6 are implemented.
