Station position compensation and station docking method of mobile robot, terminal and medium
By predicting the docking deviation between the mobile robot and the workstation, and using the multi-output Gaussian process regression model to compensate for the workstation position, the problem of large docking errors between the mobile robot and the workstation is solved, and the docking accuracy and efficiency are improved.
Patent Information
- Application Number
- CN202410524063.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-09-10
Smart Images

Figure CN118625798A
Abstract
Description
Technical Field
[0001] The present application relates to the field of automatic control technology, and in particular to a workstation position compensation and workstation docking method, terminal and medium of a mobile robot. Background Art
[0002] In automated logistics equipment, mobile robots have become an ideal tool for material transportation and have been applied to a variety of industries in social production. When receiving or unloading goods, mobile robots need to dock accurately with designated workstations. If there is a large docking error between the mobile robot and the workstation during the docking process, the docking time of the mobile robot will be greatly increased. Therefore, how to reduce the docking error between the mobile robot and the workstation is an urgent problem to be solved. Summary of the invention
[0003] The present application provides a workstation position compensation and workstation docking method, terminal and medium for a mobile robot.
[0004] A technical solution adopted in the present application is to provide a method for compensating the workstation position of a mobile robot, the method comprising:
[0005] In response to the target mobile robot not having a historical docking with the target workstation, and at least two other mobile robots having a historical docking with the target workstation, acquiring a common historical docking workstation between the target mobile robot and the other mobile robots;
[0006] Determine a predicted docking deviation between the target mobile robot and the target station based on a first docking deviation between the target mobile robot and the common historical docking station, a second docking deviation between other mobile robots and the common historical docking station, and a third docking deviation between other mobile robots and the target station;
[0007] The predicted docking deviation is used to compensate the initial position of the target workstation in the map to obtain the compensated position of the target workstation in the map.
[0008] Optionally, determining a predicted docking deviation between the target mobile robot and the target station based on a first docking deviation between the target mobile robot and the common historical docking station, a second docking deviation between other mobile robots and the common historical docking station, and a third docking deviation between other mobile robots and the target station includes:
[0009] Determining an independent variable of a regression model to be determined according to the first docking deviation and the second docking deviation;
[0010] According to the third docking deviation, the dependent variable of the regression model to be determined is determined;
[0011] Perform a multi-output Gaussian process regression operation on the regression model to be determined to obtain a regression model;
[0012] Using the regression model, the predicted docking deviations were determined.
[0013] Optionally, the other mobile robots include at least a first mobile robot and a second mobile robot;
[0014] The second docking deviation includes at least a fourth docking deviation between the first mobile robot and the common historical docking station, and a fifth docking deviation between the second mobile robot and the common historical docking station;
[0015] The third docking deviation includes at least a sixth docking deviation between the first mobile robot and the target station, and a seventh docking deviation between the second mobile robot and the target station;
[0016] Determining the independent variables of the regression model to be determined according to the first docking deviation and the second docking deviation includes:
[0017] acquiring a first Mahalanobis distance between the first docking deviation and the fourth docking deviation, and a second Mahalanobis distance between the first docking deviation and the fifth docking deviation;
[0018] The first Mahalanobis distance and the second Mahalanobis distance are used as independent variables;
[0019] According to the third docking deviation, the dependent variables of the regression model to be determined are determined, including:
[0020] The sixth docking deviation and the seventh docking deviation were used as dependent variables.
[0021] Optionally, using a regression model, a predicted docking bias is determined, including:
[0022] Calculate the output value of the regression model when the independent variable is 0;
[0023] The output value is used as the predicted docking deviation.
[0024] Optionally, the target mobile robot has docked with the common historical docking station for more than one time, and the first docking deviation is obtained by:
[0025] Obtain all historical docking deviations between the target mobile robot and the common historical docking station;
[0026] The average of the historical docking deviations was calculated as the first docking deviation.
[0027] Optionally, calculating an average of historical docking deviations as a first docking deviation includes:
[0028] Get the variance of all historical docking deviations;
[0029] The historical docking deviations with variance less than or equal to the preset variance are retained as candidate docking deviations;
[0030] The average of the candidate docking deviations is calculated as the first docking deviation.
[0031] Another technical solution adopted in the present application is to provide a station docking method of a mobile robot, the method comprising:
[0032] Get the initial position of the target workstation in the map;
[0033] Perform the above-mentioned workstation position compensation method on the initial position to obtain the compensated position of the target workstation in the map;
[0034] According to the compensation position, the target mobile robot is controlled to dock with the target workstation.
[0035] Optionally, according to the compensation position, controlling the target mobile robot to dock with the target workstation includes:
[0036] Determine a preparation point of the target mobile robot in the map using the compensated position; and control the target mobile robot to move to the preparation point;
[0037] In response to the target mobile robot arriving at the preparation point, determining a lateral deviation and a longitudinal deviation between the target mobile robot and the target workstation according to an identification on the target workstation;
[0038] According to the lateral deviation and the longitudinal deviation, the target mobile robot is controlled to dock with the target workstation.
[0039] Another technical solution adopted by the present application is to provide a terminal device, the terminal device comprising a memory and a processor connected to the memory;
[0040] The memory is used to store program data, and the processor is used to execute the program data to implement the workstation position compensation method and / or workstation docking method of the mobile robot as described above.
[0041] Another technical solution adopted in the present application is to provide a computer storage medium, which is used to store program data. When the program data is executed by the computer, it is used to implement the workstation position compensation method and / or workstation docking method of the mobile robot as mentioned above.
[0042] The beneficial effect of the present application is as follows: by obtaining the docking deviations corresponding to the common historical docking stations of the target mobile robot and at least two other robots that have a history of docking with the target station, as well as the docking deviations between other robots and the target station, the predicted docking deviation between the target mobile robot and the target station is determined, and then the predicted docking deviation is used to compensate for the initial position of the target station in the map. In the case where there is no historical docking between the target mobile robot and the target station, the docking deviation between the target mobile robot and the target station can also be predicted, thereby improving the docking accuracy and efficiency of the target mobile robot and the target station. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 It is a flow chart of an embodiment of a method for compensating a workstation position of a mobile robot provided by the present application;
[0045] Figure 2 It is a flow chart of an embodiment of a method for docking a workstation of a mobile robot provided by the present application;
[0046] Figure 3 It is a schematic diagram of an embodiment of a workstation docking method of a mobile robot provided by the present application;
[0047] Figure 4 It is a flow chart of another embodiment of the workstation docking method of the mobile robot provided by the present application;
[0048] Figure 5 It is a structural diagram of an embodiment of a terminal device provided by the present application;
[0049] Figure 6 It is a structural diagram of an embodiment of a computer storage medium provided by the present application. DETAILED DESCRIPTION
[0050] 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 ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods or devices.
[0052] In addition, although the terms "first", "second", etc. are used many times in this application to describe various data (or various applications or various instructions or various operations), etc., these data (or applications or instructions or operations) should not be limited by these terms. These terms are only used to distinguish one type of data (or application or instruction or operation) from another type of data (or application or instruction or operation).
[0053] In a more common related technology, by setting a marker on the target workstation, the mobile robot uses its onboard laser radar to scan the environment and obtain the relative position (position and posture) of the marker relative to the mobile robot, thereby guiding the mobile robot to accurately dock with the workstation. After a period of work and research, the inventor of the present application found that if there is a large error in the position calibration of the workstation, that is, there is a large error between the position of the workstation in the (laser) map and the position in the actual scene, there may be a large lateral deviation between the position of the workstation in the map and the workstation identification point (i.e., the marker). Furthermore, the preparation point calculated based on the position of the workstation in the map also has a large lateral error with the workstation identification point. In order to reduce the lateral error, the mobile robot needs to adjust its own position (i.e., perform a setting process) after arriving at the preparation point, and then dock with the workstation. The setting process takes a long time to perform, which reduces the efficiency of the mobile robot docking with the workstation.
[0054] In another more common related technology, the deviation value of a mobile robot when docking with different workstations under various operation modes is recorded in advance, and a compensation relationship table is generated based on the deviation value. In the actual operation process, the mobile robot reads the corresponding compensation relationship table according to the current operation mode, thereby realizing posture compensation. After a period of work and research, the inventor of the present application found that when different mobile robots adopt the same operation mode (same operation distance and rotation angle), the posture compensation value obtained is the same. Due to the difference in the installation angle of the laser sensor (such as laser radar), the sensor calibration error and other reasons, the docking deviation of different mobile robots when docking with the same workstation is different. Similarly, when the mobile robot applied to this method is docked, there is a high probability that a setting process is required, which reduces the efficiency of the mobile robot docking station.
[0055] In another common related technology, the workstation is provided with a servo platform that can move laterally. By pre-recording the lateral deviation between different mobile robots and the workstation (battery swap station), when the mobile robot arrives at the docking point, the servo platform of the workstation moves laterally according to the lateral deviation to achieve docking between the mobile robot and the workstation. The applicant has found through research that if the mobile robot and the workstation are docked for the first time, it may take longer to determine the pre-compensation amount between the mobile robot and the workstation, and the deviation information of the mobile robot that has been docked with the workstation is not fully utilized.
[0056] The present application mainly designs a set of methods to improve the docking accuracy between mobile robots and workstations. Unlike traditional methods, the present application starts from the docking deviation between other mobile robots and target workstations, and combines the docking deviation between the target mobile robot and other mobile robots and historical common workstations to determine the docking deviation between the target mobile robot that has no historical docking with the target workstation and the target workstation, thereby improving the docking accuracy between the target mobile robot and the target workstation.
[0057] Please refer to Figure 1 , Figure 1 It is a flow chart of an embodiment of a workstation position compensation method for a mobile robot provided in the present application.
[0058] like Figure 1 As shown, the workstation position compensation method of the mobile robot in the embodiment of the present application may specifically include the following steps:
[0059] S1, in response to the target mobile robot not having a historical docking with the target workstation, and at least two other mobile robots having a historical docking with the target workstation, obtaining a common historical docking workstation between the target mobile robot and the other mobile robots.
[0060] The workstation position compensation method and / or workstation docking method of the mobile robot provided in the present application is mainly performed by a position compensation device. In some embodiments, the position compensation device can be a laser sensor itself. In some embodiments, the position compensation device can be a device connected to the laser sensor in communication. For example, the device can be a device for monitoring images, a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, and an autonomous driving car, a robot, a security system, and any one or more products of glasses and helmets for augmented reality or virtual reality. In some possible implementations, the position compensation device can be the mobile robot itself. In some possible embodiments, the position compensation device can be a device connected to the mobile robot in communication. In some possible implementations, the workstation position compensation method and / or workstation docking method of the mobile robot can be implemented by a processor calling a computer-readable instruction stored in a memory.
[0061] The mobile robot mentioned in this application may be an automatic guided vehicle (AGV) or an autonomous mobile robot (AMR). For example, the mobile robot may be a forklift AGV. The workstation mentioned in this application is a fixed workstation, specifically, a fixed workstation may be a machine platform or a storage location, etc., which is not limited here.
[0062] It can be understood that in the scenario of this embodiment, there are at least 2 workstations and at least 3 mobile robots.
[0063] In some embodiments, there are M mobile robots and N workstations in the scene. The mobile robots can be represented as a j , where 1≤j≤M, the workstation can be represented by s k , where 1≤k≤N.
[0064] In some embodiments, numbered a j The target mobile robot and the number s k The target workstation does not have a history of docking, and the position compensation device obtains at least two other mobile robots that are both connected to the target workstation s k There is a historical connection, and it is also connected to the common historical connection station sel There is a history of docking. Among them, the target mobile robot a j Docking stations with common history sel There is a historical connection.
[0065] In some possible embodiments, numbered a j The target mobile robot and the number s kThe target workstation has a history of docking, and the position compensation device uses the historical docking deviation information between the target mobile robot and the target workstation to determine the docking deviation between the target mobile robot and the target workstation.
[0066] In some possible embodiments, in response to the fact that there is no historical docking between the target mobile robot and the target workstation, and there are less than two other mobile robots that have historical docking with the target workstation, the predicted docking deviation between the target mobile robot and the target workstation is determined to be (0, 0, 0), where the predicted docking deviation can be expressed as (x, y, θ), where x is the horizontal coordinate compensation error, y is the vertical coordinate compensation error, and θ is the orientation angle compensation error.
[0067] In some possible embodiments, in response to the fact that there is no historical docking between the target mobile robot and the target workstation, and at least two other robots have a historical docking with the target workstation, and there is no common historical docking workstation between the target mobile robot and the other robots, the predicted docking deviation between the target mobile robot and the target workstation is determined to be (0, 0, 0).
[0068] S2, determining a predicted docking deviation between the target mobile robot and the target station based on a first docking deviation between the target mobile robot and the common historical docking station, a second docking deviation between other mobile robots and the common historical docking station, and a third docking deviation between other mobile robots and the target station.
[0069] In some embodiments, the target mobile robot a j Docking stations with common history sel The first docking deviation can be expressed as f((a j ,s sel )), other mobile robots a sel_i Docking stations with common history sel The second docking deviation can be expressed as Other mobile robots sel_i With target stations k The third docking deviation can be expressed as
[0070] Exemplarily, the target mobile robot and the other mobile robots have both been docked with a common historical docking station for multiple times. The position compensation device uses a plurality of first docking deviations and a plurality of second docking deviations to determine a relative docking deviation between the target mobile robot and the other mobile robots, and further calculates the sum of the third docking deviation and the relative docking deviation to obtain a predicted docking deviation.
[0071] Optionally, the position compensation device can use any one or more of neural networks, deep learning, support vector machines (SVM), and regression analysis to determine the relative docking deviation between the target mobile robot and other mobile robots by analyzing a number of first docking deviations and a number of second docking deviations.
[0072] S3, using the predicted docking deviation, compensating the initial position of the target station in the map to obtain the compensated position of the target station in the map.
[0073] In some embodiments, the compensation position of the target workstation in the map is the sum of the initial position and the predicted docking deviation. Exemplarily, the compensation position satisfies the following relationship:
[0074]
[0075] in, is the initial position of the target station numbered k in the map, is the position-compensated map coordinate of the target mobile robot numbered j when docking at the workstation numbered k, f((a j ,s k )) is the predicted docking deviation of the target mobile robot numbered j when docking with the workstation numbered k.
[0076] In some embodiments, the target station s k The initial position in the map can be expressed as (X, Y, Θ), where X is the initial horizontal coordinate of the target station in the map, Y is the initial vertical coordinate of the target station in the map, and Θ is the initial orientation angle of the target station in the map.
[0077] In some embodiments, the target station s k Corresponding target mobile robot a j The predicted docking deviation can be expressed as (x, y, θ), where x is the compensated horizontal coordinate of the target station in the map, y is the compensated vertical coordinate of the target station in the map, and θ is the compensated orientation angle of the target station in the map.
[0078] Furthermore, the horizontal coordinate in the compensation position is the sum of the initial horizontal coordinate and the compensated horizontal coordinate, the vertical coordinate in the compensation position is the sum of the initial vertical coordinate and the compensated vertical coordinate, and the orientation angle in the compensation position is the sum of the initial orientation angle and the compensated orientation angle.
[0079] The above scheme determines the predicted docking deviation between the target mobile robot and the target station by obtaining the docking deviations corresponding to the common historical docking stations of the target mobile robot and at least two other robots that have historically docked with the target station, as well as the docking deviations between other robots and the target station, and then uses the predicted docking deviation to compensate for the initial position of the target station in the map. In the case where there is no historical docking between the target mobile robot and the target station, the docking deviation between the target mobile robot and the target station can also be predicted, thereby improving the docking accuracy and efficiency of the target mobile robot and the target station.
[0080] Another embodiment of the workstation position compensation method of the mobile robot provided in the present application may specifically include the following steps:
[0081] S11, in response to the target mobile robot not having a historical docking with the target workstation, and at least two other mobile robots having a historical docking with the target workstation, obtaining a common historical docking workstation between the target mobile robot and the other mobile robots.
[0082] S12, determining an independent variable of the regression model to be determined according to the first docking deviation and the second docking deviation.
[0083] In some possible embodiments, the position compensation device uses the sum of the Euclidean distance corresponding to the first docking deviation and the Euclidean distance corresponding to the second docking deviation as the independent variable of the regression model to be determined.
[0084] In some possible embodiments, the position compensation device uses the difference between the Euclidean distance corresponding to the first docking deviation and the Euclidean distance corresponding to the second docking deviation as an independent variable of the regression model to be determined.
[0085] In some possible embodiments, if the target mobile robot has docked with the common historical docking station more than once, the first docking deviation is obtained by:
[0086] S101, obtaining all first historical docking deviations between a target mobile robot and a common historical docking station.
[0087] In some application scenarios, when the target mobile robot completes a historical docking with the common historical docking station, the position compensation device obtains the historical docking deviation of the target mobile robot corresponding to this time. Specifically, the first historical docking deviation is the recognition deviation of the target mobile robot at the recognition preparation point corresponding to the common historical docking station.
[0088] In some application scenarios, the position compensation device calculates the position of the identification preparation point (referred to as the preparation point) corresponding to the common historical docking station in the map based on the position of the common historical docking station in the map. After the target mobile robot receives the instruction to dock with the common historical docking station, it moves from the current position to the identification preparation point, and uses the laser sensor carried by itself at the identification preparation point to identify the marks on the common historical docking station and calculate the identification deviation.
[0089] In some embodiments, the target mobile robot obtains several sets of first historical docking deviations bias1 sample Among them, bias1 sample is f((a j ,s sel )) is a sample of .
[0090] S102: Calculate an average value of historical docking deviations as a first docking deviation.
[0091] In some embodiments, the first docking deviation satisfies the following relationship:
[0092] f((a j ,s sel ))=∑bias1 sample / L
[0093] Where L is the number of historical docking deviations, f((a j ,s sel )) is the first docking deviation.
[0094] In some possible embodiments, S102 specifically includes the following steps:
[0095] S111, obtaining the variance of all historical docking deviations.
[0096] Specifically, the position compensation device obtains the variance of each first historical docking deviation. It can be understood that the position compensation device obtains the average value of all first historical docking deviations to determine the variance of each first historical docking deviation.
[0097] S112, retaining historical docking deviations whose variance is less than or equal to a preset variance as candidate docking deviations.
[0098] By eliminating the first historical docking deviation whose variance is greater than the preset variance, the first docking deviation obtained subsequently is made more stable.
[0099] S113: Calculate an average value of the candidate docking deviations as a first docking deviation.
[0100] Specifically, the first docking deviation satisfies the following relationship:
[0101] f′((aj ,s sel ))=∑bais1′ sample / L′
[0102] Among them, bais1′ sample is the candidate docking deviation, and L′ is the number of candidate docking deviations.
[0103] Similarly, if the number of dockings between other mobile robots and the common historical docking station is greater than 1, the second docking deviation may be an average value of all second historical docking deviations between other mobile robots and the common historical docking station.
[0104] S13, determining a dependent variable of the regression model to be determined according to the third docking deviation.
[0105] In some embodiments, the position compensation device uses the third docking deviation as a dependent variable of the regression model to be determined.
[0106] Similarly, if the number of dockings between other mobile robots and the target docking station is greater than 1, the third docking deviation may be an average value of all third historical docking deviations between other mobile robots and the target docking station.
[0107] S14, performing a multi-output Gaussian process regression operation on the regression model to be determined to obtain a regression model.
[0108] Specifically, the position compensation device uses a multi-output Gaussian process regression operation to determine the parameters in the regression model to be determined according to a number of groups of independent variables and corresponding dependent variables, and further obtains the regression model.
[0109] S15, using the regression model, determine the predicted docking deviation.
[0110] In some embodiments, the position compensation device inputs the independent variable including the first docking deviation into the regression model to obtain an output result corresponding to the regression model. Further, the position compensation device outputs the result as the predicted docking deviation.
[0111] S16, using the predicted docking deviation, compensating the initial position of the target workstation in the map to obtain the compensated position of the target workstation in the map.
[0112] The above scheme determines the predicted docking deviation between the target mobile robot and the target station by obtaining the docking deviations corresponding to the common historical docking stations of the target mobile robot and at least two other robots that have historically docked with the target station, as well as the docking deviations between other robots and the target station, and then uses the predicted docking deviation to compensate for the initial position of the target station in the map. In the case where there is no historical docking between the target mobile robot and the target station, the docking deviation between the target mobile robot and the target station can also be predicted, thereby improving the docking accuracy and efficiency of the target mobile robot and the target station.
[0113] Another embodiment of the workstation position compensation method of the mobile robot provided in the present application may specifically include the following steps:
[0114] S21, in response to the target mobile robot not having a historical docking with the target workstation, and at least two other mobile robots having a historical docking with the target workstation, obtaining a common historical docking workstation between the target mobile robot and the other mobile robots.
[0115] Among them, the other mobile robots include at least the first mobile robot and the second mobile robot, the second docking deviation includes at least the fourth docking deviation between the first mobile robot and the common historical docking station, and the fifth docking deviation between the second mobile robot and the common historical docking station, and the third docking deviation includes at least the sixth docking deviation between the first mobile robot and the target station, and the seventh docking deviation between the second mobile robot and the target station.
[0116] S22, obtaining a first Mahalanobis distance between the first docking deviation and the fourth docking deviation, and a second Mahalanobis distance between the first docking deviation and the fifth docking deviation.
[0117] Specifically, the position compensation device calculates a first Mahalanobis distance between the fourth docking deviation and the first docking deviation.
[0118] Exemplarily, the first Mahalanobis distance satisfies the following relationship:
[0119]
[0120] in, is the first Mahalanobis distance, is the fourth docking deviation, f((a j ,s sel )) is the first docking deviation.
[0121] Likewise, the position compensation device calculates a second Mahalanobis distance between the fifth docking deviation and the first docking deviation.
[0122] Exemplarily, the second Mahalanobis distance satisfies the following relationship:
[0123]
[0124] in, is the second Mahalanobis distance, is the fifth docking deviation, f((a j ,s sel )) is the first docking deviation.
[0125] In some possible embodiments, a total of n other robots are docked with the historical common workstation, and the Mahalanobis distance between the second docking deviation and the first docking deviation satisfies the following relationship:
[0126]
[0127] in, is the Mahalanobis distance, i=1,…,n.
[0128] S23, taking the first Mahalanobis distance and the second Mahalanobis distance as independent variables.
[0129] In some embodiments, the position compensation device uses the first Mahalanobis distance and the second Mahalanobis distance as independent variables of the regression model to be determined.
[0130] Specifically, the position compensation device will as independent variable.
[0131] In some possible embodiments, there are n other robots docked with the historical common workstation, and the independent variable is
[0132] S24, taking the sixth docking deviation and the seventh docking deviation as dependent variables.
[0133] In some embodiments, the position compensation device uses the sixth docking deviation and the seventh docking deviation as dependent variables of the regression model to be determined.
[0134] Specifically, the position compensation device will As the dependent variable. is the sixth docking deviation, It is the seventh docking deviation.
[0135] In some possible embodiments, there are n other robots docking with the target station, and the dependent variable is Among them, i=1,…,n.
[0136] S25, performing a multi-output Gaussian process regression operation on the regression model to be determined to obtain a regression model.
[0137] Specifically, the position compensation device uses independent variables and corresponding dependent variables to perform a multi-output Gaussian process regression operation on the regression model to be determined to obtain the regression model.
[0138] S26, using the regression model, determine the predicted docking deviation.
[0139] S27, using the predicted docking deviation, compensating the initial position of the target workstation in the map to obtain the compensated position of the target workstation in the map.
[0140] The above scheme determines the predicted docking deviation between the target mobile robot and the target station by obtaining the docking deviations corresponding to the common historical docking stations of the target mobile robot and at least two other robots that have historically docked with the target station, as well as the docking deviations between other robots and the target station, and then uses the predicted docking deviation to compensate for the initial position of the target station in the map. In the case where there is no historical docking between the target mobile robot and the target station, the docking deviation between the target mobile robot and the target station can also be predicted, thereby improving the docking accuracy and efficiency of the target mobile robot and the target station.
[0141] Another embodiment of the workstation position compensation method of the mobile robot provided in the present application may specifically include the following steps:
[0142] S31, in response to the target mobile robot not having a historical docking with the target workstation, and at least two other mobile robots having a historical docking with the target workstation, obtaining a common historical docking workstation between the target mobile robot and the other mobile robots.
[0143] Among them, the other mobile robots include at least the first mobile robot and the second mobile robot, the second docking deviation includes at least the fourth docking deviation between the first mobile robot and the common historical docking station, and the fifth docking deviation between the second mobile robot and the common historical docking station, and the third docking deviation includes at least the sixth docking deviation between the first mobile robot and the target station, and the seventh docking deviation between the second mobile robot and the target station.
[0144] S32, obtaining a first Mahalanobis distance between the first docking deviation and the fourth docking deviation, and a second Mahalanobis distance between the first docking deviation and the fifth docking deviation.
[0145] S33, taking the first Mahalanobis distance and the second Mahalanobis distance as independent variables.
[0146] S34, taking the sixth docking deviation and the seventh docking deviation as dependent variables.
[0147] S35, performing a multi-output Gaussian process regression operation on the regression model to be determined to obtain a regression model.
[0148] S36, calculating the output value of the regression model when the independent variable is 0.
[0149] Specifically, when the independent variable is 0, the following relationship is satisfied:
[0150]
[0151] At this time, the output value of the regression model is f((a j ,s k )).
[0152] S37, using the output value as the predicted docking deviation.
[0153] Specifically, the position compensation device uses the output value of the regression model when the independent variable is 0 as the predicted docking deviation.
[0154] S38, using the predicted docking deviation, compensating the initial position of the target workstation in the map to obtain the compensated position of the target workstation in the map.
[0155] The above scheme determines the predicted docking deviation between the target mobile robot and the target station by obtaining the docking deviations corresponding to the common historical docking stations of the target mobile robot and at least two other robots that have historically docked with the target station, as well as the docking deviations between other robots and the target station, and then uses the predicted docking deviation to compensate for the initial position of the target station in the map. In the case where there is no historical docking between the target mobile robot and the target station, the docking deviation between the target mobile robot and the target station can also be predicted, thereby improving the docking accuracy and efficiency of the target mobile robot and the target station.
[0156] like Figure 2 As shown, an embodiment of a method for docking a mobile robot with a workstation provided by the present application may specifically include the following steps:
[0157] S41, obtaining the initial position of the target workstation in the map.
[0158] In some possible embodiments, the position compensation device receives the serial number of the target workstation and determines the initial position of the target workstation in the map according to the serial number of the target workstation.
[0159] In some embodiments, the initial position of the target workstation in the map may be represented as (X, Y, Θ).
[0160] S42, performing workstation position compensation on the initial position to obtain the compensated position of the target workstation in the map.
[0161] The position compensation device performs the above-mentioned workstation position compensation method on the initial position to obtain the compensated position of the target workstation in the map.
[0162] In some possible embodiments, the position compensation device determines the deviation value δ according to the device number of the mobile robot and the number of the target workstation. Further, the position compensation device compensates the deviation value to the initial position to obtain the compensated position.
[0163] In some possible embodiments, the compensation value is -δ, and the position compensation device calculates the sum of the initial position and the compensation value to obtain the compensated position (X-δ) of the target station on the map. x , Y-δ y , θ-δ θ ), where δ x ,δ y ,δ θ They are the horizontal coordinate compensation value, the vertical coordinate compensation value and the orientation angle compensation value respectively.
[0164] S43, controlling the target mobile robot to dock with the target workstation according to the compensation position.
[0165] In some embodiments, the position compensation device is based on the compensation position (X-δ x , Y-δ y , θ-δ θ ), and the current position of the target mobile robot, determine the motion path of the target mobile robot, and control the target mobile robot to dock with the target workstation.
[0166] The above scheme determines the predicted docking deviation between the target mobile robot and the target station by obtaining the docking deviations corresponding to the common historical docking stations of the target mobile robot and at least two other robots that have historically docked with the target station, as well as the docking deviations between other robots and the target station, and then uses the predicted docking deviation to compensate for the initial position of the target station in the map. In the case where there is no historical docking between the target mobile robot and the target station, the docking deviation between the target mobile robot and the target station can also be predicted, thereby improving the docking accuracy and efficiency of the target mobile robot and the target station.
[0167] Another embodiment of the workstation docking method of the mobile robot provided in the present application may specifically include the following steps:
[0168] S51, obtaining the initial position of the target workstation in the map.
[0169] S52, performing workstation position compensation on the initial position to obtain the compensated position of the target workstation in the map.
[0170] S53, using the compensated position, determining a preparation point of the target mobile robot in the map, and controlling the target mobile robot to move to the preparation point.
[0171] Specifically, the position compensation device calculates the position of the preparation point of the target robot in the map based on the compensated position.
[0172] Furthermore, the position compensation device determines a first motion path according to the current position of the target mobile robot in the map and the position of the preparation point, and controls the target mobile robot to move to the preparation point based on the first motion path.
[0173] S54, in response to the target mobile robot arriving at the preparation point, determining the lateral deviation and the longitudinal deviation between the target mobile robot and the target workstation according to the mark on the target workstation.
[0174] Specifically, in response to the target mobile robot reaching the preparation point, and the orientation angle of the target mobile robot being the same as the orientation angle corresponding to the preparation point, the target mobile robot uses its own onboard sensor to identify the mark on the target station and determine the lateral deviation and longitudinal deviation between the target mobile robot and the target station.
[0175] In some possible embodiments, the sensor may be a camera and the identifier may be a visual identifier.
[0176] In some possible embodiments, the sensor may be a laser radar. Compared with a camera, the lateral deviation and longitudinal deviation determined by the laser radar are more accurate.
[0177] S55, controlling the target mobile robot to dock with the target workstation according to the lateral deviation and the longitudinal deviation.
[0178] Specifically, the position compensation device determines a second motion path from the preparation point to the target workstation according to the lateral deviation and the longitudinal deviation, and controls the target mobile robot to dock with the target workstation according to the second motion path.
[0179] The following Figure 3 Take this as an example to illustrate: Figure 3 As shown, the target mobile robot passes through point 1001 or point 1004 to the target station 1003 to perform the cargo release operation. Among them, 1002 is the identification preparation point (i.e., the preparation point mentioned above) calculated based on the position of the target station in the map according to the relevant technical solution. In order to ensure that the target mobile robot can simultaneously meet the conditions for accurate docking when it reaches the target station 1003, the target mobile robot completes the orientation angle adjustment at the identification preparation point 1002, and uses the onboard sensor (such as at least one of a camera, a laser radar, a millimeter-wave radar, and an ultrasonic radar) to identify the target station 1003, and then performs path planning and tracking based on the position of the station identification point (or storage location identification point) 1003_recog. The ideal walking trajectory of the target mobile robot is shown as follows. Figure 3As shown in , since the preparation point calculated by 1003_recog at this time has a large lateral error with the identification preparation point 1002 where the target mobile robot is located, the target mobile robot will enter the adjustment process of the identification preparation point.
[0180] The lateral deviation refers to the lateral offset between the target docking station and the target mobile robot when viewed from the docking direction of the target mobile robot.
[0181] After adopting the method of the present application, the compensated target station coordinates (x, y, θ) are as follows: Figure 3 As shown in point Q in the figure, point 1002_Q is the identification preparation point calculated based on Q. When the target mobile robot walks to point 1002_Q, the preparation point calculated by the location identification result is close to point 1002_Q, and the lateral deviation is small. At this time, the target mobile robot will not enter the setting process of the preparation point, thereby improving the efficiency of docking.
[0182] The above scheme determines the predicted docking deviation between the target mobile robot and the target station by obtaining the docking deviations corresponding to the common historical docking stations of the target mobile robot and at least two other robots that have historically docked with the target station, as well as the docking deviations between other robots and the target station, and then uses the predicted docking deviation to compensate for the initial position of the target station in the map. In the case where there is no historical docking between the target mobile robot and the target station, the docking deviation between the target mobile robot and the target station can also be predicted, thereby improving the docking accuracy and efficiency of the target mobile robot and the target station.
[0183] See also Figure 4 , Figure 4 It is a flow chart of another embodiment of the workstation docking method of the mobile robot provided in the present application.
[0184] like Figure 4 As shown, another embodiment of the station docking method of the mobile robot provided by the present application may specifically include the following steps:
[0185] S201, when the AGV is docked with the workstation, the corresponding deviation value is obtained based on its own equipment number and the docking workstation number, and compensated to the workstation map coordinates.
[0186] Specifically, when the AGV docks with a fixed workstation (such as a machine, storage location, etc.), due to the workstation position calibration error, in actual scenarios, there is a large deviation between the position of the workstation identification point recognized by the AGV in the map and the initial position of the workstation in the map (workstation map point).
[0187] This embodiment compensates for the deviation based on the historical recognition data of the AGV to improve the docking accuracy between the AGV and the workstation. In the docking process, functions such as navigation and recognition are implemented based on 2D laser radar.
[0188] In some embodiments, the input space satisfies the following relationship:
[0189] P={(a 1 ,s 1 ),…,(a 1 ,s N ),…,(a j ,s k ),…(a M ,s 1 ),…,(a M ,s N )}
[0190] Furthermore, the output space is Where M is the number of AGVs, N is the number of workstations, and 1≤j≤M, 1≤k≤N.
[0191] In some embodiments, the input p=(a j ,s k )∈P, indicating that the number is a j AGV docking number k The output q∈Q represents the deviation between the recognition coordinates of the AGV when it docks the workstation and the coordinates of the workstation map. The function from the input space to the output space is as follows:
[0192] q=f(p)
[0193] Specifically, the main goal of this step is to fit the mapping f, and the training data set is the collected historical docking task data. j The AGV identification number is s k Taking the workstation as an example, the specific process of collecting on-site workstation docking task data is as follows: After the task data is uploaded, the recognition bias of the AGV at the recognition preparation point is obtained. sample , where bias sample is f((a j ,s k )) is a sample. In order to ensure the stability of the model output results, this proposal will store information about f((a j ,s k )) of several samples. Then update f((a j ,s k ))=∑bias sample / L, where L is the value of f((a j ,s k )) of the sample size that meets the preset variance.
[0194] With number a j The AGV docking number is s k Taking the workstation as an example, the detailed process of solving the docking deviation is as follows:
[0195] When the number is a j The AGV has been connected to s k The position (i.e. about f((a j ,s k )) The number of samples is not zero), so we can directly get f((a j ,s k )).
[0196] When the number is a j The AGV has never been connected to the AGV numbered s k The position (i.e. about f((a j ,s k )) The number of samples is zero). The posture deviation is fitted (predicted) based on historical data. The specific fitting process is as follows:
[0197] Select except number s k One workstation outside sel ,s sel The selection must meet two conditions: j AGV has been connected to s sel ; There are n (n ≥ 2) AGVs that have docked with s sel , and also connected to the number s k If there is no target station that meets the conditions, exit the prediction and set f((a j ,s k ))=(0,0,0).
[0198] Assume that the numbers of the n AGVs in the previous step are Where i = 1, ..., n, find the docking s of these n AGVs sel Deviation At the same time, get the number a j AGV docking sel The deviation f((a j ,s sel )) and obtain and f((a j ,s sel )) Where D maha (c 1 ,c 2 ) is c 1 and c 2 The Mahalanobis distance between .
[0199] Get the number AGV docking number k Deviation of the workstation Where i = 1,…,n. As the independent variable of the regression analysis sample, As the dependent variable of the regression analysis sample, multi-output Gaussian process regression is performed to obtain the independent variable: That is, the function value f((a j ,s k )).
[0200] f((a j ,s k )) is used as the docking compensation value to compensate the map coordinates of the docking station, that is, in is the map coordinate of the workstation numbered k; When the AGV numbered j is docked with the station numbered k, The compensated map coordinates.
[0201] S202, the AGV identifies the preparation point based on the coordinates of the workstation map after compensation, and walks to the point in parallel.
[0202] Specifically, the position compensation device is based on The identification preparation point is calculated. The AGV then calls the path planning algorithm to plan a path from the current position to the identification preparation point. After that, the navigation module sends the path to the motion control algorithm for path tracking.
[0203] S203, using laser radar to identify the workstation, obtain the identification point of the workstation and upload it.
[0204] Specifically, after the AGV walks to the identification preparation point, the position compensation device uses the laser radar to obtain the point cloud data of the area to be docked, then obtains the identification point of the workstation through the point cloud data, and uploads the laser recognition result.
[0205] S204, if the lateral deviation between the workstation identification point and the identification preparation point is small, no operation is performed; if the lateral deviation between the workstation identification point and the identification preparation point is large, the adjustment process is entered.
[0206] Specifically, in response to a lateral deviation between the workstation identification point and the identification preparation point being less than a preset deviation, the position compensation device does not perform a setting process.
[0207] In some embodiments, in response to a lateral deviation between the workstation identification point and the identification preparation point being greater than or equal to a preset deviation, the position compensation device performs a tuning process.
[0208] Specifically, the tuning process includes adjusting the position and / or posture of the AGV.
[0209] In this embodiment, since the lateral deviation between the identification preparation point and the workstation identification point is often relatively small, the AGV will not enter the setting process of the preparation point at this time, thereby improving the efficiency of docking.
[0210] S205, the AGV moves from the identification preparation point to the workstation identification point and completes the docking.
[0211] Specifically, the AGV walks from the identification preparation point to the workstation identification point and completes the docking.
[0212] The above scheme determines the predicted docking deviation between the target mobile robot and the target station by obtaining the docking deviations corresponding to the common historical docking stations of the target mobile robot and at least two other robots that have historically docked with the target station, as well as the docking deviations between other robots and the target station, and then uses the predicted docking deviation to compensate for the initial position of the target station in the map. In the case where there is no historical docking between the target mobile robot and the target station, the docking deviation between the target mobile robot and the target station can also be predicted, thereby improving the docking accuracy and efficiency of the target mobile robot and the target station.
[0213] Furthermore, by collecting and using the deviation data of the docking task, the docking deviation of each AGV with respect to each workstation is estimated and compensated accordingly, reducing the probability of the equipment entering the setting process. Even if the AGV has not identified a certain workstation, it can go to a reasonable preparation identification point, reducing the probability of entering the setting process.
[0214] In addition, the preset path on the map is modified using historical workstation identification information, so that the AGV can start from the preparation point and dock with the workstation in a relatively straight line, further improving the efficiency of docking.
[0215] Please continue to see Figure 5 , Figure 5 The terminal device 500 of the embodiment of the present application includes a processor 51 and a memory 52 .
[0216] The processor 51 and the memory 52 are connected to the bus. The memory 52 stores program data. The processor 51 is used to execute the program data to implement the workstation position compensation method and / or workstation docking method of the mobile robot described in the above embodiments.
[0217] In the embodiment of the present application, the processor 51 may also be referred to as a CPU (Central Processing Unit). The processor 51 may be an integrated circuit chip having the ability to process signals. The processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or the processor 51 may also be any conventional processor, etc.
[0218] This application also provides a computer storage medium, please continue to refer to Figure 6 , Figure 6 It is a structural diagram of an embodiment of a computer storage medium provided in the present application. The computer storage medium 600 stores program data 61. When the program data 61 is executed by the processor, it is used to implement the workstation position compensation method and / or workstation docking method of the mobile robot of the above-mentioned embodiment.
[0219] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0220] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Equivalent structures or equivalent process changes made by utilizing the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for compensating the workstation position of a mobile robot, It is characterized in that The method comprises: In response to the target mobile robot not having a historical docking with the target workstation, and at least two other mobile robots having a historical docking with the target workstation, acquiring a common historical docking workstation between the target mobile robot and the other mobile robots; Determine a predicted docking deviation between the target mobile robot and the target station based on a first docking deviation between the target mobile robot and the common historical docking station, a second docking deviation between the other mobile robots and the common historical docking station, and a third docking deviation between the other mobile robots and the target station; The predicted docking deviation is used to compensate the initial position of the target workstation in the map to obtain the compensated position of the target workstation in the map.
2. The method according to claim 1, It is characterized in that The method of determining a predicted docking deviation between the target mobile robot and the target station based on a first docking deviation between the target mobile robot and the common historical docking station, a second docking deviation between the other mobile robots and the common historical docking station, and a third docking deviation between the other mobile robots and the target station includes: Determining an independent variable of a regression model to be determined according to the first docking deviation and the second docking deviation; Determining the dependent variable of the regression model to be determined according to the third docking deviation; Performing a multi-output Gaussian process regression operation on the regression model to be determined to obtain a regression model; Using the regression model, the predicted docking deviation is determined.
3. The method according to claim 2, It is characterized in that The other mobile robots include at least a first mobile robot and a second mobile robot; The second docking deviation includes at least a fourth docking deviation between the first mobile robot and the common historical docking station, and a fifth docking deviation between the second mobile robot and the common historical docking station; The third docking deviation includes at least a sixth docking deviation between the first mobile robot and the target workstation, and a seventh docking deviation between the second mobile robot and the target workstation; Determining an independent variable of a regression model to be determined according to the first docking deviation and the second docking deviation includes: Acquire a first Mahalanobis distance between the first docking deviation and the fourth docking deviation, and a second Mahalanobis distance between the first docking deviation and the fifth docking deviation; Using the first Mahalanobis distance and the second Mahalanobis distance as the independent variables; Determining the dependent variable of the regression model to be determined according to the third docking deviation includes: The sixth docking deviation and the seventh docking deviation are used as the dependent variables.
4. The method according to claim 2, It is characterized in that Determining the predicted docking deviation by using the regression model includes: Calculate the output value of the regression model when the independent variable is 0; The output value is used as the predicted docking deviation.
5. The method according to claim 1, It is characterized in that The number of historical dockings between the target mobile robot and the common historical docking station is greater than 1, and the first docking deviation is obtained by: Acquire all historical docking deviations between the target mobile robot and the common historical docking station; An average value of the historical docking deviations is calculated as the first docking deviation.
6. The method according to claim 5, It is characterized in that The calculating the average value of the historical docking deviations as the first docking deviation includes: Obtaining the variance of all the historical docking deviations; Retaining historical docking deviations whose variance is less than or equal to the preset variance as candidate docking deviations; An average value of the candidate docking deviations is calculated as the first docking deviation.
7. A method for docking a mobile robot. It is characterized in that Get the initial position of the target workstation in the map; Performing the workstation position compensation method as described in any one of claims 1 to 6 on the initial position to obtain a compensated position of the target workstation in the map; According to the compensation position, the target mobile robot is controlled to dock with the target workstation.
8. The method according to claim 7, It is characterized in that According to the compensation position, controlling the target mobile robot to dock with the target workstation includes: Determine a preparation point of the target mobile robot in the map by using the compensated position; and control the target mobile robot to move to the preparation point; In response to the target mobile robot arriving at the preparation point, determining a lateral deviation and a longitudinal deviation between the target mobile robot and the target station according to a mark on the target station; According to the lateral deviation and the longitudinal deviation, the target mobile robot is controlled to dock with the target workstation.
9. A terminal device, It is characterized in that The terminal device includes a processor and a memory connected to the processor, wherein: The memory stores program instructions; The processor is configured to execute program instructions stored in the memory to implement the method according to any one of claims 1 to 8.
10. A computer-readable storage medium, It is characterized in that The storage medium stores program instructions, and when the program instructions are executed, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Abnormal detection method for station coordinates, electronic equipment and storage medium
CN121278582A
Abnormality detection method of workstation coordinates, electronic device, and storage medium
CN121278582B
