A flexible mechanism control method, computer device and detection device

Through the flexible mechanism control method, the generalized coordinate system and equilibrium equations are established, and the optimization algorithm and force density method are used to solve the problems of large calculation amount and low accuracy in the expansion and rotation control of the tensegrity mechanism, and achieve efficient and stable tensegrity control. , suitable for UAV-borne detection.

CN115018907BInactive Publication Date: 2024-09-06HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202210506204.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, the deployment control calculation of the tensegrity mechanism is large and complex, and external loads cannot be effectively considered, resulting in low control accuracy and limited stability, and there is a lack of rotation control methods after deployment.

Method used

The flexible mechanism control method is used to establish a generalized coordinate system to solve the length and tension of the elastic cable, establish a balance equation, use an optimization algorithm to solve the nonlinear equations, and combine the force density method to achieve expansion and rotation control to ensure system balance and stability.

Benefits of technology

It reduces the calculation amount of tensegrity control, improves the control accuracy, realizes stable expansion and rotation control of tensegrity, and is suitable for unmanned aerial vehicle detection in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115018907B
    Figure CN115018907B
Patent Text Reader

Abstract

The present invention discloses a flexible mechanism control method, a computer device and a detection device, which belong to the field of machine vision and flexible mechanical devices. The control method includes: applying external loads to the structural nodes of the tensegrity, establishing the equilibrium equation of the tensegrity, using an optimization algorithm based on the expected path of the deployment control, solving the equilibrium equation, obtaining the rest length of the elastic cable, and using the rest length of the elastic cable to complete the deployment control process. A computer device and a detection device are also provided. The present invention realizes the deployment control and rotation control of the tensegrity. Compared with the dynamic control method or machine learning method of the prior art, it has the advantages of small calculation amount and high precision. At the same time, it also realizes the application of the tensegrity in the field of unmanned aerial vehicle detection, and can realize the detection of complex environments according to the planned path, and has higher environmental adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field related to machine vision and flexible mechanical devices, and more specifically, relates to a flexible mechanism control method, a computer device and a detection device. Background Art

[0002] The tensegrity mechanism is a flexible self-balancing mechanism composed of a number of discrete rigid rods and flexible cables. In the tensegrity mechanism, the rigid rods only bear pressure, and the flexible cables only bear tension. Each node and each component in the mechanism must meet the internal prestress self-balancing conditions. When the cables are tightened or loosened, the internal prestress of the mechanism changes, and the shape of the tensegrity mechanism will also change accordingly. Therefore, controlling the flexible cables becomes the main way to control the movement of the tensegrity mechanism.

[0003] In the prior art, the deployment control of the tensegrity system mostly adopts traditional dynamic control or machine learning control such as supervised learning and reinforcement learning. The former has a large amount of calculation and is complex, while the latter requires a large amount of simulation and experimental data, which also has the problem of large amount of calculation and complexity. In addition, the influence of external loads is not considered, and the calculation accuracy cannot be guaranteed. Therefore, the stability of the deployment is also limited to a certain extent.

[0004] In addition, the existing technology uses a rigid rod connection structure mounted on a drone for reconnaissance and detection. This purely rigid connection mechanical structure has the defects of long moment, large bending moment, and large mass. In complex environments, deformation is limited. The tensegrity has the advantages of being foldable and light, and makes the flexible structure more adaptable to the environment. Mounting it on a mobile device can solve the defects of the existing rigid connection. However, it is necessary to solve the problem of free rotation control after the tensegrity is unfolded, and there is no rotation control method for the tensegrity after it is unfolded in the existing technology. Summary of the invention

[0005] In view of the defects and improvement needs of the prior art, the present invention provides a flexible mechanism control method, a computer device and a detection device, which aim to reduce the calculation amount of the overall tension control and improve the control accuracy.

[0006] To achieve the above object, according to one aspect of the present invention, a flexible mechanism control method is provided, wherein the flexible mechanism comprises a type 1 second-order tensegrity, the tensegrity comprises 6 rigid rods, 6 rigid cables and 18 elastic cables, the 6 rigid rods comprise 3 upper rigid rods and 3 lower rigid rods, and the control method comprises:

[0007] A generalized coordinate system is established according to the deflection angle between the rigid rod and the rigid cable, and the length of the elastic cable is respectively solved in the generalized coordinate system;

[0008] Applying external loads to the nodes of the tensegrity, taking partial derivatives of the lengths of the elastic cables in generalized coordinates, obtaining displacement components of the length changes of the elastic cables in generalized coordinates, and calculating virtual work done by the internal tension of the elastic cables based on the displacement components;

[0009] The equilibrium equation of the tensegrity is established by taking the sum of the virtual work done by the internal tension of the elastic cable and the virtual work done by the external load as zero;

[0010] The equilibrium equation is converted into a nonlinear equation group with redundant equations, and the nonlinear equation group is solved by an optimization algorithm with the unfolded expected path as a constraint to obtain the internal tension of the elastic cable and the overlapping height of the upper rigid rod and the lower rigid rod;

[0011] The tension, the overlapping height and the resting length of the elastic cable satisfy Hooke's law, an equation relationship is established, the resting length of the elastic cable is solved, and the deployment of the tensegrity is controlled by the resting length of the elastic cable.

[0012] Furthermore, converting the equilibrium equation into a nonlinear system of equations with redundant equations includes:

[0013] Taking the total height of the tensegrity greater than 0 and the overlapping height greater than 0 as constraint conditions, the tension values ​​of the six diagonal cables are fixed, and the equilibrium equation is converted into a nonlinear equation group with redundant equations.

[0014] Furthermore, the optimization algorithm is LM algorithm.

[0015] Furthermore, the equilibrium equation is:

[0016] A(q)T+W(q)F=0,where

[0017] Among them, A is the equilibrium matrix, W is the external load matrix, T is the internal tension vector of the elastic cable, F is the external load vector, and l j is the length of the jth elastic cable, x j is the j-th node degree of freedom, q i It is the i-th generalized coordinate, i = 1, 2, 3, ..., 18, S, V, D represent the lengths of 6 waist cables, 6 vertical cables and 6 diagonal cables respectively.

[0018] Furthermore, it also includes:

[0019] Use the force density method to write the force balance equation for each node of the unfolded tensegrity;

[0020] Under the action of external load, the internal force balance of each node is taken as the objective function, the expected path of the center of gravity trajectory of the tensegrity top and the shape constraint of the node position are taken as the geometric constraints, and an optimization algorithm is used to solve the force density and coordinates of each node;

[0021] Substituting the force density into the proportional relationship between force density and tension, the tension of the elastic cable during the rotation process is obtained, and the length of the elastic cable during the rotation process is obtained according to the coordinates;

[0022] Substituting the tension and length into Hooke's law, the rest length of the elastic cable is obtained, and the rest length of the elastic cable is used to control the rotation of the tensegrity.

[0023] Furthermore, the equilibrium equation and the objective function satisfy:

[0024]

[0025] Where M represents the mapping matrix between the position vector and the unit vector in the tensegrity, p represents the position vector, is the force density matrix, λ i represents the force density at each node, n e represents any rigid rod, rigid cable or elastic cable, and ||λ||>0, F is the external load vector, A shape constraint representing the location of a node.

[0026] Furthermore, the optimization algorithm is an iterative nonlinear optimization algorithm.

[0027] According to a second aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to perform the steps of the method according to one of the first aspects.

[0028] According to a third aspect of the present invention, there is provided a detection device, comprising a visual module and a flexible mechanism, wherein the visual module is arranged on the flexible mechanism, and the flexible mechanism is controlled by one of the methods described in the first aspect.

[0029] Furthermore, the visual module is a binocular camera, and the detection process of the binocular camera includes:

[0030] The binocular camera collects image data containing the target to be detected, and divides the data into a training set and a verification set;

[0031] The ssd-mobilenet network model is trained using the training set and the validation set to obtain a trained network model;

[0032] Correcting the left-eye and right-eye images using pre-calibrated binocular camera parameters to obtain corrected images, and inputting the corrected images into the trained network model for recognition;

[0033] A stereo matching algorithm is used to generate a disparity map, and the coordinates corresponding to each pixel in the corrected image are calculated based on the disparity map to obtain the distance from the target to the binocular camera, thereby achieving detection.

[0034] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:

[0035] (1) The flexible mechanism control method provided by the present invention applies external loads to the structural nodes of the tensegrity, establishes the equilibrium equation of the tensegrity, adopts an optimization algorithm based on the expected path of the deployment control, solves the equilibrium equation, obtains the rest length of the elastic cable, and uses the rest length of the elastic cable to complete the deployment control process; compared with the dynamic control method or machine learning method of the prior art, the quasi-static control method of the present invention realizes the deployment of the tensegrity, and takes into account the situation where the system has external loads, does not require a data basis, has a simple and clear principle, greatly reduces the amount of calculation and has higher accuracy; at the same time, it can ensure that the tensegrity system is always around the equilibrium configuration, has better stability, and is more suitable for practical engineering applications.

[0036] (2) Furthermore, on the basis of the unfolding control of the tensegrity, the force density shape finding method under shape constraint is adopted to establish the force balance equation at the node, and the feasible solution of the tensegrity is found near the desired path. The rest length of the elastic cable is obtained through the feasible solution to realize the shape transformation control of the tensegrity. The optimization algorithm is simple in principle, highly reliable, and has a fast solution speed. More importantly, the control method of the present invention can design any desired path and realize the complex motion control of the tensegrity, and has strong applicability.

[0037] (3) Furthermore, the detection device proposed in the present invention mounts the visual module on a flexible mechanism. Based on the flexible mechanism control method provided in the present invention and the advantages of the tensegrity itself, such as being foldable, light in weight, having no bending moment, and having only internal tension and pressure, the tensegrity is allowed to rotate according to a refined design path to complete the detection. Compared with the existing rigid structure, the tensegrity is more suitable for use in unmanned aerial vehicle detection.

[0038] In summary, the method of the present invention realizes the deployment control and rotation control of the tensegrity, solves the technical defects of the existing technical methods such as large amount of calculation and low precision, and also realizes the application of the tensegrity in the field of unmanned aerial vehicle detection, and can realize the detection of complex environments according to the planned path, with higher environmental adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1It is a schematic diagram of the flexible mechanism deployment control method of the present invention;

[0040] Figure 2 It is a schematic diagram of the flexible mechanism of the present invention;

[0041] Figure 3 is a schematic diagram of a coordinate system of a flexible mechanism of the present invention;

[0042] Figure 4 Schematic diagram of the unfolding process of the tensegrity mechanism of the present invention, wherein: Figure 4 (a)-(d) in the figure represent the stages of the tensegrity unfolding process;

[0043] Figure 5 Schematic diagram of the change in resting length of the elastic cable during the tensegrity deployment process of the present invention;

[0044] Figure 6 Schematic diagram of the tensegrity rotation process of the present invention, wherein: Figure 6 (a)-(f) in the figure represent the rotation process stages of the tensegrity, respectively;

[0045] Figure 7 Schematic diagram of the change in resting length of the elastic cable during the rotation process of the tensegrity of the present invention;

[0046] Figure 8 The flow chart of the visual module installed in the present invention;

[0047] Fig. 9 It is the algorithm flow chart of the visual system for recognition and ranging functions.

[0048] In all drawings, the same reference numerals are used to denote the same elements or structures, wherein:

[0049] 1-Binocular camera, 2-Baffle, 3-Top rigid cable, 4-Rigid rod, 5-Upper vertical cable, 6-Upper diagonal cable, 7-Waist cable, 8-Lower vertical cable, 9-Lower diagonal cable, 10-Bottom rigid cable DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0051] like Figure 1 As shown, the present invention provides a control method for a flexible mechanism, wherein the flexible mechanism comprises a type 1 second-order tensegrity, wherein the type 1 second-order tensegrity comprises a second-order six-bar twenty-four-cable, such as Figure 2 and Figure 3 As shown, it specifically includes 6 rigid rods 4, 6 rigid cables and 18 elastic cables, the 18 elastic cables include 3 upper vertical cables 5, 3 lower vertical cables 8, 3 upper diagonal cables 6, 3 lower diagonal cables 9, and 6 waist cables 7; the 6 rigid rods include 3 upper rigid rods and 3 lower rigid rods;

[0052] Among them, 6 rigid cables respectively form equilateral triangles at the bottom and the top, 6 waist cables form a regular hexagon, the first ends of the 3 upper rigid rods are respectively connected to the three vertices of the top equilateral triangle at a certain deflection angle, and the second ends are respectively connected to the three vertices of the regular hexagon, the first ends of the 3 upper vertical cables, and the first ends of the 3 upper diagonal cables; the first ends of the 3 lower rigid rods are respectively connected to the three vertices of the bottom equilateral triangle at the same deflection angle, and the second ends are simultaneously connected to the other three vertices of the regular hexagon, the first ends of the 3 lower vertical cables, and the first ends of the 3 lower diagonal cables; the second ends of the 3 upper vertical cables and the 3 upper diagonal cables are respectively connected to the three vertices of the top equilateral triangle, and the second ends of the 3 lower vertical cables and the 3 lower diagonal cables are respectively connected to the three vertices of the bottom equilateral triangle, wherein there is overlap between the upper rigid rods and the lower rigid rods.

[0053] Among them, the 6 rigid cables are 3 top rigid cables 3 and 3 bottom rigid cables 10, and the 6 rigid rods are A 11 B 11 , A 21 B 21 , A 31 B 31 , B 12 A 12 , B 22 A 22 , B 32 A 32 The six rigid cables are A 11 A 21 , A 21 A 31 , A 31 A 11 , B 12 B 22 , B 22 B 32 , B 32 B 12 , 6 vertical cables are A 11 B 31 , A 21 B 11 , A 31 B 21 , A 12 B 22 , A 22 B32 , A 32 B 12 , 6 diagonal cables are A 11 A 32 , A 21 A 12 , A 31 A 22 , B 11 B 12 , B 21 B 22 , B 31 B 32 , 6 waist ropes are A 12 B 21 , B 21 A 22 , A 22 B 31 , B 31 A 32 , A 32 B 11 , B 11 A 12 .

[0054] The development of the type 1 second-order tensegrity is completed based on the solution of the symmetrical morphological equilibrium manifold. In order to establish a theoretical model for the type 1 second-order tensegrity, the following assumptions are given:

[0055] 1) Assume that the six rigid rods are of equal length and axially symmetrical, ignore the degrees of freedom around their longitudinal symmetry axis, and ignore the magnetic field and gravity;

[0056] 2) Assume that the lengths of the six rigid cables are equal and ignore the mass of the cables;

[0057] 3) Assume that the 18 elastic cables are linear elastic, ignore mass and damping, the 6 waist cables are of equal length, the 6 vertical cables are of equal length, and the 6 diagonal cables are of equal length;

[0058] 4) The friction torque at the connection between the 6 rigid rods and the top and bottom is proportional to the angular velocity, abbreviated as M i =dω i , where M i represents the friction torque at the connection between the 6 rigid rods and the top and bottom, ω i represents the angular velocity of the rigid rod at the bottom or top node i, and d represents the friction coefficient.

[0059] The flexible mechanism control method of the present invention includes deployment control and rotation control, wherein the deployment control includes:

[0060] Step S1, establishing a generalized coordinate system according to the deflection angles between the six rigid rods and the six rigid cables;

[0061] Step S2, in the generalized coordinate system established above, respectively solving the lengths of the elastic cables, that is, the lengths of the 6 vertical cables, the 6 diagonal cables and the 6 waist cables;

[0062] Step S3, applying external loads to the structural nodes of the tensegrity, taking partial derivatives of the lengths of the elastic cables in generalized coordinates, obtaining the displacement component of the change in the length of the elastic cables in generalized coordinates, that is, the displacement of the internal tension of the elastic cables, and calculating the virtual work done by the internal tension of the elastic cables based on the relationship between the displacement and the virtual work done by the tension, and establishing the equilibrium equation of the type 1 second-order tensegrity based on the fact that the sum of the virtual work done by the internal tension of the elastic cables and the virtual work done by the external loads is zero; wherein, the application of the external loads may be before solving the lengths of the elastic cables.

[0063] Step S4, solving the above equilibrium equation to obtain the resting lengths of all elastic cables, and using the resting lengths of all elastic cables to complete the deployment control process.

[0064] Specifically, in step S1, the length of the six rigid rods of the symmetrical tensegrity is taken as l, the length of the three rigid cables at the top and bottom is taken as b, and the bottom rectangular coordinate system O is specified. b The origin (b1, b2, b3) coincides with the centroid of the equilateral triangle formed by the three rigid cables at the bottom. The coordinate axis O b b1 and bottom rigid cable A 11 A 31 (That is, rigid cable A 31 A 11 ) parallel to the coordinate axis O b b3 and bottom surface A 11 A 21 A 31 Vertical, top rectangular coordinate system O t The origin (t1, t2, t3) coincides with the centroid of the equilateral triangle formed by the three rigid cables at the top, and the coordinate axis O t t1 and B 12 B 32 (That is, rigid cable B 32 B 12 ) parallel to the coordinate axis O t t3 and top surface B 12 B 22 B 32 Vertical. According to the angular relationship between the lower rigid bars and the positional relationship between the bottom equilateral triangle and the top equilateral triangle, the 18 components of the symmetrical tensegrity generalized coordinate q are defined as follows:

[0065]

[0066] Wherein, δ and α represent the deflection angles between the rigid rod and any two of the three rigid cables at the bottom. In this embodiment, the 1st, 3rd, 5th, 7th, 9th, and 11th items of the generalized coordinate q are δ, which represents the deflection angles of all rigid rods about the axis O. b The deflection angle of b3, the 2nd, 4th, 6th, 8th, 10th, and 12th items are the rigid rod A j1 B j1 , A j2 B j2 (j=1,2,3) about axis O b The deflection angle of b1, the 13th, 14th, and 15th items are the Euler rotation angles of the top coordinates with respect to the bottom coordinates, and the 16th, 17th, and 18th items are the coordinate values ​​of the top coordinate origin under the bottom coordinates.

[0067] Specifically, in step S2, according to the geometric relationship of the tensegrity, the generalized coordinates specified above can be converted into inertial coordinates based on the bottom rectangular coordinate system. According to the symmetrical tensegrity geometric conditions, the lengths of the 18 elastic cables can be written as:

[0068]

[0069]

[0070]

[0071] Where S, V, and D represent the lengths of the six waist cables, six vertical cables, and six diagonal cables, respectively; l represents the length of the six rigid rods, h represents the overlapping height of the upper and lower rigid rods of the type 1 second-order tensegrity, b represents the length of the six rigid cables, and α represents the distance between any set rigid rod and the axis O. b b1 is the deflection angle, δ represents the deflection angle of the six rigid rods about the axis O b The deflection angle of b3.

[0072] Specifically, in step S3, the external load is simplified to the nodes of the tensegrity structure. When the system is in equilibrium, all friction, damping force and torque are zero, and only the internal tension of the elastic cable and the external load do work. According to the principle of virtual work, the equilibrium equation of type 1 second-order tensegrity is established as:

[0073] A(q)T+W(q)F=0,where

[0074] Where A is the equilibrium matrix, W is the load matrix, T is the internal tension vector of the elastic cable, F is the external load vector, and l j is the length of the jth elastic cable, x j is the j-th node degree of freedom, q iis the i-th generalized coordinate, i represents the i-th degree of freedom in the generalized coordinate, i = 1, 2, 3, ..., 18.

[0075] In this embodiment, when the load on the top three nodes of the tensegrity is considered to be f, the above formula can be rewritten as follows in combination with generalized coordinates:

[0076]

[0077] Among them, T S , T V , T D They represent the internal tension of the 6 waist cables, 6 diagonal cables and 6 diagonal cables respectively.

[0078] Specifically, in step S4, since the external load is taken into consideration, the equilibrium equation established in step S3 is no longer a linear equation, and the corresponding constraint relationship is taken into consideration, including the following sub-steps:

[0079] S4.1. Determine the desired path for the expansion, and represent the desired path as any rigid rod about axis O. b b1 and axis O b The deflection angles of b3 are denoted as α(t) and δ(t) (0≤t≤1), respectively, where t represents the normalized time, α(t)≠30°, 0°<δ(t)<90°;

[0080] Specifically, determine the b The range of the deflection angle of b3 and the value of any rigid rod about the axis O b The range of the deflection angle of b1 is written as functions of time δ(t) and α(t) (0≤t≤1), α(t)≠30°, because when α(t)=30°, the rigid rods will cross, 0°<δ(t)<90°; Specifically, according to the equilibrium surface planning, all rigid rods are about the axis O b The deflection angle of b3 and all rigid rods about axis O b The value range of the deflection angle of b1;

[0081] S4.2. With the total height of the tensegrity greater than 0 and the overlapping height of the upper and lower rigid bars greater than 0 as constraints, fix the tension of the six diagonal cables T D (t) value, the above equation is transformed into a nonlinear system of equations with redundant equations; specifically, the tension T D (t) can be taken at will and does not affect the balance of the entire structure. The added geometric constraints are:

[0082] min(lcos(δ)-h,0)=0 and min(h,0)=0

[0083] S4.3. Using the unfolded desired path α(t) and δ(t) as constraints, the optimization algorithm is used to solve the above nonlinear equations to obtain the tension T of the waist cable. S (t), vertical cable tension T V (t) and the overlapping height h(t) of the upper rigid rod and the lower rigid rod; In this embodiment, the LM algorithm is used to solve the above nonlinear equations;

[0084] S4.4, based on the tension T of the waist cable S (t), vertical cable tension T V (t), diagonal cable tension T D (t) and the overlapping height h(t) of the upper rigid rod and the lower rigid rod satisfy Hooke's law, and the rest lengths of all elastic cables are solved; the deployment control process is completed using the rest lengths of all elastic cables.

[0085] In step S4, the remaining lengths (ie, resting lengths) of the 18 elastic cables of the symmetrical tensegrity are controlled in an open-loop control manner to achieve the deployment of the entire tensegrity mechanism.

[0086] Based on the above-mentioned deployment control method for the type 1 second-order tensegrity, the deployed type 1 second-order tensegrity is subjected to rotation control, and the rotation control method includes:

[0087] Step S1, using the force density method to write the force balance equation of each node of the unfolded tensegrity;

[0088] Step S2, under the action of external load, taking the internal force balance of each node as the objective function, taking all elastic cables and rigid cables being in tension during deformation, all rigid rods being in compression, and the expected path of the trajectory of the top center of gravity of the type 1 second-order tensegrity as the geometric constraint, using an optimization algorithm to solve the force density and node coordinates at each node of the tensegrity;

[0089] Specifically, in this embodiment, an iterative nonlinear optimization program (SNOPT) is used to make the top center of gravity change along a desired path, and the entire tensegrity mechanism is reconstructed according to the specified constraints.

[0090] Step S3, obtaining the tension of the elastic cable during the rotation process according to the proportional relationship between the force density and the tension, and obtaining the length of the elastic cable during the rotation process according to the node coordinates;

[0091] Step S4, substituting the length and tension in the rotation process into Hooke's law, solving the resting length of all elastic cables, and completing the rotation control process according to the resting length of all elastic cables.

[0092] In this embodiment, the specific rotation control method is described by taking the expected path of the trajectory of the center of gravity of the top of the tensegrity as a circle as an example.

[0093] Defines the mapping matrix between the position vectors and element vectors of all the rods and cables in the tensegrity The element vector in tensegrity can be expressed as The position vector can be expressed as The mapping matrix M has the following corresponding relationship with the unit vector g and the position vector p:

[0094]

[0095] Where g s represents all elastic cable element vectors, g b represents all rigid rod element vectors.

[0096] The equilibrium equation at each node can be written as:

[0097] ||λ||>0,λ i ≥0,e i ∈E s

[0098] in is the force density matrix, λ i represents the force density at each node, ne represents any unit in the tensegrity, that is, any rigid rod, rigid cable or elastic cable, E s represents elastic cable and rigid cable elements, e i represents any unit in the tensegrity, λ i ≥0,e i ∈E s It means that all elastic cables and rigid cables are in tension during the deformation process.

[0099] Considering the shape constraints and external loads, the shape control of tensegrity is transformed into a parameter optimization problem, that is, under the action of external loads, the internal force balance of each node is taken as the objective function:

[0100]

[0101] In the formula F i ,i=1,2,...,n n represents the node external load vector, Represents a shape constraint related to the location of a node.

[0102] The rotation of the tensegrity can be solved by solving the following nonlinear problem to obtain the rest length of the control cable:

[0103]

[0104] subject to

[0105] ||λ||>0,λ i ≥0,e i ∈E s

[0106] Among them, λ i represents the force density at each node, p i Represents the node coordinates;

[0107] During the rotation process, the shape constraints satisfied by the tensegrity are:

[0108]

[0109] Among them, p base =p specified coordinates Represents the fixed coordinates of the three points of the bottom equilateral triangle, l top tendons (p) = b means that the length of the top rigid cable is written as a function of the node position p and is required to be equal to b, l bars (p) = l means that the length of all rigid rods is l;

[0110] Since there are too many elastic cables in the tensegrity structure, adding corresponding constraints to reduce the amount of calculation does not affect the implementation of this method. Specifically, the waist cables, vertical cables, and diagonal cables are expressed as functions of the node position p: S k (p), V k (p), D k (p), the corresponding constraint relationship is:

[0111] Length of 6 waist ropes S k (p) is always equal, denoted as S(p);

[0112] The length of the 6 vertical cables is V k (p) is always equal, denoted as V(p);

[0113] Specify the lengths D of the three diagonal cables k (p) is always equal, denoted as D k+1 (p), in this embodiment, D1(p)=D2(p), D3(p)=D4(p), D5(p)=D6(p), that is, the diagonal cables A11A32 and B11B12 are equal in length, A21A12 and B21B22 are equal in length, and A31A22 and B31B32 are equal in length.

[0114] The expected path during rotation is:

[0115]

[0116] in, represents the coordinate requirement of the top center of gravity for the i-th optimization calculation, r des represents the desired rotation radius, θ represents the rotation angle, and n x Indicates that the top center of gravity changes from the initial position υ 0 The number of optimization calculations designed to the circumference, n c Indicates the number of optimization calculations designed from the initial position to one rotation, j = n c -n x Represents the number of optimization calculations designed for one rotation.

[0117] The nonlinear problem is solved using a large nonlinear optimization program. The resting length of the control cable can be obtained by the λ obtained by each optimization solution. i 、p i It is calculated that the length can be used to control the tensegrity to complete the rotation around the center of the circle; in other embodiments, the method can be extended to more complex motion control by changing the end effector and the desired path as required.

[0118] The rotation control method of the present invention is completed by finding the shape based on the force density method under specific constraints. This quasi-static method of open-loop control makes the process of structural reconstruction in a balanced state. In the present invention, the top center of gravity of the tensegrity is used as the end effector, the expected path of the trajectory of the top center of gravity of the tensegrity is used as the geometric constraint, the equilibrium equation written by the force density method is used as the optimization target, the force density and the node coordinates of the tensegrity are used as the parameters to be optimized, and the top center of gravity is changed along the expected path through the iterative nonlinear optimization program (SNOPT). The entire structure is reconstructed according to the specified constraints, and finally the tension and resting length of each cable are inversely solved from the force density. Controlling the resting length of each cable can control the entire tensegrity structure to complete the specified reconstruction.

[0119] In this embodiment, the length of the rigid rod l is 0.4m, the length of the bottom and top rigid cables b = 0.27m, r des =0.1m,n x =8,n c =40, the elastic cable is aluminum wire, and its stiffness is 2×10 5 , pre-tension coefficient p = 100, when considering rotation control, set the constraint conditions as follows: the length of the 6 waist cables is always 0.16m, the lengths of the 6 vertical cables are equal, the lengths of the 6 diagonal cables are equal, α = 60°, δ(t) = 90°-63°t, then the tension overall expansion process is as follows Figure 4 As shown in (a)-(d) in the figure, t=0 in the figure means that the tensegrity is still in the plane and not unfolded, and t=1 / 3 means that the tensegrity is unfolded by 1 / 3. The rest length change of the elastic cable during the unfolding process is shown in Figure 5As shown in Figure 2, due to α = 60° and the symmetry of the tensegrity, the resting lengths of the diagonal cables and the waist cables change in the same way. The rotation process of the tensegrity is shown in Figure 2. Figure 6 As shown in (a)-(f) in the figure, the trajectory of the center of gravity at the top of the tensegrity changes along the circular desired path at each stage of the tensegrity rotation control. The resting length of the elastic cable changes during the rotation process as shown in Figure 7 shown.

[0120] Based on the above-provided deployment control and rotation control methods, the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps in the above-provided control method.

[0121] like Figure 8 and Fig. 9 As shown, based on the above-mentioned expansion control and rotation control of the type 1 second-order tensegrity, the present invention also provides a detection device, which includes a visual module and a flexible mechanism, the visual module is arranged on the flexible mechanism, the flexible mechanism includes a type 1 second-order tensegrity, and the type 1 second-order tensegrity is expanded by the above-mentioned expansion control method and rotated by the above-mentioned rotation control method, the visual module is used to realize the collection of pictures containing the target to be detected and perform corresponding data processing.

[0122] Preferably, the vision module is arranged on the top of the flexible mechanism, the vision module is a binocular camera 1, and a partition 2 and a binocular camera responsible for identification and ranging are placed on the top of the flexible mechanism.

[0123] In this embodiment, the visual module is a binocular camera, and its recognition and ranging functions are achieved through the following steps:

[0124] Step S1: According to the actual application scenario, such as drone aerial detection, the binocular camera widely collects image data containing the target to be detected, assigns labels to the targets to be identified in the images, and divides all the data into two parts: a training set and a validation set, which are used for the subsequent training of the target detection network;

[0125] Step S2, download the object detection framework based on the TensorFlow platform, select the lightweight network ssd-mobilenet as the network to be trained, use the training set and validation set in step S1, configure the model parameters, and generate the pb model file of Tensorflow to obtain the trained network model;

[0126] Step S3, use the pre-calibrated binocular camera parameters to correct the left and right eye images to obtain the corrected images, and input the corrected images into the trained network model for recognition; at the same time, use the SGBM stereo matching algorithm in OpenCV to generate a disparity map, and calculate the real coordinates corresponding to each pixel in the corrected image from the disparity map to obtain the distance from the target to the binocular camera to achieve detection. The pre-calibrated camera parameters include the left and right camera intrinsic parameter matrices, distortion coefficients, and the translation vector and rotation vector of the binocular camera. The present invention uses a quasi-static method to control the shape change of the tensegrity. By changing the resting length of the elastic cable, the tensegrity can be changed from a plane state to an unfolded state, and then complete the rotation around a point. The onboard visual module can transmit back the identified target category and distance information, so as to achieve the purpose of the drone detecting the surrounding environment.

[0127] The present invention innovatively combines a machine vision module with a flexible mechanical device, which can be folded and unfolded in the air, rotated 360 degrees to shoot, identify specific targets and measure target distances. This new type of intelligent device is lightweight, easy to carry, and highly maneuverable. In the future, it can be used in specific detection and monitoring fields such as drone aerial detection.

[0128] The visual module of the present invention adopts an object detection framework based on the TensorFlow platform. In the framework, different neural networks can be selected as pre-trained networks according to actual needs, and different training configuration parameters can be adjusted. It is easy to operate and has strong flexibility. The SSD-MobileNet network selected by the present invention is a lightweight network with a small size and low computational complexity, but without losing accuracy.

[0129] The semi-global matching (SGBM) algorithm used in the visual module of the present invention generates a disparity map with good effect, fast processing speed, and more accurate image depth calculation.

[0130] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A control method for a flexible mechanism, wherein the flexible mechanism comprises a type 1 second-order tensegrity, wherein the tensegrity comprises 6 rigid rods, 6 rigid cables and 18 elastic cables, wherein the 6 rigid rods comprise 3 upper rigid rods and 3 lower rigid rods, wherein: The control method comprises: A generalized coordinate system is established according to the deflection angle between the rigid rod and the rigid cable, and the length of the elastic cable is respectively solved in the generalized coordinate system; Applying external loads to the nodes of the tensegrity, taking partial derivatives of the lengths of the elastic cables in generalized coordinates, obtaining displacement components of the length changes of the elastic cables in generalized coordinates, and calculating virtual work done by the internal tension of the elastic cables based on the displacement components; The equilibrium equation of the tensegrity is established by taking the sum of the virtual work done by the internal tension of the elastic cable and the virtual work done by the external load as zero; The equilibrium equation is converted into a nonlinear equation group with redundant equations, and the nonlinear equation group is solved by an optimization algorithm with the unfolded expected path as a constraint to obtain the internal tension of the elastic cable and the overlapping height of the upper rigid rod and the lower rigid rod; The tension, the overlapping height and the resting length of the elastic cable satisfy Hooke's law, an equation relationship is established, the resting length of the elastic cable is solved, and the deployment of the tensegrity is controlled by the resting length of the elastic cable.

2. The control method according to claim 1, characterized in that: Converting the equilibrium equation into a nonlinear system of equations with redundant equations includes: Taking the total height of the tensegrity greater than 0 and the overlapping height greater than 0 as constraint conditions, the tension values ​​of the six diagonal cables are fixed, and the equilibrium equation is converted into a nonlinear equation group with redundant equations.

3. The control method according to claim 1, characterized in that: The optimization algorithm is the LM algorithm.

4. The control method according to claim 1, characterized in that: The equilibrium equation is: A(q)T + W(q)F = 0, where Among them, A is the equilibrium matrix, W is the external load matrix, T is the internal tension vector of the elastic cable, F is the external load vector, and l j is the length of the jth elastic cable, x j is the j-th node degree of freedom, q i It is the i-th generalized coordinate, i = 1, 2, 3, ..., 18, S, V, D represent the lengths of 6 waist cables, 6 vertical cables and 6 diagonal cables respectively.

5. The control method according to any one of claims 1 to 4, characterized in that: Also includes: Use the force density method to write the force balance equation for each node of the unfolded tensegrity; Under the action of external load, the internal force balance of each node is taken as the objective function, the expected path of the center of gravity trajectory of the tensegrity top and the shape constraint of the node position are taken as the geometric constraints, and an optimization algorithm is used to solve the force density and coordinates of each node; Substituting the force density into the proportional relationship between force density and tension, the tension of the elastic cable during the rotation process is obtained, and the length of the elastic cable during the rotation process is obtained according to the coordinates; Substituting the tension and length into Hooke's law, the rest length of the elastic cable is obtained, and the rest length of the elastic cable is used to control the rotation of the tensegrity.

6. The control method according to claim 5, characterized in that: The balance equation and the objective function satisfy: Where M represents the mapping matrix between the position vector and the unit vector in the tensegrity, p represents the position vector, is the force density matrix, λ i represents the force density at each node, n e represents any rigid rod, rigid cable or elastic cable, and ||λ||>0, F is the external load vector, A shape constraint representing the location of a node.

7. The control method according to claim 6, characterized in that: The optimization algorithm is an iterative nonlinear optimization algorithm.

8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.

9. A detection device, characterized in that: It comprises a vision module and a flexible mechanism, wherein the vision module is arranged on the flexible mechanism, and the flexible mechanism is controlled by the method according to one of claims 1-7.

10. The device according to claim 9, characterized in that The visual module is a binocular camera, and the detection process of the binocular camera includes: The binocular camera collects image data containing the target to be detected, and divides the data into a training set and a verification set; The ssd-mobilenet network model is trained using the training set and the validation set to obtain a trained network model; Correcting the left-eye and right-eye images using pre-calibrated binocular camera parameters to obtain corrected images, and inputting the corrected images into the trained network model for recognition; A stereo matching algorithm is used to generate a disparity map, and the coordinates corresponding to each pixel in the corrected image are calculated based on the disparity map to obtain the distance from the target to the binocular camera, thereby achieving detection.

Citation Information

Cited By

  • Flexible cable transmission mechanism load end positioning method

    CN120090508A