Parameter joint calibration method and system for mobile robot, device, and storage medium
By walking the mobile robot in each modal path and recording the data, combined with the least squares method, the kinematics and sensor parameters are automatically calibrated, which solves the problem of difficulty in simultaneous calibration in the existing technology and improves the accuracy and efficiency of the robot.
Patent Information
- Application Number
- PCT/CN2023/135564
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2023-11-30
- Publication Date
- 2024-10-03
AI Technical Summary
It is difficult to automatically calibrate the kinematic parameters of the mobile robot and the positioning sensor parameters simultaneously with the existing technology, and the existing solution requires multiple manual interventions or fails to effectively consider the installation error of the positioning sensor, resulting in low accuracy of robot trajectory following.
By walking the path of each mode through the mobile robot, recording the positioning trajectory information of the positioning sensor and the motor encoder data, the ideal trajectory information is calculated based on the kinematic model, and the kinematics and sensor parameters are obtained by solving the least squares problem to achieve a one-time Automatic calibration.
It improves the accuracy of robot motion and the convergence efficiency of parameter calculation. It can simultaneously calibrate kinematics and sensor parameters in one calibration process, reducing manual intervention and improving trajectory following accuracy.
Smart Images

Figure CN2023135564_03102024_PF_FP_ABST
Abstract
Description
Mobile robot parameter joint calibration method, system, device, and storage medium Technical Field
[0001] The present invention relates to mobile robot navigation technology, and in particular to a mobile robot kinematics and positioning sensor parameter joint calibration method based on a laser odometer, as well as a system, equipment, and storage medium. Background Art
[0002] After a mobile robot equipped with a sensor positioning device is assembled, kinematic errors may be introduced due to the fact that the production and installation process of the robot chassis' moving parts are not always absolutely precise. For example, the nominal wheel diameter may not be consistent with the actual size, the wheel installation position may deviate from the actual installation position, and the steering angle zero position may be offset to a certain extent.
[0003] As the basis for the robot to perceive the surrounding environment, the positioning sensor needs to determine the position of the sensor itself based on the surrounding information, and then calculate the robot's position by the relative installation position of the positioning sensor to the robot's coordinate center. However, during the actual installation process, installation errors of the positioning sensor are inevitable.
[0004] A mobile robot's kinematic errors directly affect its trajectory-following accuracy. Errors in the installation of positioning sensors (e.g., laser odometry, lidar, cameras, GNSS, and other devices used to calculate positioning) can prevent the robot from accurately knowing its position, leading to systematic deviations from its actual position. Therefore, calibrating the robot's kinematic parameters and positioning sensor parameters is an important method for improving robot motion accuracy.
[0005] The current existing technology has proposed "A joint calibration system and method for sensors and chassis of a mobile robot" (Chinese patent publication number CN114442054A). It collects the position information of the starting and ending points by controlling the robot to move a corresponding straight-line distance or turn a corresponding angle multiple times, and then obtains the calibration matrix based on the matrix transformation relationship between the odometer information and the positioning information of the sensor within this straight-line distance.
[0006] However, this solution requires manual control, and the information it collects is the posture data before and after a certain mode of the robot (such as moving in a straight line or turning). Therefore, multiple calibrations are required, and each calibration can only calculate part of the information of the parameters to be calibrated.
[0007] On the other hand, the prior art has also proposed a "two-wheel differential robot motion model calibration method, device and odometer system" (Chinese patent publication number CN109571467B), which records the parameter calibration of the kinematic model of a two-wheel differential vehicle. After performing different modes of motion multiple times, the initial and final position information of each motion mode is collected, the ideal position of the vehicle is calculated through encoder information and the kinematic model and compared with the actual position, and the kinematic parameters of the two-wheel differential vehicle are obtained using a generalized inverse matrix.
[0008] However, this solution only calibrates the two-wheel differential trolley, without calibrating the installation error information of the positioning sensor. Moreover, the calibration data is only calculated based on the posture error at the end point of the trolley, without considering the error information between the trolley and the trajectory during operation.
[0009] Furthermore, the prior art also proposes a "Mobile Robot Parameter Calibration Method, Calibration Device, and Storage Medium" (Chinese Patent Publication No. CN115272476A). This describes using a camera to capture images at multiple navigation markers within the robot's operating environment to obtain actual pose data. Based on the conversion relationship between the actual pose data and the standard pose data, the calibration parameters are solved using a least-squares algorithm, thereby calculating the robot's motion parameters. Other solutions require manual control of the robot's movement and parameter adjustment until a certain error range is met.
[0010] However, this solution calculates the actual posture based on the camera device, but only considers the information at certain preset points during the robot's operation. Therefore, the convergence efficiency is not high, and the installation error of the camera device is not calibrated.
[0011] It can be seen that among the current solutions for mobile robot parameter calibration, some require multiple manual interventions to control the robot for kinematic parameter calibration, while others cannot calibrate the installation error parameters of the positioning sensor at the same time.
[0012] Summary of the Invention
[0013] To this end, the main purpose of the present invention is to provide a method and system, equipment, and storage medium for joint calibration of parameters of a mobile robot to achieve one-time automatic calibration, and to calibrate the installation parameters of the positioning sensor while calibrating the robot's kinematic parameters.
[0014] To achieve the above object, according to a first aspect of the present invention, a method for joint calibration of parameters of a mobile robot is provided, the method comprising the following steps:
[0015] Step S100: The mobile robot walks a path through various modes and records the positioning trajectory information of the positioning sensor and the motor encoder data accordingly.
[0016] In step S200, the encoder data is combined with the kinematic model of the mobile robot to infer the ideal trajectory information of the mobile robot. In step S300, the positioning trajectory information is converted into the trajectory information of the mobile robot according to the installation position of the positioning sensor, and after performing a differential alignment operation with the ideal trajectory information, a least squares problem is solved to obtain the calibrated kinematic parameters of the mobile robot and the installation parameters of the positioning sensor.
[0017] In a possible preferred embodiment, in step S200, the step of calculating the ideal trajectory information includes: calculating: Δt ci =KΔb i ,
[0018] where Δt ci is the position change of the mobile robot at each moment; K is the kinematic model of the mobile robot; Δb i is the distance traveled by each actuator of the mobile robot at time i;
[0019] Then the initial pose data and Δt ci The ideal trajectory information is calculated using an accumulation method.
[0020] In a possible preferred embodiment, when the mobile robot has a dual-steering wheel structure, the steering wheel motor is defined as the steering motor and the travel motor are installed at the same position, and the calculation step of the ideal trajectory information includes:
[0021] Let Δb i =[Δx 1i , Δy 1i , Δx 2i , Δy 2i ] T ,
[0022] K=(A T A) -1 A T ,
[0023] Where Δx 1i , Δy 1i , Δx 2i , Δy 2i where x1, y1, x2, and y2 are the x- and y-axis coordinates of the first and second steering wheel motors in the robot coordinate system, respectively. T is the transpose matrix, and A is the kinematic characteristic matrix of the mobile robot in the non-overconstrained state.
[0024] In a possible preferred embodiment, when the mobile robot has a single steering wheel structure, the steering wheel motor is defined as the steering motor and the travel motor are installed at the same position, and the calculation step of the ideal trajectory information includes:
[0025] Let Δb i =pΔx 1i , Δy 1i ] T ,
[0026] Where Δx 1i , Δy 1i is the position change of the first steering wheel motor in the x and y axis directions at time i, x1 is the x-axis coordinate of the first steering wheel motor in the robot coordinate system, and T is the transpose.
[0027] In a possible preferred embodiment, when the mobile robot has a dual differential wheel structure, the differential wheel motor is defined as a walking motor, and the step of calculating the ideal trajectory information includes:
[0028] Let Δb i =[Δx 1i , Δx 2i ] T ,
[0029] Where Δx 1i ,Δx 2i is the position change of the first and second walking motors in the x-axis direction at time i, y1 and y2 are the y-axis coordinates of the first and second walking motors in the robot coordinate system, α ci is the heading angle of the mobile robot at time i, and α ci+1 =α ci +Δα ci , 1≤i≤n,α c1 is the heading angle of the robot at the initial moment, and T is the transpose.
[0030] In a possible preferred embodiment, in step S300, the least squares problem is:
[0031] Where N-ndiff represents the number of data points after differential alignment, and its value is the difference between the number of trajectory points N and the differential spacing ndiff. is the ideal trajectory positioning position at the i-th moment after differential alignment, dt ci is the trajectory positioning position of the mobile robot after differential alignment, and T is the transpose; through iterative calculation, the parameters with the minimum cost function value are used as the calibrated mobile robot kinematic parameters and the installation parameters of the positioning sensor.
[0032] In order to achieve the above object, according to a second aspect of the present invention, a mobile robot parameter joint calibration system is provided, which includes:
[0033] A storage unit, configured to store a program including any of the steps of the above-mentioned method for joint calibration of parameters of a mobile robot, for timely recall and execution by the control unit and the processing unit;
[0034] A control unit is used to control the mobile robot to walk a path through various modes, and to record the positioning trajectory information of the positioning sensor and the motor encoder data accordingly, and send them to the processing unit;
[0035] The processing unit combines the encoder data with the kinematic model of the mobile robot to calculate the ideal trajectory information of the mobile robot; then converts the positioning trajectory information into the trajectory information of the mobile robot according to the installation position of the positioning sensor, performs a differential alignment operation with the ideal trajectory information, and then solves the least squares problem to obtain the calibrated kinematic parameters of the mobile robot and the installation parameters of the positioning sensor.
[0036] In order to achieve the above-mentioned purpose, according to the third aspect of the present invention, a computer device is further provided, comprising a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of any one of the above-mentioned methods when executing the computer program.
[0037] In order to achieve the above-mentioned purpose, according to a fourth aspect of the present invention, a computer-readable storage medium is further provided, on which a computer program is stored, wherein the computer program implements the steps of any one of the above-mentioned methods when executed by a processor.
[0038] The mobile robot parameter joint calibration method, system, equipment, and storage medium provided by the present invention can simultaneously calibrate the kinematic and sensor parameters based on the least squares method for errors occurring in the kinematic components of the mobile robot during the manufacturing and installation processes, thereby improving the accuracy of the robot's operation.
[0039] Furthermore, the present invention allows the robot to automatically and simultaneously walk a pre-designed route encompassing all of its motion modes, while recording the positioning sensor's positioning information and the motor encoder's information. This allows for a single step in parameter calibration. Furthermore, by differentially aligning the actual and ideal positioning information, the robot's motion characteristics during operation are effectively utilized, thereby improving the convergence efficiency of parameter calculations. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are intended to explain the present invention and do not constitute an undue limitation of the present invention. In the accompanying drawings:
[0041] FIG1 is a schematic diagram of the steps of a method for joint calibration of parameters of a mobile robot according to the present invention;
[0042] FIG2 is a schematic diagram of the processing logic of the mobile robot parameter joint calibration method of the present invention;
[0043] FIG3 is a schematic diagram of a dual-steering wheel structure definition of a mobile robot parameter joint calibration method according to the present invention;
[0044] FIG4 is a schematic diagram of a single steering wheel structure definition of a mobile robot parameter joint calibration method according to the present invention;
[0045] FIG5 is a schematic diagram of the definition of the differential wheel structure of the mobile robot parameter joint calibration method of the present invention;
[0046] 6 is a schematic diagram of an actual moving trajectory of a mobile robot corresponding to the path of FIG. 7 in the mobile robot parameter joint calibration method of the present invention;
[0047] FIG7 is a schematic diagram of a Θ-shaped path defined in the joint parameter calibration method for a mobile robot according to the present invention;
[0048] FIG8 is a schematic diagram of bringing calibration parameters into an offline odometer and comparing them with a real trajectory in the joint parameter calibration method for a mobile robot according to the present invention;
[0049] FIG9 is a schematic diagram of bringing calibration parameters into an offline odometer and aligning the calibration parameters with the actual trajectory in the joint parameter calibration method of a mobile robot according to the present invention;
[0050] FIG10 is a schematic diagram of a "Chuan-shaped" path required for a single-steering wheel vehicle to travel in the mobile robot parameter joint calibration method of the present invention;
[0051] FIG11 is a schematic diagram of the trajectory of a single-steering wheel vehicle after actually walking a Sichuan-shaped path in the joint parameter calibration method for a mobile robot according to the present invention;
[0052] FIG12 is a schematic diagram illustrating the method for joint parameter calibration of a mobile robot according to the present invention, wherein a single-steering wheel vehicle is required to bring calibration parameters into an offline odometer and differentially align the calibration parameters with the actual trajectory;
[0053] FIG13 is a schematic diagram illustrating the method for joint calibration of mobile robot parameters according to the present invention, wherein calibration parameters are brought into an offline odometer of a dual-differential wheel vehicle and compared with the actual trajectory;
[0054] FIG14 is a schematic diagram illustrating the method for joint calibration of parameters of a mobile robot according to the present invention, wherein calibration parameters are brought into an offline odometer in a dual-differential wheel vehicle and differentially aligned with the actual trajectory;
[0055] FIG15 is a schematic diagram of the structure of the parameter joint calibration system of the mobile robot of the present invention.
[0056] Explanation of reference numerals: first steering wheel motor 1, second steering wheel motor 2, first travel motor a, second travel motor b, first steering motor a1, second steering motor b1, positioning laser c, driven wheel d. DETAILED DESCRIPTION
[0057] In order to enable those skilled in the art to better understand the technical solutions of the present invention, the specific technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments to help those skilled in the art further understand the present invention. Obviously, the embodiments described in this case are only embodiments of a part of the present invention, rather than all embodiments. It should be pointed out that, for those of ordinary skill in the art, the embodiments in this application and the features in the embodiments can be combined with each other without departing from the concept of the present invention and without conflicting with each other. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative work should fall within the disclosure and protection scope of the present invention.
[0058] In addition, the terms "first", "second", "S1", "S2", etc. in the specification, claims and drawings of the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those described herein. At the same time, the terms "including" and "having" and any variations thereof in the present invention are intended to cover non-exclusive inclusions. Unless otherwise expressly specified and limited, the terms "setting", "layout", "installation", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a communication between the two elements. For ordinary technicians in this field, the specific meanings of the above terms in this case can be understood based on the specific circumstances and in combination with the existing technology.
[0059] Referring to Figures 1 to 14 , in order to achieve automatic calibration and simultaneously calibrate the installation parameters of the positioning sensor while calibrating the robot's kinematic parameters, a first embodiment of the present invention provides a method for joint calibration of mobile robot parameters, comprising the following steps:
[0060] Step S100: The mobile robot is instructed to walk a path that passes through various modes, while correspondingly recording positioning trajectory information of the positioning sensor and motor encoder data.
[0061] Specifically, the execution modal path is a motion state composed of the robot's forward, backward, left turn, straight, right turn and other behaviors, for example: straight forward, left turn and backward. At this time, the position information of the positioning sensor during the robot's movement can be recorded in real time. pi =[x pi ,y pi , α pi ] T , and the motor encoder data information u i =[w 1i , w 2i ,L,w ki , s 1i , s 2i ,L,s li ] T .
[0062] Among them, t pi represents the positioning trajectory of the positioning sensor at time i, x pi ,y pi , α pi Respectively represent the horizontal coordinate, vertical coordinate and heading angle of the positioning trajectory at time i. i represents the data read from the encoder at time i, w ki represents the encoder data of the kth walking motor (i.e., the motor that controls the robot's walking) at time i, where the subscript k represents the number of walking motors, S Ii Represents the encoder data of the I-th steering motor (i.e., the motor that controls the steering of the robot) at time i, and the subscript I represents the number of steering motors.
[0063] For the dual-steering wheel mobile robot shown in FIG3 , k=I=2.
[0064] For the single-steering wheel mobile robot shown in FIG4 , k=I=1.
[0065] For the two-wheel differential trolley mobile robot shown in FIG5 , k=2, I=0.
[0066] When the robot walks a path, assuming that the positioning trajectory information and encoder data information are recorded at N moments, the total positioning information recorded when traveling this path is T p =[t p1 , t p2 ,Λ,t pN ], the total encoder data information is U = [u1, u2, Λ, uN ], N is the number of data points.
[0067] Step S200: combining the encoder data with the kinematic model of the mobile robot to calculate the ideal trajectory information of the mobile robot.
[0068] Specifically, we first need to design an offline odometer to calculate the ideal trajectory information of the robot based on the encoder data and the robot kinematic model. in Represents the ideal positioning position at the i-th moment. Different types of offline odometry need to be set for different robot models.
[0069] As shown in Figures 3 to 5, the mobile robot model needs to design: a dual-steering wheel car offline odometer, a single-steering wheel car offline odometer, and a dual-wheel differential car offline odometer.
[0070] Assume that at time i, the encoder data W recorded by the mth walking motor is mi is the cumulative distance traveled by the motor, and the encoder data S recorded by the nth steering motor ni is the current angle value of the steering motor.
[0071] Then we can calculate the distance traveled by the motor between time i and time i+1: ΔW mi =W mi+1 -W mi and the average value of the steering motor angle: ΔS ni =(S ni+1 +S ni ) / 2.
[0072] According to this calculation method, the approximate distance traveled by each motor relative to the current position of the robot between time i and time i+1 can be calculated.
[0073] Because in different types of robots, the number m of walking motors and the number n of steering motors are not equal. Some robots only have walking motors but no steering motors, and some robots have walking motors and steering motors installed together as a pair of combined motors.
[0074] Therefore, in the derivation of this patent, the calculation formulas of the travel motor and the steering motor are unified into one calculation form, and it is assumed that both the travel motor and the steering motor are regarded as a motor composed of the travel motor and the steering motor.
[0075] Then the distance traveled by the kth motor (k = 1, 2, ..., max(m, n)) relative to the current position of the robot between time i and time i + 1 is calculated as:
[0076] It should be noted that, after all motors are assumed to be combined motors, the number k can be directly calculated as the number of locations where the motors are installed.
[0077] In formula (1), for the travel motor, since it is assumed that it is a motor that combines a travel motor and a steering motor, it can be considered that only the travel motor is active, and its ΔS ki = 0, there is only displacement in the x direction.
[0078] For the steering motor, it is assumed that it is a motor that combines a travel motor and a steering motor. It can be considered that only the steering motor is active, and its Δw ni =0, there is no displacement in the x and y directions, and it only has the function of steering.
[0079] For motors whose installation positions of the travel motor and the steering motor coincide (i.e., motors with both travel and steering functions, such as steering wheel motors), there is displacement in both the x-direction and the y-direction.
[0080] As shown in Figures 3 and 4, in the dual-steering wheel and single-steering wheel mobile robots, since the steering motor and the walking motor are installed at the same position, the distance traveled by the car between time i and time i+1 relative to the current position of the robot changes in both the x and y directions.
[0081] In the two-wheel differential mobile robot shown in Figure 5, since there is no steering click, the angle of the steering motor can be considered to be 0°, so there is only a position change in the x direction. k represents the radius of the wheel of the walking motor in the kth hypothetical combination motor.
[0082] Here, Δb is used i =[Δx 1i , Δy 1i , Λ, Δx ki , Δy ki ] T Indicates the distance traveled by each actuator of the robot between time i and time i+1, in Δb i In the equation, Δx ki , Δy ki The order of arrangement and the number of k vary depending on the robot kinematic model.
[0083] According to the relationship between the walking motor and steering motor of the mobile robot and the robot movement, the robot's posture change Δt at each moment can be obtained ci =[Δx ci Δy ci Δα ci ] T The calculation formula (Δxci is the position change in the x direction, Δy ci is the position change in the y direction, Δα ci is the change of the robot's heading angle):
[0084] Δt ci =KΔb i ;
[0085] Here, matrix K represents the robot's kinematic characteristics. Specifically, in the calculation of the offline odometer for the dual-steering wheel car shown in Figure 3 , the steering wheel motor is defined as the steering motor and the travel motor being installed at the same position. The calculation steps for the ideal trajectory information include:
[0086] Δb i =[Δx 1i , Δy 1i , Δx 2i , Δy 2i ] T ,
[0087] K=(A T A) -1 A T ,
[0088] Where Δx 1i , Δy 1i , Δx 2i , Δy 2i where x1 and y1 are the position changes of the first and second steering wheel motors in the x and y axis directions at time i, respectively. x1 and y1, x2 and y2 are the x and y axis coordinates of the first and second steering wheel motors in the robot coordinate system, respectively. T is the transpose, and A is the kinematic characteristic matrix of the robot in the non-overconstrained state. (Note: In this model, the walking motor and the steering motor are installed in the same position, and this installation method is also reasonable in actual production. Since the dual-steering wheel robot is in an overconstrained state at this time, the K matrix is the pseudo-inverse of the kinematic matrix A.)
[0089] In the calculation of the offline odometer of the single-steering wheel car shown in FIG4 , the steering wheel motor is defined as the steering motor and the travel motor are installed at the same position. The calculation steps of the ideal trajectory information include:
[0090] Δb i =[Δx 1i , Δy 1i ] T ,
[0091] Where Δx 1i ,Δy 1iis the position change of the first steering wheel motor in the x and y axis directions at time i, x1 is the x-axis coordinate of the first steering wheel motor in the robot coordinate system, and T is the transpose.
[0092] In the calculation of the off-line odometer of the two-wheel differential car shown in FIG5, since the differential wheel motor is defined as the walking motor, its Δy ki =0, so it is ignored in the following formula. The calculation steps of the ideal trajectory information include:
[0093] Δb i =[Δx 1i , Δx 2i ] T ,
[0094] Where Δx 1i ,Δx 2i is the position change of the first and second walking motors a and b in the x-axis direction at time i, y1 and y2 are the y-axis coordinates of the first and second walking motors a and b in the robot coordinate system, α ci is the heading angle of the mobile robot at time i, and α ci+1 =α ci +Δα ci , 1≤i≤n,α c1 is the heading angle of the robot at the initial moment, and T is the transpose.
[0095] Furthermore, the position of the offline odometry at the initial moment can be directly used as the position of the robot in this positioning environment t c1 =[x c1 y c1 α c1 ] T , according to the posture data obtained by the positioning sensor at the initial moment, the method of converting to the posture data of the robot at the initial moment can be obtained by referring to the calculation formula 2 in the following step S300.
[0096] The robot's motion data Δt at each moment is calculated based on the initial pose data and the motor encoder data. ci =[Δx ci Δy ci Δα ci ] T Using the accumulation method, the ideal offline trajectory of a robot driven by the motor encoder data can be calculated.
[0097] The above is an example of how an offline odometer calculates the ideal trajectory of a mobile robot driven by the encoder data based on the motor encoder data and the robot's kinematic model.
[0098] From the derivation of the above offline odometer, we can know that according to the encoder data information U=[u1,u2,Λ,u N ] can calculate the ideal trajectory information of the robot under the recorded encoder data
[0099] Step S300: Convert the positioning trajectory information into the trajectory information of the mobile robot according to the installation position of the positioning sensor, perform differential alignment operation with the ideal trajectory information, and then solve the least squares problem to obtain the calibrated mobile robot kinematic parameters and the installation parameters of the positioning sensor.
[0100] Specifically, the steps of converting the positioning trajectory information into the trajectory information of the mobile robot according to the installation position of the positioning sensor include:
[0101] Step S301: For a pose vector [x, y, ∝] containing position x, y and angle α T For vectors, there is a corresponding homogeneous transformation matrix:
[0102] This transformation is called Pose2Trans().
[0103] Assume that the robot's positioning sensor trajectory information is T p =[t p1 , t p2 ,Λ,t pN ], the installation position of the positioning sensor relative to the robot coordinate center is [x p ,y p , α p ], the robot trajectory information is T c =[t c1 , t c2 ,Λ,t cN ], then the calculation relationship between the three is:
[0104] Furthermore, the step of performing a differential alignment operation on the trajectory information of the mobile robot and the ideal trajectory information includes:
[0105] Step S302: The purpose of the differential alignment operation is to separate the motion characteristics of each time period of the robot during operation from the overall operation trajectory. The calculation process is as follows.
[0106] The known robot trajectory information is T c =[t c1 , t c2 ,Λ,t cN ], t ci =[x ci ,yci , α ci ] T , the difference interval is ndiff, and the vector t can be calculated ci The homogeneous transformation relationship between it and the vector tc(i+ndiff) is:
[0107] Then the differential alignment trajectory DT can be obtained c =[dt c1 , dt c2 ,Λ,dtc(N-ndiff)], where dt ci =[dx i ,dy i , dα i ] T .
[0108] Formula (3) is the difference data t of the trajectory ci and tc(i+ndiff) are obtained through homogeneous transformation, so formula (3) is also called the differential alignment formula.
[0109] According to formula (3), the ideal robot trajectory can be obtained By the differential alignment formula
[0110] From this we can calculate the differential trajectory of the ideal robot trajectory in
[0111] Finally, the steps to solve the least squares problem include:
[0112] Step S303: In order to obtain a set of kinematic parameters and sensor parameters that make the robot's motion characteristics in each time period as close to the actual motion characteristics as possible, we hope to align the differential alignment data dt of the positioning trajectory at each moment ci The data can be aligned with the difference of the ideal trajectory at that moment are as equal as possible.
[0113] Therefore, the cost function is designed into the following least squares form:
[0114] Where N-ndiff represents the number of data points after differential alignment, and its value is the difference between the number of trajectory points N and the differential spacing ndiff. is the ideal trajectory positioning position at the i-th moment after differential alignment, dt ci is the trajectory positioning position of the mobile robot after differential alignment, and T is the transpose.
[0115] Furthermore, there are many methods for solving the least squares problem, such as gradient descent, Newton's method, Gauss-Newton method, LM method, etc. In this example, the LM algorithm (Levenberg-Marquarelt algorithm, an algorithm for iteratively finding the extreme value of a function) is preferred because it approximates the gradient descent method when the distance to the optimal solution is far, and approximates the Gauss-Newton method when the distance to the optimal solution is close, so it has high convergence efficiency. In addition, as a commonly used algorithm for processing nonlinear least squares problems, its calculation process belongs to the prior art and is therefore not described here.
[0116] It is also worth mentioning that this patent uses the LM algorithm to solve the least squares problem. In constructing the least squares problem of this patent, if the LM algorithm for solving the least squares problem is regarded as a controller, the tracking output signal of this controller is the differential alignment data dt of the robot's positioning trajectory. ci ,The input signals are the robot’s kinematic model parameters and sensor installation parameters.
[0117] For example:
[0118] For the dual-steering wheel vehicle shown in Figure 3, the kinematic model parameters are: the wheel diameter r of the vehicle, the wheel installation positions x, y, and the angular difference Δδ between the two steering angle offsets.
[0119] For the single-steering wheel car shown in Figure 4, the kinematic model parameters are: the wheel diameter r of the car and the position x where the wheel is installed.
[0120] For the two-wheel differential car shown in Figure 5, the kinematic model parameters are: the wheel diameter r of the car and the position y where the wheels are installed.
[0121] The installation parameters of the sensor are: the installation position of the sensor in the x-direction, the installation position of the sensor in the y-direction, and the installation angle of the sensor relative to the positive direction of the x-axis of the vehicle body.
[0122] In step S301 , the robot positioning trajectory information may be calculated based on the information of the robot positioning sensor and the installation position of the positioning sensor.
[0123] In step S200 , the ideal trajectory information of the robot can be calculated based on the recorded encoder data and the robot motion model parameters.
[0124] In step S302 , the robot positioning trajectory and the ideal trajectory of the robot may be converted into variables in formula 5 in step S303 through formulas 3 to 4.
[0125] Thus, the relationship between the robot kinematic parameters, the positioning sensor installation position parameters, and the least squares cost function formula 5 can be established. During the LM solution process, by continuously iterating the values of the robot kinematic parameters and the positioning sensor installation position parameters, a set of parameters that minimizes the cost function value in formula 5 is obtained, which is the final solution.
[0126] From this, we can see that the goal of this example is to find a set of robot kinematic parameters and positioning sensor installation parameters that make the motion characteristics of each time period as close as possible to the actual motion characteristics.
[0127] Experimental Example 1
[0128] Take the double-steering wheel trolley shown in Figure 3 as an example.
[0129] When calculating the first and second steering wheel motors, it can be defined as the steering motor and the travel motor installed at the same position. It is known that the installation position of the first travel motor a is (0.65m, 0.45m), and its wheel diameter is 0.08m. The installation position of the second travel motor b is (-0.65m, -0.45m), and its wheel diameter is 0.08m.
[0130] The installation position of the positioning laser c relative to the vehicle coordinate system is (0.7m, 0.5m, -40°). Before calibration, the following assumption is made: the wheel diameters of the two travel motors are the same, that is, r1 = r2 = r.
[0131] The two wheels are mounted symmetrically about the center of the robot's coordinate system, i.e., x1 = -x2 = x, y1 = -y2 = y. Furthermore, the steering angle offsets of the two steering motors have been compensated. The robot kinematic parameters that need to be calibrated are: the wheel diameter r, the wheel mounting positions x and y, the angular difference Δδ between the two steering angle offsets, and the mounting position x of the positioning sensor relative to the robot's coordinate system. p ,y p , α p .
[0132] The process is as follows:
[0133] For the dual-steering wheel vehicle, to enable the robot to simultaneously navigate a route encompassing all different motion modes, a "Θ-shaped" path was designed (the shape of this path is shown in Figure 7). In this example, the diameter of the Θ-shaped path is 3 meters, and the robot is driven to traverse this path twice. The actual positioning trajectory of the robot under this behavior is shown in Figure 6.
[0134] 2. Calculate the ideal walking trajectory of the robot based on the data information stored by the encoder and the robot kinematic parameters. The kinematic matrix at this time is
[0135] The motor encoder data at a moment in the forward right turn mode is selected for analysis. At this time, Δw 1i =0.02654m,Δs 1i =72.356°, Δw 2i =0.02582m,Δs 1i =70.523°, according to the current r = 0.08m, we get Δb at this time i =[0.00064362m 0.002m 0.0006888m 0.0019m] T Substituting into the kinematic matrix K, we can get the posture change Δt at this time ci =[0.0007m 0.0019m 0.0001rad] T The ideal trajectory of the robot can be calculated by continuously accumulating the posture changes at each moment according to the initial posture, as shown in Figure 7.
[0136] 3 Because the installation position of the positioning sensor is (0.7m, 0.5m, -40°), the sensor trajectory information can be T p The actual trajectory information T of the robot is transformed into c ,Right now
[0137] 4 By constructing a nonlinear least squares problem based on the actual walking trajectory and the ideal trajectory of the robot and solving it using the LM algorithm, the parameter calibration results are: r = 0.08105m, x = 0.65112m, y = 0.44998m, Δδ = 0.12541°, x p =0.69682m,y p =0.51088m,α p =-41.00248°.
[0138] The calibration parameters were applied to the offline odometry and compared with the actual trajectory, as shown in Figure 8 and the differential alignment diagram in Figure 9. The fitting error converged from the initial 0.213m to 0.01403m. Since positioning information inevitably introduces positioning error during measurement, the final fitting error is within an acceptable range.
[0139] Experimental Example 2
[0140] Take the single steering wheel trolley shown in Figure 4 as an example.
[0141] When calculating, the first steering wheel motor can be defined as a steering motor installed at the same position as the travel motor. It is known that the installation position of the first travel motor a is (0.877m, 0m), and the wheel diameter of the first travel motor a is 0.115m.
[0142] The installation position of the positioning laser c relative to the vehicle coordinate system is (0.902m, 0m, 0°). Before calibration, the following assumptions are made: the steering angle offset of the steering motor has been compensated, and the axes of the two driven wheels d of the rear wheel coincide and are parallel to the y-axis of the robot coordinate system. The robot kinematic parameters that need to be calibrated are: the wheel diameter r of the vehicle, the wheel installation position x1, and the installation position x of the positioning sensor relative to the robot coordinate system. p ,y p ,α p .
[0143] The process is as follows:
[0144] 1 For the single-steering wheel car, in order to make the robot walk out of a route that includes various motion modes at one time, the robot's walking path is designed to be a "chuan-shaped" path, as shown in Figure 10. The length of the path is 3m, and the robot is driven to walk back and forth on the trajectory twice.
[0145] 2. Based on the data information stored by the encoder and the robot's kinematic parameters, the ideal walking trajectory of the robot is calculated. The kinematic matrix at this time is:
[0146] The motor encoder data of a forward left turn moment is selected for analysis. At this time, Δw 1i =0.0352m,Δs 1i =36.28°.
[0147] According to the current r=0.115m, we can get Δb at this time. i =[0.0033m 0.0024m] T Substituting into the kinematic matrix K, we can get the posture change Δt at this time ci =[0.0033m 0.0024m 0.0027rad] T The ideal trajectory of the robot can be calculated by continuously accumulating the posture changes at each moment based on the initial posture.
[0148] 3 Since the installation position of the positioning sensor is (0.902m, 0m, 0°), the sensor trajectory information can be T p The actual trajectory information T of the robot is transformed into c ,Right now
[0149] 4 By constructing a nonlinear least squares problem based on the actual walking trajectory and the ideal trajectory of the robot and solving it using the LM algorithm, the parameter calibration results are: r = 0.11612m, x1 = 0.877m, x p =0.9035m,y p =0m,α p=-0.32°. The above calibration parameters are brought into the offline odometer and compared with the real trajectory, as shown in Figure 11, which is the trajectory diagram, and Figure 12, which is the differential alignment diagram.
[0150] Experimental Example 3
[0151] Take the two-wheel differential car shown in Figure 5 as an example.
[0152] It is known that the installation position of the first walking motor a is (0m, 0.315m), and the wheel diameter of the first walking motor a is 0.08m. The installation position of the second walking motor b is (0m, -0.315m), and the wheel diameter of the second walking motor b is 0.08m. The installation position of the positioning laser c relative to the vehicle coordinate system is (0.39m, 0m, 0°). Before calibration, the following assumptions are made: the wheel diameters of the two walking motors are the same, that is, r1=r2=r, and the positions of the two wheels are symmetrical relative to the robot's mileage center. The robot kinematic parameters that ultimately need to be calibrated are: the wheel diameter r of the trolley, and the distance y1-y2 between the two walking motors. The installation position x of the positioning sensor relative to the robot coordinate system p ,y p ,α p .
[0153] The process is as follows:
[0154] For the two-wheel differential vehicle, to enable the robot to travel a route encompassing all different motion modes simultaneously, a "Θ-shaped" path was designed (see Figure 7). The diameter of this Θ-shaped path is 3 meters, and the robot is driven to travel this trajectory twice.
[0155] 2. Calculate the ideal walking trajectory of the robot based on the data information stored by the encoder and the robot's kinematic parameters.
[0156] The motor encoder data at a moment in the forward right turn mode is selected for analysis. At this time, the heading angle α ci =35.65°.
[0157] At this time Δw 1i =0.03562m, Δw 2i =0.03157m, according to the current r = 0.08m, we get Δb at this time i =[0.0028m 0.0025m] T Substituting into the kinematic matrix K, we can get the posture change Δt at this time ci =[0.0022n 0.0015n -0.000476rad] T Then, the ideal trajectory of the robot can be calculated by continuously accumulating the posture changes at each moment based on the initial posture.
[0158] 3 Since the installation position of the positioning sensor is (0.39m, 0m, 0°), the sensor trajectory information can be T p The actual trajectory information T of the robot is transformed into c ,Right now:
[0159] 4 By constructing a nonlinear least squares problem based on the actual walking trajectory and the ideal trajectory of the robot and solving it using the LM algorithm, the parameter calibration results are: r = 0.082m, y1 = -y2 = 0.3172m, x p =0.3927m,y p =0m,α p =1.57°.
[0160] The above calibration parameters are brought into the offline odometer and compared with the real trajectory. The trajectory diagram is shown in Figure 13, and the differential alignment diagram is shown in Figure 14.
[0161] Corresponding to the above method, referring to FIG. 15 , a second aspect of the present invention further provides a mobile robot parameter joint calibration system, which includes:
[0162] A storage unit, configured to store a program including any of the steps of the above-mentioned method for joint calibration of parameters of a mobile robot, for timely recall and execution by the control unit and the processing unit;
[0163] A control unit is used to control the mobile robot to walk a path through various modes, and to record the positioning trajectory information of the positioning sensor and the motor encoder data accordingly, and send them to the processing unit;
[0164] The processing unit combines the encoder data with the kinematic model of the mobile robot to calculate the ideal trajectory information of the mobile robot; then converts the positioning trajectory information into the trajectory information of the mobile robot according to the installation position of the positioning sensor, performs a differential alignment operation with the ideal trajectory information, and then solves the least squares problem to obtain the calibrated kinematic parameters of the mobile robot and the installation parameters of the positioning sensor.
[0165] Corresponding to the above method, the third aspect of the present invention further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0166] Corresponding to the above method, the fourth aspect of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any one of the above methods when executed by a processor.
[0167] To sum up, the joint parameter calibration method, system, equipment, and storage medium of the mobile robot provided by the present invention can simultaneously calibrate the kinematic and sensor parameters based on the least squares method for errors occurring in the kinematic components of the mobile robot during the manufacturing and installation processes, thereby improving the accuracy of the robot's operation.
[0168] Furthermore, the present invention allows the robot to automatically and simultaneously walk a pre-designed route encompassing all of its motion modes, while recording the positioning sensor's positioning information and the motor encoder's information. This allows for a single step in parameter calibration. Furthermore, by differentially aligning the actual and ideal positioning information, the robot's motion characteristics during operation are effectively utilized, thereby improving the convergence efficiency of parameter calculations.
[0169] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made based on the contents of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can better understand and utilize the present invention. The present invention is only limited by the claims and their full scope and equivalents. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0170] Those skilled in the art will appreciate that, in addition to implementing the systems, devices, and their respective modules provided by the present invention in purely computer-readable program code, it is entirely possible to implement the same programs in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, embedded microcontrollers, and the like by logically programming the method steps. Therefore, the systems, devices, and their respective modules provided by the present invention can be considered a hardware component, and the modules included therein for implementing various programs can also be considered structures within the hardware component. The modules for implementing various functions can also be considered both software programs for implementing the method and structures within the hardware component.
[0171] In addition, all or part of the steps in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a single-chip microcomputer, chip or processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program code.
[0172] In addition, various implementations of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed in the embodiments of the present invention.
Claims
1. A method for joint calibration of parameters of a mobile robot, characterized in that the steps include: Step S100: The mobile robot walks a path through various modes, and correspondingly records the positioning trajectory information of the positioning sensor and the motor encoder data; Step S200 combines the encoder data with the kinematic model of the mobile robot to calculate the ideal trajectory information of the mobile robot; Step S300 converts the positioning trajectory information into the trajectory information of the mobile robot according to the installation position of the positioning sensor, performs a differential alignment operation with the ideal trajectory information, and then solves the least squares problem to obtain the calibrated kinematic parameters of the mobile robot and the installation parameters of the positioning sensor.
2. The method according to claim 1, characterized in that In step S200, the step of calculating the ideal trajectory information includes: calculating Δt ci =KΔb i , Where Δt ci The position change of the mobile robot at any moment; K is the kinematic model of the mobile robot; Δb i is the distance traveled by each actuator of the mobile robot at time i; Then the initial pose data and Δt ci The ideal trajectory information is calculated by accumulation.
3. The method according to claim 2, characterized in that When the mobile robot has a dual-steering wheel structure, the steering wheel motor is defined as the steering motor and the walking motor are installed at the same position, and the calculation steps of the ideal trajectory information include: Let Δb i = [Δx 1i , Δy 1i , Δx 2i , Δy 2i T ; K=(A T A) -1 A T ; Where Δx 1i ,Δy 1i , Δx 2i , Δy 2i are the position changes of the first and second steering wheel motors in the x and y axis directions at time i, respectively. x1 and y1, x2 and y2 are the x and y axis coordinates of the first and second steering wheel motors in the robot coordinate system, respectively. T is the transpose, and A is the kinematic characteristic matrix of the mobile robot in the non-overconstrained state.
4. The method according to claim 2, characterized in that: When the mobile robot has a single steering wheel structure, the steering wheel motor is defined as the steering motor and the walking motor are installed at the same position, and the calculation steps of the ideal trajectory information include: Let Δb i = [Δx 1i , Δy 1i T ; Where Δx 1i ,Δy 1i is the position change of the first steering wheel motor in the x and y axis directions at time i, x1 is the x-axis coordinate of the first steering wheel motor in the robot coordinate system, and T is the transpose.
5. The method according to claim 2, characterized in that: When the mobile robot has a dual differential wheel structure, the differential wheel motor is defined as a walking motor, and the calculation steps of the ideal trajectory information include: Let Δb i = [Δx 1i , Δx 2i T ; Where Δx 1i ,Δx 2i is the position change of the first and second walking motors in the x-axis direction at time i, y1 and y2 are the y-axis coordinates of the first and second walking motors in the robot coordinate system, α ci is the mobile robot at time i The heading angle at the moment, and α ci+1 =α ci +Δα ci ,1≤i≤n,α c1 is the heading angle of the robot at the initial moment, and T is the transpose.
6. The method according to claim 1, characterized in that In step S300, the least squares problem is: Where N-ndiff represents the number of data points after differential alignment, and its value is the difference between the number of trajectory points N and the differential spacing ndiff. is the ideal trajectory positioning position at the i-th moment after differential alignment, dt ci is the trajectory positioning position of the mobile robot after differential alignment, and T is the transpose. Through iterative calculation, the parameters with the smallest cost function value are used as the calibrated kinematic parameters of the mobile robot and the installation parameters of the positioning sensor.
7. A mobile robot parameter joint calibration system, characterized in that include: A storage unit, used to store a program including the steps of the method for joint calibration of parameters of a mobile robot as claimed in any one of claims 1 to 6, so that the control unit and the processing unit can call and execute the program in due time; A control unit is used to control the mobile robot to walk a path through each mode, and to record the positioning trajectory information of the positioning sensor and the motor encoder data accordingly, and send them to the processing unit; The processing unit combines the encoder data with the kinematic model of the mobile robot to deduce the ideal trajectory information of the mobile robot; then converts the positioning trajectory information into the trajectory information of the mobile robot according to the installation position of the positioning sensor, performs a differential alignment operation with the ideal trajectory information, and then solves the least squares problem to obtain the calibrated kinematic parameters of the mobile robot and the installation parameters of the positioning sensor.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Calibration algorithm for wheel encoder for four-wheel mobile robot
CN109916431A
Robot positioning detection and adjustment method
CN111687842A
Calibration method and device for mounting errors of absolute pose sensor
CN112643665A
Joint calibration method and system for parameters of mobile robot, equipment and storage medium
CN116026368A
Systems, apparatuses, and methods for bias determination and value calculation of parameters of a robot
US20210191401A1
Cited By
Industrial robot calibration method and device based on LM algorithm of PID controller
CN119927917A
Multi-steering-wheel calibration method and device and storage medium
CN121475109A
