Industrial robot wire harness simulation analysis method and system and storage medium
By using the signed distance field and the corotating coordinate method of nonlinear finite elements in the industrial robot wire harness simulation, combined with the octree and Lie group description, the problem of high computational resource consumption in the existing technology is solved and efficient contact analysis is achieved. , suitable for simulation of large-scale motion and multi-contact phenomena.
Patent Information
- Application Number
- CN202410964000.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-08
AI Technical Summary
The existing technology consumes a lot of computing resources when there is a large range of motion and large deformation in the design and simulation of industrial robot wire harnesses, and fails to effectively consider the contact phenomenon of the wire harness, resulting in low design efficiency and excessive calculations.
The contact detection technology based on the signed distance field (SDF) is used to model the wire harness by establishing the dynamic equation of the rigid body and the corotating coordinate method of the nonlinear finite element. The SDF of the rigid body is directly constructed to avoid repeated updates at each time step. Combined with Octree and Lie group descriptions are used to model contact forces and calculate normal and tangential contact forces.
It improves the efficiency of the simulation process, reduces the consumption of computing resources, avoids singularity problems, and is suitable for the analysis of large-scale motion and multi-contact phenomena.
Smart Images

Figure CN118747466A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of multi-body system dynamics simulation, and in particular to an industrial robot harness simulation analysis method, system and storage medium. Background Art
[0002] During the large-scale movement of industrial robots, the wiring harnesses inserted in the inner cavity of the casting also experience large-scale movement, bending, twisting and friction. At present, the design and development of wiring harnesses often rely on experience and a large number of tests. During the design process, the movement of the wiring harness cannot be predicted during operation. The only way is to observe its status through continuous disassembly and assembly to infer the working condition of the wiring harness. During the maintenance process, once the wiring harness fails, the above process also needs to be repeated. This will take a lot of time and iterative processes.
[0003] There are currently some technical solutions and commercial software specifically for the design and simulation of robot harnesses, which have the following problems:
[0004] 1. The wiring harness designed for the wiring harness often does not have a large range of movement and deformation. However, the industrial robot arm has a large range of movement and deformation. The current wiring harness model uses nonlinear finite element technology, and the rotation of the wiring harness is described by rotation parameters, such as the rotation angle. The three-parameter rotation angle parameter often brings singularity, resulting in discontinuity in time integral. In addition, nonlinear finite element technology often involves a large amount of calculation, which will consume a lot of computing resources and time in actual engineering design.
[0005] 2. Some current technical solutions do not consider or only consider a small number of wire harness contact situations. The space around the wire harness is often very small, and there is usually a large amount of contact phenomenon. Contact phenomenon is the dominant factor in wire harness analysis.
[0006] 3. The current contact detection technology is too computationally intensive and is not suitable for early-stage wire harness rapid design. Existing contact detection solutions usually use BVH (bounding box hierarchy). When the problem space becomes larger, the amount of computation increases rapidly; and the BVH tree needs to be updated at each time step, which consumes a lot of computing resources. Summary of the invention
[0007] The present invention provides an industrial robot harness simulation analysis method, comprising:
[0008] Steps to establish the dynamic equation of the rigid body: connect the SDF in the body coordinate system with the rigid body and describe it based on the SE(3) Lie group to obtain the dynamic equation of the rigid body. The rigid body refers to the manipulator body of the industrial robot, and SDF is the signed distance field.
[0009] Harness modeling steps: Harness is modeled using the co-rotational coordinate method of nonlinear finite element, and the rotation angle is described by the Lie group of R3×SO(3);
[0010] The moving SDF of the local coordinate system is obtained through the rigid body dynamics equation step and the harness modeling step, and then the contact force modeling step is performed;
[0011] Contact force modeling steps: Obtain the normal gap g of the contact point through SDF difference N , Normal gap velocity and tangential velocity
[0012] As a further improvement of the present invention, in the step of establishing the dynamic equation of the rigid body, the dynamic expression of the rigid body is: M r is the mass matrix constant, m is the mass of the rigid body, Φ is the constraint equation, and f ext is the external load, λ is the Lagrange multiplier corresponding to the constraint equation, and f r is the dynamic equation of the rigid body, J is the inertia matrix of the rigid body, is the antisymmetric matrix of the angular velocity of the rigid body, is the velocity vector, is the acceleration matrix, is the acceleration vector, is the angular acceleration of the rigid body.
[0013] As a further improvement of the present invention, the contact force modeling step includes:
[0014] Step 1: Input parameters into the function. The input parameters include the octree SDF information d Ω , the current harness position q i , velocity v, state quantity q of the rigid body r 、v r ,q r is a homogeneous coordinate matrix,
[0015] Step 2: Calculate the interpolation point x of the line bundle g ;
[0016] Step 3: Update the local coordinates of the position and velocity of the harness contact point
[0017] Step 4: Find local variables The leaf node where it is located;
[0018] Step 5: Use the interpolation function to interpolate the distance from the point on the harness to the rigid body and the gradient vector n;
[0019] Step 6: Calculate g N , as well as
[0020] Step 7: Calculate the normal contact force p N and the tangential contact force p T .
[0021] The present invention also provides an industrial robot harness simulation analysis system, comprising: a memory, a processor, and a computer program stored in the memory, wherein the computer program is configured to implement the steps of the industrial robot harness simulation analysis method of the present invention when called by the processor.
[0022] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the industrial robot harness simulation analysis method of the present invention when called by a processor.
[0023] The beneficial effect of the present invention is that the present invention directly constructs the SDF of the rigid body before the simulation starts instead of repeatedly updating it in each time step, thereby avoiding the problem of great consumption of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a flow chart of the contact force modeling steps;
[0025] Figure 2 is to find local variables The leaf node flow chart;
[0026] Figure 3 It is a schematic diagram of the robot's symbolic distance field and harness contact. DETAILED DESCRIPTION
[0027] The present invention discloses a method for simulating and analyzing the wiring harness of an industrial robot. The present invention adopts a contact detection technology based on SDF (signed distance field) to obtain the contact relationship between the flexible wiring harness and the robot arm casting in real time. The current contact detection technology usually relies on collision detection during the entire simulation process. Compared with the traditional method, the SDF technology has the following advantages: since the SDF of the rigid body is unchanged, during a large range of motion, we can directly construct the SDF of the rigid body before the simulation starts instead of repeatedly performing collision detection in each time step.
[0028] The dynamic equations of a rigid body are:
[0029] First, we connect the SDF in the body coordinate system to the rigid body and describe it based on the SE(3) Lie group to obtain the dynamic equation of the system. The position of the rigid body is described using the SE(3) homogeneous coordinate matrix qr to obtain
[0030]
[0031] Among them, Rr is the direction cosine matrix of the rigid body, t r is the translational displacement of the rigid body.
[0032] We can further obtain its derivative with respect to time, that is, the velocity variable for
[0033]
[0034] in, is the velocity matrix, is the antisymmetric matrix of the angular velocity of the rigid body, is the velocity vector. Therefore, both the translational and rotational velocities / accelerations of the rigid body can be expressed in terms of the local coordinate system. These variables are
[0035]
[0036] in, is the acceleration matrix, is the acceleration vector, is the angular acceleration of the rigid body.
[0037] Through the above variables, we can get the expression of inertia force
[0038]
[0039] f r is the dynamic equation of the rigid body, where M r is the mass matrix, m is the mass of the rigid body, J is the inertia matrix of the rigid body, where v r Refer to formula 1.3 and is its antisymmetric matrix. Finally, we can get the dynamic expression of the rigid body:
[0040]
[0041] f ext is the external load, where Φ is the constraint equation and λ is the Lagrange multiplier corresponding to the constraint equation.
[0042] R3×SO(3) Lie group corotational coordinate method:
[0043] The harness is modeled using the co-rotating coordinate method of nonlinear finite elements to ensure the efficiency of the simulation process. At the same time, the rotation angle is described by the Lie group of R3×SO(3), which maintains the structure of traditional nonlinear finite elements and does not cause singularity problems.
[0044] Harness elements in corotational coordinate format
[0045] Unit form based on co-rotational coordinates:
[0046]
[0047] in, is the generalized force associated with pure deformation of the unit; H′(θ) is the transformation matrix between the virtual rotation of the deformation and the infinitesimal rotation; P is the projection matrix of the global motion of the unit to the pure deformation; R is the transformation matrix from the unit co-rotation coordinate system to the inertial coordinate system; is the transformation matrix from infinitesimal rotation to global rotation parameters, where is the rotation vector.
[0048] Rotation description in R3×SO(3) format:
[0049] In one time step, The rotation vector represents the rotation from t n to n+1 is continuously changing. Therefore, the update format is
[0050]
[0051] in, is the rotation vector of k iterations in n time steps, is the rotation vector increment for the kth iteration.
[0052] When updating the time step, an exponential mapping method is used:
[0053]
[0054] Among them, R n+1 is the rotation matrix of n+1 steps, and Exp is the exponential mapping function.
[0055] Volumetric Octree Signed Distance Field (SDF)
[0056] If we use the triangle patch Λ i The outer surface Γ of the object is constructed by a collection of i∈[1,n] Λ i , where n is the total number of triangles. The signed distance field (SDF) describes a scalar distance field to represent the distance to the surface of an object. The scalar value is negative inside the object and positive outside the object. Formally speaking, the SDF is defined as the minimum distance from any point to the surface of an object in the reference coordinate system, that is,
[0057]
[0058] where Γ + and Γ - The inner and outer regions of the object surface. In order to implement SDF, it is necessary to obtain the SDF data set pre-calculated at the discrete grid nodes. For a uniform grid in space The SDF node position coordinates in each direction are
[0059] where h a Represents the grid step size, N SDF_a represents the number of nodes. The set of these discrete nodes can be expressed as Ω = χ1 × χ2 × χ3, and the pre-computed SDF dataset can be expressed as d Ω ={d sdf (x)|x∈Ω}. After that, the distance from any given point x in space to the surface can be obtained by interpolation
[0060]
[0061] in represents the selected interpolation function, represents the coordinates of point x in the body coordinate system. In addition, in order to satisfy the properties of the distance field, the gradient of the function needs to be guaranteed. We can use the gradient to calculate the normal vector and tangent vector of the contact point. In order to ensure that the interpolation function satisfies this property, we need to modify the gradient vector and the Hessian matrix
[0062]
[0063] in and Represents the first and second derivatives of the selected interpolation function. Taking the uniform grid as an example, we can use the following kernel function to implement the interpolation function, which was first used in the boundary fluid-structure interaction method
[0064]
[0065] in Represents the tensor product of the 1D kernel function
[0066]
[0067] The expression of the function φ is
[0068]
[0069] This set of expressions can be used to differencing smooth linear equations with second-order accuracy.
[0070] Although it is convenient to directly use the interpolation function to query given grid nodes, the spatial complexity of grid division is relatively large, which is O(n 3 ). In order to speed up collision detection, we can use octree to implement space partition to improve query efficiency.
[0071] Contact force model:
[0072] After obtaining the moving SDF of the local coordinate system, we can model the contact force. By differencing the SDF, we can obtain the normal gap g at the contact point N , normal gap velocity and tangential velocity
[0073]
[0074] Where r represents the radius of the beam, I3 is the third-order unit matrix, and the normal vector n can be obtained from equation (1.9), Y1, Y2, v, v g , where v g is the relative speed of the distance, which can be obtained by interpolation. Through the penalty function method, we can obtain the normal contact force and friction force (tangential contact force)
[0075]
[0076] Where e, ε, c, μ represent the force index, contact stiffness, spring damping, and friction coefficient.
[0077] like Figure 1 As shown, the contact force modeling steps include:
[0078] Step 1: Input parameters into the function. The input parameters include the octree SDF information d Ω , the current harness position q i , velocity v, state quantity q of the rigid body r 、v r ;
[0079] Step 2: Calculate the interpolation point x of the line bundle g ;x g (ξ)=N1x g (1)+N2x g (2), where ξ is the parameter of the line unit, and N1 and N2 are the interpolation functions of the line unit.
[0080] Step 3: Update the local coordinates of the position and velocity of the harness contact point Where Rr is the rotation matrix, Y1 and Y2 are SDF intermediate results.
[0081] Step 4: Find local variables The leaf node where it is located;
[0082] Step 5: Use the interpolation function to interpolate the distance from the point on the harness to the rigid body and the gradient vector n;
[0083] Step 6: Calculate g N , as well as
[0084] Step 7: Calculate the normal contact force p N and the tangential contact force p T .
[0085] In step 6, g is calculated by formulas (1.14), (1.15), and (1.16): N , as well as In step 7, the normal contact force p is calculated by formulas (1.17) and (1.18): N and the tangential contact force p T .
[0086] In step 4, Figure 2 As shown, the local variables are found through steps a to e. The leaf node where
[0087] Step a: Input the corresponding parameters into the function, including the octree SDF information d Ω , local coordinates of the space point
[0088] Step b: According to the local coordinates Find the initial root unit;
[0089] Step c: determine whether the local coordinates are within the initial root unit, if yes, then execute step d, otherwise return a null value and end;
[0090] Step d: Determine whether the initial root unit is an octree leaf node. If so, execute step e. Otherwise, estimate the local coordinates. , and then return to execute step b;
[0091] Step e: Output d Ω Leaf node information.
[0092] Traditional contact detection technology based on triangles and BVH usually relies on collision detection during the entire simulation process. In the industrial robot scenario, the large-scale movement of the robot will cause large deformation of the wiring harness. This will result in the need to update the BVH tree at each time step, which leads to a huge consumption of computing resources. The present invention uses SDF technology to avoid these problems. Since the SDF of the rigid body is unchanged, the present invention can directly construct the SDF of the rigid body before the simulation starts instead of repeatedly updating it in each time step, thereby avoiding the problem of huge consumption of computing resources.
[0093] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for simulating and analyzing wiring harnesses of industrial robots, characterized in that: include: Steps to establish the dynamic equation of the rigid body: connect the SDF in the body coordinate system with the rigid body and describe it based on the SE(3) Lie group to obtain the dynamic equation of the rigid body. The rigid body refers to the manipulator body of the industrial robot, and SDF is the signed distance field. Harness modeling steps: Harness is modeled using the co-rotational coordinate method of nonlinear finite element, and the rotation angle is described by the Lie group of R3×SO(3); The moving SDF of the local coordinate system is obtained through the rigid body dynamic equation step and the harness modeling step, and then the contact force modeling step is performed; Contact force modeling steps: Obtain the normal gap g of the contact point through SDF difference N , Normal gap velocity and tangential velocity 2. The industrial robot harness simulation analysis method according to claim 1, characterized in that: In the step of establishing the dynamic equation of the rigid body, the dynamic expression of the rigid body is: M r is the mass matrix constant, m is the mass of the rigid body, Φ is the constraint equation, and f ext is the external load, λ is the Lagrange multiplier corresponding to the constraint equation, and f r is the dynamic equation of the rigid body, J is the inertia matrix of the rigid body, is the antisymmetric matrix of the angular velocity of the rigid body, is the velocity vector, is the acceleration matrix, is the acceleration vector, is the angular acceleration of the rigid body.
3. The industrial robot harness simulation analysis method according to claim 1, characterized in that: The contact force modeling step includes: Step 1: Input parameters into the function. The input parameters include the octree SDF information d Ω , the current harness position q i , velocity v, state quantity q of the rigid body r 、v r ,q r is a homogeneous coordinate matrix, Step 2: Calculate the interpolation point x of the line bundle g ; Step 3: Update the local coordinates of the position and velocity of the harness contact point Step 4: Find local variables The leaf node where it is located; Step 5: Use the interpolation function to interpolate the distance from the point on the harness to the rigid body and the gradient vector n; Step 6: Calculate g N , as well as Step 7: Calculate the normal contact force p N and the tangential contact force p T .
4. The industrial robot harness simulation analysis method according to claim 3, characterized in that: In step 2, the interpolation point x of the harness is obtained according to the following formula: g x g (ξ)=N1x g (1)+N2x g (2), where ξ is the parameter of the line unit, and N1 and N2 are the interpolation functions of the line unit.
5. The industrial robot harness simulation analysis method according to claim 3, characterized in that: In step 3, R r is the rotation matrix, Y1 and Y2 are SDF intermediate results, t r is the translational displacement of the rigid body.
6. The industrial robot harness simulation analysis method according to claim 3, characterized in that: In step 6, g is calculated by formulas (1.14), (1.15), and (1.16): N , as well as Where r represents the beam radius, I3 is the third-order identity matrix, n is the normal vector, Y1 and Y2 are SDF intermediate results, v is the velocity, v g is the relative speed of distance.
7. The industrial robot harness simulation analysis method according to claim 3, characterized in that: In step 7, the normal contact force p is calculated by formulas (1.17) and (1.18): N and the tangential contact force p T , Among them, e, ε, c represent the force exponent, contact stiffness and spring damping, and μ is the friction coefficient.
8. The industrial robot harness simulation analysis method according to claim 3, characterized in that: In step 4, local variables are found through steps a to e. The leaf node where Step a: Input the corresponding parameters into the function, including the octree SDF information d Ω , local coordinates of the space point Step b: According to the local coordinates Find the initial root unit; Step c: determine whether the local coordinates are within the initial root unit, if yes, then execute step d, otherwise return a null value and end; Step d: Determine whether the initial root unit is an octree leaf node. If so, execute step e. Otherwise, estimate the local coordinates. , and then return to execute step b; Step e: Output d Ω Leaf node information.
9. An industrial robot harness simulation analysis system, characterized in that: include: A memory, a processor, and a computer program stored in the memory, wherein the computer program is configured to implement the steps of the industrial robot harness simulation analysis method according to any one of claims 1 to 7 when called by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the industrial robot harness simulation analysis method according to any one of claims 1 to 8 when called by a processor.
