A composite robot control method, device and composite robot

By pre-establishing a loaded posture library and optimization algorithm, the problem of composite robots sensing and avoiding collisions in complex environments is solved, achieving higher safety and flexibility and ensuring that they can successfully pass environmental constraints.

CN118456457BActive Publication Date: 2024-09-10BEIJING SAIHANG EMBODIED INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing composite robots lack the ability to perceive their own variable physical shapes in complex environments, resulting in difficulties in collision prevention and detection, which limits their safe operation performance in complex environments.

Method used

By pre-establishing a loading posture library, the posture and envelope size of the composite robot when carrying a load are stored, and the recognition module is used to obtain environmental constraint information, search for target posture data that satisfies the constraints, calculate the operability, and optimize the final posture. To control the robot to safely pass through environmental constraints.

Benefits of technology

It improves the flexibility and safety of the composite robot in complex environments, ensures that it can successfully pass environmental constraints, and improves its ability to operate in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118456457B
    Figure CN118456457B
Patent Text Reader

Abstract

The present application provides a control method, device and composite robot for a composite robot. In the first aspect of the method, a loaded posture library is pre-established, and the loaded posture library stores the posture and envelope size of the composite robot when carrying a load. In this way, based on the loaded posture library, the composite robot can indirectly sense the envelope size of the composite robot in a certain posture when carrying a load; in the second aspect, based on the pre-establishment of multiple loaded posture libraries, when the composite robot carries a certain load through an environmental constraint, the corresponding posture library can be found from the multiple loaded posture libraries, and then the alternative posture can be found from the loaded posture library through a global search, and then the final posture can be found through local optimization. In this way, the composite robot can be controlled according to the final posture, so that the composite robot passes through the environmental constraint in sequence, the ability of the composite robot to pass through the environmental constraint is improved, and the flexibility and safety of the composite robot when passing through a complex environment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of robot motion planning, and in particular to a composite robot control method, device and composite robot. Background Art

[0002] Composite robots are intelligent robots that combine mobility and operability, and are seen as an ideal choice for future smart factories and smart homes. Compared with traditional robots, composite robots have broader application prospects and higher adaptability. However, current robotics technology still faces challenges in collision prevention and detection. Robots often rely on pre-established environmental models to avoid collisions, while collision detection relies on the robot itself or external sensors. Robots lack the ability to perceive their own variable physical shapes, which limits the robot's safe operation performance in complex environments. Summary of the invention

[0003] In view of this, the present application provides a composite robot control method, device and composite robot to improve the robot's ability to pass environmental constraints and ensure the robot's safe operation in a complex environment.

[0004] Specifically, the present application is implemented through the following technical solutions:

[0005] A first aspect of the present application provides a composite robot control method, which is applied to a composite robot, and the method comprises:

[0006] When identifying that an environmental constraint exists in the current environment, obtaining size information of the environmental constraint;

[0007] According to the correspondence between the load and the load posture library, a target load posture library corresponding to the target load currently being carried is searched from a plurality of pre-established load posture libraries; wherein the load posture library corresponding to a load stores a plurality of groups of posture data of the composite robot when carrying the load; each group of the posture data includes the posture of the composite robot when carrying the load, and the envelope size of the composite robot in the posture; the envelope size represents the size of the space range occupied by the composite robot in the posture;

[0008] According to the size information and the envelope size of each group of posture data in the target load posture library, searching for multiple groups of target posture data that meet the environmental constraints from the target load posture library;

[0009] For each set of target posture data in the plurality of sets of target posture data, according to the posture in the target posture data, the operability of the target posture data is calculated, and the posture in the target posture data with the largest operability is determined as the candidate posture;

[0010] Optimizing the candidate postures by using an optimization algorithm to find a final posture; wherein the final posture is a posture that is closest to the current posture space among a plurality of postures that satisfy the environmental constraints and have a maneuverability greater than the maneuverability of the candidate postures;

[0011] The composite robot is controlled based on the final pose so that the composite robot passes through the environmental constraints.

[0012] The second aspect of the present application provides a composite robot control device, the device comprising an identification module, a search module, a determination module, an optimization module and a control module; wherein,

[0013] The recognition module is used to obtain size information of the environmental constraints when recognizing that there are environmental constraints in the current environment;

[0014] The search module is used to search for a target carrying posture library corresponding to the currently carried target load from multiple pre-established carrying posture libraries according to the correspondence between the load and the carrying posture library; wherein the carrying posture library corresponding to a load stores multiple groups of posture data of the composite robot when carrying the load; each group of the posture data includes the posture of the composite robot when carrying the load, and the envelope size of the composite robot in the posture; the envelope size represents the size of the space range occupied by the composite robot in the posture;

[0015] The search module is further used to search for multiple groups of target posture data that meet the environmental constraints from the target load posture library according to the size information and the envelope size of each group of posture data in the target load posture library;

[0016] The determination module is used to calculate the operability of each set of target posture data in the multiple sets of target posture data according to the posture in the target posture data, and determine the posture in the target posture data with the largest operability as the candidate posture;

[0017] The optimization module is used to optimize the candidate postures by using an optimization algorithm to find a final posture; wherein the final posture is a posture that is closest to the current posture space distance among a plurality of postures that satisfy the environmental constraints and have an operability greater than the operability of the candidate postures;

[0018] The control module is used to control the composite robot based on the final posture so that the composite robot passes through the environmental constraints.

[0019] The third aspect of the present application provides a composite robot control device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods provided in the first aspect of the present application are implemented.

[0020] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods provided in the first aspect of the present application.

[0021] The composite robot control method, device and equipment provided by the present application, on the first hand, by pre-establishing a load-carrying posture library, the load-carrying posture library stores the position and envelope size of the composite robot when carrying a load, so that, based on the load-carrying posture library, the composite robot can indirectly sense the envelope size of the composite robot in a certain posture when carrying a load; on the second hand, based on the pre-establishment of multiple load-carrying posture libraries, when the composite robot carries a certain load through an environmental constraint, the corresponding posture library can be found from multiple load-carrying posture libraries, and then the alternative postures can be found from the load-carrying posture library by a global search method, and then the final posture can be found by a local optimization method. In this way, the composite robot can be controlled according to the final posture, so that the composite robot passes through the environmental constraint sequentially, thereby improving the ability of the composite robot to pass through the environmental constraint, improving the flexibility and safety of the composite robot when passing through a complex environment, and ensuring the safe operation of the composite robot in a complex environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A flowchart of Embodiment 1 of the composite robot control method provided in this application;

[0023] Figure 2 A flowchart of Embodiment 2 of the composite robot control method provided in this application;

[0024] Figure 3 This is a schematic diagram showing the implementation principle of calculating envelope size according to an exemplary embodiment of the present application;

[0025] Figure 4 This is a schematic diagram showing the implementation principle of collision detection according to an exemplary embodiment of the present application;

[0026] Figure 5 A digital model of a composite robot carrying a load is shown as an exemplary embodiment of the present application;

[0027] Figure 6 This is a schematic diagram of the composite robot posture optimization results shown in this application;

[0028] Figure 7This is a rendering of an exemplary embodiment of the present application showing the optimization of alternative postures using multiple optimization algorithms;

[0029] Figure 8 A schematic diagram of searching for maximum operability according to an exemplary embodiment of the present application;

[0030] Fig. 9 A schematic diagram of the process of verifying the deployment of the composite robot through a narrow door shown in the present application;

[0031] Fig.10 A hardware structure diagram of a composite robot control device in which the composite robot control device provided in this application is located;

[0032] Fig.11 This is a schematic structural diagram of Embodiment 1 of the composite robot control device provided in this application. DETAILED DESCRIPTION

[0033] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0034] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0035] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0036] Specific embodiments are given below to introduce the technical solution of the present application in detail.

[0037] Figure 1 This is a flow chart of the first embodiment of the composite robot control method provided by this application. Please refer to Figure 1 The method provided in this embodiment is applied to a composite robot. The method provided in this embodiment may include:

[0038] S101. When it is identified that there are environmental constraints in the current environment, obtain size information of the environmental constraints.

[0039] Specifically, the composite robot control method and device provided in this embodiment are applied to composite robots. It should be noted that the composite robot refers to a robot including a mobile base and a mechanical arm, wherein the mobile base is responsible for the navigation and positioning of the robot in the workspace, and the mechanical arm is usually composed of multiple joints and has flexible movement capabilities.

[0040] Specifically, "environmental constraints" refer to restrictions, limitations or constraints that exist in a specific environment. In the present application, environmental constraints may be doors or narrow corridors, etc.; in addition, the size information of environmental constraints may include the width and height of the environmental constraints, etc.

[0041] In a specific implementation, the size information of the environmental constraints can be obtained through the environmental perception sensor. For example, in a possible implementation, the environment can be scanned or monitored through the environmental perception sensor (such as a laser radar, a camera, etc.), and then the data scanned or monitored by the environmental perception sensor can be processed and analyzed to obtain the size information of the environmental constraints.

[0042] For example, taking the case of a composite robot passing through a door, at this time, the environmental constraint is the door, and the size information of the environmental constraint is the width and height of the door.

[0043] S102 , searching a target loading posture library corresponding to the currently loaded target load from a plurality of pre-established loading posture libraries according to the correspondence between the load and the loading posture library.

[0044] Specifically, multiple loading posture libraries are pre-established, each loading posture library corresponds to a load. Further, the loading posture library corresponding to a load stores multiple sets of posture data of the composite robot when carrying the load, and each set of posture data includes the position and posture of the composite robot when carrying the load, and the envelope size of the composite robot in the position and posture.

[0045] It should be noted that the envelope size characterizes the size of the space range occupied by the composite robot in this position, which specifically refers to the size of the space range occupied by the robot in this position when carrying the load. Specifically, the envelope size may include the first projection size of the composite robot on the XY plane and the second projection size on the YZ plane, wherein the first projection size on the XY plane includes the width (projection length in the X-axis direction) and height (projection length in the Y-axis direction) of the composite robot on the XY plane; the second projection size on the YZ plane includes the width (projection length in the Y-axis direction) and height (projection length on the Z-axis) of the composite robot on the YZ plane.

[0046] Specifically, the process of establishing a loading posture library corresponding to a type of loaded object will be described in detail below and will not be repeated here.

[0047] Furthermore, after establishing multiple load-carrying posture libraries in advance, a correspondence between the load and the load-carrying posture library can be established to indicate that a certain load-carrying posture library is a load-carrying posture library for the composite robot when carrying a certain load. In this step, based on the correspondence, a target load-carrying posture library corresponding to the target load currently being carried can be searched from the multiple load-carrying posture libraries established in advance.

[0048] For example, in one embodiment, the correspondence between the load and the load posture library is established as shown in Table 1:

[0049] Table 1 Correspondence between the load and the load posture library

[0050]

[0051] Further, in combination with Table 1, in the example shown in Table 1, two load-carrying posture libraries are pre-established. At this time, if the target load currently being carried is a long wooden bar, the corresponding target load-carrying posture library is load-carrying posture library 1; if the target load currently being carried is a short wooden bar, the corresponding target load-carrying posture library is load-carrying posture library 2.

[0052] The following description will be made by taking the case where the currently carried target object is a long wooden bar and the corresponding target carrying posture library is carrying posture library 1 as an example.

[0053] S103 , searching the target load posture library for multiple groups of target posture data that meet the environmental constraints according to the size information and the envelope size of each group of posture data in the target load posture library.

[0054] Specifically, all posture data in the target on-board posture library are traversed. For a certain set of posture data, its envelope size is compared with the environmental constraints. If the envelope size of the posture data meets the environmental constraints, the posture data is added to the candidate list until all posture data are traversed.

[0055] It should be noted that when the envelope size of the posture data is smaller than the environmental constraint, the environmental constraint is satisfied. Specifically, in combination with the above example, taking the robot passing through a door and carrying a long wooden bar as an example, the total width of the robot carrying the long wooden bar must be smaller than the width of the door, and the total height of the robot carrying the long wooden bar must be smaller than the height of the door.

[0056] S104. For each set of target posture data in the plurality of sets of target posture data, calculate the operability of the target posture data according to the posture in the target posture data, and determine the posture in the target posture data with the greatest operability as a candidate posture.

[0057] It should be noted that maneuverability is an indicator to measure the flexibility of the robot configuration. It indicates the movement flexibility and control ability of the robot in a specific posture. Usually, maneuverability can be calculated by the Jacobian matrix. The specific implementation principle and implementation process of calculating maneuverability can be found in the description of the relevant technology, which will not be repeated here.

[0058] In this step, the operability of each target posture data is calculated, and then the posture in the target posture data with the largest operability is determined as the candidate posture.

[0059] S105. Optimize the candidate postures using an optimization algorithm to find a final posture; wherein the final posture is a posture that is closest to the current posture space among a plurality of postures that satisfy the environmental constraints and have an operability greater than the operability of the candidate postures.

[0060] In this application, when finding the final posture, the final posture is found based on the principle of "global search first, then local optimization". Specifically, first based on the global search, multiple groups of target posture data that meet the environmental constraints are found from the target load posture library, and the operability of each group of target posture data is calculated, and then the posture corresponding to the maximum operability is selected as the alternative posture. Furthermore, after finding the alternative posture, local optimization is performed to find the final posture.

[0061] It should be noted that the loaded posture library is obtained by discretizing the workspace of each joint of the robot. Therefore, under the premise of sufficient samples, the candidate postures may be distributed near the global optimal point of operability under environmental constraints, rather than the global optimal point itself. Therefore, through local optimization, the global optimal point can be further found.

[0062] Optionally, in a possible implementation manner, the specific implementation process of this step may include:

[0063] The first objective function is used as the optimization target, and the candidate posture is optimized using an optimization algorithm; wherein the first objective function is:

[0064] ,

[0065] in, is the maneuverability of the robot arm, is the penalty factor, is the sum of the squares of the inequality terms corresponding to the environmental constraints, It is the sum of squares of the values ​​of the equation items corresponding to the collision detection.

[0066] Specifically, any one of the optimization algorithms, such as particle swarm algorithm, grey wolf algorithm, and genetic algorithm, can be used to optimize the candidate postures, so as to verify the effect of local optimization of the candidate postures and explore the search range with better local optimization of the candidate postures.

[0067] For example, in one embodiment, a particle swarm algorithm can be used to optimize the candidate postures. It should be noted that in this application, the particle swarm algorithm is improved to address the problem that the particle swarm algorithm has a slow convergence speed and is prone to falling into local optimality. Specifically, its inertia weight is improved. The inertia weight formula of the particle swarm algorithm is as follows:

[0068] ,

[0069] in, is the inertia weight used at iteration t; is the maximum inertia weight; is the minimum inertia weight; is the maximum number of iterations; t is the current number of iterations; is the current optimal fitness of the particle; is the global optimal fitness; is a random control parameter.

[0070] Refer to the above formula, adding a decay operator to the inertia weight , where the attenuation operator is usually used to adjust the convergence speed and convergence performance of the algorithm. The attenuation operator is usually a coefficient that gradually decreases during the iteration process. It can affect the iterative behavior of the algorithm, making the algorithm more stable when approaching the global optimal solution. It can also help the algorithm jump out of the local optimal solution to better search for the global optimal solution.

[0071] It should be noted that the inertia weight can be adjusted to be proportional to the difference between the particle's optimal fitness and the global optimal fitness through the decay operator. Specifically, when the deviation between the particle's fitness and the global fitness becomes smaller, the particle is more likely to approach the global optimal solution of the problem, the introduced decay operator increases, the inertia weight decays slower, and the particle maintains its own weight to perform speed updates more. When the deviation between the particle's fitness and the global fitness becomes larger, other particles in the world are closer to the global optimal solution of the problem, the introduced decay operator decreases, the inertia weight decays faster, and the particle performs speed updates more in the direction of the global speed.

[0072] Specifically, after the improvement, the inertia weight of the particle swarm algorithm still remains near the global optimal solution, the inertia weight is small, and the local search is accurate; while near the local optimal solution, the inertia weight is large, and it is easy to jump out of the local optimal solution for global search.

[0073] S106: Control the composite robot based on the final posture so that the composite robot passes through the environmental constraints.

[0074] It should be noted that, in a specific implementation, a control instruction of the composite robot may be generated based on the final posture, and then the composite robot may be controlled according to the control instruction so that the composite robot passes through the environmental constraints.

[0075] It should be noted that, when controlling the composite robot based on the final posture, if the composite robot can sequentially pass through the environmental constraints, the final posture can be added to the on-board posture library as new data, thereby achieving the purpose of updating and supplementing the on-board posture library.

[0076] The control method of the composite robot provided in the present embodiment, on the one hand, pre-establishes a load-carrying posture library, in which the load-carrying posture library stores the position and envelope size of the composite robot when carrying a load, so that based on the load-carrying posture library, the composite robot can indirectly sense the envelope size of the composite robot in a certain posture when carrying a load; on the second hand, based on the pre-establishment of multiple load-carrying posture libraries, when the composite robot carries a certain load through an environmental constraint, the corresponding posture library can be found from the multiple load-carrying posture libraries, and then the alternative postures can be found from the load-carrying posture libraries by a global search method, and then the final posture can be found by a local optimization method, so that the composite robot can be controlled according to the final posture, so that the composite robot passes through the environmental constraint sequentially, thereby improving the ability of the composite robot to pass through the environmental constraint, improving the flexibility and safety of the composite robot when passing through a complex environment, and ensuring the safe operation of the composite robot in a complex environment.

[0077] Figure 2 This is a flow chart of Embodiment 2 of the composite robot control method provided in this application. Figure 2 Based on the above embodiment, the process of establishing a loading posture library corresponding to a load may include:

[0078] S201, establishing a kinematic model of the composite robot when carrying the load, and a shape model of the composite robot when carrying the load.

[0079] Specifically, the kinematic model is used to describe the relative position and posture relationship between the various components of the composite robot. When establishing the kinematic model of the composite robot when carrying a certain load, it is first necessary to consider the influence of the weight, size and position of the load on the joints of the composite robot. In specific implementation, the kinematic model of the composite robot can be established using methods such as the DH parameter method or the link vector method. The kinematic parameters of each joint of the composite robot can be obtained through the kinematic model. These kinematic parameters include joint angles, connecting rod lengths, joint offsets, etc., which can describe the position and posture of each joint of the composite robot.

[0080] It should be noted that the shape model of the composite robot when carrying a load describes the appearance characteristics and geometric shape of the robot when carrying the load. The shape model may include the overall shape of the composite robot when carrying the load and the shapes of each component.

[0081] In specific implementation, when establishing shape modeling, it is necessary to consider the influence of the size, shape and position of the load on the appearance of the composite robot. In specific implementation, CAD modeling software or geometric modeling algorithms can be used to model the overall shape of the composite robot with the load and the shape of each component to obtain a shape model. Subsequently, the three-dimensional geometric shape of each component of the composite robot and the size, shape and other information of the load can be obtained through the shape model.

[0082] It should be noted that the shape model can be in STL format or URDF format. Among them, URDF format can essentially be the primary association between STL files and kinematics; STL files are a commonly used 3D model file format, usually used to represent the overall shape of the robot and the shape of each component (each component includes the robot's joints and loads, etc.).

[0083] It should be noted that an STL file is usually composed of many triangular facets, each of which is defined by three vertices and a normal vector. In other words, an STL file contains information representing the surface of a three-dimensional object, including face data and point data.

[0084] S202: Associating the kinematic model with the shape model to obtain a digital model of the composite robot when carrying the object.

[0085] Specifically, the STL data corresponding to each component is linked according to the transformation matrix in the kinematic model. In specific implementation, the STL data of each component is loaded into a three-dimensional modeling software, and the corresponding posture transformation is performed according to the calculated posture transformation relationship to link the components.

[0086] The associated STL data of each component are merged into a complete digital model of the robot, which includes all the components of the robot and takes into account the relative position and posture relationship between the components.

[0087] S203, collecting multiple postures of the composite robot when carrying the object.

[0088] It should be noted that the collection of multiple postures of the composite robot when carrying a load is obtained by extensive sampling within the range of motion of each joint. Among them, each joint of the composite robot has its own range of motion, which refers to the range within which the joint can move freely in its motion space. Specifically, the range of motion of the composite robot joint is usually determined by its own design, mechanical structure and the limitations of the driver. During sampling, each joint is controlled to move within its range of motion and the corresponding posture is collected.

[0089] It should be noted that the method for collecting posture is selected according to actual needs and is not limited in this embodiment. For example, in one embodiment, the method for collecting posture may be manual operation. Specifically, the manual operation may require the operator to adjust by controlling the joints of the robot; for another example, in another embodiment, the method for collecting posture may be to obtain posture data by using an automated system or sensor.

[0090] S204 . For each posture, determine the envelope size of the composite robot in the posture according to the posture and the digital model.

[0091] It should be noted that, in the specific implementation, by using a certain posture of the composite robot and the digital model of the composite robot, based on the envelope size calculation algorithm (which will be introduced below and will not be repeated here), the envelope size of the composite robot in this posture can be calculated.

[0092] Optionally, in a possible implementation, determining the envelope size of the composite robot in the posture according to the posture and the digital model includes:

[0093] (1) Determine a posture transformation matrix of each joint of the compound robot using the digital model and the posture; wherein the posture transformation matrix of each joint represents a transformation relationship between a coordinate of the joint in its own coordinate system and a coordinate of the joint in a world coordinate system.

[0094] Specifically, according to the digital model, the kinematic parameters of each joint (including joint angle, connecting rod length, joint offset, etc.) can be determined. Furthermore, for each joint, according to its kinematic parameters and the posture of the composite robot, the posture transformation matrix of the joint can be calculated. For example, in one embodiment, the posture transformation matrix can be calculated by continuous rotation and translation transformation. Furthermore, the posture transformation matrix can be expressed as follows:

[0095] ,

[0096] Among them, i is the degree of freedom of the composite robot; Represents the pose transformation matrix of the i-th joint.

[0097] (2) For each of the joints, obtain a first coordinate of the vertex of the joint in its own coordinate system from the digital model, and determine a second coordinate of the joint in the world coordinate system using the first coordinate and the pose transformation matrix of the joint.

[0098] Specifically, referring to the above description, the first coordinates of the vertices of the joint in the native coordinate system can be obtained from the digital model. In specific implementation, for example, the first coordinates of the vertices of the joint in the native coordinate system can be obtained based on the STL file.

[0099] Specifically, the first coordinate is multiplied by the pose transformation matrix of the joint to obtain the second coordinate of the joint in the world coordinate system, which can be expressed by the following mathematical expression:

[0100] ,

[0101] Among them, A is the posture transformation matrix of each joint, and points is the first coordinate of the vertex of each joint of the composite robot in its own coordinate system.

[0102] (3) For each joint, the second coordinate of the joint is projected onto the XY plane and the YZ plane to obtain the first projection coordinate of the joint on the XY plane and the second projection coordinate of the joint on the YZ plane.

[0103] It should be noted that the second coordinate includes data in columns X, Y and Z. Specifically, the data in columns X and Y in the second coordinate can be extracted, and the data in columns X and Y are the first projection coordinates of the second coordinate on the XY plane.

[0104] Specifically, as follows:

[0105] ,

[0106] Among them, B is the second coordinate of the joint of the compound robot in the world coordinate system, C is the first projection coordinate of the joint of the compound robot in the XY plane, is the projection vector corresponding to the XY plane; for example, in one embodiment, It can be [0, 0, 0; 0, 1, 0; 0, 0, 1].

[0107] Similarly, the Y column data and the Z column data in the second coordinate can be extracted, and the Y column data and the Z column data are the first projection coordinates of the second coordinate on the YZ plane.

[0108] Specifically, as follows:

[0109] ,

[0110] Among them, B is the second coordinate of the joint of the composite robot in the world coordinate system, and D is the second projection coordinate of the composite robot in the YZ plane. is the projection vector corresponding to the YZ plane. For example, in one embodiment, It can be [1, 0, 0; 0, 1, 0; 0, 0, 0].

[0111] (4) Determine a first projection size of the compound robot on the XY plane according to the first projection coordinates of all joints of the compound robot on the XY plane.

[0112] Figure 3 This is a schematic diagram showing the implementation principle of calculating the envelope size according to an exemplary embodiment of the present application. Figure 3 The first projection dimension is used to characterize the range of the rectangle formed by the projection of the composite robot on the XY plane, which may include the width and height of the rectangle, that is, the first projection dimension includes its width (projection length in the X-axis direction) and height (projection length in the Y-axis direction) on the XY plane.

[0113] In specific implementation, the maximum value and the minimum value of the X column can be determined according to the obtained first projection coordinates, and then the projection length in the X direction is obtained by subtracting the minimum value of the X column from the maximum value of the X column. Similarly, the maximum value and the minimum value of the Y column can be determined according to the obtained first projection coordinates, and the projection length in the Y direction is obtained by subtracting the minimum value of the Y column from the maximum value of the Y column. The projection length in the X direction and the projection length in the Y direction are determined as the first projection size of the composite robot on the XY plane.

[0114] (5) Determine a second projection size of the compound robot on the YZ plane according to the second projection coordinates of all joints of the compound robot on the YZ plane.

[0115] Please continue to refer to Figure 3 The second projection dimension is used to characterize the range of the rectangle formed by the projection of the composite robot on the YZ plane, which may include the width and height of the rectangle, that is, the second projection dimension includes its width (projection length in the Y-axis direction) and height (projection length on the Z-axis) on the YZ plane.

[0116] In specific implementation, the maximum and minimum values ​​of the Z column are determined according to the obtained second projection coordinates, and the projection length in the Z direction is obtained by subtracting the minimum value of the Z column from the maximum value of the Z column; similarly, the maximum and minimum values ​​of the Y column are determined according to the obtained second projection coordinates, and the projection length in the Y direction is obtained by subtracting the minimum value of the Y column from the maximum value of the Y column, and finally, the projection length in the Z direction and the projection length in the Y direction are determined as the second projection size of the composite robot on the YZ plane.

[0117] (6) Determine the first projection size and the second projection size as the envelope size of the composite robot in the position.

[0118] In this step, the first projection size and the second projection size are determined as the envelope size of the composite robot in this position. In other words, referring to the previous description, the envelope size may include the first projection size of the composite robot on the XY plane and the second projection size on the YZ plane. The first projection size on the XY plane includes its width (projection length in the X-axis direction) and height (projection length in the Y-axis direction) on the XY plane; the second projection size on the YZ plane includes its width (projection length in the Y-axis direction) and height (projection length on the Z-axis) on the YZ plane.

[0119] The method provided in this embodiment gives a method for calculating the envelope size. Through the above steps, the envelope size of the robot in any posture can be calculated, and then a loaded posture library is established based on this to achieve global coverage of posture and envelope size. Subsequently, motion planning can be performed based on the loaded posture library, so that the robot can indirectly perceive its envelope size in a certain posture through the loaded posture library, and then find the final posture that can pass the environmental constraints based on this.

[0120] S205. For each posture, determine whether there is a collision risk for the joints of the compound robot in the posture, and when there is no collision risk for the joints of the compound robot in the posture, store the posture and the envelope size of the compound robot in the posture as a set of posture data in the load posture library corresponding to the load.

[0121] Specifically, collision detection can be used to determine whether there is a collision risk among the joints of the composite robot in this position. Figure 4 This is a schematic diagram of the implementation principle of collision detection shown in an exemplary embodiment of the present application, please refer to Figure 4 , the determining whether there is a collision risk among the joints of the composite robot in the posture includes:

[0122] (1) For each joint, point data and surface data of the joint in its own coordinate system are obtained from the digital model, and the projection of the joint on each axis in the world coordinate system is determined using the point data and the surface data.

[0123] It should be noted that the point data and surface data of the joint in its own coordinate system can be obtained by parsing the STL file.

[0124] Furthermore, after obtaining the point data and surface data of the joint in its own coordinate system, the coordinates of the joint in the world coordinate system can be obtained based on the joint's posture transformation matrix. It can be understood that the coordinates of the joint in the world coordinate system are represented by the coordinates of the multiple points that make up the joint. Further, after obtaining the coordinates of the joint in the world coordinate system, based on this, the projections of the joint on each axis in the world coordinate system can be obtained, that is, the projections of the joint on the X-axis, Y-axis, and Z-axis of the world coordinate system can be obtained. It can be understood that the projection of the joint on a certain axis is represented by the coordinates of the multiple projection points of the joint on the axis.

[0125] (2) For a first joint and a second joint to be detected, determine whether the first joint and the second joint overlap on each axis based on the projection of the first joint on each axis in the world coordinate system and the projection of the second joint on each axis in the world coordinate system; wherein the first joint is the end joint and the second joint is the joint of the robot other than the end joint.

[0126] It should be noted that when judging whether the first joint and the second joint overlap on a certain axis, it can be judged whether there are overlapping projection points based on the coordinates of the projection point of the first joint on the axis and the coordinates of the projection point of the second joint on the axis. If there is at least one overlapping projection point, it is determined that the first joint and the second joint overlap on the axis. If there are no overlapping projection points, it is determined that the first joint and the second joint do not overlap on the axis.

[0127] (3) When there is no overlap between the first joint and the second joint on each axis, it is determined that there is no collision risk between the first joint and the second joint.

[0128] Specifically, if there is no overlap between the first joint and the second joint in the X-axis, Y-axis, and Z-axis, it is considered that there is no collision risk between the first joint and the second joint. When there is overlap between the first joint and the second joint in at least one axis, it is considered that there is a collision risk between the first joint and the second joint.

[0129] (4) When there is no collision risk for the first joint and all the second joints, determine that there is no collision risk for each joint of the robot in this position.

[0130] As described above, the second joints are the joints of the robot other than the terminal joints. Therefore, only when the first joint and all the second joints do not have a collision risk can it be determined that the joints of the robot do not have a collision risk in this position. If the second joint and at least one second joint have a collision risk, it is considered that the joints of the robot have a collision risk in this position.

[0131] The composite robot control method provided in this embodiment uses collision detection to store a certain posture into the on-board posture library only when there is no collision risk for the joints of the composite robot in the posture. In this way, all the postures stored in the on-board posture library can be usable postures, avoiding the searched posture being a useless posture with a collision risk, thereby improving the control efficiency.

[0132] In order to verify the effect of this application, this application also provides a verification test:

[0133] Verification test 1:

[0134] It should be noted that the construction of the digital model is the basis for realizing the solution of the envelope size of the composite robot, which mainly includes the establishment of the kinematic model, the shape model and the model association. Figure 5 This is a digital model of a composite robot carrying a load, as shown in an exemplary embodiment of the present application. Figure 5 , the digital model includes the mobile base, robotic arm and payload of the composite robot.

[0135] Specifically, the kinematic model is established using the standard DH or improved DH method to describe the posture transformation relationship from the mobile base of the composite robot to the end of the robotic arm; the shape model uses the STL format or URDF format. The URDF format is essentially a primary association between STL files and kinematics. The STL file mainly describes the appearance of the model through triangular patches. In terms of data format, each triangular patch actually stores a digital sequence of the three vertices that make up the triangular patch, and the specific coordinates of the vertices can be queried based on this. This lays a data foundation for the subsequent realization of the envelope size solution of the composite robot.

[0136] Model association refers to "stacking" the STL data of each component according to the transformation matrix in the kinematic model to form a full and realistic digital model of the composite robot.

[0137] Verification test 2:

[0138] It should be noted that by establishing a digital model of the composite robot to solve the envelope size of the composite robot, a library of the composite robot's load-bearing postures when carrying corresponding loads is constructed, and a particle swarm optimization algorithm considering the operability of the composite robot is proposed, which can quickly find a flexible and safe posture when the environmental constraint is a door. Compared with manual operation, the passing time is shortened by about 12% and the flexibility of the passing posture is improved by about 7.3%.

[0139] Figure 6 This is a schematic diagram of the composite robot posture optimization results shown in this application, please refer to Figure 6,Compared with the posture before optimization (the posture before optimization is shown by the gray line in the figure, and the posture after optimization is shown by the black line in the figure), it is easier to pass through complex environments after posture optimization.

[0140] Figure 7 This is a diagram showing the effect of optimizing alternative postures using multiple optimization algorithms, which is an exemplary embodiment of the present application. Figure 8 This is a schematic diagram of searching for maximum operability according to an exemplary embodiment of the present application. Figure 7 , respectively using particle swarm algorithm, grey wolf algorithm, mean variance algorithm and adaptive Huffman coding algorithm for optimization. Figure 7 It can be seen that the improved particle swarm algorithm can quickly find the optimal posture (after 5 iterations), which greatly reduces the number of iterations compared to other algorithms. For further information, please continue to refer to Figure 8 ,Based on the improved particle swarm algorithm, the pose that can be found quickly,has a high operability value, which is convenient for the actual movement to the target pose.

[0141] Furthermore, based on the particle swarm algorithm, the following deployment verification was designed:

[0142] Fig. 9 This is a schematic diagram of the process of verifying the deployment of the composite robot through a narrow door shown in this application. Fig. 9 The perception system of the composite robot feeds back the size of the narrow door in the forward direction. The composite robot calculates its own envelope size in real time according to its own posture, and compares it with the door frame size to determine the collision risk. If there is a collision, the door frame size will be constructed as an inequality constraint under the action of the loaded posture library and optimization algorithm, and input to the controller for solution to obtain the posture and corresponding envelope size that meet the door frame size constraint and other kinematic constraints, and then generate control instructions based on the posture. Further, the control instructions are then sent to each joint of the composite robot to control the composite robot to pass through the narrow door obstacle without collision. The above method is proved to be effective through verification.

[0143] Corresponding to the aforementioned embodiment of a composite robot control method, the present application also provides an embodiment of a composite robot control device.

[0144] The embodiment of a composite robot control device of the present application can be applied to a composite robot control device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the composite robot control device in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, if Fig.10 As shown, it is a hardware structure diagram of the composite robot control device in which the composite robot control device of the present application is located. Fig.10In addition to the processor, memory, network interface, and non-volatile memory shown, the composite robot control device in which the device is located in the embodiment may also include other hardware according to the actual function of the composite robot control device, which will not be described in detail.

[0145] Fig.11 This is a schematic diagram of the structure of the first embodiment of the composite robot control device provided by this application. Fig.11 The device provided in this embodiment includes an identification module 1110, a search module 1120, a determination module 1130, an optimization module 1140 and a control module 1150; wherein,

[0146] The identification module 1110 is used to obtain size information of the environmental constraint when identifying that the environmental constraint exists in the current environment;

[0147] The search module 1120 is used to search for a target carrying posture library corresponding to the target carrying object currently being carried from a plurality of pre-established carrying posture libraries according to the correspondence between the carrying object and the carrying posture library; wherein the carrying posture library corresponding to a carrying object stores a plurality of groups of posture data of the composite robot when carrying the carrying object; each group of the posture data includes the posture of the composite robot when carrying the carrying object, and the envelope size of the composite robot in the posture; the envelope size represents the size of the space range occupied by the composite robot in the posture;

[0148] The search module 1120 is further configured to search for multiple sets of target posture data satisfying the environmental constraints from the target posture library according to the size information and the envelope size of each posture data in the target posture library;

[0149] The determining module 1130 is used to calculate the operability of each set of target posture data in the multiple sets of target posture data according to the posture in the target posture data, and determine the posture in the target posture data with the largest operability as the candidate posture;

[0150] The optimization module 1140 is used to optimize the candidate postures by using an optimization algorithm to find a final posture; wherein the final posture is a posture that satisfies the environmental constraints and has a maneuverability greater than that of the candidate postures and is closest to the current posture space;

[0151] The control module 1150 is used to control the composite robot based on the final posture so that the composite robot passes through the environmental constraints.

[0152] The device of this embodiment can be used to perform Figure 1The steps, specific implementation principles and implementation processes of the method embodiment shown are similar and will not be repeated here.

[0153] Please continue to refer to Fig.10 The present application also provides a composite robot control device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any one of the methods provided in the first aspect of the present application are implemented.

[0154] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of any one of the methods provided in the present application are implemented.

[0155] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0156] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0157] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A composite robot control method, characterized in that: The composite robot control method is applied to the composite robot, and the method comprises: When identifying that an environmental constraint exists in the current environment, obtaining size information of the environmental constraint; According to the correspondence between the load and the load posture library, a target load posture library corresponding to the target load currently being carried is searched from a plurality of pre-established load posture libraries; wherein the load posture library corresponding to a load stores a plurality of groups of posture data of the composite robot when carrying the load; each group of the posture data includes the posture of the composite robot when carrying the load, and the envelope size of the composite robot in the posture; the envelope size represents the size of the space range occupied by the composite robot in the posture; According to the size information and the envelope size of each group of posture data in the target load posture library, searching for multiple groups of target posture data that meet the environmental constraints from the target load posture library; For each set of target posture data in the plurality of sets of target posture data, according to the posture in the target posture data, the operability of the target posture data is calculated, and the posture in the target posture data with the largest operability is determined as the candidate posture; Optimizing the candidate postures by using an optimization algorithm to find a final posture; wherein the final posture is a posture that is closest to the current posture space distance among multiple postures that satisfy the environmental constraints and have an operability greater than or equal to the operability of the candidate postures; controlling the composite robot based on the final pose so that the composite robot passes through the environmental constraints; The loading posture library corresponding to a load is pre-established by the following method: Establishing a kinematic model of the composite robot when carrying the load, and a shape model of the composite robot when carrying the load; Associating the kinematic model with the shape model to obtain a digital model of the composite robot when carrying the object; Collecting multiple positions and postures of the composite robot when carrying the object; For each posture, determining the envelope size of the composite robot in the posture according to the posture and the digital model; For each posture, determine whether there is a collision risk for each joint of the composite robot in the posture, and if there is no collision risk for each joint of the composite robot in the posture, store the posture and the envelope size of the composite robot in the posture as a set of posture data in a loaded posture library corresponding to the load; Determining the envelope size of the composite robot in the posture according to the posture and the digital model includes: Determine the posture conversion matrix of each joint of the compound robot by using the digital model and the posture; wherein the posture conversion matrix of each joint represents the conversion relationship between the coordinate of the joint in its own coordinate system and the coordinate of the joint in the world coordinate system; For each of the joints, obtain a first coordinate of the vertex of the joint in the local coordinate system from the digital model, and determine a second coordinate of the joint in the world coordinate system by using the first coordinate and the posture transformation matrix of the joint; For each joint, project the second coordinate of the joint onto the XY plane and the YZ plane to obtain the first projection coordinate of the joint on the XY plane and the second projection coordinate of the joint on the YZ plane; Determining a first projection size of the compound robot on the XY plane according to first projection coordinates of all joints of the compound robot on the XY plane; Determining a second projection size of the compound robot on the YZ plane according to the second projection coordinates of all joints of the compound robot on the YZ plane; The first projection size and the second projection size are determined as the envelope size of the composite robot in the posture.

2. The method according to claim 1, characterized in that The determining whether there is a collision risk between the joints of the composite robot in the position and posture includes: For each of the joints, obtain point data and surface data of the joint in its own coordinate system from the digital model, and determine the projection of the joint on each axis in the world coordinate system using the point data and the surface data; For a first joint and a second joint to be detected, judging whether the first joint and the second joint overlap on each axis according to the projection of the first joint on each axis in the world coordinate system and the projection of the second joint on each axis in the world coordinate system; wherein the first joint is an end joint, and the second joint is a joint of the robot other than the end joint; When the first joint and the second joint do not overlap on any axis, determining that there is no collision risk between the first joint and the second joint; When there is no collision risk between the first joint and all the second joints, it is determined that there is no collision risk between the joints of the robot in this position.

3. The method according to claim 1, characterized in that Utilizing an optimization algorithm to optimize the candidate poses to obtain a final pose, including: The first objective function is used as the optimization target, and the candidate posture is optimized using an optimization algorithm; wherein the first objective function is: , in, is the maneuverability of the robot arm, is the penalty factor, is the sum of the squares of the inequality terms corresponding to the environmental constraints, It is the sum of squares of the values ​​of the equation items corresponding to the collision detection.

4. The method according to claim 3, characterized in that The step of optimizing the candidate postures by using an optimization algorithm and taking the first objective function as the optimization target includes: The candidate postures are optimized using any optimization algorithm among particle swarm algorithm, grey wolf algorithm and genetic algorithm.

5. The method according to claim 4, characterized in that The inertia weight formula of the particle swarm algorithm is as follows: , in, is the inertia weight used at iteration t; is the maximum inertia weight; is the minimum inertia weight; is the maximum number of iterations; t is the current number of iterations; is the current optimal fitness of the particle; is the global optimal fitness; is a random control parameter.

6. A composite robot control device, characterized in that: The composite robot control device is applied to a composite robot, and the composite robot control device includes an identification module, a search module, a determination module, an optimization module and a control module; wherein, The recognition module is used to obtain size information of the environmental constraints when recognizing that there are environmental constraints in the current environment; The search module is used to search for a target carrying posture library corresponding to the target carrying object currently being carried from a plurality of pre-established carrying posture libraries according to the correspondence between the carrying object and the carrying posture library; wherein the carrying posture library corresponding to a carrying object stores a plurality of groups of posture data of the composite robot when carrying the carrying object; each group of the posture data includes the posture of the composite robot when carrying the carrying object, and the envelope size of the composite robot in the posture; the envelope size represents the size of the space range occupied by the composite robot in the posture; The search module is further used to search for multiple groups of target posture data that meet the environmental constraints from the target load posture library according to the size information and the envelope size of each group of posture data in the target load posture library; The determination module is used to calculate the operability of each set of target posture data in the multiple sets of target posture data according to the posture in the target posture data, and determine the posture in the target posture data with the largest operability as the candidate posture; The optimization module is used to optimize the candidate postures by using an optimization algorithm to find a final posture; wherein the final posture is a posture that is closest to the current posture space distance among a plurality of postures that satisfy the environmental constraints and have an operability greater than the operability of the candidate postures; The control module is used to control the composite robot based on the final posture so that the composite robot passes through the environmental constraint; The loading posture library corresponding to a load is pre-established by the following method: Establishing a kinematic model of the composite robot when carrying the load, and a shape model of the composite robot when carrying the load; Associating the kinematic model with the shape model to obtain a digital model of the composite robot when carrying the object; Collecting multiple positions and postures of the composite robot when carrying the object; For each posture, determining the envelope size of the composite robot in the posture according to the posture and the digital model; For each posture, determine whether there is a collision risk for each joint of the composite robot in the posture, and if there is no collision risk for each joint of the composite robot in the posture, store the posture and the envelope size of the composite robot in the posture as a set of posture data in a loaded posture library corresponding to the load; Determining the envelope size of the composite robot in the posture according to the posture and the digital model includes: Determine the posture conversion matrix of each joint of the compound robot by using the digital model and the posture; wherein the posture conversion matrix of each joint represents the conversion relationship between the coordinate of the joint in its own coordinate system and the coordinate of the joint in the world coordinate system; For each of the joints, obtain a first coordinate of the vertex of the joint in the local coordinate system from the digital model, and determine a second coordinate of the joint in the world coordinate system by using the first coordinate and the posture transformation matrix of the joint; For each joint, project the second coordinate of the joint onto the XY plane and the YZ plane to obtain the first projection coordinate of the joint on the XY plane and the second projection coordinate of the joint on the YZ plane; Determining a first projection size of the compound robot on the XY plane according to first projection coordinates of all joints of the compound robot on the XY plane; Determining a second projection size of the compound robot on the YZ plane according to the second projection coordinates of all joints of the compound robot on the YZ plane; The first projection size and the second projection size are determined as the envelope size of the composite robot in the posture.

7. A composite robot, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the program.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.