A simulation method for soft robots based on material point method
Through the implicit time integration method and automatic differentiation technology based on the material point method, the problem of grid penetration and deformation in soft robot simulation is solved, the unified simulation of software and fluid is realized, and high-precision simulation results and dynamic performance description are provided. .
Patent Information
- Application Number
- CN202211422937.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-11-15
AI Technical Summary
The existing technology lacks a simple and unified processing method in soft robot simulation to solve the complex scenarios of software-software and software-fluid interaction simulation, especially the problems of grid penetration and deformed grid phenomena and asynchronous solution.
A simulation method based on the material point method is used to update the physical quantities on the particles through the space grid as the interpolation point. Implicit time integration is used to solve the system of equations through the automatic differential method. It is converted into an optimization problem to update the space grid velocity and solve the network problem. Grid penetration and deformation issues are solved, and software and fluid simulations are completed within a unified framework.
It achieves high-precision simulation of soft robots in complex environments, avoids grid penetration and deformation problems, provides stable simulation results and accurate dynamic performance descriptions, and provides a reference basis for the structural design and control strategies of soft robots. .
Smart Images

Figure CN115688212B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of soft robots, and in particular relates to a soft robot simulation method based on a material point method. Background Art
[0002] When designing a soft robot, the designer needs to first come up with a design plan, which can be obtained from bionics or simplified model analysis. Then the geometric and material parameters of the design plan are input into the simulation scene, and the numerical solution of the partial differential equation is solved by the discretization method based on the continuous medium assumption (usually the finite element method) to obtain the simulation result. When simulating the soft-soft interaction situation, the position relationship of the discretized grid needs to be adjusted when contact occurs to prevent grid penetration and deformed grid phenomena. When simulating the soft-fluid interaction situation, the soft body and the fluid need to be updated separately in the same update step. The update of the fluid adopts the smooth particle fluid dynamics method, the finite element method, the finite volume method, etc., all of which have the step of converting the fluid from the simulation object to the boundary condition. Therefore, there is no simple and unified processing method for the simulation of soft robots to solve the simulation method of soft-soft and soft-fluid interaction in complex scenes.
[0003] In the prior art, the particle-finite element method (Cremonesi et al., "A State of the Art Review of the Particle Finite Element Method (PFEM)", 2020) is an improved method based on the finite element method. This method treats the vertices of the mesh unit as particles that can move freely. After each unit movement according to the finite element solution result, the unit is re-divided according to the new vertex distribution and used for the next finite element solution.
[0004] The above method solves the problem of grid penetration to a certain extent when simulating soft robots, but the software and fluid still need to be solved asynchronously, and the grid re-division before each solution requires additional algorithm design. Summary of the invention
[0005] The purpose of the embodiments of this specification is to provide a soft robot simulation method based on the material point method.
[0006] To solve the above technical problems, the embodiments of the present application are implemented in the following ways:
[0007] The present application provides a soft robot simulation method based on a material point method, the method comprising:
[0008] Update the physical quantities on the particles using the spatial grid as interpolation points;
[0009] Among them, updating the physical quantity on the particle in the same simulation step includes: transferring the physical quantity from the particle to the space grid, updating the physical quantity on the space grid, and transferring the physical quantity from the space grid to the particle;
[0010] The update of physical quantities on the spatial grid uses implicit time integration.
[0011] In one embodiment, the updating of the physical quantity on the spatial grid uses implicit time integration, including:
[0012] Establish a system of equations for the spatial grid velocity;
[0013] Solve the equations to obtain the updated spatial grid velocity of the physical quantity on the spatial grid, and complete the update of the physical quantity.
[0014] In one embodiment, a set of equations for the spatial grid velocity is established, including:
[0015] According to the principles of dynamics and kinematics, construct the function h:
[0016]
[0017] in, is the updated spatial grid velocity, is the spatial grid velocity before updating, Δt is the time step; is the internal force of the updated stress, is the external force of stress, m i It is quality;
[0018] The kinematic principle is The dynamic principle is:
[0019] When the function h = 0, the grid acceleration obtained from the kinematic and dynamic perspectives is satisfied. are equal, so the problem is transformed into finding the root that satisfies the equation h = 0;
[0020] The two independent variables in the above function are and The two are essentially the same independent variable, so the above function is:
[0021]
[0022] in,
[0023]
[0024] The total strain energy is calculated as:
[0025]
[0026] Among them, the deformation gradient It’s speed function; Ψ represents strain energy density, represents the initial volume of particle P;
[0027] The equation h=0 is transformed into a system of equations:
[0028]
[0029] In one embodiment, solving the system of equations to obtain updated spatial grid velocities of the physical quantities on the spatial grids includes:
[0030] Convert the problem of solving the system of equations into an optimization problem;
[0031] Automatic differentiation method is used to determine the gradient value of the optimization problem under different spatial grid velocity values;
[0032] The spatial grid velocity is updated using an optimization algorithm according to the gradient value until the spatial grid velocity meets the preset conditions.
[0033] In one embodiment, the problem of solving the system of equations is converted into an optimization problem, including:
[0034] The problem of solving this equation is transformed into the optimization problem of the following function:
[0035]
[0036] in, is the left half of the system of equations for the independent variable Points earned;
[0037] By finding Minimized This is equivalent to finding a root that satisfies h = 0.
[0038] In one embodiment, the optimization algorithm includes a conjugate gradient method and a Krylov method.
[0039] In one embodiment, before updating the physical quantity on the particle using the spatial grid as the interpolation point, the method further includes:
[0040] Generate particle-based geometry models.
[0041] In one embodiment, generating a particle-based geometric model includes:
[0042] Generate a geometric model represented by tetrahedral units of the intermediate process from the original geometric model;
[0043] The geometric model represented by the tetrahedral unit of the intermediate process is processed, and the geometric center and volume of each tetrahedral unit are recorded as the position and volume of the particle. Combined with the density parameters of the material, the mass of each particle is calculated.
[0044] In one embodiment, for the tetrahedral unit located on the air pressure load surface, its area and direction on the air pressure load surface are recorded.
[0045] It can be seen from the technical solution provided in the above embodiments of this specification that this solution: can simultaneously complete the simulation of different objects within a unified update framework, and at the same time combine the material point method implicit time integration calculation framework based on automatic differentiation to ensure higher accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 A schematic diagram of the updating process and resetting of physical quantities on particles in the soft robot simulation method based on the material point method provided in this application;
[0048] Figure 2 A schematic diagram of the steps for generating a geometric model represented by particles in the soft robot simulation method based on the material point method provided in the present application. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0050] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0051] It will be apparent to those skilled in the art that various modifications and variations may be made to the specific embodiments of the present application description without departing from the scope or spirit of the present application. Other embodiments derived from the present application description will be apparent to those skilled in the art. The present application description and examples are exemplary only.
[0052] The words “include,” “including,” “have,” “contain,” etc. used in this document are open-ended terms, meaning including but not limited to.
[0053] Unless otherwise specified, "parts" in this application are all calculated by mass.
[0054] In the current design process of soft robots, the interaction between objects in the environment (especially soft objects and liquids) and soft robots, and their impact on dynamic performance are often overlooked. Commonly used simulation methods, such as the finite element method, are difficult to provide a simple and unified processing method to simulate soft-soft and soft-fluid interactions. This type of situation is common in the application scenarios of soft robots, and complex simulation methods limit the development of soft robots.
[0055] The material point method is a weak Galerkin method based on the hybrid particle-grid idea. Its update framework does not have problems such as grid penetration and deformed grid, and has good collision processing properties.
[0056] The soft robot simulation method based on the material point method proposed in this application uses the form of material points instead of grid units when discretizing the simulation object based on the description method of the material point method. There is no relative relationship between the material points, and they can move freely between each update, thereby solving the problems of grid penetration and grid deformity. The soft robot simulation method based on the material point method can accurately describe the dynamic performance of the soft robot in a complex environment, and provide an accurate reference basis for the structural design and control strategy of the soft robot.
[0057] The present invention is further described in detail below with reference to the accompanying drawings and embodiments.
[0058] A soft robot simulation method based on a material point method may include:
[0059] Update the physical quantities on the particles using the spatial grid as interpolation points;
[0060] Among them, Figure 1 As shown, updating the physical quantity on the particle in the same simulation step includes: the transfer of the physical quantity from the particle to the space grid, the update of the physical quantity on the space grid, and the transfer of the physical quantity from the space grid to the particle;
[0061] The update of physical quantities on the spatial grid uses implicit time integration.
[0062] Specifically, the material point method discretizes the continuous space occupied by the simulated object by dividing the simulated object into particles. These particles are assigned the physical quantities required for simulation. At the same time, regularly distributed points are also divided in the space, which are called spatial grids (referred to as grids). During the simulation process, the physical quantities on the particles are continuously updated with the spatial grids as interpolation points according to the relationship given by the control equation. The process and method of updating the physical quantities are called the update framework. For soft robots, the movement process is fast and short in time to perform tasks in complex environments, so dynamic process simulation can better reflect the movement characteristics of soft robots. The material point method update framework can be divided into three major steps in the same simulation step, namely, the transfer of physical quantities from particles to grids (Particle to Grid, P2G), the updating of physical quantities on the grid (Grid updating), and the transfer of physical quantities from grids to particles (Grid to Particle, G2P). In addition, after the update of each simulation step is completed, the physical information on the grid will be reset (Grid resetting, that is, the physical quantities on the grid are only intermediate variables in the update process and will not directly affect the update of the next simulation step). The schematic diagram of the three major steps and grid reset is shown in the figure. Figure 1 shown.
[0063] In the material point method, P2G and G2P are mainly used to transfer physical quantities. There are some differences between different algorithms according to the different update frameworks of the material point method. Some typical calculation methods can be found in the papers published by the academic community, which will not be elaborated here.
[0064] The update of physical quantities is mainly performed in Grid updating. For dynamic process simulation, the update of physical quantities can be done by explicit time integration or implicit time integration. Implicit time integration requires solving an equation involving the system state at the current time step and the next time step. Implicit time integration can bring better simulation stability and accuracy, but the update method is more complicated and difficult to implement. Usually, implicit time integration uses an optimization algorithm to find the simulation system state that meets the conditions in the solution space. In program implementation, the finite difference method is used to provide gradient information, at the cost of reduced accuracy and increased running time. In this application, the automatic differentiation technology is deeply combined with the implicit time integration framework to avoid such problems.
[0065] In one embodiment, the update of the physical quantity on the spatial grid adopts implicit time integration, which may include:
[0066] Establish a system of equations for the spatial grid velocity;
[0067] Solve the equations to obtain the updated spatial grid velocity of the physical quantity on the spatial grid, and complete the update of the physical quantity.
[0068] Wherein, solving the set of equations to obtain the updated spatial grid velocity of the physical quantity on the spatial grid may include:
[0069] Convert the problem of solving the system of equations into an optimization problem;
[0070] Automatic differentiation method is used to determine the gradient value of the optimization problem under different spatial grid velocity values;
[0071] The spatial grid velocity is updated using an optimization algorithm according to the gradient value until the spatial grid velocity meets the preset conditions.
[0072] Specifically, considering the state of the physical quantity on the grid after P2G is completed, the implicit time integral in Gridupdating takes the updated state a of the grid acceleration n+1 , according to Newton's second law of motion:
[0073]
[0074] According to the principle of kinematics According to the principle of dynamics in, is the updated spatial grid velocity, is the spatial grid velocity before updating, Δt is the time step; is the internal force of the updated stress, is the external force of stress, m i It's quality.
[0075] Since the principles of kinematics and dynamics describe the same motion process, the values of the two expressions should be equal.
[0076] Define the function h:
[0077]
[0078] When the function h = 0, the grid acceleration obtained from the kinematic and dynamic perspectives can be satisfied. are equal, so the problem is transformed into finding a root that satisfies the equation h=0.
[0079] In formula 2, function h has two independent variables, namely and Both are the states of the grid at the next time step. However, they are essentially the same independent variable, as explained below.
[0080] Consider the expression of total strain energy:
[0081]
[0082] Where F represents the deformation gradient, Ψ represents the strain energy density, represents the initial volume of particle P, and the deformation gradient F p is the speed v i The above formula shows that the integral of the strain energy density function over the space occupied by the entire material in the original coordinate system is the total strain energy. The internal force based on stress at different positions is the derivative of the total strain energy with respect to the coordinates of each position.
[0083]
[0084] in, v i The value of determines Is the value before or after the mesh is updated? In the case of implicit time integration, the stress-based internal forces With external force After Grid updating, it is in equilibrium, so the internal force in formula (4) should be taken as the grid velocity v i The function of v i Should be the updated grid speed
[0085]
[0086] In formula 5, the total strain energy is calculated as:
[0087]
[0088] Among them, the deformation gradient It’s speed function.
[0089] Therefore, the function h is:
[0090]
[0091] The equation h = 0 can be transformed into:
[0092]
[0093] The system of equations described by formula (10) has only one unknown variable: Therefore, by solving the equations, we can get the grid speed after Grid updating. Complete the update of physical quantities.
[0094] This system of equations is a large-scale nonlinear system of equations. It is difficult to directly find the roots of this system of equations. Therefore, the problem of solving this equation can be transformed into an optimization problem of the following function:
[0095]
[0096] The left half of the equation system described by formula (10) is the independent variable The integral is obtained by finding Minimized This is equivalent to finding a root that satisfies h = 0. In order to find the conditions that meet Need to get function However, the gradient information of this function needs to be calculated This is not possible for some strain energy density functions. Therefore, the automatic differentiation method is used in this application to complete In different Obtain the gradient value under the value.
[0097] The solution to this optimization problem first requires calculating the When taking the value of The gradient information is then updated using optimization algorithms such as the conjugate gradient method and the Krylov method based on the gradient information. And repeat the process until The pseudo code of the implicit time integration algorithm based on automatic differentiation is shown in Table 1.
[0098] Table 1.
[0099]
[0100] Another advantage of the above calculation process is that it avoids the complex material model calculation process. The material model is an important module in the soft robot simulation architecture. Accurate soft robot simulation results require the selection of an appropriate material model. The hyperelastic material model based on the strain energy density function and the simplified Newtonian fluid material model based on the strain energy density function are the preferred choices in soft robot simulation. The strain energy density function is determined by the deformation invariant, and the deformation invariant is calculated by the deformation gradient F, so the strain energy density function Ψ is a function of the deformation gradient F. In the material point method, the internal force based on stress The calculation method uses the first PK stress As a stress representation. However, the strain energy density function Ψ(F) is a multivariate function. In the case of two-dimensional simulation, the deformation gradient F is a two-dimensional square matrix, and in the case of three-dimensional simulation, F is a three-dimensional square matrix. Furthermore, before calculating the value of the function Ψ, it is necessary to first calculate the deformation invariant based on the deformation gradient F. Therefore, in some cases, the derivative of the strain energy density function Ψ(F) with respect to the independent variable F is It is difficult to obtain manually, especially the strain energy density function may adopt different options depending on the material. Therefore, in order to solve the problem that different material models need to be manually calculated separately for the first PK stress expression, the calculation of the first PK stress is handled by automatic differentiation in this application, which avoids errors in manual calculations, improves the accuracy of calculations, and enables the simulation architecture to easily replace material models to adapt to the simulation of soft robots composed of different materials.
[0101] Before updating the physical quantities on the particles using the space grid as interpolation points, the method further includes: generating a particle-based geometric model.
[0102] Among them, the particle-based geometric model is generated, including:
[0103] Generate a geometric model represented by tetrahedral units of the intermediate process from the original geometric model;
[0104] The geometric model represented by the tetrahedral unit of the intermediate process is processed, and the geometric center and volume of each tetrahedral unit are recorded as the position and volume of the particle. Combined with the density parameters of the material, the mass of each particle is calculated.
[0105] For the tetrahedral elements located on the air pressure load surface, record their area and direction on the air pressure load surface.
[0106] Pneumatic soft robots are a common and typical type of soft robots. Pneumatic soft robots usually have cavities of different shapes inside. By applying air pressure in the cavity, the soft robot receives the pressure, deforms, produces predetermined movements and completes the task. In this application, the inner wall surface of the cavity is referred to as the driving load surface. The air pressure generates a force of equal magnitude and direction as the normal vector of the unit area pointing outward on each unit area of the driving load surface. By modeling the magnitude and direction of the force on each unit area, the effect of air pressure applied to the entire driving load surface can be obtained.
[0107] Nasson's relation is a formula that describes the relationship between the surface elements of an object in the current configuration and the original coordinate system:
[0108] nda=JF -T NdA...(12)
[0109] Among them, da and dA are the areas of the microelement (particles located on the driving load surface in the material point method) on the driving load surface in the current coordinate system and the original coordinate system, respectively, and n and N are the normal vectors of the microelement on the driving load surface pointing to the inside of the driving load surface in the current coordinate system and the original coordinate system, respectively. Among these variables, the information in the original coordinate system, i.e., the microelement area dA and the normal vector N, can be obtained when initializing the geometric model, and in the subsequent calculations, da and n can be calculated according to the deformation gradient F at each time step. For the pressure load p load , the force applied to each microelement (particle) on the driving load surface is:
[0110]
[0111] When the force of each microelement (particle) exerted by the air pressure on the driving load surface is transferred to the grid in P2G, it can be calculated according to the calculation method of P2G formula:
[0112]
[0113] where α ip Represents the conversion weight from mesh to particles.
[0114] This process requires a method to initialize the geometric model represented by mesh generation particles. Figure 2 As shown. In order to generate a model file based on particle representation, the original geometric model is first generated into a geometric model represented by tetrahedral units in the intermediate process; then the geometric model represented by the units in the intermediate process is processed, and the geometric center and volume of each tetrahedral unit are recorded as the position and volume of the particle, and the mass of each particle is calculated in combination with the density parameters of the material. In addition, for the tetrahedral units located on the pressure load surface, it is necessary to record their area and direction on the pressure load surface.
[0115] The soft robot simulation method based on the material point method provided in the embodiment of the present application provides a stable and high-precision solver for the simulation of the soft robot through the implicit time integration calculation framework of the material point method based on automatic differentiation; and completes the overall simulation process through the geometric model initialization and material model application modules.
[0116] The soft robot simulation method based on the material point method provided in the embodiment of the present application is based on the description method of the material point method. When discretizing the simulation object, the material points are taken instead of the grid units. There is no relative relationship between the material points, and they can move freely between each update, thereby solving the problems of grid penetration and grid deformity. The interaction between the soft body and the fluid at the boundary is completed by calculating the stress on each soft body particle and the fluid particle through the material model.
[0117] The soft robot simulation method based on the material point method provided in the embodiment of the present application is different from the step-by-step simulation method using the finite element method and its improved method, which requires the calculation of different parts in sequence when simulating software-software and software-fluid problems and uses them as the boundary conditions of the remaining parts. The method of the present application can simultaneously complete the simulation of different objects within a unified update framework, and at the same time, combines the implicit time integral calculation framework of the material point method based on automatic differentiation to ensure higher accuracy.
[0118] It should be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0119] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A soft robot simulation method based on a material point method, wherein the soft robot simulation includes soft-soft interaction simulation and soft-fluid interaction simulation, and is characterized in that: The method comprises: Using the continuous space occupied by the particle discrete simulation object to obtain a spatial grid, and using the spatial grid as an interpolation point to update the physical quantity on the particle, the simulation object includes a software body and a fluid; Among them, updating the physical quantity on the particle in the same simulation step includes: transferring the physical quantity from the particle to the space grid, updating the physical quantity on the space grid, and transferring the physical quantity from the space grid to the particle; The updating of the physical quantity on the space grid adopts implicit time integration to obtain the space grid velocity equation corresponding to each grid i in the neighborhood of particle p, thereby obtaining the space grid velocity equation group about particle p; The problem of solving the set of equations is transformed into an optimization problem, and the automatic differentiation method is used to determine the gradient value of the optimization problem under different values of the spatial grid speed. The spatial grid speed is updated using an optimization algorithm according to the gradient value until the spatial grid speed meets the preset conditions, and the updated spatial grid speed of the physical quantity on the spatial grid is obtained, thereby completing the update of the physical quantity.
2. The method according to claim 1, characterized in that The spatial grid velocity equation corresponding to each grid i in the neighborhood of the particle p is constructed by the steps of: According to the principles of dynamics and kinematics, construct the function h: in, is the updated spatial grid velocity, is the spatial grid velocity before updating, Δt is the time step; is the internal force of the updated stress, f i ext is the external force of stress, m i It is quality; The kinematic principle is The dynamic principle is: When the function h = 0, the grid acceleration obtained from the kinematic and dynamic perspectives is satisfied. are equal, so the problem is transformed into finding the root that satisfies the equation h = 0; The two independent variables in the above function are and The two are essentially the same independent variable, so the above function is: in, The total strain energy is calculated as: Among them, the deformation gradient It’s speed function; Ψ represents strain energy density, represents the initial volume of particle P; The equation h=0 is transformed into the spatial grid velocity equation corresponding to each grid i:
3. The method according to claim 2, characterized in that The step of converting the solution problem of the set of equations into an optimization problem comprises: The solution of this system of equations is transformed into an optimization problem of the following function: in, The left half of the equation is the independent variable Points earned; By finding Minimized This is equivalent to finding a root that satisfies h = 0.
4. The method according to claim 1, characterized in that: The optimization algorithms include conjugate gradient method and Krylov method.
5. The method according to claim 1, characterized in that Before updating the physical quantities on the particles using the space grid as interpolation points, the method further includes: generating a particle-based geometric model.
6. The method according to claim 5, characterized in that The generating of the particle-based geometric model comprises: Generate a geometric model represented by tetrahedral units of the intermediate process from the original geometric model; The geometric model represented by the tetrahedral unit of the intermediate process is processed, and the geometric center and volume of each tetrahedral unit are recorded as the position and volume of the particle. Combined with the density parameters of the material, the mass of each particle is calculated.
7. The method according to claim 6, characterized in that For the tetrahedral elements located on the air pressure load surface, record their area and direction on the air pressure load surface.
