Data processing system, method and device based on visual positioning and formation prediction

Through visual positioning and Kalman filter technology, a nonlinear error model is constructed and solved online, and the optimal control input is used to solve the problem of positioning and control of the visual formation in an unknown environment and improve the stability and accuracy of the formation.

CN118456447BActive Publication Date: 2024-09-24GUANGDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410912761.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-24
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Existing visual formation technology is difficult to maintain high-precision positioning in an unknown environment during pilot and follow, and traditional control methods cannot effectively handle multi-variable, nonlinear, and constrained systems, resulting in poor control performance.

Method used

A data processing system based on visual positioning and Kalman filtering is used to collect the position information of the pilot robot target through the camera, build a nonlinear error model of the robot motion, and transform it into solving a quadratic optimal problem to obtain the optimal control input. The primal-dual neural network is used to solve online to achieve real-time control.

Benefits of technology

It achieves stable and high-precision positioning and control in unknown environments, reduces communication redundancy, meets real-time requirements, and improves the stability and control performance of formation movements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118456447B
    Figure CN118456447B
Patent Text Reader

Abstract

The purpose of the present invention is to provide a data processing system, method and device based on visual positioning and formation prediction, including: an acquisition module, a construction module and a processing module; wherein the acquisition module is used to acquire the image of the following robot camera, and use the image to obtain the real measurement value and estimated value information of the position of the pilot robot; the construction module interacts with the acquisition module for data, and is used to construct a nonlinear error model of the robot motion according to the real measurement value and estimated value information of the position of the pilot robot; the processing module is used to convert the nonlinear error model of the robot motion into a quadratic optimal problem to obtain the optimal control input of the robot formation motion. This application is based on visual positioning and formation prediction. RGB‑D The camera directly identifies and locates the pilot robot, does not require map building and positioning, and is not affected by environmental updates, which is conducive to the stable operation of the visual formation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a data processing system, method and device based on visual Kalman filter positioning and model prediction for robot formation control based on visual image positioning data. Background Art

[0002] With the continuous development of robotics, computer vision and other technologies, the use of computer vision in robot control has attracted the attention of more and more researchers. Visual mobile robot formation is a collective action intelligent robot system, which is usually composed of multiple mobile robots with visual perception capabilities. They can use visual sensors to perform tasks such as target detection, obstacle avoidance, and environmental modeling in complex environments, thereby realizing the perception and understanding of the surrounding environment. At the same time, they will exchange information with other robots and decide their own actions based on pre-designed algorithms and strategies, as well as task requirements and the overall goals of the team, to complete various tasks in a collaborative way to achieve the formation goals.

[0003] In the existing leader-follower formation, the reference trajectory of the leader is given to guide the movement of the entire formation, and the followers follow the leader at a certain relative distance and angle. In this process, it is very important for the follower to obtain the information of the leader. Some use radar for positioning, some use the global view of the camera for positioning, and some choose the local view of the camera on the follower for positioning; for example, Poonawala et al. proposed a time-invariant state feedback control law and a method for determining the center coordinates of feature points on the leader robot using the segmented binary image captured by the perspective camera, thereby obtaining an accurate relative geometric information pose estimation method. Lin et al. realized the leader-follower formation of monocular vision mobile robots through image information, without the need for relative angles, distances or speeds of the leader robots. Fidan et al. used the prior information of the height of the robot and other objects in the environment to design a distance estimation scheme based on monocular vision, combined with the decentralized control law, to move the robots in the formation from any initial position to any terminal position. Liu et al. used visual feedback information to estimate the posture of the local leader, combined with the dipole vector field to design a formation control law to achieve formation control.

[0004] However, for existing visual formations, the common pilot-following method requires the follower to obtain the position information of the pilot through positioning. In order to improve the accuracy of positioning, it is necessary to use laser radar to build a map, which makes the process complicated and fails in unknown environments. It has relatively large limitations. In formation control, the visual field angle constraints are usually complex. The models used in traditional formation models involve many variables. At the same time, traditional PID control, sliding mode control (SMC) and other methods cannot handle multi-variable, nonlinear, and constrained systems. When there is a certain degree of uncertainty or change in the system model, poor control performance will be obtained.

[0005] Based on this, a data processing system with good control performance and capable of ensuring the stable operation of the robot formation needs to be developed urgently. Summary of the invention

[0006] In response to the deficiencies in the prior art, the present application proposes a data processing system, method and device based on visual positioning and formation prediction.

[0007] The technical solution adopted by this application to solve the above technical problems is:

[0008] A data processing system based on visual positioning and formation prediction is used to maintain stable operation of robot formation motion, including:

[0009] An acquisition module is used to acquire images from the camera of the following robot, use the images to obtain the position information of the target of the pilot robot, and use the images to obtain the real measurement value and estimated value information of the position of the pilot robot through Kalman filtering, so as to prevent the pilot robot as the target from being lost in the field of view when there is occlusion;

[0010] A construction module, which interacts with the acquisition module for data, and is used to construct a nonlinear error model of robot motion according to the real measured value and estimated value information of the position of the pilot robot;

[0011] The processing module exchanges data with the construction module and is used to transform the nonlinear error model of the robot motion into a quadratic optimal problem to obtain the optimal control input of the robot formation motion.

[0012] The step of using the picture to obtain the position information of the target of the pilot robot includes:

[0013] Connect the three-dimensional point in the camera coordinate system with the camera center, and intersect the connecting line with the imaging plane at one point to obtain the proportional relationship between the camera coordinate system and the pixel coordinate system;

[0014] The pixel coordinates of the target center of the pilot robot in the picture are obtained from the picture of the following robot camera, and the pixel coordinate system is converted into the camera coordinate system through the proportional relationship between the camera coordinate system and the pixel coordinate system to obtain the position information of the pilot robot target.

[0015] The 3D point in the camera coordinate system With camera center Draw a line and intersect the line with the imaging plane at a point , using the proportional relationship we get: ;

[0016] in, Represents the focal length of the following robot's camera, To follow the depth information of the robot camera;

[0017] From the picture of the following robot camera, the pixel coordinates of the target center of the pilot robot in the picture are obtained. ;

[0018] Assume that the image coordinates of the target center of the pilot robot on the imaging plane of the follower robot camera are , the center of the imaging plane is , then the conversion relationship from image coordinates to pixel coordinates is: ;

[0019] in, Respectively represent the length of the physical pixel in the two coordinate axis directions, which are the intrinsic parameters of the camera;

[0020] Then, the transformation relationship from the pixel coordinate system to the camera coordinate system is: [ x c y c z c ] = [ f / d x 0 x 0 0 f / d y y 0 0 0 1 ] − 1 z c [ u v 1 ] ;

[0021] in, The target position in the camera coordinate system obtained by following the robot camera visual positioning is based on the three-dimensional point The true measurement value of the position With 3D points Estimated value of , get the relative distance and relative angle ;

[0022] ,in is the vertical distance from the following robot's wheel axis to the center of its camera.

[0023] The method of using the image to obtain the real measurement value and estimated value information of the position of the pilot robot through Kalman filtering includes:

[0024] The state of the target on the pilot robot is estimated through Kalman filtering to obtain the position of the pilot robot;

[0025] Kalman filter system state equation: , where X i − 1 = [ x i − 1 x ˙ i − 1 ] is the state vector at the i-1th moment, C = [ 1 D t 0 1 ] is the transformation matrix, D = [ ( D t ) 2 / 2 D t ] is the system parameter, is the position of the target at the i-th moment, is the speed of the target at the i-th moment, For system input, is the system noise, is the sampling time;

[0026] State equation update: , is the coefficient matrix, To measure noise, is the true measurement value at the i-th moment;

[0027] Estimation equation: , is the i-th estimation result, is the covariance matrix of the i-th estimation result;

[0028] Kalman gain: , is the Kalman gain at the i-th moment, is the variance of the measurement noise.

[0029] The step of constructing a robot motion nonlinear error model based on the real measured value and estimated value information of the position of the pilot robot includes:

[0030] According to the real measured value and estimated value information of the position of the pilot robot, the robot kinematic model is expressed as: ; is the robot’s position and orientation angle in the world, Line speed exist The weight in direction, Line speed exist The weight in direction, is the angular velocity;

[0031] According to the robot kinematic model, the kinematic model of the robot formation is obtained:

[0032] ;

[0033] [ x ˜ y ˜ ] = [ cos ϕ f sin ϕ f − sin ϕ f cos ϕ f ] [ x L − x f y L − y f ] ;

[0034] in, is the position and orientation angle of the pilot robot, To follow the robot's position and orientation angle, Describes the relative displacement between the leader robot and the follower robot in the x and y directions. and Describes the relative distance and relative angle between the leading robot and the following robot;

[0035] According to the robot kinematic model and the robot formation kinematic model, the robot formation tracking error differential model is obtained: ;in, , is the linear velocity of the pilot robot, and are the linear velocity and angular velocity of the following robot respectively;

[0036] The robot formation tracking error differential model is discretized to obtain the robot motion nonlinear error model:

[0037] e ( i + 1 ) = [ e d ( i + 1 ) e i ( i + 1 ) ] = [ e d ( i ) − v f cos i Lf D t + v L cos ϑ f D t e i ( i ) − oh f D t + v f d Lf sin i Lf D t − v L d Lf sin ϑ f D t ] ;in, and Indicates The relative distance error and relative angle error between the leading robot and the following robot at all times. is the sampling time.

[0038] The step of converting the robot motion nonlinear error model into a quadratic optimal problem includes:

[0039] The nonlinear error model of the robot motion is written as follows:

[0040] ;

[0041] Satisfy the constraints: ;in, and is a continuous nonlinear function, ; e = [ e d e i ] T ∈ R 2 is the state vector; e = [ v f oh f ] T ∈ R 2 is the input vector, D e = [ D v f D oh f ] T ∈ R 2 is the increment of the input vector, Respectively represent The state vector, input vector and increment of input vector at time , are the minimum and maximum values ​​corresponding to the state vector, the minimum and maximum values ​​corresponding to the input vector, and the minimum and maximum values ​​corresponding to the increment of the input vector, respectively:

[0042] h ( e ) = [ e d e i ] + [ v L cos ϑ f − v L d Lf sin ϑ f ] D t , f ( e ) = [ − cos i Lf 0 sin i Lf d Lf − 1 ] D t ;

[0043] Assumptions and are the expected distance and angle between the leader and follower robots, respectively, and the expected state vector is D Lf = [ d des i des ] T , in order to achieve the control goal, the state of the formation system should eventually tend to the desired state:

[0044] ;

[0045] in,

[0046] K f = [ f ( e ( i | i − 1 )) ⋯ 0 f ( e ( i + 1 | i − 1 )) ⋯ 0 ⋮ ⋱ ⋮ f ( e ( i + p d − 1 | i − 1 )) ⋯ f ( e ( i + p d − 1 | i − 1 )) ] ∈ R 2 p d × 2 c d ;

[0047] h ˜ f = [ h ( e ( i | i − 1 )) h ( e ( i + 1 | i − 1 )) ⋮ h ( e ( i + p d − 1 | i − 1 )) ] ∈ R 2 p d , f ˜ f = [ f ( e ( i | i − 1 )) e ( i − 1 ) f ( e ( i + 1 | i − 1 )) e ( i − 1 ) ⋮ f ( e ( i + p d − 1 | i − 1 )) e ( i − 1 ) ] ∈ R 2 c d ;

[0048] The following standard quadratic function is used as the optimization objective, excluding terminal constraints and terminal regions, is the prediction domain range, is the control domain range, j is the time step, It represents the prediction of the state at the i-1th moment;

[0049] ;

[0050] Define the following variables:

[0051] e ¯ = [ e ( i − 1 | i ),..., e ( i + p d | i )] T ∈ R 2 p d e ¯ = [ e ( i | i ),..., e ( i + c d − 1 | i )] T ∈ R 2 c d D e ¯ ( i ) = [ D e ( i | i ),..., D e ( i + c d − 1 | i )] T ∈ R 2 c d D ¯ Lf = [ D Lf D Lf ⋯ D Lf ] T ∈ R 2 p d ;

[0052] The optimal problem to be solved for robot formation control is expressed as:

[0053] ;

[0054] Satisfy the constraints:

[0055] ;in, I ˜ = [ I 0 ⋯ 0 I I ⋯ 0 ⋮ ⋮ ⋱ ⋮ I I ⋯ I ] ∈ R 2 c d × 2 c d ;

[0056] The above optimal problem is then reconstructed into a quadratic programming problem:

[0057] ;

[0058] Satisfy constraints ;

[0059] H = 2 ( K f T S w K f + I w ) ∈ R 2 c d × 2 c d F = 2 K f T S w ( h ˜ f + f ˜ f − D ¯ Lf ) ∈ R 2 c d A = [ − I ˜ I ˜ − K f K f ] ∈ R ( 4 c d + 4 p d ) × 2 c d , b = [ − e ¯ minutes + e ¯ ( i − 1 ) e ¯ max − e ¯ ( i − 1 ) − e ¯ minutes + h ˜ f + f ˜ f e ¯ max − h ˜ f − f f ] ∈ R 4 c d + 4 p d ;

[0060] in, is the state weight matrix; The input incremental weight matrix I is the identity matrix;

[0061] The follower robot will use the primal-dual neural network to solve the above quadratic programming problem online and obtain the optimal control input in real time.

[0062] The following robot uses the primal-dual neural network to solve the above quadratic programming problem online and obtain the optimal control input in real time, including:

[0063] First, define the following vector:

[0064] k : = [ D e ¯ c ] , k + : = [ D e ¯ max + c + ] , k − : = [ D e ¯ minutes − c − ] ∈ R 4 p d + 6 c d ;

[0065] is the primal-dual decision vector, is the original dual decision coefficient, are the upper and lower bounds of the original dual decision;

[0066] Set the original dual decision coefficient Limiter , defined as follows:

[0067] ;

[0068] The dynamic equation of the original dual neural network is:

[0069] ;

[0070] in, is the convergence rate of the neural network, and the PDNN coefficient matrix is W = [ H − A T A 0 ] ∈ R ( 4 p d + 6 c d ) × ( 4 p d + 6 c d ) , or = [ F − b ] ∈ R 4 p d + 6 c d ;

[0071] The fourth-order Runge-Kutta method is used to solve the above primal-dual neural network dynamics equation, where h is the step size, as follows:

[0072] ;

[0073] Obtained through , to obtain the optimal control input .

[0074] A data processing method based on the above-mentioned data processing system based on visual positioning and prediction comprises:

[0075] The image is used to obtain the position information of the pilot robot target and the image is used to obtain the real measurement value and estimated value information of the position of the pilot robot through Kalman filtering to prevent the pilot robot as the target from being lost in the field of view when there is occlusion;

[0076] Constructing a nonlinear error model of robot motion according to the real measured value and estimated value information of the position of the pilot robot;

[0077] The nonlinear error model of robot motion is transformed into a quadratic optimal problem to obtain the optimal control input of the robot formation motion.

[0078] An electronic device for data processing, comprising:

[0079] Storage medium for storing computer programs;

[0080] The processing unit exchanges data with the storage medium, and is used to execute the computer program through the processing unit to perform the steps of the above method when the robot formation operation is performed.

[0081] A computer readable storage medium:

[0082] The computer readable storage medium stores a computer program;

[0083] When the computer program is run, the steps of the method described above are executed.

[0084] The beneficial effects brought by this application are:

[0085] The system described in the present application obtains the image of the follower robot's camera through an acquisition module, uses the image to obtain the position information of the pilot robot's target, and uses the image to obtain the real measurement value and estimated value information of the pilot robot's position through Kalman filtering, so as to avoid the pilot robot as the target from being lost in the field of view when there is occlusion; then, a nonlinear error model of the robot motion is constructed according to the real measurement value and estimated value information of the pilot robot's position through a construction module; finally, a processing module is used to transform the nonlinear error model of the robot motion into a quadratic optimal problem to obtain the optimal control input for the robot formation motion; the system described in the present application directly identifies and locates the pilot robot through a visual RGB-D camera, is not affected by environmental updates, and does not generate cumulative errors; at the same time, the distance and angle information of the leader obtained by the follower robot can complete the error model construction of the formation with minimal ROS topic communication, thereby reducing communication redundancy in formation motion. At the same time, combined with the visual field angle constraint, speed constraint is added to the predictive control method, and it is transformed into a problem of solving the quadratic optimal form through affine form. Finally, it is solved online through the original dual neural network to meet the real-time requirements and obtain the optimal control input, which is conducive to the stable operation of the visual formation. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 A block diagram of the system described in this application;

[0087] Figure 2 This is a schematic diagram of the Gazebo pilot-follow formation visual positioning simulation;

[0088] Figure 3 This is the view of the following robot; the green line in the middle has a field of view of 0, identifying the feature identification object directly above the pilot robot;

[0089] Figure 4 It is a schematic diagram of the pilot-follower visual formation;

[0090] Figure 5 This is a schematic diagram of the leader-follower visual formation system;

[0091] Figure 6 Predict control trajectory diagram for the pilot-follow visual formation;

[0092] Figure 7 is the position and velocity diagram of the pilot robot;

[0093] Figure 8 To follow the robot position velocity diagram;

[0094] Figure 9 It is the error map of the leader-follower visual formation;

[0095] Figure 10This is a flow chart of the data processing method described in this application. DETAILED DESCRIPTION

[0096] The present application is further described below in conjunction with the accompanying drawings. Specific embodiment 1:

[0098] This application provides an embodiment:

[0099] like Figure 1 A data processing system based on visual positioning and formation prediction is used to maintain stable operation of robot formation motion, including: an acquisition module 100, a construction module 200 and a processing module 300; wherein the acquisition module 100 is used to acquire images of a camera of a following robot, use the images to obtain position information of a pilot robot target, and use the images to obtain true measurement values ​​and estimated value information of the position of the pilot robot through Kalman filtering, so as to avoid the pilot robot as a target from being lost in the field of view when there is occlusion; the construction module 200 interacts with the acquisition module 100 for data, and is used to construct a nonlinear error model of robot motion according to the true measurement values ​​and estimated value information of the position of the pilot robot; the processing module 300 interacts with the construction module 200 for data, and is used to convert the nonlinear error model of robot motion into a quadratic optimal problem to obtain the optimal control input of the robot formation motion.

[0100] In specific use, the acquisition module 100 may be an RGB-D camera; in the system of this embodiment, the steps of using the picture to obtain the position information of the pilot robot target and using the picture to obtain the real measurement value and estimated value information of the position of the pilot robot through Kalman filtering to prevent the pilot robot as the target from being lost in the field of view when there is occlusion specifically include:

[0101] The position information of the pilot robot target is obtained through visual positioning, and the actual measurement value and estimated value information of the position are obtained through Kalman filtering.

[0102] like Figure 2 As shown, the three-dimensional point in the camera coordinate system With camera center The line connecting the two intersects the imaging plane at one point , using the proportional relationship

[0103] (1)

[0104] in, represents the focal length of the RGB-D camera, is the depth information of the RGB-D camera.

[0105] like Figure 3As shown in the figure, from the image of the following robot camera, the pixel coordinates of the target center of the leading robot in the image can be obtained. , assuming that the image coordinates of the target are , the center of the imaging plane is , then the conversion relationship from image coordinates to pixel coordinates is:

[0106] (2)

[0107] in, They represent the lengths of the physical pixel in the two coordinate axis directions, which are the intrinsic parameters of the camera.

[0108] Through the conversion relationship between (1) and (2), the conversion relationship from the pixel coordinate system to the camera coordinate system can be obtained as follows:

[0109] [ x c y c z c ] = [ f / d x 0 x 0 0 f / d y y 0 0 0 1 ] − 1 z c [ u v 1 ] (3)

[0110] in, The target position in the camera coordinate system obtained by RGB-D camera visual positioning, combined with the above position real measurement value With estimated value , and further the relative distance can be obtained and relative angle . ,in is the vertical distance from the following robot's wheel axis to the center of its camera.

[0111] The state of the target on the pilot robot is estimated through Kalman filtering to obtain the position of the pilot robot;

[0112] Kalman filter system state equation: , where X i − 1 = [ x i − 1 x ˙ i − 1 ] is the state vector at the i-1th moment, C = [ 1 D t 0 1 ] is the transformation matrix, D = [ ( D t ) 2 / 2 D t ] is the system parameter, is the position of the target at the i-th moment, is the speed of the target at the i-th moment, For system input, is the system noise, is the sampling time;

[0113] State equation update: , is the coefficient matrix, To measure noise, is the true measurement value at the i-th moment;

[0114] Estimation equation: (4) Among them, is the i-th estimation result, is the covariance matrix of the i-th estimation result;

[0115] Kalman gain: , is the Kalman gain at the i-th moment, is the variance of the measurement noise. When the target of the pilot robot is lost due to occlusion, the estimated position of the target is used instead of the actual position measurement value within a certain period of time to search for the target so that the pilot robot is controlled within the field of view.

[0116] In specific use, the steps of constructing a nonlinear error model of robot motion according to the real measured value and estimated value information of the position of the pilot robot include:

[0117] Based on the information of the visual positioning leader's target, the error kinematics model of the leader-follower formation is designed.

[0118] The motion of a nonholonomic wheeled mobile robot (WMR) is modeled. Assuming that the motion of the mobile robot cannot slide laterally and the translation velocity is in the motion direction, the kinematic model of the WMR under the nonholonomic constraints of pure rolling and non-sliding can be expressed as:

[0119] (5)

[0120] The RGB-D camera is installed in front of the follower mobile robot, and the target of the pilot robot is installed in a visible position directly above the pilot robot. is the robot’s position and orientation angle in the world, Line speed exist The weight in direction, Line speed exist The weight in direction, is the angular velocity.

[0121] like Figure 4 As shown in the figure, the kinematic model of the leader-follower robot formation can be expressed as:

[0122] (6)

[0123] [ x ˜ y ˜ ] = [ cos ϕ f sin ϕ f − sin ϕ f cos ϕ f ] [ x L − x f y L − y f ]

[0124] in, is the position and orientation angle of the pilot robot, To follow the robot's position and orientation angle, Describes the relative displacement between the leader robot and the follower robot in the x and y directions. and They respectively describe the relative distance and relative angle between the leading robot and the following robot. Combining (5) and (6), the formation tracking error differential model is obtained:

[0125] (7)

[0126] in, , is the linear velocity of the pilot robot, and are the linear velocity and angular velocity of the following robot respectively.

[0127] By discretizing the above model, we can get the following nonlinear error model:

[0128] e ( i + 1 ) = [ e d ( i + 1 ) e i ( i + 1 ) ] = [ e d ( i ) − v f cos i Lf D t + v L cos ϑ f D t e i ( i ) − oh f D t + v f d Lf sin i Lf D t − v L d Lf sin ϑ f D t ] (8)

[0129] in, and Indicates The relative distance error and relative angle error between the leading robot and the following robot at all times. is the sampling time.

[0130] In specific use, the steps of converting the nonlinear error model of robot motion into solving a quadratic optimal problem to obtain the optimal control input of the robot formation motion include:

[0131] Using the above nonlinear error model and combining it with the general form of discrete nonlinear affine system, the error model is transformed into solving the quadratic optimal problem.

[0132] The above formula (8) can be written as follows:

[0133] (9)

[0134] Satisfy the constraints: .in, and is a continuous nonlinear function, ; e = [ e d e i ] T ∈ R 2 is the state vector; e = [ v f oh f ] T ∈ R 2 is the input vector, D e = [ D v f D oh f ] T ∈ R 2 is the increment of the input vector, Respectively represent The state vector, input vector and increment of input vector at time , are the minimum and maximum values ​​corresponding to the state vector, the minimum and maximum values ​​corresponding to the input vector, and the minimum and maximum values ​​corresponding to the increment of the input vector, respectively:

[0135] h ( e ) = [ e d e i ] + [ v L cos ϑ f − v L d Lf sin ϑ f ] D t , f ( e ) = [ − cos i Lf 0 sin i Lf d Lf − 1 ] D t ;

[0136] Assumptions and are the expected distance and angle between the leader and follower robots, respectively, and the expected state vector is D Lf = [ d des i des ] T In order to achieve the control goal, model predictive control is used to make the state of the formation system eventually tend to the desired state. Expanding the prediction output formula (9), it can be expressed as follows:

[0137] (10)

[0138] in,

[0139] K f = [ f ( e ( i | i − 1 )) ⋯ 0 f ( e ( i + 1 | i − 1 )) ⋯ 0 ⋮ ⋱ ⋮ f ( e ( i + p d − 1 | i − 1 )) ⋯ f ( e ( i + p d − 1 | i − 1 )) ] ∈ R 2 p d × 2 c d (11)

[0140] h ˜ f = [ h ( e ( i | i − 1 )) h ( e ( i + 1 | i − 1 )) ⋮ h ( e ( i + p d − 1 | i − 1 )) ] ∈ R 2 p d , f ˜ f = [ f ( e ( i | i − 1 )) e ( i − 1 ) f ( e ( i + 1 | i − 1 )) e ( i − 1 ) ⋮ f ( e ( i + p d − 1 | i − 1 )) e ( i − 1 ) ] ∈ R 2 c d ;

[0141] The following standard quadratic function is used as the optimization objective, excluding terminal constraints and terminal regions, is the prediction domain range, is the control domain range, j is the time step, It represents the prediction of the state at the i-1th moment;

[0142] ; (12)

[0143] Define the following variables:

[0144] e ¯ = [ e ( i − 1 | i ),..., e ( i + p d | i )] T ∈ R 2 p d e ¯ = [ e ( i | i ),..., e ( i + c d − 1 | i )] T ∈ R 2 c d D e ¯ ( i ) = [ D e ( i | i ),..., D e ( i + c d − 1 | i )] T ∈ R 2 c d D ¯ Lf = [ D Lf D Lf ⋯ D Lf ] T ∈ R 2 p d ;

[0145] The optimal problem to be solved for robot formation control is expressed as:

[0146] ;

[0147] Satisfy the constraints:

[0148] (13)

[0149] in, I ˜ = [ I 0 ⋯ 0 I I ⋯ 0 ⋮ ⋮ ⋱ ⋮ I I ⋯ I ] ∈ R 2 c d × 2 c d ;

[0150] The above optimal problem is then reconstructed into a quadratic programming problem:

[0151] ;

[0152] Satisfy constraints ;

[0153] H = 2 ( K f T S w K f + I w ) ∈ R 2 c d × 2 c d F = 2 K f T S w ( h ˜ f + f ˜ f − D ¯ Lf ) ∈ R 2 c d A = [ − I ˜ I ˜ − K f K f ] ∈ R ( 4 c d + 4 p d ) × 2 c d , b = [ − e ¯ minutes + e ¯ ( i − 1 ) e ¯ max − e ¯ ( i − 1 ) − e ¯ minutes + h ˜ f + f ˜ f e ¯ max − h ˜ f − f f ] ∈ R 4 c d + 4 p d ;

[0154] in, is the state weight matrix; is the input incremental weight matrix; I is the identity matrix.

[0155] The follower robot will use the primal-dual neural network to solve the above quadratic programming problem online and obtain the optimal control input in real time.

[0156] Next, the follower robot uses the primal-dual neural network (PDNN) to solve the above quadratic programming (QP) problem online and obtain the optimal control input in real time. . First, define the following vector:

[0157] k : = [ D e ¯ c ] , k + : = [ D e ¯ max + c + ] , k − : = [ D e ¯ minutes − c − ] ∈ R 4 p d + 6 c d

[0158] is the primal-dual decision vector, is the original dual decision coefficient, The upper and lower limits of the original dual decision. Set the original dual decision coefficient Limiter , defined as follows:

[0159] (14)

[0160] The dynamic equation of the original dual neural network is:

[0161] (15)

[0162] in, is the convergence rate of the neural network, usually set to a positive number, The larger the value, the faster the convergence speed. The PDNN coefficient matrix is W = [ H − A T A 0 ] ∈ R ( 4 p d + 6 c d ) × ( 4 p d + 6 c d ) , or = [ F − b ] ∈ R 4 p d + 6 c d .

[0163] The fourth-order Runge-Kutta method is used to solve the above primal-dual neural network dynamics equation, where h is the step size, as follows:

[0164] (16)

[0165] is the original dual decision vector of the i-th step, obtained by , the optimal control input can be obtained .

[0166] Verification stage:

[0167] The gazebo simulation platform is used to build a simulation environment for simulation and verify the system described in this embodiment.

[0168] The simulation objects of the system described in this embodiment are two non-holonomically constrained wheeled mobile robots. The leading robot has a spherical feature point mark, and the following robot does not have a spherical feature point mark. The following robot is equipped with an RGB-D depth camera. The two form a robot formation.

[0169] In the Gazebo experimental environment, the pilot robot is controlled to move in a figure-eight trajectory. At the same time, the follower robot needs to control its own input through visual positioning and the pilot-follower formation error model. , so that [ d Lf − d des , i Lf − i des ] → [ 0 , 0 ] , the control flow chart is as follows Figure 5 The model predictive control method is used to control the control input of the following robot in the leader-follower formation, and the movement time is The sampling time is approximately , the prediction domain range is , the control domain range is , the upper and lower bounds of the formation distance are , , the upper and lower bounds of the formation angle are , , the upper and lower bounds of the robot’s linear velocity are , , the angular velocity is bounded by , , the initial position of the pilot robot is , the initial position of the following robot is , the desired distance angle of the formation is The reference trajectory of the pilot robot is as follows:

[0170] (17)

[0171] Selecting an appropriate state weight matrix and the input incremental weight matrix , we can get Figure 6 of experimental data.

[0172] according to Figure 6It can be seen that the red curve is the trajectory of the pilot robot, and the blue curve is the trajectory of the follower robot. It is obvious that the pilot-follower formation error model of the present application can make the position changes of the follower robot and the pilot robot tend to be consistent, and the formation can be maintained. Figure 7 and 8 , the position and speed changes of the leading robot and the following robot are roughly consistent, and the formation error converges to 0. Figure 9 It can be seen that since the expected distance is 0.6, the expected angle is By comparing the pilot-follower formation error graph, it can be seen that the pilot robot starts from an initial distance of about 1.315 and an initial angle of about 0, and finally reaches the expected distance and expected angle, and the formation error converges to 0, which verifies the feasibility of the system described in this embodiment.

[0173] The system described in this embodiment uses the feedback information obtained by the follower robot identifying the feature points on the leader robot, combined with the state of the leader robot itself, to observe the real measurement value of the leader robot's target, and adjusts the following strategy according to the real measurement value to prevent the leader robot from being lost in the follower robot's field of view; at the same time, in the case of multiple moving targets, when the leader's target is lost due to occlusion, the follower can estimate the approximate position of the leader in the field of view during the period when the leader is missing based on the position estimation information at that moment, so as to maintain the stability of the formation operation. In addition, this system also uses the information obtained by vision and a small amount of information about the leader robot obtained through ROS communication to construct a leader-follower model. Through the model predictive control method, state constraints, speed constraints, etc. are added to enable the leader-follower formation to reach the desired formation position, which is finally converted into the optimal solution problem of solving the quadratic form (QP). Specific embodiment 2:

[0175] like Figure 10 , a method for a data processing system based on visual positioning and prediction based on the specific embodiment 1, comprising: using the image to obtain the position information of the target of the pilot robot and using the image to obtain the real measurement value and estimated value information of the position of the pilot robot through Kalman filtering, so as to avoid the pilot robot as the target from being lost in the field of view; constructing a nonlinear error model of robot motion according to the real measurement value and estimated value information of the position of the pilot robot; converting the nonlinear error model of robot motion into solving a quadratic optimal problem to obtain the optimal control input of the robot formation motion.

[0176] The traditional formation method is to locate the pilot robot by constructing a SLAM map, which requires the assistance of a high-precision laser radar. At the same time, the constructed SLAM map will fail in an unknown environment and needs to be updated in real time. The accuracy of its positioning depends on the accuracy of the laser radar, and the generated position will have cumulative errors. The method described in this embodiment directly identifies and locates the pilot robot through a visual RGB-D camera, which is not affected by environmental updates and does not generate cumulative errors.

[0177] The traditional pilot-follow formation model adopts In the form of, it is necessary to obtain all the position information of the leader and the follower through ROS topic communication. The number of variables required is too large, which will affect the stability of the formation in the event of communication packet loss. The method described in this embodiment uses the leader's distance and angle information obtained by the follower to complete the formation's error model construction with minimal ROS topic communication, reducing communication redundancy in formation motion. At the same time, combined with the visual field angle constraint, speed constraints are added to the predictive control method, and it is transformed into a problem of solving a quadratic optimal form through an affine form. Finally, the original dual neural network is used for online solution to meet the real-time requirements and obtain the optimal control input, which is conducive to the stable operation of the visual formation.

[0178] This application also provides an embodiment:

[0179] An electronic device for data processing, comprising: a storage medium and a processing unit; wherein the storage medium is used to store a computer program; the processing unit exchanges data with the storage medium, and is used to execute the computer program through the processing unit when a robot formation is running, and perform the steps of the method described in specific embodiment 2.

[0180] In the above-mentioned electronic device, the storage medium is preferably a storage device such as a mobile hard disk, a solid-state hard disk, or a USB flash drive; the processing unit is preferably a CPU. The above-mentioned CPU can perform various appropriate actions and processes according to the program stored in the storage medium. The electronic device also includes the following peripherals, including input parts such as a keyboard and a mouse, and may also include output parts such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; in particular, according to the embodiments disclosed in the present application, Figure 10 The described processes can all be implemented as computer software programs.

[0181] This application also provides an embodiment:

[0182] A computer-readable storage medium: the computer-readable storage medium stores a computer program; when the computer program is running, the steps of the method described in specific embodiment 2 are executed.

[0183] In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0184] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily change or replace within the technical scope disclosed in the present application, which belongs to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A data processing system based on visual positioning and formation prediction, used to maintain stable operation of robot formation motion, characterized in that: include: An acquisition module is used to acquire images from the camera of the following robot, use the images to obtain the position information of the target of the pilot robot, and use the images to obtain the real measurement value and estimated value information of the position of the pilot robot through Kalman filtering, so as to prevent the pilot robot as the target from being lost in the field of view when there is occlusion; A construction module, which interacts with the acquisition module for data, and is used to construct a nonlinear error model of robot formation motion according to the real measured value and estimated value information of the position of the pilot robot; A processing module, which performs data interaction with the construction module, and is used to transform the nonlinear error model of the robot formation motion into a quadratic optimal problem to obtain an optimal control input for the robot formation motion; The step of using the picture to obtain the position information of the target of the pilot robot includes: Connect the three-dimensional point in the camera coordinate system with the camera center, and intersect the connecting line with the imaging plane at one point to obtain the proportional relationship between the camera coordinate system and the pixel coordinate system; Obtaining pixel coordinates of the target center of the pilot robot in the picture from the following robot camera, and converting the pixel coordinate system into the camera coordinate system through the proportional relationship between the camera coordinate system and the pixel coordinate system to obtain the position information of the target of the pilot robot; The three-dimensional point (x c ,y c ,z c ) and the camera center O c Connect the line and intersect the line with the imaging plane at a point (x, y), and use the proportional relationship to get: Where, f represents the focal length of the following robot camera, z c To follow the depth information of the robot camera; Obtaining pixel coordinates (u, v) of the target center of the pilot robot in the picture from the camera of the following robot; Assuming that the image coordinates of the target center of the pilot robot on the imaging plane of the follower robot camera are (x, y), and the center of the imaging plane is (x0, y0), the conversion relationship from image coordinates to pixel coordinates is: Among them, dx and dy represent the lengths of physical pixels in the directions of the two coordinate axes, which are the intrinsic parameters of the camera; Then, the transformation relationship from the pixel coordinate system to the camera coordinate system is: Among them, (x c ,y c ,z c ) is the target position in the camera coordinate system obtained by following the robot camera visual positioning. According to the three-dimensional point (x c ,y c ,z c )'s true measured value (x' c ,y' c ,z' c ) and the three-dimensional point (x c ,y c ,z c ) Obtain the relative distance d and the relative angle θ; where r d is the vertical distance from the wheel axis of the following robot to the center of its camera; The method of using the image to obtain the real measurement value and estimated value information of the position of the pilot robot through Kalman filtering includes: The state of the target on the pilot robot is estimated through Kalman filtering to obtain the position of the pilot robot; Kalman filter system state equation: X i =CX i-1 +Du i-1 +w i-1 , where is the state vector at the i-1th moment, is the transformation matrix, is the system parameter, x i is the position of the target at the i-th moment, is the speed of the target at the i-th moment, u i-1 is the system input, w i-1 is the system noise, Δt is the sampling time; State equation update: Z i =M i X i +v i , M i is the coefficient matrix, v i To measure the noise, Z i is the true measurement value at the i-th moment; Estimation equation: is the i-th estimation result, is the covariance matrix of the i-th estimation result; Kalman gain: k i =P i M i T (M i P i M i T +R i ) -1 , k i is the Kalman gain at the i-th moment, R i is the variance of the measurement noise; I is the unit matrix; When the target of the pilot robot is lost due to occlusion, the estimated position of the target is used instead of the actual measured position within a certain period of time to search for the target, so that the pilot robot is controlled within the field of view.

2. The data processing system based on visual positioning and formation prediction according to claim 1, characterized in that: The method of constructing a nonlinear error model of robot formation motion according to the real measured value and estimated value information of the position of the pilot robot comprises: According to the real measured value and estimated value information of the position of the pilot robot, the robot kinematic model is expressed as: (x, y, φ) is the position and orientation angle of the robot in the world, is the component of linear velocity v in the x direction, is the component of linear velocity v in the y direction, ω is the angular velocity; According to the robot kinematic model, the kinematic model of the robot formation is obtained: Among them, (x L ,y L ,φ L ) is the position and orientation angle of the pilot robot, (x f ,y f ,φ f ) is the position and orientation angle of the following robot, Describes the relative displacement between the leader robot and the follower robot in the x and y directions, d Lf and θ Lf The relative distance and relative angle between the leading robot and the following robot are described respectively; According to the robot kinematic model and the robot formation kinematic model, the robot formation tracking error differential model is obtained: in, v L is the linear velocity of the pilot robot, v f and ω f are the linear velocity and angular velocity of the following robot respectively; The robot formation tracking error differential model is discretized to obtain the robot formation motion nonlinear error model: Among them, e d (i) and e θ (i) represents the relative distance error and relative angle error between the leading robot and the following robot at the i-th moment, and Δt is the sampling time.

3. The data processing system based on visual positioning and formation prediction according to claim 1, characterized in that: The step of converting the nonlinear error model of the robot formation motion into a quadratic optimal problem includes: The nonlinear error model of the robot formation motion is written as follows: Satisfy the constraints: e min ≤e(i)≤e max ,ε min ≤ε(i)≤ε max ,Δε min ≤Δε(i)≤Δε max ; Among them, h and is a continuous nonlinear function, h(0) = 0; e = [e d e θ ] T ∈R 2 is the state vector; ε=[v f ω f ] T ∈R 2 is the input vector, Δε=[Δv f Δω f ] T ∈R 2 is the increment of the input vector, e(i), ε(i), Δε(i) represent the state vector, input vector and the increment of the input vector at the i-th moment respectively, e min ,e max ,ε min ,ε max ,Δε min ,Δε max are the minimum and maximum values ​​corresponding to the state vector, the minimum and maximum values ​​corresponding to the input vector, and the minimum and maximum values ​​corresponding to the increment of the input vector, respectively: Assumption d des and θ des They are the expected distance and angle between the leader and follower robots, and the expected state vector is D Lf =[d des θ des ] T , in order to achieve the control goal, the state of the formation system should eventually tend to the desired state: in, The following standard quadratic function is used as the optimization objective, excluding terminal constraints and terminal regions, p d is the prediction domain range, c d is the control domain range, j is the time step, and e(i|i-1) represents the prediction of the state at the i-1th moment for the i-th moment; Among them, Δε is the increment of the input vector, that is, the increment of the control input; Δε(i+j|i) is the increment of the control input at the i+j moment at the i-th moment; Define the following variables: The optimal problem to be solved for robot formation control is expressed as: Satisfy the constraints: in, The above optimal problem is then reconstructed into a quadratic programming problem: Satisfy constraints S w is the state weight matrix; I w is the input incremental weight matrix; I is the identity matrix; The follower robot will use the primal-dual neural network to solve the above quadratic programming problem online and obtain the optimal control input in real time.

4. The data processing system based on visual positioning and formation prediction according to claim 3 is characterized in that: The following robot uses the primal-dual neural network to solve the above quadratic programming problem online and obtain the optimal control input in real time, including: First, define the following vector: is the original dual decision vector, κ is the original dual decision coefficient, κ ± are the upper and lower bounds of the original dual decision; Set the limiter of the original dual decision coefficient κ , defined as follows: The dynamic equation of the original dual neural network is: Among them, ρ is the convergence rate of the neural network, and the PDNN coefficient matrix is The fourth-order Runge-Kutta method is used to solve the above primal-dual neural network dynamics equation, where h is the step size, as follows: c i+1 =c i +h×(k1+2k2+2k3+k4) / 6 γ i is the original dual decision vector of the i-th step, and the γ i+1 , get the optimal control input (v f ,ω f ).

5. A method for a data processing system based on visual positioning and formation prediction according to any one of claims 1 to 4, characterized in that: include: The image is used to obtain the position information of the pilot robot target and the image is used to obtain the real measurement value and estimated value information of the position of the pilot robot through Kalman filtering to prevent the pilot robot as the target from being lost in the field of view when there is occlusion; Constructing a nonlinear error model of robot formation motion based on the real measured value and estimated value information of the position of the pilot robot; The nonlinear error model of the robot formation motion is transformed into a quadratic optimal problem to obtain the optimal control input of the robot formation motion.

6. An electronic device for data processing, characterized in that: include: Storage medium for storing computer programs; A processing unit exchanges data with the storage medium, and is used to execute the computer program through the processing unit to perform the steps of the method as claimed in claim 5 when the robot formation operation is performed.

7. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program; When the computer program is run, the steps of the method according to claim 5 are performed.