A method and system for detecting overall spatial posture of a flexible body

Through the double helix fiber grating sensing network and energy conservation method, combined with the artificial bee colony optimization method, the problem of detection error and coupling strain of the multi-curvature structure of the flexible body is solved, the precise posture detection and feedback control of the flexible body are realized, and the detection efficiency is improved. Precision and accuracy of kinematic models.

CN118357920BActive Publication Date: 2024-10-11JIANGSU UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410610373.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-10-11
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

The existing technology has errors when detecting the spatial shape and posture of flexible bodies, especially in flexible structures composed of multiple different curvatures. It cannot effectively decouple the tension-bending-torsion coupling strain and cannot accurately obtain the actual spatial shape of the flexible body. and pose, and the detection accuracy is not high when external loads interact with the environment.

Method used

A double-helical fiber Bragg grating sensing network is used to obtain the deformation data of the flexible body through the fiber Bragg grating sensor string. A variable curvature detection model is constructed based on the energy conservation method, the multi-dimensional coupling force at each node is decoupled, and the artificial bee colony optimization method is used to solve the four-dimensional problem. Meta-parameters, obtain the end pose parameters of the flexible body.

Benefits of technology

It realizes the deformation reconstruction and feedback control of the curvature changes of each node of the flexible body, provides theoretical support, improves the detection accuracy, can separately analyze the strain energy corresponding to stretching, bending and torsion, and enhances the accuracy of the kinematic model of the flexible body. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118357920B_ABST
    Figure CN118357920B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for detecting the overall spatial posture of a flexible body, including: S1: arranging fiber grating sensor strings with opposite rotation directions along the surface of the flexible body to form a fiber grating posture sensing network; S2: acquiring the deformation data of the flexible body in real time according to its variable curvature characteristics; S3: acquiring the applied force of each grid point of the flexible body through FBG wavelength data; S4: establishing a variable curvature flexible body spatial posture detection model based on the energy conservation method; S5: acquiring the terminal posture of the flexible body according to the applied force. By designing a double-helix FBG sensing network, the tension, bending and torsion coupling strain at each node can be decoupled, providing a reference value for the deformation reconstruction and feedback control adjustment strategy of the curvature change of each node of the flexible body; the strain energy corresponding to stretching, bending and torsion can be analyzed separately, providing theoretical support for the deformation law inside each node of the variable curvature flexible body, and considering the external force and contact force in the interaction process, so that the kinematic model is closer to the actual deformation of the flexible body.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method and system for detecting the overall spatial posture of a flexible body, and belongs to the technical field of sensors. Background Art

[0002] A common flexible body is a soft robotic arm, which has advantages such as flexibility, adaptability and safety in the process of interaction with people and the environment, and has broad application prospects in military reconnaissance, medical surgery, engineering applications, etc. The premise of motion control and operation planning of flexible bodies is to know the spatial position and mechanical properties of the flexible body, and then perform closed-loop control of various motion operations of the flexible body.

[0003] Precise control of flexible bodies requires detection of their overall spatial posture, that is, detection of different curvatures at various points across the entire size of the flexible body. Currently, there are very few flexible sensors that can be used to detect the spatial posture of flexible bodies, and fiber grating sensors are still mainly used.

[0004] However, the existing flexible body spatial shape and posture perception methods and systems are mainly detection models constructed on the basis of a fixed single curvature, while the actual flexible body is a flexible structure composed of multiple different curvatures. Therefore, there is a certain error between the flexible body spatial shape and posture detected by the existing technology and the actual situation. Only for the subsequent flexible body end control and adjustment, the full-size posture information is required for precise control and adjustment.

[0005] Chinese patent CN 113361082 A discloses a method and system for sensing the spatial shape and posture of a flexible body, which obtains the sensing data of a flexible carrier connected to the flexible body and divided into multiple sections; obtains the expansion and contraction strain, deflection angle, curvature, bending angle and torsion angle of each section of the flexible carrier according to the acquired sensing data; obtains the posture parameters of each section of the flexible carrier according to the obtained deflection angle, curvature, bending angle, torsion angle and the preset kinematic model; obtains the spatial shape and posture sensing result of the flexible body according to the posture parameters of each section of the flexible carrier; the present invention is applicable to the detection of posture information when the length in the axial direction changes during the movement and deformation of the flexible body. The comparative document adopts the method of dividing the full size into several sections, replacing the overall curvature of the small arc with the curvature of any point, and each section still adopts one curvature. This improved version of constant curvature is essentially constant curvature.

[0006] Chinese patent CN 114474063 A discloses a control method for a soft continuous robot under arbitrary spatial constraints. The method comprises the following steps: firstly, establishing the variation of the energy of the soft continuous robot, then establishing the equilibrium equation based on the minimum energy method, using the finite difference method as the differential form for discretization, and obtaining a closed nonlinear system of equations. Then, establishing the equilibrium equation of the contact position between the robot and the constraint surface, using inequalities to describe the spatial constraints, and limiting the motion space of the robot. The model is solved using the Lagrange multiplier method and the nonlinear least squares method. By solving the model, the length of each driving rod on the soft continuous robot is obtained. By adjusting the length of the driving rod, the action of the soft continuous robot is controlled. The method is based on the Lagrange multiplier method and the Levenberg-Marquardt algorithm for solution, which ensures the convergence and stability of the results of calculating the length of each driving rod. However, it does not decouple the tension, bending and torsion coupled strains at each node, and cannot provide a reference value for the deformation reconstruction and feedback control adjustment strategy of the curvature change of each node of the soft arm. It also cannot analyze the strain energy corresponding to stretching, bending and torsion separately, and cannot provide strong theoretical support for the deformation laws inside each node of the variable curvature soft arm.

[0007] When the flexible body is subjected to external loads or interacts with the external environment, its flexible material characteristics cause the contact points or load-bearing sections of the flexible body to deform due to the force, resulting in changes in the posture of the flexible body, which increases the error of the flexible body's kinematic model. Currently, constant curvature kinematic modeling is commonly used, which does not consider the influence of external loads and environmental interactions. The detection accuracy is low and it is impossible to accurately obtain accurate data on the actual spatial shape and posture of the flexible body. There are also problems such as the difficulty of flexible body modeling and the lack of shape and position detection capabilities in multi-strain coupling application scenarios. Secondly, although there are studies on variable curvature kinematic modeling methods, such as beam mechanics and Cosserat rod method, the calculation time is long and the detection accuracy is low. Summary of the invention

[0008] Purpose of the invention: In view of the deficiencies in the prior art, the present invention provides a method and system for detecting the overall spatial posture of a flexible body. The present invention considers the effects of external forces and contact forces during the interaction process and quantitatively solves the external forces acting on the flexible body, thereby providing a reference value for deformation reconstruction and feedback control of variable curvature changes at each node of the flexible body.

[0009] Technical solution: A method for detecting the overall spatial posture of a flexible body, comprising the following steps:

[0010] S1: Fiber Bragg grating sensor strings with opposite rotation directions are arranged along the surface of the flexible body to form a fiber Bragg grating position sensing network;

[0011] S2: Acquire deformation data of the flexible body in real time according to its variable curvature characteristics: drive the flexible body to move, and obtain real-time deformation data of the flexible body according to the data collected by the fiber grating sensor string;

[0012] S3: Obtain the applied force of each grid point of the flexible body through the wavelength data of the fiber grating sensor string in S2;

[0013] S4: Based on the energy conservation method, a variable curvature flexible body spatial posture detection model is constructed to establish the mapping relationship between the applied force and the terminal posture parameters;

[0014] S5: Obtain the end position of the flexible body according to the applied force obtained in S3.

[0015] Preferably, step S3 comprises:

[0016] S301: According to the real-time deformation data, a polynomial matrix fitting model is constructed using the quasi-Newton method and the optimization method to decouple the multi-dimensional coupling force at each grid point;

[0017] S302: Use interpolation to distribute the node forces between adjacent grid points to obtain the force F of the i-th node i .

[0018] Preferably, the specific steps of S301 are:

[0019] The fiber grating wavelength λ, grating period Λ and effective refractive index n eff The relationship between λ=2n eff It can be seen from Λ that the force F is applied along the axial direction of the fiber Bragg grating 1 When the grating period Λ changes, a force F is applied along the radial direction of the fiber Bragg grating. 2 When Λ and n eff All of them change accordingly, and the mapping relationship between the grating point wavelength of the jth (j=1, 2, 3, 4) fiber Bragg grating sensor string in the i-th section and the applied force is established:

[0020]

[0021] Among them, h is the mapping relationship, △λ is the wavelength offset; is the strain of the j-th grid point in the i-th section; is the axial force of the nth iteration; is the Hesse matrix of the axial force at the nth iteration; is the radial force of the nth iteration; is the Hesse matrix of the radial force at the nth iteration; m 1 and m 2 are the axial and lateral sensitivity coefficients, respectively, expressed as:

[0022]

[0023] Among them, p 11 and p 12 is the elastic-optical coefficient; E is the elastic modulus of the optical fiber material; μ is the Poisson's ratio of the optical fiber material.

[0024] Preferably, the specific steps of S302 are:

[0025] The node force between the two grid points is distributed using the interpolation method. The diameter and axial force of the two grid points with opposite rotation directions at the same position are the same. The same axial force makes the periods of the two grid points with opposite rotation directions the same, that is, The same radial force has different effects on the effective refractive index of two grid points with opposite rotation directions, that is, The strains of the two grid points at the same position are different. According to the actual wavelength change, the diameter and axial force of the two grid points with opposite rotation directions can be obtained respectively by the following formula:

[0026]

[0027] The applied force of each grid point is determined by solving the lateral force based on the same axial force on the same cross section, and then the applied force of the i-th section is obtained.

[0028] Preferably, the specific steps of S4 are:

[0029] S401: Calculate the tensile strain energy, bending strain energy and torsional strain energy of each section of the flexible body;

[0030] S402: Construct a variable curvature flexible body spatial posture detection model according to the law of conservation of energy, and establish a mapping relationship between the applied force and the terminal posture parameters.

[0031] Preferably, the specific steps of S401 are:

[0032]

[0033] Among them, E si is the tensile strain energy of the i-th section, EA i is the tensile stiffness of the i-th section, e si is the tensile strain on the arc length of the i-th section; E bi is the bending strain energy of the i-th section, EI i is the bending stiffness of the i-th section, k i is the curvature of the i-th section; E ti is the torsional strain energy of the i-th section, GJ i is the torsional stiffness of the i-th node, t i is the shear stress of the i-th section, s is the arc length;

[0034] Tensile strain e si , torsion angle Curvature k i and shear stress t i It can be obtained from the strain of n grid points in the i-th section:

[0035] The tensile strain e of the i-th section of the flexible carrier si The calculation method is:

[0036]

[0037] The strain of the left and right FBG of the flexible carrier is obtained by the change of wavelength. The torsion angle at the same position is the same, which is also used as the torsion angle of the cross section. The expressions of the torsion angle and the axial strain in the left and right directions are different. The torsion angle is obtained by combining them. and axial strain e ij :

[0038]

[0039] The curvature k of the i-th section of the flexible carrier i The calculation method is:

[0040]

[0041] Shear stress t of the i-th section of the flexible carrier i The calculation method is:

[0042]

[0043] Among them, e ijFBG is the strain of the jth grid point in the i-th section, e ij is the axial strain of the jth grid point in the i-th section, e i左FBG is the strain of the left-hand grid point at the coincident grid point of the i-th section, e i右FBG Similarly, is the torsion angle of the i-th node, l ij ' is the length of the busbar at the jth grid point of the i-th section after deformation, l i0 is the length of the generatrix before the i-th section is deformed, r i0 is the initial radius of the i-th section before deformation, α is the helical angle of the spiral groove where the fiber Bragg grating is located, and μ is the Poisson's ratio of the flexible carrier material.

[0044] Preferably, the specific steps of S402 are:

[0045]

[0046] Where E is the total elastic potential energy, E y is the total strain energy, E w is the total external potential energy, F i represents the external force at the i-th node, e i3Represents the unit vector in the zi direction of the i-th node coordinate system;

[0047] The flexible body is in dynamic equilibrium during the movement, so the elastic potential energy E can be obtained:

[0048]

[0049] Among them, (α i ,β i ,γ i ) represents the Euler angle at the end of the i-th section.

[0050] Preferably, the specific steps of S5 are:

[0051] S501: Using artificial bee colony optimization method to solve the optimal solution of quaternary parameters when the flexible body is in dynamic balance;

[0052] S5011: Honey source initialization settings, that is, quaternion solution initialization settings:

[0053] The initial position of nectar source i is

[0054] x id =L d +rand(0,1)(U d -L d ),(i=1,2…N,x id ∈(L d ,U d ))

[0055] In the formula, x id represents the value of the dth (d = 1, 2, 3, 4)th quaternion coefficient in the i-th quaternion solution; (L d ,U d ) represents x id The number of bees collecting honey, observation bees and nectar sources is N, and the bees collecting honey correspond to the nectar sources one by one;

[0056] S5012: Honey source update, that is, quaternion solution update:

[0057] Determine whether to update the nectar source searched by the honey bees based on the fitness fit comparison of the new and old nectar sources, calculate the probability of each nectar source being selected by the observation bees, and determine whether to update the nectar source based on the probability;

[0058] x' id =x id +rand(-1,1)(x id -x kd ),(k≠i)

[0059]

[0060] In the formula, xi 'd means that the bees search for new nectar sources in the spatial neighborhood of the initial position of nectar source i. If the fitness fit of the old nectar source corresponding to the bees is less than the fitness fit of the new nectar source, it will be replaced by the new nectar source; rand(-1,1) represents a random number between [-1,1]; p i represents the probability of the i-th nectar source being selected by the observer bee in the roulette mode;

[0061] S5013: Record the current best nectar source, that is, the best quaternion solution:

[0062] The current nectar source is recorded as the optimal nectar source. If the number of iterations of the current nectar source is greater than the threshold and its fitness has not increased, it is discarded and the new nectar source X is used. id The replacement is reinitialized as the initial value, and the corresponding gathering bee is transformed into a scout bee;

[0063]

[0064] In the formula, k represents the number of searches of the current best nectar source by the collecting bees and the observing bees; limit represents the search threshold; and Represents the upper and lower limits of the dth quaternion coefficient;

[0065] S5014: Determine the termination condition

[0066] When k≥max, output the optimal honey source, that is, the solution of the quaternion; otherwise, repeat step S5011;

[0067] S502: using the quaternion representation of the spatial axis angle, solving the position vector of each node according to the Euler angle of each node, so as to obtain the terminal position coordinates and attitude angle;

[0068]

[0069] In the formula, (α i ,β i ,γ i ) represents the Euler angle at the end of the i-th node, r 0 Represents the position vector of the base coordinate origin and the fixed end of the soft robot arm, α 0 Represents r 0 The angle with the base coordinate XOY plane, (u x ,u y ,u z ) represents the unit vector of the basis coordinate along the direction of the coordinate axis.

[0070] A system for realizing a method for detecting the overall spatial posture of a flexible body comprises a fiber grating sensor string, a processing module and a control module. The control module controls the movement of the flexible body. The fiber grating sensor string is connected to the processing module. The fiber grating sensor string is installed on the surface of the flexible body. The processing module processes the flexible body data collected by the fiber grating sensor string.

[0071] Preferably, at least three fiber grating sensor strings are arranged in the same direction along the surface of the flexible body and are evenly distributed along the circumferential direction. Three grating points are evenly distributed on the same cross section of the flexible body. At least one reverse fiber grating sensor string is arranged along any grating point, together forming a fiber grating posture sensing network.

[0072] Beneficial effects: The present invention can decouple the tension-bending-torsion coupling strain at each node by designing a double-helix FBG sensing network, providing a reference value for the deformation reconstruction of the curvature change of each node of the flexible body and the adjustment strategy of feedback control; it can analyze the strain energy corresponding to stretching, bending and torsion separately, providing a strong theoretical support for the deformation law inside each node of the variable curvature flexible body, and taking into account the external force and contact force in the interaction process, so that the kinematic model is closer to the actual deformation of the flexible body; the sensing network based on fiber grating sensors can quantitatively solve the external force acting on the flexible body, breaking through the current problem of solving the external force in the interaction process of line-driven flexible bodies; the kinematic model solving method based on the artificial bee colony algorithm determines the optimal value by continuously iterating the quaternion to avoid singular solutions. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0074] Figure 1 is a flow chart of the method of the present invention;

[0075] Figure 2 This is a structural diagram of the flexible body of the present invention. DETAILED DESCRIPTION

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

[0077] In the description of the present invention, it is necessary to understand that the terms "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0078] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0079] In this embodiment, three fiber grating sensor strings with the same rotation direction and a fiber grating sensor string with the same position and opposite rotation direction as one of them are selected to form a fiber grating position sensing network.

[0080] like Figure 1 As shown, a method for detecting the overall spatial posture of a flexible body comprises the following steps:

[0081] S1: Fiber Bragg grating sensor strings with opposite rotation directions are arranged along the surface of the flexible body to form a fiber Bragg grating position sensing network;

[0082] S2: Acquire deformation data of the flexible body in real time according to its variable curvature characteristics: drive the flexible body to move, and obtain real-time deformation data of the flexible body according to the data collected by the fiber grating sensor string;

[0083] S3: Obtain the applied force of each grid point of the flexible body through the wavelength data of the fiber grating sensor string in S2;

[0084] S301: According to the real-time deformation data, a polynomial matrix fitting model is constructed using the quasi-Newton method and the optimization method to decouple the multi-dimensional coupling force at each grid point;

[0085] The fiber grating wavelength λ, grating period Λ and effective refractive index n eff The relationship between λ=2n eff It can be seen from Λ that the force F is applied along the axial direction of the fiber Bragg grating 1 When the grating period Λ changes, a force F is applied along the radial direction of the fiber grating. 2 When Λ and n effAll of them change accordingly, and the mapping relationship between the grating point wavelength of the jth (j=1, 2, 3, 4) fiber Bragg grating sensor string in the i-th section and the applied force is established:

[0086]

[0087] Among them, h is the mapping relationship, △λ is the wavelength offset; is the strain of the j-th grid point in the i-th section; is the axial force of the nth iteration; is the Hesse matrix of the axial force at the nth iteration; is the radial force of the nth iteration; is the Hesse matrix of the radial force at the nth iteration; m 1 and m 2 are the axial and lateral sensitivity coefficients, respectively, expressed as:

[0088]

[0089] Among them, p 11 and p 12 is the elastic-optical coefficient; E is the elastic modulus of the optical fiber material; μ is the Poisson's ratio of the optical fiber material.

[0090] S302: Use interpolation to distribute the node forces between adjacent grid points to obtain the force F of the i-th node i :

[0091] The node force between the two grid points is distributed using the interpolation method. The diameter and axial force of the two grid points with opposite rotation directions at the same position are the same. The same axial force makes the periods of the two grid points with opposite rotation directions the same, that is, The same radial force has different effects on the effective refractive index of two grid points with opposite rotation directions, that is, The strains of the two grid points at the same position are different. According to the actual wavelength change, the diameter and axial force of the two grid points with opposite rotation directions can be obtained respectively by the following formula:

[0092]

[0093] The applied force of each grid point is determined by solving the lateral force based on the same axial force on the same cross section, and then the applied force of the i-th section is obtained.

[0094] S4: Based on the energy conservation method, a variable curvature flexible body spatial posture detection model is constructed to establish the mapping relationship between the applied force and the terminal posture parameters;

[0095] S401: Calculate the tensile strain energy, bending strain energy and torsional strain energy of each section of the flexible body;

[0096]

[0097] Among them, E si is the tensile strain energy of the i-th section, EA i is the tensile stiffness of the i-th section, e si is the tensile strain on the arc length of the i-th section; E bi is the bending strain energy of the i-th section, EI i is the bending stiffness of the i-th section, k i is the curvature of the i-th section; E ti is the torsional strain energy of the i-th section, GJ i is the torsional stiffness of the i-th node, t i is the shear stress of the i-th section, s is the arc length;

[0098] Tensile strain e si , torsion angle Curvature k i and shear stress t i It can be obtained from the strain of n grid points in the i-th section:

[0099] The tensile strain e of the i-th section of the flexible carrier si The calculation method is:

[0100]

[0101] The strain of the left and right FBG of the flexible carrier is obtained by the change of wavelength. The torsion angle at the same position is the same, which is also used as the torsion angle of the cross section. The expressions of the torsion angle and the axial strain in the left and right directions are different. The torsion angle is obtained by combining them. and axial strain e ij :

[0102]

[0103] The curvature k of the i-th section of the flexible carrier i The calculation method is:

[0104]

[0105] Shear stress t of the i-th section of the flexible carrier i The calculation method is:

[0106]

[0107] Among them, e ijFBG is the strain of the jth grid point in the i-th section, e ij is the axial strain of the jth grid point in the i-th section, e i左FBG is the strain of the left-hand grid point at the coincident grid point of the i-th section, e i右FBG Similarly, is the torsion angle of the i-th node, l ij' is the length of the busbar at the jth grid point of the i-th section after deformation, l i0 is the length of the generatrix before the i-th section is deformed, r i0 is the initial radius of the i-th section before deformation, α is the helical angle of the spiral groove where the fiber Bragg grating is located, and μ is the Poisson's ratio of the flexible carrier material.

[0108] S402: Construct a variable curvature flexible body spatial posture detection model according to the law of conservation of energy, and establish a mapping relationship between applied force and terminal posture parameters:

[0109]

[0110] Where E is the total elastic potential energy, E y is the total strain energy, E w is the total external potential energy, F i represents the external force at the i-th node, e i3 Represents the unit vector in the zi direction of the i-th node coordinate system;

[0111] The flexible body is in dynamic equilibrium during the movement, so the elastic potential energy E can be obtained:

[0112]

[0113] Among them, (α i ,β i ,γ i ) represents the Euler angle at the end of the i-th section.

[0114] S5: Obtain the end position of the flexible body according to the applied force obtained in S3:

[0115] S501: Using artificial bee colony optimization method to solve the optimal solution of quaternary parameters when the flexible body is in dynamic balance;

[0116] S5011: Honey source initialization settings, that is, quaternion solution initialization settings:

[0117] The initial position of nectar source i is

[0118] xi d =L d +rand(0,1)(U d -L d ),(i=1,2…N,xi d ∈(L d ,U d ))

[0119] Where xid represents the value of the dth (d = 1, 2, 3, 4)th quaternion coefficient in the i-th quaternion solution; (L d ,U d) represents the upper and lower limits of xid; the number of collecting bees, observation bees and nectar sources is N, and the collecting bees correspond to the nectar sources one by one;

[0120] S5012: Honey source update, that is, quaternion solution update:

[0121] Determine whether to update the nectar source searched by the honey bees based on the fitness fit comparison of the new and old nectar sources, calculate the probability of each nectar source being selected by the observation bees, and determine whether to update the nectar source based on the probability;

[0122] x' id =x id +rand(-1,1)(x id -x kd ),(k≠i)

[0123]

[0124] In the formula, x i 'd means that the bees search for new nectar sources in the spatial neighborhood of the initial position of nectar source i. If the fitness fit of the old nectar source corresponding to the bees is less than the fitness fit of the new nectar source, it will be replaced by the new nectar source; rand(-1,1) represents a random number between [-1,1]; p i represents the probability of the i-th nectar source being selected by the observer bee in the roulette mode;

[0125] S5013: Record the current best nectar source, that is, the best quaternion solution:

[0126] The current nectar source is recorded as the optimal nectar source. If the number of iterations of the current nectar source is greater than the threshold and its fitness has not increased, it is discarded and the new nectar source Xi is used. d The replacement is reinitialized as the initial value, and the corresponding gathering bee is transformed into a scout bee;

[0127]

[0128] In the formula, k represents the number of searches of the current best nectar source by the collecting bees and the observing bees; limit represents the search threshold; and Represents the upper and lower limits of the dth quaternion coefficient;

[0129] S5014: Determine the termination condition

[0130] When k≥max, output the optimal honey source, that is, the solution of the quaternion; otherwise, repeat step S5011;

[0131] S502: using the quaternion representation of the spatial axis angle, solving the position vector of each node according to the Euler angle of each node, so as to obtain the terminal position coordinates and attitude angle;

[0132]

[0133] In the formula, (α i ,β i ,γ i ) represents the Euler angle at the end of the i-th node, r 0 Represents the position vector of the base coordinate origin and the fixed end of the soft robot arm, α 0 Represents r 0 The angle with the base coordinate XOY plane, (u x ,u y ,u z ) represents the unit vector of the basis coordinate along the direction of the coordinate axis.

[0134] like Figure 2 As shown, a system for realizing a method for detecting the overall spatial posture of a flexible body includes a fiber grating sensor string, a processing module, and a control module. The control module controls the movement of the flexible body. The fiber grating sensor string is connected to the processing module. The fiber grating sensor string is installed on the surface of the flexible body. The processing module processes the flexible body data collected by the fiber grating sensor string.

[0135] At least three fiber grating sensor strings are arranged in the same direction along the surface of the flexible body and are evenly distributed along the circumferential direction. Three grid points are evenly distributed on the same cross section of the flexible body. At least one reverse fiber grating sensor string is arranged along any grid point, together forming a fiber grating posture sensing network.

[0136] Wavelength division multiplexing technology is used to couple multiple fiber grating sensors to produce a fiber grating sensor string. The distance between adjacent fiber grating sensors depends on the length of the flexible body. Three fiber grating strings are arranged in the same direction spirally along the surface of the flexible body. Three grid points are evenly arranged at an interval of 120° in the same cross-section, and at least one reverse fiber grating sensor string is arranged along any grid point to form a fiber grating posture perception network. Then, a binocular vision system is used to calibrate the fiber grating posture sensing network to reduce detection errors. Unlike rigid robots, when a flexible body is subjected to external loads or interacts with the external environment, its flexible material characteristics cause the contact point or load-bearing section of the flexible body to deform due to the force, resulting in changes in the posture of the flexible body and increasing the error of the kinematic model of the flexible body. When the flexible body is deformed by external force, the wavelength of the fiber Bragg grating sensor at the corresponding position changes accordingly, that is, the wavelength drifts. The real-time deformation data is transmitted through the fiber Bragg grating demodulator, and the polynomial matrix fitting model is constructed using the quasi-Newton algorithm and optimization algorithm to decouple the multi-dimensional coupling force at each grid point. The node force between the two grid points is distributed using the interpolation method, and the lateral force is solved according to the same axial force on the same cross section to determine the applied force of each grid point; finally, a variable curvature flexible body spatial posture detection model based on energy conservation is established, which can obtain the real-time position and posture information of the end of the flexible body, and then feed it back to the control module for the next step of adjustment and control.

[0137] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0138] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for detecting the overall spatial posture of a flexible body, characterized in that: The following steps are involved: S1: Fiber Bragg grating sensor strings with opposite rotation directions are arranged along the surface of the flexible body to form a fiber Bragg grating position sensing network; S2: Acquire deformation data of the flexible body in real time according to its variable curvature characteristics: drive the flexible body to move, and obtain real-time deformation data of the flexible body according to the data collected by the fiber Bragg grating sensor string; S3: Obtain the applied force of each grid point of the flexible body through the wavelength data of the fiber grating sensor string in S2; S301: According to the real-time deformation data, a polynomial matrix fitting model is constructed using the quasi-Newton method and the optimization method to decouple the multi-dimensional coupling force at each grid point; S302: Use interpolation to distribute the node forces between adjacent grid points to obtain the force F of the i-th node i ; S4: Based on the energy conservation method, a variable curvature flexible body spatial posture detection model is constructed to establish the mapping relationship between the applied force and the terminal posture parameters; S401: Calculate the tensile strain energy, bending strain energy and torsional strain energy of each section of the flexible body; S402: constructing a variable curvature flexible body spatial posture detection model according to the law of conservation of energy, and establishing a mapping relationship between applied force and terminal posture parameters; S5: Obtain the end position of the flexible body according to the applied force obtained in S3; S501: Using artificial bee colony optimization method to solve the optimal solution of quaternary parameters when the flexible body is in dynamic balance; S5011: Honey source initialization settings, that is, quaternion solution initialization settings: The initial position of nectar source i is x id =L d +rand(0,1)(U d -L d ),(i=1,2…N,x id ∈(L d ,U d )) In the formula, x id represents the value of the dth (d = 1, 2, 3, 4)th quaternion coefficient in the i-th quaternion solution; (L d ,U d ) represents x id The number of bees collecting honey, observation bees and nectar sources is N, and the bees collecting honey correspond to the nectar sources one by one; S5012: Honey source update, that is, quaternion solution update: Determine whether to update the nectar source searched by the honey bees based on the fitness fit comparison between the new and old nectar sources, calculate the probability of each nectar source being selected by the observation bees, and determine whether to update the nectar source based on the probability; x’ id =x id +rand(-1,1)(x id -x kd ),(k≠i) In the formula, x i 'd means that the bees search for new nectar sources in the spatial neighborhood of the initial position of nectar source i. If the fitness fit of the old nectar source corresponding to the bees is less than the fitness fit of the new nectar source, it will be replaced by the new nectar source; rand(-1,1) represents a random number between [-1,1]; p i represents the probability of the i-th nectar source being selected by the observer bee in the roulette mode; S5013: Record the current best nectar source, that is, the best quaternion solution: The current nectar source is recorded as the optimal nectar source. If the number of iterations of the current nectar source is greater than the threshold and its fitness has not increased, it is discarded and the new nectar source X is used. id The replacement is reinitialized as the initial value, and the corresponding gathering bee is transformed into a scout bee; In the formula, k represents the number of searches of the current best nectar source by the collecting bees and the observing bees; limit represents the search threshold; and Represents the upper and lower limits of the dth quaternion coefficient; S5014: Determine the termination condition When k≥max, output the optimal honey source, that is, the solution of the quaternion; otherwise, repeat step S5011; S502: using the quaternion representation of the spatial axis angle, solving the position vector of each node according to the Euler angle of each node, so as to obtain the terminal position coordinates and attitude angle; In the formula, (α i ,β i ,γ i ) represents the Euler angle at the end of the i-th node, r0 represents the position vector of the base coordinate origin and the fixed end of the soft robot arm, α0 represents the angle between r0 and the base coordinate XOY plane, (u x ,u y ,u z ) represents the unit vector of the basis coordinate along the direction of the coordinate axis.

2. The method for detecting the overall spatial position of a flexible body according to claim 1, characterized in that: The specific steps of S301 are: The fiber grating wavelength λ, grating period Λ and effective refractive index n eff The relationship between λ=2n eff It can be seen that when the force F1 is applied along the axial direction of the fiber Bragg grating, the grating period Λ changes accordingly, and when the force F2 is applied along the radial direction of the fiber Bragg grating, Λ and n eff All of them change accordingly, and the mapping relationship between the grating point wavelength of the jth (j=1, 2, 3, 4) fiber Bragg grating sensor string in the i-th section and the applied force is established: Among them, h is the mapping relationship, △λ is the wavelength offset; is the strain of the j-th grid point in the i-th section; is the axial force of the nth iteration; is the Hesse matrix of the axial force at the nth iteration; is the radial force of the nth iteration; is the Hesse matrix of the radial force at the nth iteration; m1 and m2 are the sensitivity coefficients in the axial and lateral directions, respectively, expressed as: Among them, p 11 and p 12 is the elastic-optical coefficient; E is the elastic modulus of the optical fiber material; μ is the Poisson's ratio of the optical fiber material.

3. The method for detecting the overall spatial posture of a flexible body according to claim 2, characterized in that: The specific steps of S302 are: The node force between the two grid points is distributed using the interpolation method. The diameter and axial force of the two grid points with opposite rotation directions at the same position are the same. The same axial force makes the periods of the two grid points with opposite rotation directions the same, that is, The same radial force has different effects on the effective refractive index of two grid points with opposite rotation directions, that is, The strains of the two grid points at the same position are different. According to the actual wavelength change, the diameter and axial force of the two grid points with opposite rotation directions can be obtained respectively by the following formula: The applied force of each grid point is determined by solving the lateral force based on the same axial force on the same cross section, and then the applied force of the i-th section is obtained.

4. The method for detecting the overall spatial posture of a flexible body according to claim 3, characterized in that: The specific steps of S401 are: Among them, E si is the tensile strain energy of the i-th section, EA i is the tensile stiffness of the i-th section, ε si is the tensile strain on the arc length of the i-th section; E bi is the bending strain energy of the i-th section, EI i is the bending stiffness of the i-th section, k i is the curvature of the i-th section; E ti is the torsional strain energy of the i-th section, GJ i is the torsional stiffness of the i-th node, τ i is the shear stress of the i-th section, s is the arc length; Tensile strain ε si , torsion angle Curvature k i and shear stress τ i It can be obtained from the strain of n grid points in the i-th section: The tensile strain ε of the i-th section of the flexible carrier si The calculation method is: The strain of the left and right hand FBG of the flexible carrier is obtained by the change of wavelength. The torsion angle at the same position is the same, which is also used as the torsion angle of the cross section. The expressions of the torsion angle and the axial strain in the left and right hand directions are different. The torsion angle is obtained by combining them. and the axial strain ε ij : The curvature k of the i-th section of the flexible carrier i The calculation method is: Shear stress τ of the i-th section of the flexible carrier i The calculation method is: Among them, ε ijFBG is the strain of the jth grid point in the i-th section, ε ij is the axial strain of the jth grid point in the i-th section, ε i左FBG is the strain of the left-hand grid point at the coincident grid point of the i-th section, ε i右FBG Similarly, is the torsion angle of the i-th node, l ij ' is the length of the busbar at the jth grid point of the i-th section after deformation, l i0 is the length of the generatrix before the i-th section is deformed, r i0 is the initial radius of the i-th section before deformation, α is the helical angle of the spiral groove where the fiber Bragg grating is located, and μ is the Poisson's ratio of the flexible carrier material.

5. The method for detecting the overall spatial position of a flexible body according to claim 4, characterized in that: The specific steps of S402 are: Where E is the total elastic potential energy, E y is the total strain energy, E w is the total external potential energy, F i represents the external force at the i-th node, e i3 Represents the unit vector in the zi direction of the i-th node coordinate system; The flexible body is in dynamic equilibrium during the movement, so the elastic potential energy E can be obtained: Among them, (α i ,β i ,γ i ) represents the Euler angle at the end of the i-th section.

6. A system for implementing the method for detecting the overall spatial posture of a flexible body according to any one of claims 1 to 5, characterized in that: It includes a fiber grating sensor string, a processing module and a control module. The control module controls the movement of a flexible body. The fiber grating sensor string is connected to the processing module. The fiber grating sensor string is installed on the surface of the flexible body. The processing module processes the flexible body data collected by the fiber grating sensor string.

7. The system for realizing the method for detecting the overall spatial posture of a flexible body according to claim 6, characterized in that: At least three fiber grating sensor strings are arranged in the same direction along the surface of the flexible body and are evenly distributed along the circumferential direction. Three grid points are evenly distributed on the same cross section of the flexible body. At least one reverse fiber grating sensor string is arranged along any grid point, together forming a fiber grating posture sensing network.