Robot cooperative control method based on visual servo and related device

By constructing the overall mobile trajectory layout and optimizing the visual servo controller, the problem of trajectory intersections not being considered in robot trajectory planning is solved, the dependence on camera parameter calibration is reduced, the reliability and stability of robot collaborative control are improved, and the More efficient task operations.

CN118809604AActive Publication Date: 2024-10-22ZHONG YUN ZHI NENG KE JI (GUANG ZHOU) YOU XIAN GONG SI

Patent Information

Application Number
CN202411073651.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-22
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Existing robot collaborative control methods based on visual servo technology do not consider trajectory intersections during trajectory planning, leading to robot collisions, and are overly dependent on camera parameter calibration. The controller is imperfectly established, resulting in insufficient reliability and stability, and data sharing logic. Missing, affecting the quality of task operations.

Method used

By obtaining the task allocation plan, determining the robot's working range, constructing the overall movement trajectory layout, collecting video streams to calculate error values, generating optimized control volume adjustment trajectories, calculating pose compensation values ​​to adjust joints, realizing data sharing logic, and using neural constraints to constrain global optimization. Dynamics and quadratic programming are used to construct a visual servo controller, which reduces the dependence on parameter calibration and improves control accuracy.

Benefits of technology

It avoids robot collisions, improves control accuracy and stability, reduces data processing burden, improves task efficiency and quality, and enables robot control to achieve more ideal results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118809604A_ABST
    Figure CN118809604A_ABST
Patent Text Reader

Abstract

The invention discloses a robot cooperative control method based on visual servo and a related device, and relates to the technical field of robot control, and the method comprises the steps: allocating a target task to each robot based on a task allocation scheme; a task logic process is established to construct the moving track of each robot, and an overall moving track layout is established; in the process of executing the target task, calculating an error value of a moving track, and constructing a visual servo controller to generate an optimized control quantity so as to adjust the moving track; calculating a pose compensation value based on the generated rotation error and translation error, and adjusting a control joint; analyzing the operation data of the cloud equipment, and transmitting the operation data to a plurality of robots needing to be shared based on preset data sharing logic; and the corresponding robots adjust working parameters in real time for cooperative cooperation. According to the invention, the task operation efficiency and quality of the robot are improved, and the control of the robot can achieve a more ideal effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot control technology, and in particular to a robot collaborative control method based on visual servoing and related devices. Background Art

[0002] Robots can be used for the grasping, processing, assembly and handling of task components in various industries. Robots can efficiently and accurately perform difficult tasks, thereby improving production efficiency and reducing labor costs. And with the continuous development of robot research and technology development, robots can be collaboratively controlled through visual servo technology. However, in the existing robot collaborative control method based on visual servo technology, after the corresponding target task is assigned to the robot, only the movement trajectory of each robot is planned, but the intersection of its trajectory is not considered, and the overall movement layout of the robot cannot be formed, resulting in collisions when the robot moves. At the same time, in the use of visual servo technology to further control the work of the robot, the existing visual servo control is overly dependent on the calibration of camera parameters, and the calibration of camera parameters is overly dependent on the professional level of calibration technicians. At the same time, the existing visual servo control has problems such as imperfect system establishment and unknown parameter variables for the visual servo controller, resulting in the reliability and stability of the visual servo for further control of the robot cannot be guaranteed. In addition, there are also problems such as lack of data sharing logic and heavy data processing burden for the collaborative control of robots, resulting in the inability to achieve ideal results for the collaborative control of robots, affecting the task quality of the robot. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies of the prior art. The present invention provides a robot collaborative control method based on visual servoing and related devices, which improves the task operation efficiency and quality of the robot and enables the robot control to achieve a more ideal effect.

[0004] In order to solve the above technical problems, the present invention provides a robot collaborative control method based on visual servoing, the method comprising:

[0005] Acquire a task allocation plan, and allocate a corresponding target task to each robot based on the task allocation plan, wherein the target task includes a task component allocated to each robot;

[0006] Determine the working range of each robot based on the target task, establish a task logic process, construct a movement trajectory of each robot within the working range based on the task logic process, and establish an overall movement trajectory layout based on the movement trajectory of each robot;

[0007] Controlling each robot to perform a target task according to the overall mobile trajectory layout, collecting a real-time video stream while each robot performs the target task according to the overall mobile trajectory layout, extracting a current mobile trajectory of each robot based on the real-time video stream, calculating an error value between the current mobile trajectory and the mobile trajectory of each robot in the overall mobile trajectory layout, and constructing a visual servo controller, generating an optimized control amount based on the visual servo controller using the error value, and adjusting the mobile trajectory of the robot based on the optimized control amount;

[0008] In the process of each robot performing the target task according to the overall movement trajectory layout, the current processing posture of each robot for the task component is obtained, the preset expected processing posture of each robot is obtained, the corresponding rotation error and translation error are generated based on the current processing posture and the preset expected processing posture, and the corresponding posture compensation value is calculated based on the rotation error and the translation error, and the control joint of each robot is adjusted based on the posture compensation value;

[0009] In the process of each robot performing the target task according to the overall moving trajectory layout, the operation data uploaded by the robot is obtained based on the cloud device, and the operation data is parsed to obtain the data to be shared, and the data to be shared is transmitted to a number of robots that need to share the data to be shared based on the preset data sharing logic;

[0010] The corresponding robots adjust working parameters in real time based on the data to be shared, and cooperate based on the working parameters adjusted in real time.

[0011] Optionally, the establishing of the task logic flow, constructing the movement trajectory of each robot within the working range based on the task logic flow, and establishing the overall movement trajectory layout based on the movement trajectory of each robot, includes:

[0012] Determine the target task flow based on the task allocation scheme, and establish the task logic flow based on the logical relationship between different target tasks and the positions of different target tasks in the task flow;

[0013] Building a working model of each robot based on the task logic process, obtaining the current position of each robot, and planning the movement trajectory of each robot within the working range using Cartesian space based on the working model and the current position;

[0014] Based on the movement trajectory of each robot, a trajectory intersection point is obtained, and a time difference of a corresponding number of robots moving from the current position point to the trajectory intersection point is calculated, and based on the time difference, whether the robots will collide at the trajectory intersection point is determined, and the movement trajectory of each robot is adjusted based on the determination result to obtain an optimized movement trajectory of each robot;

[0015] The overall movement trajectory layout is established based on the optimized movement trajectory of each robot.

[0016] Optionally, constructing a visual servo controller, based on the visual servo controller generating an optimized control amount using the error value, includes:

[0017] The visual servo error system is constructed based on the neural dynamics of constrained global optimization combined with the preset robot kinematic model;

[0018] Performing Euler discretization on the visual servo error system to obtain a discretized visual servo error system;

[0019] Based on sequential quadratic programming, a positive definite weighted matrix is ​​used to define an objective function, and based on the objective function, a visual servo control model is constructed using the discretized visual servo error system;

[0020] Generate a performance constraint function based on the performance constraint, and construct a visual servo controller based on the visual servo control model and the performance constraint function;

[0021] The visual servo controller generates an adaptive control rate using the error value, and generates an optimized control amount based on the adaptive control rate.

[0022] Optionally, generating a corresponding rotation error and a translation error based on the current machining posture and a preset desired machining posture includes:

[0023] Acquire a first pixel coordinate corresponding to the current processing posture and a second pixel coordinate corresponding to the preset expected processing posture;

[0024] Constructing a projection model, obtaining a conversion relationship between the first pixel coordinate and the second pixel coordinate based on the projection model, and generating a corresponding projection homography matrix based on the conversion relationship;

[0025] The projection homography matrix is ​​decomposed to obtain corresponding rotation error and translation error.

[0026] Optionally, calculating a posture compensation value based on the rotation error and the translation error, and adjusting a control joint of each robot based on the posture compensation value, includes:

[0027] Calculate the joint arm motion angle compensation value, the control torque compensation value and the robot joint motion speed compensation value based on the rotation error and translation error, wherein the joint arm motion angle compensation value, the control torque compensation value and the robot joint motion speed compensation value constitute the posture compensation value;

[0028] Perform linear fitting on the posture compensation value to obtain a linear fitting result, and convert the linear fitting result into a control signal, transmit the control signal to the corresponding robot, and the corresponding robot adjusts the control joint based on the control signal.

[0029] Optionally, performing linear fitting on the posture compensation value to obtain a linear fitting result includes:

[0030] Performing convergence processing on the posture compensation value based on an approximation function with equal ripple characteristics to obtain a converged posture compensation value;

[0031] Based on the fitting factor, the least squares linear fitting process is performed on the converged posture compensation value to obtain the linear fitting result.

[0032] Optionally, parsing the operation data to obtain the data to be shared, and transmitting the data to be shared to a number of robots that need to share the data to be shared based on a preset data sharing logic, includes:

[0033] Parsing the operation data based on a preset data parsing logic to obtain data to be shared;

[0034] Acquire a mapping relationship between a robot identifier and a data tag of the data to be shared based on a preset data sharing logic, and determine a number of robots that need to share the data to be shared based on the mapping relationship;

[0035] The network protocol addresses and ports of several robots that need to share the data to be shared are obtained, and the data to be shared is transmitted to the several robots that need to share the data to be shared based on the network protocol addresses and ports.

[0036] In addition, the present invention also provides a robot collaborative control device based on visual servoing, the device comprising:

[0037] Task allocation module: used to obtain a task allocation plan, and allocate corresponding target tasks to each robot based on the task allocation plan, wherein the target tasks include task components allocated to each robot;

[0038] A movement trajectory layout module: used to determine the working range of each robot based on the target task, establish a task logic process, construct the movement trajectory of each robot within the working range based on the task logic process, and establish an overall movement trajectory layout based on the movement trajectory of each robot;

[0039] A movement trajectory adjustment module: used to control each robot to perform a target task according to the overall movement trajectory layout. When each robot performs a target task according to the overall movement trajectory layout, real-time video streams are collected, and the current movement trajectory of each robot is extracted based on the real-time video streams. The error value between the current movement trajectory and the movement trajectory of each robot in the overall movement trajectory layout is calculated, and a visual servo controller is constructed. The visual servo controller generates an optimized control amount based on the error value, and the movement trajectory of the robot is adjusted based on the optimized control amount.

[0040] A processing posture adjustment module: used for obtaining the current processing posture of each robot for the task component and the preset expected processing posture of each robot during the process of each robot performing the target task according to the overall moving trajectory layout, generating corresponding rotation error and translation error based on the current processing posture and the preset expected processing posture, calculating corresponding posture compensation values ​​based on the rotation error and translation error, and adjusting the control joints of each robot based on the posture compensation values;

[0041] Data sharing module: used for obtaining the operation data uploaded by the robot based on the cloud device, parsing the operation data to obtain the data to be shared, and transmitting the data to be shared to several robots that need to share the data to be shared based on the preset data sharing logic when each robot performs the target task according to the overall moving trajectory layout;

[0042] Collaboration module: used for the corresponding robots to adjust working parameters in real time based on the data to be shared, and to perform collaborative cooperation based on the working parameters adjusted in real time.

[0043] In addition, the present invention also provides an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned robot collaborative control method based on visual servoing.

[0044] In addition, the present invention also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned robot collaborative control method based on visual servoing.

[0045] In the embodiment of the present invention, the consideration of the intersection of the trajectories is added to the moving trajectory of each robot, and the calculation of the time difference is introduced to avoid the collision of the robot in the process of executing the target task, so as to achieve the overall moving trajectory layout of the robot. In the process of the robot executing the target task, a visual servo error model of neural dynamics based on constrained global optimization is established. On this basis, a visual servo controller is constructed in combination with quadratic sequence planning and performance constraints. The visual servo controller is more perfect and can avoid sudden changes in the control amount, so that the visual servo controller can more effectively drive the robot to reach the target point. At the same time, the posture compensation value generated by the rotation error and the translation error is used to adjust the control joints of each robot, which greatly reduces the dependence on parameter calibration. At the same time, the posture compensation value is linearly fitted by using an approximation function with equal ripple characteristics and a fitting factor, which simplifies the adjustment amount of the robot control joint. At the same time, the linear fitting can eliminate the influence of the vibration of the robot on the calculation result, further improve the reliability and stability of the robot control, and send the data to be shared to the robot that needs data sharing through the preset data sharing logic, so as to realize the work coordination between the robots, reduce the data processing burden of the robot, improve the task operation efficiency and quality of the robot, and enable the robot control to achieve a more ideal effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 is a flow chart of a robot collaborative control method based on visual servoing in an embodiment of the present invention;

[0048] Figure 2 Schematic diagram of the structure of a robot collaborative control device based on visual servoing in an embodiment of the present invention;

[0049] Figure 3 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] Embodiment 1

[0052] See also Figure 1 , Figure 1 It is a flow chart of a robot collaborative control method based on visual servoing in an embodiment of the present invention.

[0053] like Figure 1 As shown, a robot collaborative control method based on visual servoing, the method comprising:

[0054] S11: Obtain a task allocation plan, and allocate a corresponding target task to each robot based on the task allocation plan, wherein the target task includes a task component allocated to each robot;

[0055] In the specific implementation process of the present invention, task feature analysis is performed on all target tasks to obtain target task feature information, collaborative task allocation is performed based on the target task feature information to obtain an initial task allocation plan, and at the same time, the initial task allocation plan is adjusted using the robot's task load upper limit to obtain a task allocation plan. Based on the task allocation plan, each robot is assigned a corresponding target task, and the target task includes a task component assigned to each robot.

[0056] S12: determining the working range of each robot based on the target task, establishing a task logic process, constructing a movement trajectory of each robot within the working range based on the task logic process, and establishing an overall movement trajectory layout based on the movement trajectory of each robot;

[0057] In the specific implementation process of the present invention, the task logic process is established, the moving trajectory of each robot within the working range is constructed based on the task logic process, and the overall moving trajectory layout is established based on the moving trajectory of each robot, including: determining the target task process based on the task allocation plan, and establishing the task logic process based on the logical relationship between different target tasks and the position of different target tasks in the task process; constructing a working model of each robot based on the task logic process, obtaining the current position point of each robot, and planning the moving trajectory of each robot within the working range using Cartesian space based on the working model and the current position point; obtaining the trajectory intersection point based on the moving trajectory of each robot, calculating the time difference for a corresponding number of robots to move from the current position point to the trajectory intersection point, judging whether the robots will collide at the trajectory intersection point based on the time difference, and adjusting the moving trajectory of each robot based on the judgment result to obtain the optimized moving trajectory of each robot; establishing the overall moving trajectory layout based on the optimized moving trajectory of each robot.

[0058] Specifically, the working range of each robot is determined based on the target task, and the target task process is determined based on the task allocation plan. A corresponding task process is set in the task allocation plan. A task logic process is established based on the logical relationship between different target tasks and the positions of different target tasks in the task process. Each target task is analyzed by a task engine. The task engine is configured based on a directed acyclic graph. Each node in the directed acyclic graph is associated with a target task. The processing logic of each target task is implemented by a corresponding operator, and each edge in the directed acyclic graph is used to describe the logical relationship between related target tasks. Thereby, the logical relationship between different target tasks can be obtained, and the corresponding positions of different target tasks in the task process can be found. According to the corresponding logical relationship and corresponding position, a specific target task logic process can be established. Based on the task logic flow, a working model of each robot is constructed. According to the task logic flow and the working attribute information of each robot, a working model of each robot is established. The working attribute information of the robot includes the moving speed and the maximum load on the task component, etc. The current position point of each robot is obtained. Each robot has a built-in positioning device, and its current position point can be obtained through the positioning device. Based on the working model and the current position point, the moving trajectory of each robot within the working range is planned using Cartesian space. The initial moving trajectory of Cartesian space is constructed by the working model and the current position point. The trajectory constraint of the robot Cartesian space and the objective function of optimizing trajectory planning are established. The objective function of optimizing trajectory planning is:

[0059]

[0060] Among them, t totalis the robot motion time of trajectory planning, v is the moving speed of the robot, and the initial moving trajectory is time-integrated through the trajectory constraints of the robot Cartesian space and the objective function of optimizing trajectory planning to obtain the moving trajectory of each robot within the working range. Based on the moving trajectory of each robot, a trajectory intersection is obtained, and according to the moving trajectory of each robot, a trajectory intersection is searched, and a time difference of the corresponding robots moving from the current position point to the trajectory intersection point is calculated. According to the moving speed of each robot, a moving time difference of moving from the current position point to the estimated intersection point is calculated. Based on the time difference, it is judged whether the robots will collide at the trajectory intersection point. If the time difference is greater than a preset time difference threshold, it means that the corresponding robots pass through the trajectory intersection point one after another, and the corresponding robots will not collide with each other. If the time difference is less than or equal to the preset time difference threshold, it means that the corresponding robots do not reach a sufficient time difference to pass through the trajectory intersection point one after another, resulting in a collision between the robots at the trajectory intersection point. The moving trajectory of each robot is adjusted based on the judgment result. When it is judged that the trajectory robot will collide when moving according to its moving trajectory, the robot is prioritized in the passing order according to the priority of the target task assigned to each robot. The robot with a higher task priority passes first, and the robot with a lower task priority waits for the previous robot to pass before moving, until all trajectories that may collide are adjusted, and the optimized moving trajectory of each robot is obtained. An overall movement trajectory layout is established based on the optimized movement trajectory of each robot, and the optimized movement trajectories of each robot are combined as a whole to form an overall movement trajectory layout.

[0061] S13: Control each robot to perform a target task according to the overall mobile trajectory layout, collect a real-time video stream when each robot performs a target task according to the overall mobile trajectory layout, extract a current mobile trajectory of each robot based on the real-time video stream, calculate an error value between the current mobile trajectory and the mobile trajectory of each robot in the overall mobile trajectory layout, and construct a visual servo controller, generate an optimized control amount based on the visual servo controller using the error value, and adjust the mobile trajectory of the robot based on the optimized control amount;

[0062] In the specific implementation process of the present invention, the visual servo controller is constructed, and the error value is used to generate the optimized control quantity based on the visual servo controller, including: constructing a visual servo error system based on neural dynamics of constrained global optimization combined with a preset robot kinematic model; performing Euler discretization on the visual servo error system to obtain a discretized visual servo error system; defining an objective function based on sequential quadratic programming using a positive definite weighted matrix, and constructing a visual servo control model based on the objective function using the discretized visual servo error system; generating a performance constraint function based on performance constraints, and constructing a visual servo controller based on the visual servo control model combined with the performance constraint function; generating an adaptive control rate based on the visual servo controller using the error value, and generating an optimized control quantity based on the adaptive control rate.

[0063] Specifically, each robot is controlled to perform a target task according to the overall mobile trajectory layout. When each robot performs the target task according to the overall mobile trajectory layout, a real-time video stream is collected by a camera device of the robot, and a current mobile trajectory of each robot is extracted based on the real-time video stream. By extracting each frame of the real-time video stream, the current moving direction and route of each robot can be obtained based on each frame of the image, and an error value between the current mobile trajectory and the mobile trajectory of each robot in the overall mobile trajectory layout is calculated, that is, a direction deviation value between the current mobile trajectory and the mobile trajectory of each robot in the overall mobile trajectory layout and a distance deviation value between the current mobile trajectory and the corresponding mobile trajectory in the overall mobile trajectory layout are calculated. Based on the neural dynamics of constrained global optimization combined with the preset robot kinematic model, a visual servo error system is constructed. Considering that the robot may have a speed jump, which will affect the control effect, the neural dynamics of constrained global optimization is added to construct the visual servo error system to make the control signal smoother. The neural dynamics of constrained global optimization can be regarded as a simulation of the brain's rapid thinking process. Each individual neural network performs local search according to its own neural dynamics and converges to a required target solution. The error signal is processed by the neural dynamics of constrained global optimization to obtain an error signal vector. The error signal vector obtained by the neural dynamics of constrained global optimization is introduced in combination with the robot's kinematic model to construct the visual servo error system. The visual servo error system is Euler discretized, the continuous time variables in the visual servo error system are discretized, the differential is converted into a difference, and the discretized visual servo error system is obtained. Based on the sequential quadratic programming, the objective function is defined using a positive definite weighted matrix, and the sequential quadratic programming is used to minimize the control input of the quadratic objective function using a positive definite weighted matrix. The objective function is defined by the obtained control input, and the visual servo control model is constructed based on the objective function using the discretized visual servo error system. The expression of the visual servo control model is:

[0064] E(k+i|k)=h(E(k+i-1|k))+u(k+i-1|k),

[0065] Wherein, E(k+i|k) is the predicted value of the error signal vector E obtained by the discretized visual servo error system at time k for time k+i, h is the corresponding objective function, E(k+i-1|k) is the predicted value of the error signal vector E obtained by the discretized visual servo error system at time k for time k+i-1, and u(k+i-1|k) is the predicted value of the control input u obtained by the objective function at time k for k+i-1. A performance constraint function is generated based on performance constraints, and according to the expected movement trajectory of the robot when performing the task, that is, the movement trajectory corresponding to each robot in the overall movement trajectory layout, the task execution coefficient and dynamic constraint conditions when performing the target task are determined through the movement trajectory, and the performance constraint function is constructed based on the hyperplane constraint condition in the generalized space using the task execution coefficient and the dynamic constraint condition, and a visual servo controller is constructed based on the visual servo control model combined with the performance constraint function, and the performance constraint function is also added to the visual servo control model, that is, the performance constraint function is introduced as a constraint condition into the visual servo control model, thereby constructing an overall visual servo controller. Based on the visual servo controller, an adaptive control rate is generated by using the error value, and the error value is input into the visual servo controller. The visual servo controller can obtain a corresponding adaptive control rate, and an optimized control amount is generated based on the adaptive control rate. The adaptive control rate can be used to obtain a real-time adjustment of the change of the corresponding variable of the moving trajectory, that is, to obtain the optimized control amount, and the moving trajectory of the robot is adjusted based on the optimized control amount.

[0066] S14: in the process of each robot performing the target task according to the overall movement trajectory layout, obtaining the current processing posture of each robot for the task component, obtaining the preset expected processing posture of each robot, generating corresponding rotation error and translation error based on the current processing posture and the preset expected processing posture, calculating corresponding posture compensation value based on the rotation error and translation error, and adjusting the control joint of each robot based on the posture compensation value;

[0067] In the specific implementation process of the present invention, the corresponding rotation error and translation error are generated based on the current processing posture and the preset expected processing posture, including: obtaining a first pixel coordinate corresponding to the current processing posture and a second pixel coordinate corresponding to the preset expected processing posture; constructing a projection model, obtaining a conversion relationship between the first pixel coordinate and the second pixel coordinate based on the projection model, and generating a corresponding projection homography matrix based on the conversion relationship; decomposing the projection homography matrix to obtain a corresponding rotation error and translation error.

[0068] Furthermore, the posture compensation value is calculated based on the rotation error and translation error, and the control joints of each robot are adjusted based on the posture compensation value, including: calculating the joint arm motion angle compensation value, the control torque compensation value and the robot joint motion speed compensation value based on the rotation error and translation error, the joint arm motion angle compensation value, the control torque compensation value and the robot joint motion speed compensation value constituting the posture compensation value; performing linear fitting on the posture compensation value to obtain a linear fitting result, and converting the linear fitting result into a control signal, transmitting the control signal to the corresponding robot, and the corresponding robot adjusting the control joint based on the control signal.

[0069] Furthermore, performing linear fitting on the posture compensation value to obtain a linear fitting result includes: performing convergence processing on the posture compensation value based on an approximation function with equal ripple characteristics to obtain the posture compensation value after convergence processing; performing least squares linear fitting processing on the posture compensation value after convergence processing based on a fitting factor to obtain a linear fitting result.

[0070] Specifically, in the process of each robot performing the target task according to the overall moving trajectory layout, the current processing posture of each robot to the task component is obtained, and the current processing posture of the robot to the task component is obtained in the corresponding coordinate system through the binocular vision camera of each robot, and the preset expected processing posture of each robot is obtained. The first pixel coordinate corresponding to the current processing posture and the second pixel coordinate corresponding to the preset expected processing posture are obtained, and the corresponding pixel coordinates can be obtained through the corresponding coordinate system. The projection model is constructed using the projection function through the global position parameters of the robot, and the conversion relationship between the first pixel coordinate and the second pixel coordinate is obtained based on the projection model. The conversion relationship between the first pixel coordinate and the second pixel coordinate is calculated according to the projection model using the relationship expression of the expected pixel coordinates, and the corresponding projection homography matrix is ​​generated based on the conversion relationship, that is, the projection homography matrix converted to the projection pixel coordinates through the conversion relationship. Decompose the projection homography matrix, determine that three columns of the projection homography matrix are the first matrix, determine the corresponding image plane tilt homography matrix and rotation matrix according to the first matrix, decompose the image plane tilt homography matrix and rotation matrix into an orthogonal matrix and an upper triangular matrix, optimize and iterate the orthogonal matrix and the upper triangular matrix, and obtain the corresponding rotation error and translation error. Based on the rotation error and translation error, calculate the joint arm motion angle compensation value, control torque compensation value and robot joint motion speed compensation value, calculate the angle deviation, torque deviation and motion speed deviation of the robot's joint arm when the current processing posture reaches the characteristic expected point in the preset expected processing posture using robot inverse kinematics according to the rotation error and translation error, generate the joint arm motion angle compensation value, control torque compensation value and robot joint motion speed compensation value according to the angle deviation, torque deviation and motion speed deviation, and the joint arm motion angle compensation value, control torque compensation value and robot joint motion speed compensation value constitute the posture compensation value. Based on the approximation function with equal ripple characteristics, the posture compensation value is converged to obtain the posture compensation value after convergence processing. The characteristic of the Butterworth filter is that the frequency response curve in the passband is maximally flat without fluctuations, and gradually decreases to zero in the stopband. When the boundary of the passband meets the index requirements, there will be a large margin in the passband, and the approximation function with equal ripple characteristics can evenly distribute the approximation accuracy in the entire passband, or evenly distribute it in the entire stopband, or evenly distribute it in both at the same time. In this way, the filter order can be greatly reduced. Therefore, the posture compensation value is converged by using the Butterworth filter through the approximation function with equal ripple characteristics to obtain the posture compensation value after convergence processing.Based on the fitting factor, the least squares linear fitting process is performed on the posture compensation value after the convergence process, and a linear mapping relationship is established by combining the least squares linear fitting with the fitting factor. A dynamic mapping function is generated based on the linear mapping relationship. The posture compensation value after the convergence process is optimized and corrected according to the dynamic mapping function to obtain the optimized and corrected posture compensation value. A linear fitting result is generated based on the optimized and corrected posture compensation value, and the linear fitting result can be used for the precise compensation control of the robot. The linear fitting result is converted into a control signal, and the control signal is transmitted to the corresponding robot. The corresponding robot adjusts the control joint based on the control signal, and the corresponding robot obtains the joint adjustment amount through the control signal, and adjusts the control joint through the joint adjustment amount.

[0071] S15: When each robot performs a target task according to the overall moving trajectory layout, the operation data uploaded by the robot is obtained based on the cloud device, and the operation data is parsed to obtain the data to be shared, and the data to be shared is transmitted to a number of robots that need to share the data to be shared based on a preset data sharing logic;

[0072] In the specific implementation process of the present invention, the operation data is parsed to obtain the data to be shared, and the data to be shared is transmitted to several robots that need to share the data to be shared based on the preset data sharing logic, including: parsing the operation data based on the preset data parsing logic to obtain the data to be shared; obtaining the mapping relationship between the robot identification and the data label of the data to be shared based on the preset data sharing logic, and determining several robots that need to share the data to be shared based on the mapping relationship; obtaining the network protocol addresses and ports of several robots that need to share the data to be shared, and transmitting the data to be shared to several robots that need to share the data to be shared based on the network protocol addresses and ports.

[0073] Specifically, in the process of each robot executing the target task according to the overall mobile trajectory layout, the operation data uploaded by the robot is obtained based on the cloud device, and the operation data is parsed based on the preset data parsing logic. The data parsing logic can be pre-configured in the cloud device. The preset data parsing logic is set according to the application scenario of the collaborative operation of several robots. The data to be shared obtained by parsing the operation data according to the preset data parsing logic is data that can be directly used for data sharing. The structure and form of the operation data can be converted according to the preset data parsing logic, and then the data is de-redundant to obtain the data to be shared. The data to be shared may include annotated maps, location information of the robots that need to perform collaborative operations, and task operation requirements. The mapping relationship between the robot identification and the data label of the data to be shared is obtained based on the preset data sharing logic. Similarly, the data sharing logic can be pre-configured in the cloud device. The preset data sharing logic is set according to the application scenario of the collaborative operation of several robots. The preset sharing logic contains the mapping relationship between the robot identification and the corresponding data label. The robot identification is the unique identity of each robot, and the data label is the unique identification of the data. Based on the mapping relationship, several robots that need to share the data to be shared are determined. The network protocol addresses and ports of several robots that need to share the data to be shared are obtained through the cloud device, the corresponding socket interface is determined according to the network protocol address and port, and the network protocol address and port are used to transmit the data to be shared to the several robots that need to share the data to be shared through the corresponding socket interface.

[0074] S16: The corresponding robots adjust working parameters in real time based on the data to be shared, and cooperate based on the working parameters adjusted in real time.

[0075] In the specific implementation process of the present invention, the corresponding robot combines the data to be shared with the task data collected in real time by itself to generate task combination data, adjusts the working parameters in real time using the preset decision model through the task combination data, and completes the coordinated cooperation of the target task based on the working parameters adjusted in real time. Each robot has the ability to make decisions and control. Each robot realizes collaborative control through real-time data sharing and real-time adjustment of working parameters.

[0076] In the embodiment of the present invention, the consideration of the intersection of the trajectories is added to the moving trajectory of each robot, and the calculation of the time difference is introduced to avoid the collision of the robot in the process of executing the target task, so as to achieve the overall moving trajectory layout of the robot. In the process of the robot executing the target task, a visual servo error model of neural dynamics based on constrained global optimization is established. On this basis, a visual servo controller is constructed in combination with quadratic sequence planning and performance constraints. The visual servo controller is more perfect and can avoid sudden changes in the control amount, so that the visual servo controller can more effectively drive the robot to reach the target point. At the same time, the posture compensation value generated by the rotation error and the translation error is used to adjust the control joints of each robot, which greatly reduces the dependence on parameter calibration. At the same time, the posture compensation value is linearly fitted by using an approximation function with equal ripple characteristics and a fitting factor, which simplifies the adjustment amount of the robot control joint. At the same time, the linear fitting can eliminate the influence of the vibration of the robot on the calculation result, further improve the reliability and stability of the robot control, and send the data to be shared to the robot that needs data sharing through the preset data sharing logic, so as to realize the work coordination between the robots, reduce the data processing burden of the robot, improve the task operation efficiency and quality of the robot, and enable the robot control to achieve a more ideal effect.

[0077] Embodiment 2

[0078] See also Figure 2 , Figure 2 It is a schematic diagram of the structural composition of a robot collaborative control device based on visual servoing in an embodiment of the present invention.

[0079] like Figure 2 As shown, a robot collaborative control device based on visual servoing, the device comprises:

[0080] Task allocation module 21: used to obtain a task allocation scheme, and allocate a corresponding target task to each robot based on the task allocation scheme, wherein the target task includes a task component allocated to each robot;

[0081] The movement trajectory layout module 22 is used to determine the working range of each robot based on the target task, establish a task logic process, construct the movement trajectory of each robot within the working range based on the task logic process, and establish an overall movement trajectory layout based on the movement trajectory of each robot;

[0082] A movement trajectory adjustment module 23 is used to control each robot to perform a target task according to the overall movement trajectory layout. When each robot performs a target task according to the overall movement trajectory layout, real-time video streams are collected, and the current movement trajectory of each robot is extracted based on the real-time video streams. The error value between the current movement trajectory and the movement trajectory of each robot in the overall movement trajectory layout is calculated, and a visual servo controller is constructed. The visual servo controller generates an optimized control amount based on the error value, and the movement trajectory of the robot is adjusted based on the optimized control amount.

[0083] The processing posture adjustment module 24 is used to obtain the current processing posture of each robot for the task component and the preset expected processing posture of each robot during the process of each robot performing the target task according to the overall movement trajectory layout, generate corresponding rotation error and translation error based on the current processing posture and the preset expected processing posture, calculate corresponding posture compensation value based on the rotation error and translation error, and adjust the control joint of each robot based on the posture compensation value;

[0084] Data sharing module 25: used for obtaining operation data uploaded by the robot based on the cloud device, parsing the operation data to obtain data to be shared, and transmitting the data to be shared to several robots that need to share the data to be shared based on the preset data sharing logic when each robot performs the target task according to the overall moving trajectory layout;

[0085] The coordination module 26 is used for the corresponding robots to adjust the working parameters in real time based on the data to be shared, and to coordinate based on the working parameters adjusted in real time.

[0086] In the specific implementation process of the present invention, the specific implementation method of the device item can refer to the implementation method of the above-mentioned method item, which will not be repeated here.

[0087] In the embodiment of the present invention, the consideration of the intersection of the trajectories is added to the moving trajectory of each robot, and the calculation of the time difference is introduced to avoid the collision of the robot in the process of executing the target task, so as to achieve the overall moving trajectory layout of the robot. In the process of the robot executing the target task, a visual servo error model of neural dynamics based on constrained global optimization is established. On this basis, a visual servo controller is constructed in combination with quadratic sequence planning and performance constraints. The visual servo controller is more perfect and can avoid sudden changes in the control amount, so that the visual servo controller can more effectively drive the robot to reach the target point. At the same time, the posture compensation value generated by the rotation error and the translation error is used to adjust the control joints of each robot, which greatly reduces the dependence on parameter calibration. At the same time, the posture compensation value is linearly fitted by using an approximation function with equal ripple characteristics and a fitting factor, which simplifies the adjustment amount of the robot control joint. At the same time, the linear fitting can eliminate the influence of the vibration of the robot on the calculation result, further improve the reliability and stability of the robot control, and send the data to be shared to the robot that needs data sharing through the preset data sharing logic, so as to realize the work coordination between the robots, reduce the data processing burden of the robot, improve the task operation efficiency and quality of the robot, and enable the robot control to achieve a more ideal effect.

[0088] A computer-readable storage medium provided by an embodiment of the present invention stores a computer program on the computer-readable storage medium, and when the program is executed by a processor, a robot collaborative control method based on visual servoing of any one of the above embodiments is implemented. Wherein, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.

[0089] Embodiment 3

[0090] See also Figure 3 , Figure 3 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention.

[0091] The embodiment of the present invention further provides an electronic device, such as Figure 3 As shown, the electronic device includes a memory 31, a processor 33, and a computer program 32 stored in the memory 31 and executable on the processor 33. Those skilled in the art will appreciate that Figure 3 The electronic device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 31 can be used to store the computer program 32 and various functional modules, and the processor 33 runs the computer program 32 stored in the memory 31, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory can include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The processor 33 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general processor may be a microprocessor, a single chip microcomputer or the processor 33 may also be any conventional processor, etc. The processor and memory disclosed in the present invention include but are not limited to these types of processors and memories. The processor and memory disclosed in the present invention are only examples and not limitations.

[0092] As an embodiment, the electronic device includes: one or more processors 33, a memory 31, and one or more computer programs 32, wherein the one or more computer programs 32 are stored in the memory 31 and are configured to be executed by the one or more processors 33, and the one or more computer programs 32 are configured to execute the robot collaborative control method based on visual servoing in any of the above-mentioned embodiments. Please refer to the above-mentioned embodiments for the specific implementation process, which will not be repeated here.

[0093] In the embodiment of the present invention, the consideration of the intersection of the trajectories is added to the moving trajectory of each robot, and the calculation of the time difference is introduced to avoid the collision of the robot in the process of executing the target task, so as to achieve the overall moving trajectory layout of the robot. In the process of the robot executing the target task, a visual servo error model of neural dynamics based on constrained global optimization is established. On this basis, a visual servo controller is constructed in combination with quadratic sequence planning and performance constraints. The visual servo controller is more perfect and can avoid sudden changes in the control amount, so that the visual servo controller can more effectively drive the robot to reach the target point. At the same time, the posture compensation value generated by the rotation error and the translation error is used to adjust the control joints of each robot, which greatly reduces the dependence on parameter calibration. At the same time, the posture compensation value is linearly fitted by using an approximation function with equal ripple characteristics and a fitting factor, which simplifies the adjustment amount of the robot control joint. At the same time, the linear fitting can eliminate the influence of the vibration of the robot on the calculation result, further improve the reliability and stability of the robot control, and send the data to be shared to the robot that needs data sharing through the preset data sharing logic, so as to realize the work coordination between the robots, reduce the data processing burden of the robot, improve the task operation efficiency and quality of the robot, and enable the robot control to achieve a more ideal effect.

[0094] In addition, the above is a detailed introduction to a robot collaborative control method based on visual servoing and related devices provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A robot collaborative control method based on visual servoing, characterized in that: The method comprises: Acquire a task allocation plan, and allocate a corresponding target task to each robot based on the task allocation plan, wherein the target task includes a task component allocated to each robot; Determine the working range of each robot based on the target task, establish a task logic process, construct a movement trajectory of each robot within the working range based on the task logic process, and establish an overall movement trajectory layout based on the movement trajectory of each robot; Controlling each robot to perform a target task according to the overall mobile trajectory layout, collecting a real-time video stream while each robot performs the target task according to the overall mobile trajectory layout, extracting a current mobile trajectory of each robot based on the real-time video stream, calculating an error value between the current mobile trajectory and the mobile trajectory of each robot in the overall mobile trajectory layout, and constructing a visual servo controller, generating an optimized control amount based on the visual servo controller using the error value, and adjusting the mobile trajectory of the robot based on the optimized control amount; In the process of each robot performing the target task according to the overall movement trajectory layout, the current processing posture of each robot for the task component is obtained, the preset expected processing posture of each robot is obtained, the corresponding rotation error and translation error are generated based on the current processing posture and the preset expected processing posture, and the corresponding posture compensation value is calculated based on the rotation error and the translation error, and the control joint of each robot is adjusted based on the posture compensation value; In the process of each robot performing the target task according to the overall moving trajectory layout, the operation data uploaded by the robot is obtained based on the cloud device, and the operation data is parsed to obtain the data to be shared, and the data to be shared is transmitted to a number of robots that need to share the data to be shared based on the preset data sharing logic; The corresponding robots adjust working parameters in real time based on the data to be shared, and cooperate based on the working parameters adjusted in real time.

2. The robot collaborative control method based on visual servoing according to claim 1 is characterized in that: The step of establishing a task logic flow, constructing a movement trajectory of each robot within the working range based on the task logic flow, and establishing an overall movement trajectory layout based on the movement trajectory of each robot includes: Determine the target task flow based on the task allocation scheme, and establish the task logic flow based on the logical relationship between different target tasks and the positions of different target tasks in the task flow; Building a working model of each robot based on the task logic process, obtaining the current position of each robot, and planning the movement trajectory of each robot within the working range using Cartesian space based on the working model and the current position; Based on the movement trajectory of each robot, a trajectory intersection point is obtained, and a time difference of a corresponding number of robots moving from the current position point to the trajectory intersection point is calculated, and based on the time difference, whether the robots will collide at the trajectory intersection point is determined, and the movement trajectory of each robot is adjusted based on the determination result to obtain an optimized movement trajectory of each robot; The overall movement trajectory layout is established based on the optimized movement trajectory of each robot.

3. The robot collaborative control method based on visual servoing according to claim 1 is characterized in that: The constructing of the visual servo controller, based on the visual servo controller generating the optimized control amount by using the error value, comprises: The visual servo error system is constructed based on the neural dynamics of constrained global optimization combined with the preset robot kinematic model; Performing Euler discretization on the visual servo error system to obtain a discretized visual servo error system; Based on sequential quadratic programming, a positive definite weighted matrix is ​​used to define an objective function, and based on the objective function, a visual servo control model is constructed using the discretized visual servo error system; Generate a performance constraint function based on the performance constraint, and construct a visual servo controller based on the visual servo control model and the performance constraint function; The visual servo controller generates an adaptive control rate using the error value, and generates an optimized control amount based on the adaptive control rate.

4. The robot collaborative control method based on visual servoing according to claim 1 is characterized in that: The generating corresponding rotation error and translation error based on the current machining posture and the preset expected machining posture comprises: Acquire a first pixel coordinate corresponding to the current processing posture and a second pixel coordinate corresponding to the preset expected processing posture; Constructing a projection model, obtaining a conversion relationship between the first pixel coordinate and the second pixel coordinate based on the projection model, and generating a corresponding projection homography matrix based on the conversion relationship; The projection homography matrix is ​​decomposed to obtain corresponding rotation error and translation error.

5. The robot collaborative control method based on visual servoing according to claim 1 is characterized in that: The calculating of the posture compensation value based on the rotation error and the translation error, and adjusting the control joints of each robot based on the posture compensation value, comprises: Calculate the joint arm motion angle compensation value, the control torque compensation value and the robot joint motion speed compensation value based on the rotation error and translation error, wherein the joint arm motion angle compensation value, the control torque compensation value and the robot joint motion speed compensation value constitute the posture compensation value; Perform linear fitting on the posture compensation value to obtain a linear fitting result, and convert the linear fitting result into a control signal, transmit the control signal to the corresponding robot, and the corresponding robot adjusts the control joint based on the control signal.

6. The robot collaborative control method based on visual servoing according to claim 5 is characterized in that: The performing linear fitting on the posture compensation value to obtain a linear fitting result includes: Performing convergence processing on the posture compensation value based on an approximation function with equal ripple characteristics to obtain a converged posture compensation value; Based on the fitting factor, the least squares linear fitting process is performed on the converged posture compensation value to obtain the linear fitting result.

7. The robot collaborative control method based on visual servoing according to claim 1 is characterized in that: The step of parsing the operation data to obtain the data to be shared, and transmitting the data to be shared to a plurality of robots that need to share the data to be shared based on a preset data sharing logic, includes: Parsing the operation data based on a preset data parsing logic to obtain data to be shared; Acquire a mapping relationship between a robot identifier and a data tag of the data to be shared based on a preset data sharing logic, and determine a number of robots that need to share the data to be shared based on the mapping relationship; The network protocol addresses and ports of several robots that need to share the data to be shared are obtained, and the data to be shared is transmitted to the several robots that need to share the data to be shared based on the network protocol addresses and ports.

8. A robot collaborative control device based on visual servoing, characterized in that: The device comprises: Task allocation module: used to obtain a task allocation plan, and allocate corresponding target tasks to each robot based on the task allocation plan, wherein the target tasks include task components allocated to each robot; A movement trajectory layout module: used to determine the working range of each robot based on the target task, establish a task logic process, construct the movement trajectory of each robot within the working range based on the task logic process, and establish an overall movement trajectory layout based on the movement trajectory of each robot; A movement trajectory adjustment module: used to control each robot to perform a target task according to the overall movement trajectory layout. When each robot performs a target task according to the overall movement trajectory layout, real-time video streams are collected, and the current movement trajectory of each robot is extracted based on the real-time video streams. The error value between the current movement trajectory and the movement trajectory of each robot in the overall movement trajectory layout is calculated, and a visual servo controller is constructed. The visual servo controller generates an optimized control amount based on the error value, and the movement trajectory of the robot is adjusted based on the optimized control amount. A processing posture adjustment module: used for obtaining the current processing posture of each robot for the task component and the preset expected processing posture of each robot during the process of each robot performing the target task according to the overall moving trajectory layout, generating corresponding rotation error and translation error based on the current processing posture and the preset expected processing posture, calculating corresponding posture compensation values ​​based on the rotation error and translation error, and adjusting the control joints of each robot based on the posture compensation values; Data sharing module: used for obtaining the operation data uploaded by the robot based on the cloud device, parsing the operation data to obtain the data to be shared, and transmitting the data to be shared to several robots that need to share the data to be shared based on the preset data sharing logic when each robot performs the target task according to the overall moving trajectory layout; Collaboration module: used for the corresponding robots to adjust working parameters in real time based on the data to be shared, and to perform collaborative cooperation based on the working parameters adjusted in real time.

9. An electronic device, comprising a processor and a memory, characterized in that: The memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the robot collaborative control method based on visual servoing as described in any one of claims 1 to claim 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the robot collaborative control method based on visual servoing as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Multi-small robot system mixed formation rapid convergence method based on airborne monocular visual perception

    CN114063614A

  • Industrial robot visual servo method and device, electronic equipment and storage medium

    CN116512237A

  • Track planning method, device and equipment for mechanical arm, storage medium and product

    CN117506906A

  • Method and system for robot control using visual feedback

    US20210138656A1

  • Machine learning enabled visual servoing with dedicated hardware acceleration

    WO2021066794A1

Cited By

  • Cooperative control method, system and equipment for parallel actions of multiple mobile platforms and medium

    CN119690065A

  • Double-robot collaborative circular trajectory machining method

    CN120439313A

  • Coffee beverage robot three-mechanical-arm operation section time-sharing control method and equipment

    CN120663308A

  • Unmanned system cluster three-dimensional reconstruction method based on neurodynamics optimization

    CN122454059A