WO2023050582A1 - Angle of attack-based bionic robotic fish fixed-depth control method and apparatus - Google Patents

Angle of attack-based bionic robotic fish fixed-depth control method and apparatus Download PDF

Info

Publication number
WO2023050582A1
WO2023050582A1 PCT/CN2021/137578 CN2021137578W WO2023050582A1 WO 2023050582 A1 WO2023050582 A1 WO 2023050582A1 CN 2021137578 W CN2021137578 W CN 2021137578W WO 2023050582 A1 WO2023050582 A1 WO 2023050582A1
Authority
WO
WIPO (PCT)
Prior art keywords
angle
depth
pectoral fin
robotic fish
attack
Prior art date
Application number
PCT/CN2021/137578
Other languages
French (fr)
Chinese (zh)
Inventor
耿永清
左启阳
何凯
Original Assignee
深圳先进技术研究院
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳先进技术研究院 filed Critical 深圳先进技术研究院
Publication of WO2023050582A1 publication Critical patent/WO2023050582A1/en

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B63SHIPS OR OTHER WATERBORNE VESSELS; RELATED EQUIPMENT
    • B63GOFFENSIVE OR DEFENSIVE ARRANGEMENTS ON VESSELS; MINE-LAYING; MINE-SWEEPING; SUBMARINES; AIRCRAFT CARRIERS
    • B63G8/00Underwater vessels, e.g. submarines; Equipment specially adapted therefor
    • B63G8/14Control of attitude or depth
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B63SHIPS OR OTHER WATERBORNE VESSELS; RELATED EQUIPMENT
    • B63CLAUNCHING, HAULING-OUT, OR DRY-DOCKING OF VESSELS; LIFE-SAVING IN WATER; EQUIPMENT FOR DWELLING OR WORKING UNDER WATER; MEANS FOR SALVAGING OR SEARCHING FOR UNDERWATER OBJECTS
    • B63C11/00Equipment for dwelling or working underwater; Means for searching for underwater objects
    • B63C11/52Tools specially adapted for working underwater, not otherwise provided for
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B63SHIPS OR OTHER WATERBORNE VESSELS; RELATED EQUIPMENT
    • B63GOFFENSIVE OR DEFENSIVE ARRANGEMENTS ON VESSELS; MINE-LAYING; MINE-SWEEPING; SUBMARINES; AIRCRAFT CARRIERS
    • B63G8/00Underwater vessels, e.g. submarines; Equipment specially adapted therefor
    • B63G8/14Control of attitude or depth
    • B63G8/18Control of attitude or depth by hydrofoils
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B63SHIPS OR OTHER WATERBORNE VESSELS; RELATED EQUIPMENT
    • B63HMARINE PROPULSION OR STEERING
    • B63H1/00Propulsive elements directly acting on water
    • B63H1/30Propulsive elements directly acting on water of non-rotary type
    • B63H1/36Propulsive elements directly acting on water of non-rotary type swinging sideways, e.g. fishtail type

Definitions

  • the present application relates to the technical field of robotic fish control, in particular to a method and device for controlling the depth of a bionic robotic fish based on an angle of attack method.
  • the bionic robot fish is a kind of underwater mobile robot, which has the advantages of high propulsion efficiency, strong maneuverability, and good concealment performance. It has been widely used in underwater operations in complex environments such as seabed survey, military reconnaissance, marine biological research, and water quality monitoring. .
  • Depth control is one of the basic capabilities required for the bionic robotic fish to complete underwater operations, including floating control, diving control and cruise control.
  • Existing depth control methods include shape change method, water storage bin method, center of gravity adjustment method, etc. These methods require the bionic robot fish to adjust its own structure or adjust its volume by absorbing and releasing water to achieve depth control. The adjustment process is cumbersome, resulting in The real-time performance of the method is poor.
  • the present application provides a bionic robotic fish depth control method and device based on an angle of attack method, which can solve the problems of cumbersome adjustment process and poor real-time performance of the existing bionic robotic fish depth control method.
  • the embodiment of the present application provides a method for controlling the depth of a bionic robotic fish based on the angle of attack method, the method comprising:
  • the first depth of the bionic robotic fish at the current moment is not within the preset depth range, obtain the pitch angle of the bionic robotic fish at the current moment, and the first deflection angle of the pectoral fin of the bionic robotic fish at the previous moment; according to the first deflection The angle and pitch angle determine the actual pectoral fin attack angle of the bionic robot fish at the current moment; according to the relative positional relationship between the first depth and the preset depth range, the first expected pectoral fin attack angle is determined, and the first expected pectoral fin attack angle is used to make the bionic machine
  • the pitching moment of the fish is greater than or equal to the first threshold; the first deflection angle is adjusted to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle, so that the bionic robotic fish moves to a preset depth range;
  • both the first expected pectoral fin attack angle and the third pectoral fin deflection angle are adjusted to 0, and then, the bionic robotic fish moves within the preset depth range , adjusting the fourth deflection angle of the pectoral fin at the current moment according to the second depth of the bionic robotic fish at the current moment and the preset depth, and the preset depth is within the preset depth range.
  • the bionic robotic fish Based on the depth determination control method for the bionic robotic fish provided in the present application, it can be determined whether the bionic robotic fish should dive or float up according to the relative positional relationship between the first depth and the preset depth range. Determine the actual pectoral fin attack angle of the bionic robot fish at the current moment according to the pitch angle at the current moment and the first deflection angle of the pectoral fin at the previous moment, and the first deflection angle can be adjusted by using the actual pectoral fin attack angle and the first expected pectoral fin attack angle .
  • the pitch angle and motion direction of the bionic robotic fish can be adjusted, and then the actual pectoral fin angle of attack can be adjusted to approach the first desired pectoral fin angle of attack, so that the bionic robotic fish can produce a larger
  • the pitching moment shortens the path of the bionic robotic fish moving from the first depth to the preset depth range, reduces the time between the bionic robotic fish from the first depth to the preset depth range, and improves the real-time performance of the depth-fixed control method.
  • adjusting the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle includes: determining the difference between the pectoral fin attack angle error and the pectoral fin attack angle Angle error change rate; use the preset first fuzzy control table corresponding to the relative position relationship to perform fuzzy control on the pectoral fin angle of attack error and pectoral fin angle of attack error change rate to obtain the actual control increment; according to the actual control increment The first deflection angle is adjusted to obtain the second deflection angle of the pectoral fin at the current moment.
  • the actual angle of attack of the pectoral fins will be affected by factors such as the surrounding water flow and motion posture.
  • the pectoral fin angle of attack error between the actual pectoral fin angle of attack and the first expected pectoral fin angle of attack and the rate of change of pectoral fin angle of attack error are processed, and the actual control gain is obtained. to adjust the first deflection angle in real time, which can improve the accuracy of the depth control of the bionic robotic fish.
  • the pitching moment includes pitching moment and pitching moment; if the first depth is less than the minimum value of the preset depth range, the first expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, the first A fuzzy control table is a diving fuzzy control table used to control the bionic robotic fish to dive; if the first depth is greater than the maximum value of the preset depth range, the first expected pectoral fin attack angle is used to make the bionic robotic fish look up.
  • the torque is greater than or equal to the first threshold, and the first fuzzy control table is a floating fuzzy control table used to control the bionic robotic fish to perform floating movement.
  • adjusting the fourth deflection angle of the pectoral fin at the current moment according to the second depth and the preset depth of the bionic robotic fish at the current moment includes: determining the difference between the depth error and the preset depth of the bionic robotic fish at the second depth at the current moment and the preset depth Depth error change rate: use the preset second fuzzy control table to perform fuzzy control processing on the depth error and the depth error change rate to obtain the fourth deflection angle of the pectoral fin at the current moment.
  • the fixed depth control method also includes: during the bionic robotic fish moves from the first depth to the preset depth range, adjusting the swing frequency and swing amplitude of the tail fin of the bionic robotic fish, and setting the moving speed of the bionic robotic fish to the first Speed: During the movement of the bionic robotic fish within the preset depth range, the first speed is adjusted to a second speed, and the second speed is lower than the first speed.
  • the swing frequency and swing amplitude of the tail fin will affect the movement speed of the bionic robot fish.
  • the periodic swing of the tail fin can provide thrust for the bionic robot fish, and the coordinated propulsion of the tail fin and pectoral fin can make the bionic robot fish move quickly. Movement from a first depth to a preset depth range.
  • the embodiment of the present application provides a bionic robotic fish depth-fixing control device based on the angle of attack method, which includes:
  • the acquiring unit is used to acquire the pitch angle of the bionic robotic fish at the current moment and the first deflection angle of the pectoral fin of the bionic robotic fish at the previous moment when the first depth of the bionic robotic fish at the current moment is not within the preset depth range ;
  • the control unit is used to determine the actual pectoral fin attack angle of the bionic robotic fish at the current moment according to the first deflection angle and pitch angle, and determine the first expected pectoral fin attack angle according to the relative positional relationship between the first depth and the preset depth range, the first The expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, and the first deflection angle is adjusted to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle, so that the bionic robotic fish will Preset depth range movement; when the bionic robotic fish moves from the first depth to the boundary of the preset depth range, both the first expected pectoral fin attack angle and the third pectoral fin deflection angle are adjusted to 0, and then the bionic robotic fish During movement within the preset depth range, the fourth deflection angle of the pectoral fins at the current moment is adjusted according to the second depth of the bionic robotic fish at the current moment and the preset depth, and
  • adjusting the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle includes: determining the difference between the pectoral fin attack angle error and the pectoral fin attack angle Angle error rate of change; Utilize the preset first fuzzy control table corresponding to the relative positional relationship to carry out fuzzy control processing on pectoral fin angle of attack error and pectoral fin angle of attack error rate of change to obtain actual control increment; according to actual control increment The first deflection angle is adjusted to obtain the second deflection angle of the pectoral fin at the current moment.
  • the pitching moment includes pitching moment and pitching moment; if the first depth is less than the minimum value of the preset depth range, the first expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, the first A fuzzy control table is a diving fuzzy control table used to control the bionic robotic fish to dive; if the first depth is greater than the maximum value of the preset depth range, the first expected pectoral fin attack angle is used to make the bionic robotic fish look up.
  • the torque is greater than or equal to the first threshold, and the first fuzzy control table is a floating fuzzy control table used to control the bionic robotic fish to perform floating movement.
  • adjusting the fourth deflection angle of the pectoral fin at the current moment according to the second depth and the preset depth of the bionic robotic fish at the current moment includes: determining the difference between the depth error and the preset depth of the bionic robotic fish at the second depth at the current moment and the preset depth Depth error change rate: use the preset second fuzzy control table to perform fuzzy control processing on the depth error and the depth error change rate to obtain the fourth deflection angle of the pectoral fin at the current moment.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of the above-mentioned first aspects is implemented.
  • an embodiment of the present application provides a computer program product, which, when the computer program product is run on a terminal device, causes the terminal device to execute the method in any one of the foregoing first aspects.
  • the embodiment of the present application provides a bionic robotic fish.
  • the bionic robotic fish includes: a fish body, a caudal fin arranged on the fish body, and pectoral fins symmetrically arranged on both sides of the fish body.
  • a processor a rudder machine driver, pull-wire driver, central mode generator, depth sensor and inertial sensor; the processor is used to realize the method in any one of the above-mentioned first aspects, and adjusts the deflection angle of the pectoral fin through the steering gear driver; the pull-wire driver passes the central mode
  • the generator controls the swing amplitude and swing frequency of the caudal fin, and then controls the movement speed of the bionic robotic fish;
  • the depth sensor is used to detect the depth of the bionic robotic fish;
  • the inertial sensor is used to detect the pitch angle of the fish body.
  • Fig. 1 is a structural diagram of a bionic robotic fish provided by an embodiment of the present application
  • Fig. 2 is a cross-sectional view of different viewing angles of the pectoral fin in the bionic robotic fish provided by an embodiment of the present application;
  • Fig. 3 is a flow chart of a method for controlling the depth of a bionic robotic fish based on the angle of attack method provided by an embodiment of the present application;
  • Fig. 4 is the flowchart of a kind of fuzzy control method provided by an embodiment of the present application.
  • Fig. 5 is a flow chart of a fuzzy control method provided by another embodiment of the present application.
  • Fig. 6 is a kind of diving fuzzy control rule table provided by an embodiment of the present application.
  • Fig. 7 is a kind of diving fuzzy control table provided by an embodiment of the present application.
  • Fig. 8 is a kind of upward fuzzy control rule table provided by an embodiment of the present application.
  • Fig. 9 is a kind of upper-submarine fuzzy control table provided by an embodiment of the present application.
  • Fig. 10 is a table of fuzzy control rules for fixed-depth cruising provided by an embodiment of the present application.
  • Fig. 11 is a kind of fixed-depth cruise fuzzy control table provided by an embodiment of the present application.
  • Fig. 12 is a schematic structural diagram of a depth-fixing control device for a bionic robotic fish based on an angle of attack method provided by an embodiment of the present application.
  • Depth control is one of the basic capabilities required for the bionic robotic fish to complete underwater operations, including floating control, diving control, and depth-fixed cruise control.
  • the floating control is used to control the bionic robotic fish to move upward from the current depth to the desired depth when the current depth value of the bionic robotic fish is greater than the expected depth value.
  • the dive control is used to control the bionic robotic fish to dive from the current depth to the desired depth when the current depth value of the bionic robotic fish is less than the expected depth value.
  • Depth-fixed cruise control is used to control the movement of the bionic robotic fish at the desired depth.
  • Existing depth control methods include shape change method, water storage bin method, center of gravity adjustment method, etc.
  • the shape control method changes the volume of the bionic robotic fish itself, thereby changing the size of the buoyancy to achieve floating and diving movements
  • the water storage method is to change the self-weight of the bionic robotic fish by absorbing or releasing water, thereby achieving floating and diving movements.
  • the center of gravity method needs to be equipped with counterweight sliders, screw rods, motors, encoders and other components to adjust the center of gravity to change the pitch angle of the head of the bionic robotic fish to complete the floating and diving movements.
  • the structure of the bionic robotic fish is relatively complicated. These methods need to design complex robotic fish structures or occupy a large space. The real-time performance of the method is poor and lacks mobility. The size of the internal space of the robotic fish leads to a limited number of detection instruments that can be carried, which is not conducive to the expansion of other functional tasks. .
  • the embodiment of the present application provides a method and device for controlling the depth of a bionic robotic fish based on the angle of attack method. Determine the actual pectoral fin attack angle of the bionic robot fish at the current moment according to the pitch angle at the current moment and the first deflection angle of the pectoral fin at the previous moment, and the first deflection angle can be calculated in real time by using the actual pectoral fin attack angle and the first expected pectoral fin attack angle.
  • FIG. 1 is a structural diagram of a bionic robotic fish provided in an embodiment of the present application. Among them, (a) in FIG. 1 is the outline structure diagram of the bionic robotic fish, and (b) in FIG. 1 is a schematic diagram of the internal structure of the bionic robotic fish. As shown in (a) of FIG. 1 , the bionic robotic fish 1 includes: a fish body 11 , a caudal fin 13 arranged on the fish body 11 , and pectoral fins 12 arranged symmetrically on both sides of the fish body.
  • Fig. 1 be provided with processor 14 and the memory 19 that is connected with processor 14 respectively, steering gear driver 17, pull-wire driver 15, central pattern generator 16, inertial sensor 181 in fish body 11 and depth sensor 182 .
  • the depth sensor 182 is used to detect the depth of the bionic robotic fish 1 in real time.
  • the inertial sensor 181 is used to detect the attitude parameters (such as pitch angle, roll angle, etc.), angular velocity, acceleration, and heading angle of the fish body 11 .
  • the steering gear driver 17 is connected with the pectoral fins 12, and the deflection angle of the pectoral fins 12 is regulated by adjusting the rotation angle of the steering gear driver 17.
  • the pull-wire driver 15 is connected to the tail fin 13 through the central pattern generator 16, and the pull-wire driver 15 is used to drive the central pattern generator 16, and controls the swing amplitude and swing frequency of the tail fin 13 through the central pattern generator 16, thereby controlling the bionic robotic fish. 1 movement speed.
  • the bionic robotic fish also includes a memory 19 .
  • the memory 19 is used to store computer programs 191 and modules, such as the depth-fixing control method for simulated robotic fish based on the angle of attack method provided in this application.
  • the processor 14 executes various functions and data processing of the simulated robotic fish by running the computer programs and modules stored in the memory 19 .
  • Processor 14 may also be a fuzzy controller.
  • the processor 14 can execute the depth-fixing control method of simulated robotic fish based on the angle of attack method provided by the present application according to the data detected by the sensor 18, and send a control signal to the steering gear driver to adjust the deflection angle of the steering gear driver, and then adjust the pectoral fin. 12 deflection angles.
  • the deflection angle of the pectoral fin 12 is the angle between the chord 121 of the pectoral fin 12 and the fish body 11 .
  • the control signal may be a pulse width modulation signal, and the pulse width of the pulse width modulation signal determines the deflection angle of the steering gear driver. Assuming that the signal period of the pulse width modulation signal is 20MS, the pulse width between 0.5MS and 2.5MS can make the deflection angle of the steering gear driver change linearly from 0 degrees to 180 degrees.
  • the bionic robot fish can be provided with a plurality of steering gear drivers, which are respectively used to control the rotation of the corresponding pectoral fins and flap the wings up and down.
  • the pitch angle ⁇ of the bionic robotic fish 1 is the angle between the fish body 11 and the water flow direction. Assuming that the direction of the water flow is horizontal, when the fish body 11 is horizontally suspended in the water, the pitch angle of the bionic robotic fish 1 is 0; when the bionic robotic fish 1 dives downward, the pitch angle is negative; when the bionic robotic fish 2 floats upward, the pitch angle is a positive value.
  • Fig. 2 is a cross-sectional view of the pectoral fins of the bionic robotic fish in different deflection states.
  • the cross-sectional shape of the pectoral fin 12 adopts the airfoil profile of an airfoil.
  • a NACA 0012 or NACA 0020 airfoil curve can be used to generate the cross-sectional shape of the pectoral fin 12 .
  • the forces acting on the pectoral fins 12 are mainly lift and drag.
  • the resistance is the force generated by the water hindering the movement of the pectoral fin 12 when the bionic robot fish 1 swims, which is opposite to the speed direction of the pectoral fin 12; up the lift.
  • the bionic robotic fish 1 relies on the pectoral fins 12 to interact with water to generate a pitching moment.
  • the lift center 122 of the general pectoral fin wing is selected as the length of the chord 121 of 0.25 from the leading edge point of the airfoil.
  • the bionic robotic fish 1 When the angle of attack of the pectoral fin is positive, the bionic robotic fish 1 generates a pitch moment, when the angle of attack of the pectoral fin is negative, the bionic robotic fish 1 generates a moment of depression, and when the angle of attack of the pectoral fin is zero, the lift force is zero.
  • the pectoral fin attack angle ⁇ of the bionic robotic fish 1 is the angle between the chord 121 of the pectoral fin 12 and the direction of water flow. Assuming that the direction of water flow is horizontal, when the chord 121 and the direction of water flow are at the same level, the angle of attack of the pectoral fin of the bionic robotic fish 1 is 0, as shown in (a) in Figure 2; the relative direction of water flow points to the lower surface of the pectoral fin 12 , the angle of attack of the pectoral fin of the bionic robotic fish 1 is positive, as shown in (b) in Figure 2; when the relative water flow direction points to the upper surface of the pectoral fin 12, the angle of attack of the pectoral fin of the bionic robotic fish 1 is negative.
  • the bionic robotic fish 1 also includes sonar, Beidou positioning, industrial control board, wireless communication module, camera, servo motor, water leakage sensor, power battery, etc. connected to the processor 14, etc. part.
  • the structure of the bionic robotic fish provided in this application is exemplary. Other structures of the bionic robotic fish will not be described in detail here.
  • the embodiment of the present application also provides a method for controlling the depth of the bionic robotic fish based on the angle of attack method.
  • the method for controlling the depth of the bionic robotic fish based on the angle of attack method includes the following steps:
  • the bionic robotic fish when using the bionic robotic fish for underwater operations, it is generally required that the bionic robotic fish can float up or dive to a preset depth, and cruise at a fixed depth within the preset depth range to complete the underwater operations.
  • the preset depth range may be a depth range centered on the preset depth.
  • the bionic robot fish can be made to swim within the range of its own height. Suppose the preset depth is h, the height of the bionic robotic fish is g, and g ⁇ h, then the preset depth range is [h-g, h+g], and h-g and h+g are the boundaries of the preset depth range.
  • the first depth of the bionic robotic fish can be detected in real time by a depth sensor in the bionic robotic fish.
  • Inertial sensors are used to detect the pitch angle of the bionic robotic fish in real time at the current moment.
  • the deflection angle of the steering gear driver is the deflection angle of the pectoral fin.
  • the motion speed of the bionic robotic fish can be the first speed by controlling the swing frequency and swing amplitude of the caudal fin of the bionic robotic fish, and the second One speed is the pitching speed that can make the bionic robotic fish obtain a larger pitching moment.
  • the first depth of the bionic robotic fish when the first depth of the bionic robotic fish is not within the preset depth range, it is necessary to move the bionic robotic fish from the first depth to the preset depth range by diving or floating.
  • the swing frequency and swing amplitude of the caudal fin will affect the movement speed of the bionic robotic fish, and the periodic swing of the caudal fin can provide thrust for the bionic robotic fish.
  • the pitching moment of the bionic robotic fish is related to the angle of attack of the pectoral fin and the movement speed. The pitching moment needs to make the fish body produce a faster pitching speed.
  • the coordinated propulsion of the caudal fin and the pectoral fin can make the bionic robot fish quickly move from the first depth to the preset depth range. Therefore, the motion speed of the bionic robotic fish can be set to the first speed by controlling the swing frequency and swing amplitude of the tail fin of the bionic robotic fish. Exemplarily, the swing frequency and swing amplitude of the caudal fin of the bionic robotic fish can be adjusted to the maximum value, so that the bionic robotic fish can obtain a larger pitching speed.
  • S200 Determine the actual pectoral fin attack angle of the bionic robotic fish at the current moment according to the first deflection angle and pitch angle; determine the first expected pectoral fin attack angle according to the relative positional relationship between the first depth and the preset depth range, The angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold; adjust the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle, so that the bionic robotic fish moves to the preset depth. range of motion.
  • the pitch attitude of the bionic robotic fish will change with the current and other factors during the movement in the water, and the angle of attack of the bionic robotic fish's pectoral fins at each moment will also change with the change of the pitch angle.
  • the actual pectoral fin attack angle of the bionic robotic fish at the current moment can be determined, and the specific formula is:
  • ⁇ c (t) represents the actual pectoral fin attack angle of the bionic robotic fish at the current moment
  • P 1 (t-1) represents the first deflection angle of the bionic robotic fish at the previous moment
  • the pitch angle at the current moment is all vectors.
  • the method for adjusting the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle includes the following steps:
  • Step 1 Determine the pectoral fin angle of attack error and pectoral fin angle of attack error change rate between the actual pectoral fin attack angle and the first expected pectoral fin attack angle.
  • e ⁇ (t) represents the pectoral fin angle of attack error
  • ⁇ 1 represents the first expected pectoral fin attack angle.
  • the pectoral fin angle of attack error change rate ec ⁇ can be expressed as:
  • Step 2 Use the preset first fuzzy control table to perform fuzzy control processing on the pectoral fin angle of attack error and the rate of change of the pectoral fin angle of attack error to obtain the actual control increment.
  • the pectoral fin angle of attack error and the rate of change of the pectoral fin angle of attack error can be processed by using the fuzzy control method to obtain the actual control increment.
  • the specific method is as follows: firstly, the pectoral fin angle of attack error e ⁇ and the pectoral fin angle of attack error change rate ec ⁇ are respectively quantified by using the first error quantization factor Ke 1 and the first error change rate quantization factor Kec 1 to obtain the quantified pectoral fin attack angle Error E ⁇ and quantitative pectoral fin angle of attack error rate of change EC ⁇ ; then query the preset first fuzzy control table according to the quantified pectoral fin angle of attack error E ⁇ and quantified pectoral fin angle of attack error rate of change EC ⁇ , and obtain the fuzzy control increment U; Use the center of gravity method and the first proportional factor Ku 1 to defuzzify the fuzzy control increment U to obtain the actual control increment u.
  • Step 3 adjusting the first deflection angle P 1 to the second deflection angle P 2 according to the actual control increment u.
  • the actual control increment u is added to the first deflection angle P 1 of the bionic robotic fish at the last moment to obtain the second deflection angle P 2 .
  • the processor determines the second deflection angle, it can send a control signal to the steering gear controller, so that the deflection angle of the steering gear controller can be adjusted to the second deflection angle, and then adjust the deflection angle of the pectoral fins , so that the actual pectoral fin attack angle of the bionic robotic fish is close to the first desired pectoral fin attack angle, so that the bionic robotic fish moves from the first depth to the preset depth range in the shortest path. It can be understood that the shortest path should be close to the vertical distance between the first depth and the preset depth range.
  • the first depth of the bionic robotic fish is less than the minimum value of the preset depth range, it means that the bionic robotic fish needs to dive from the first depth to the preset depth range.
  • the first expected pectoral fin attack angle is used to make the bionic robotic fish generate a pitching moment, and the pitching moment must be greater than or equal to the first threshold, and the first fuzzy control table should be the dive Fuzzy control table.
  • the first depth of the bionic robotic fish is greater than the maximum value of the preset depth range, it means that the bionic robotic fish needs to float up from the first depth to the preset depth range.
  • the first expected pectoral fin attack angle is used to make the bionic robotic fish generate the upward moment, and the upward moment must be greater than or equal to the first threshold value, and the first fuzzy control table should be the fuzzy control for floating up for controlling the bionic robotic fish to perform upward movement surface.
  • the first threshold can be set to the maximum pitching moment value generated by the bionic robotic fish, or a value slightly smaller than the maximum pitching moment value generated by the bionic robotic fish.
  • the absolute value of the angle of attack of the pectoral fin of the simulated robotic fish when the simulated robotic fish moves in water, the absolute value of the angle of attack of the pectoral fin of the simulated robotic fish is between 1 degree and 15 degrees, and the lift of the simulated robotic fish will vary with The increase of the absolute value increases, and the resistance will basically remain unchanged with the increase of the absolute value; when the absolute value of the pectoral fin attack angle is greater than 15 degrees, the lift of the simulated robotic fish will decrease with the increase of the absolute value. The resistance will increase as the absolute value increases. Therefore, when the absolute value of the pectoral fin attack angle is 15 degrees, the biomimetic robotic fish can generate the maximum pitching moment.
  • the pitch angle of the bionic robotic fish needs to be gradually adjusted to 0 degrees, so that the fish body of the bionic robotic fish is in line with the The flow direction is parallel.
  • the thrust generated by the tail fin and the deflection angle of the pectoral fin can be used to make the bionic robotic fish swim at a fixed depth within the preset depth range. Therefore, after the above step S200, the bionic robotic fish control method provided by the present application also includes step S300, specifically as follows:
  • the first expected pectoral fin attack angle can be adjusted to the second expected pectoral fin attack angle; according to the second expected The angle of attack of the pectoral fin and the pitch angle of the bionic robotic fish at each moment determine the third deflection angle of the pectoral fin at the corresponding moment. Until the pitch angle of the bionic robotic fish is 0, the third deflection angle is also adjusted to 0.
  • the second expected pectoral fin attack angle is used to make the bionic robotic fish adjust the pitch angle of the bionic robotic fish to 0 degree within a preset depth range.
  • the first expected pectoral fin attack angle can be set as - 15 degrees, so that the bionic robotic fish can produce the maximum bending moment. Then, before diving, the deflection angle of the pectoral fin can be adjusted to the first expected pectoral fin angle of attack -15 degrees, so that the bionic robotic fish dives downward. During the diving process, the deflection angle of the pectoral fins is adjusted in real time by using the steps S100 and S200 provided by the present application, so that the bionic robotic fish always dives at the first desired pectoral fin attack angle of -15 degrees. When the bionic robotic fish dives from the first depth to the minimum value of the preset depth range, the first expected pectoral fin attack angle -15 degrees is adjusted to the second expected pectoral fin attack angle +10 degrees.
  • step S300 when the bionic robotic fish dives from the first depth to the maximum value of the preset depth range, step S300 provided in this application is used to adjust the pitch angle of the bionic robotic fish to 0 degrees, and then the pectoral fins are adjusted to 0 degrees.
  • the deflection angle of is adjusted to 0, and the second expected pectoral fin attack angle is adjusted to the third expected pectoral fin attack angle, and the third expected pectoral fin attack angle is 0.
  • the third expected pectoral fin attack angle is used to make the bionic robotic fish move within a preset depth range, so as to realize constant depth cruise.
  • the depth of the bionic robotic fish at the current moment is obtained, and the fourth deflection angle of the bionic robotic fish at the current moment is determined according to the depth at the current moment and the preset depth using a fuzzy control algorithm.
  • the movement speed of the bionic robotic fish can be reduced from the first movement speed to the second movement speed by reducing the swing frequency and swing amplitude of the caudal fin.
  • the second movement speed is the cruising speed calculated to make the cruising distance of the bionic robotic fish longer when the power supply of the bionic robotic fish is limited.
  • determining the fourth deflection angle of the bionic robotic fish at the current moment according to the second depth and the preset depth of the bionic robotic fish at the current moment may include the following steps:
  • Step 1 determining the depth error and depth error change rate of the second depth and the preset depth.
  • e h (t) represents the depth error of the bionic robotic fish at the current moment
  • h represents the preset depth
  • h c (t) represents the second depth of the bionic robotic fish at the current moment.
  • the rate of change of depth error ec h can be expressed as:
  • Step 2 using the preset second fuzzy control table to perform fuzzy control processing on the depth error and the rate of change of the depth error to obtain the fourth deflection angle of the bionic robotic fish at the current moment.
  • a fuzzy control algorithm may be used to process the depth error and the rate of change of the depth error to determine the fourth deflection angle of the pectoral fin at the current moment.
  • the specific implementation method is as follows: first, the second error quantization factor Ke 2 and the second error change rate quantization factor Kec 2 are used to fuzzify the depth error e h and the depth error change rate ec h respectively (also called quantization processing) , to obtain the quantized depth error E h and the rate of change of the quantized depth error EC h ; then query the preset second fuzzy control table according to the quantized depth error E h and the rate of change of the quantized depth error EC h to obtain the fuzzy control quantity A; use the center of gravity method And the second proportional factor Ku 2 performs defuzzification processing on the fuzzy control variable A to obtain the actual control variable a.
  • the actual control amount a is the fourth deflection angle P 4 of the pectoral fin of the bionic robotic fish at the
  • the second fuzzy control table is a fuzzy control table for depth-fixed cruising for the bionic robotic fish within a preset depth range.
  • the processor determines the actual control quantity a, it can determine the pulse width of the control signal according to the actual control quantity a, and send the control signal to the steering gear controller, so that the deflection angle of the steering gear controller Adjust to the fourth deflection angle, and then adjust the deflection angle of the pectoral fin, so that the actual angle of attack of the pectoral fin of the bionic robotic fish is close to 0 degrees. If a>0, the bionic robotic fish will ascend; if a ⁇ 0, the bionic robotic fish will dive. Through the process of floating up and down, the bionic robotic fish can move within the preset depth range, and then the bionic robotic fish can move in the preset depth range. Set depth to maintain constant depth cruise.
  • the design method of the first fuzzy control table is exemplarily described.
  • the universe of pectoral fin angle of attack error e ⁇ is set to [-3,3] degrees
  • the universe of pectoral fin angle of attack error change rate ec ⁇ is set to [-6,6] degrees/s.
  • the domain of discourse controlling the increment u is set to [-3,3] degrees.
  • E ⁇ , EC ⁇ and U are equally divided into 7 fuzzy states, which are composed of linguistic variables Negative Big (NB), Negative Medium (NM), Negative Small (NS), Zero (ZE), Positive Small (PS), Median (PM) and Zhengda (PB) are respectively indicated.
  • Determine the membership function of the language value and give the fuzzy membership function for each of the above languages.
  • the membership function of each language value adopts a trigonometric function.
  • the Mamdani maximin method is used for reasoning, and a set of control rules consisting of 49 fuzzy conditional statements is obtained, and the submerged fuzzy control rule table is established according to the control rules.
  • the dive fuzzy control rule table is shown in Figure 6, and the dive fuzzy control table designed based on the dive fuzzy control rule table shown in Figure 6 is shown in Figure 7.
  • the design method of the floating fuzzy control table is the same as that of the diving fuzzy control table. It's just that the deployment method of the floating fuzzy control rule table is opposite to that of the submerged fuzzy control rule table.
  • the floating fuzzy control rule table is shown in Figure 8, and the floating fuzzy control table designed based on the floating fuzzy control rule table shown in Figure 8 is shown in Figure 9.
  • the value of U in the floating fuzzy control table is opposite to the value of U in the submerged fuzzy control table.
  • the discourse domain of the depth error change rate ec h is set to [-6,6] cm/s
  • the discourse domain of the actual control variable a is set to [-6,6] degrees .
  • the fuzzification process divides the quantization depth error E h , the quantization depth error change rate EC h and the fuzzy control amount A into 13 quantization levels, that is, the fuzzy subset of variables is taken
  • the domain of discourse is ⁇ -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6 ⁇
  • E h , EC h and A are equally divided into 7 fuzzy states, which are composed of linguistic variables negative large (NB), negative medium (NM), negative small (NS), zero (ZE), positive small (PS), Median (PM) and Zhengda (PB) are respectively indicated.
  • Determine the membership function of the language value and give the fuzzy membership function for each of the above languages.
  • the membership function of each language value adopts a trigonometric function.
  • the Mamdani maxima-minimum method is used for reasoning.
  • the fuzzy control rule table for fixed-depth cruise is shown in Figure 10.
  • the fuzzy control table for fixed-depth cruise is designed based on the fuzzy control rule table for fixed-depth cruise As shown in Figure 11.
  • the bionic robotic fish depth control method based on the angle of attack method provided by this application can adjust the first deflection angle in real time by using the actual pectoral fin attack angle and the first expected pectoral fin attack angle to adjust the pitch angle and movement direction of the bionic robotic fish. Then adjust the actual pectoral fin attack angle to make it close to the first desired pectoral fin attack angle, so that the bionic robot fish can generate a larger pitching moment and move from the first depth to the preset depth range in the shortest path, thereby shortening the bionic robotic fish. The time it takes for the robot fish to reach the preset depth range.
  • the pectoral fin angle of attack error between the actual pectoral fin angle of attack and the first expected pectoral fin angle of attack and the pectoral fin angle of attack
  • the error change rate is processed by fuzzy control to obtain the actual control increment, so as to adjust the first deflection angle in real time.
  • fuzzy control is performed on the depth error and depth difference change rate between the current attack depth and the preset depth to obtain the actual control amount, so that the bionic robot can cruise within the preset depth range to improve the bionic robotic fish. Real-time and accuracy of depth control.
  • the embodiment of the present application also provides a bionic robot fish depth-fixing control device based on the angle of attack method.
  • the fixed depth control device 400 includes an acquisition unit 401 and a control unit 402 .
  • the acquiring unit 401 is used to acquire the pitch angle of the bionic robotic fish at the current moment and the first depth of the pectoral fin of the bionic robotic fish at the previous moment when the first depth of the bionic robotic fish at the current moment is not within the preset depth range. deflection angle.
  • the control unit 402 is used to determine the actual pectoral fin attack angle of the bionic robotic fish at the current moment according to the first deflection angle and pitch angle, and determine the first expected pectoral fin attack angle according to the relative positional relationship between the first depth and the preset depth range.
  • the expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, and the first deflection angle is adjusted to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle, so that the bionic robotic fish will Preset depth range movement; when the bionic robotic fish moves from the first depth to the boundary of the preset depth range, both the first expected pectoral fin attack angle and the third pectoral fin deflection angle are adjusted to 0, and then the bionic robotic fish During movement within the preset depth range, the fourth deflection angle of the pectoral fins at the current moment is adjusted according to the second depth of the bionic robotic fish at the current moment and the preset depth, and the preset depth is within the preset depth range.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the depth-fixing control method described in the foregoing method embodiments is implemented.
  • An embodiment of the present application further provides a computer program product, which, when the computer program product is run on a terminal device, enables the terminal device to implement the depth-fixing control method described in the foregoing method embodiments when executed.
  • references to "one embodiment” or “some embodiments” or the like in this application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • first and second are used for description purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features.
  • the features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • connection and “connected” should be understood in a broad sense, for example, it can be mechanical connection or electrical connection; it can be direct connection or through An intermediate medium is indirectly connected, which can be the internal communication of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, those of ordinary skill in the art can understand the above terms in this application according to the specific situation. specific meaning.

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Ocean & Marine Engineering (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Toys (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

An angle of attack-based bionic robotic fish fixed-depth control method and apparatus. If a first depth does not fall within a preset depth range, an actual pectoral fin angle of attack at a current moment is determined according to the pitch angle of a bionic robotic fish acquired by an inertial sensor and a first deflection angle of the pectoral fin at a previous moment; the first deflection angle is adjusted to a second deflection angle according to the actual pectoral fin angle of attack and a first expected pectoral fin angle of attack, so that the bionic robotic fish moves to the preset depth range by means of a floating movement or a diving movement; the bionic robotic fish adjusts a fourth deflection angle of the pectoral fin according to a second depth acquired by a depth sensor and a preset depth during the movement of the bionic robotic fish within the preset depth range, so as to achieve the fixed-depth cruise. The method is simple in adjustment process and good in real-time performance.

Description

基于攻角法的仿生机器鱼定深控制方法和装置Depth control method and device for bionic robotic fish based on angle of attack method 技术领域technical field
本申请涉及机器鱼控制技术领域,尤其涉及基于攻角法的仿生机器鱼定深控制方法和装置。The present application relates to the technical field of robotic fish control, in particular to a method and device for controlling the depth of a bionic robotic fish based on an angle of attack method.
背景技术Background technique
仿生机器鱼是一种水下移动机器人,具有推进效率高、机动性强、隐蔽性能好等优点,已广泛应用于海底勘测、军事侦察、海洋生物研究、水质监测等复杂环境中的水下作业。深度控制是仿生机器鱼完成水下作业所需的基本能力之一,包括上浮控制、下潜控制和巡游控制等。现有的深度控制方法包括形状改变法、储水仓法、重心调节法等,这些方法需要仿生机器鱼调整自身结构或者通过吸水、放水的方式调节自身体积才能实现深度控制,调节的过程比较繁琐,导致方法的实时性较差。The bionic robot fish is a kind of underwater mobile robot, which has the advantages of high propulsion efficiency, strong maneuverability, and good concealment performance. It has been widely used in underwater operations in complex environments such as seabed survey, military reconnaissance, marine biological research, and water quality monitoring. . Depth control is one of the basic capabilities required for the bionic robotic fish to complete underwater operations, including floating control, diving control and cruise control. Existing depth control methods include shape change method, water storage bin method, center of gravity adjustment method, etc. These methods require the bionic robot fish to adjust its own structure or adjust its volume by absorbing and releasing water to achieve depth control. The adjustment process is cumbersome, resulting in The real-time performance of the method is poor.
发明内容Contents of the invention
本申请提供一种基于攻角法的仿生机器鱼定深控制方法和装置,可以解决现有的仿生机器鱼定深控制方法的调节过程繁琐、实时性较差的问题。The present application provides a bionic robotic fish depth control method and device based on an angle of attack method, which can solve the problems of cumbersome adjustment process and poor real-time performance of the existing bionic robotic fish depth control method.
第一方面,本申请实施例提供了一种基于攻角法的仿生机器鱼定深控制方法,该方法包括:In the first aspect, the embodiment of the present application provides a method for controlling the depth of a bionic robotic fish based on the angle of attack method, the method comprising:
当仿生机器鱼在当前时刻的第一深度不在预设深度范围内时,获取仿生机器鱼在当前时刻的俯仰角,以及仿生机器鱼的胸鳍在上一时刻的第一偏转角度;根据第一偏转角度和俯仰角确定仿生机器鱼在当前时刻的实际胸鳍攻角;根据第一深度与预设深度范围的相对位置关系,确定第一期望胸鳍攻角,第一期望胸鳍攻角用于使仿生机器鱼的俯仰力矩大于或等于第一阈值;根据实际胸鳍攻角和第一期望胸鳍攻角将第一偏转角度调节为第二偏转角度,以使仿生机器鱼向预设深度范围运动;When the first depth of the bionic robotic fish at the current moment is not within the preset depth range, obtain the pitch angle of the bionic robotic fish at the current moment, and the first deflection angle of the pectoral fin of the bionic robotic fish at the previous moment; according to the first deflection The angle and pitch angle determine the actual pectoral fin attack angle of the bionic robot fish at the current moment; according to the relative positional relationship between the first depth and the preset depth range, the first expected pectoral fin attack angle is determined, and the first expected pectoral fin attack angle is used to make the bionic machine The pitching moment of the fish is greater than or equal to the first threshold; the first deflection angle is adjusted to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle, so that the bionic robotic fish moves to a preset depth range;
当仿生机器鱼从第一深度运动至预设深度范围的边界时,将第一期望胸鳍攻角和胸鳍的第三偏转角度均调节为0,之后,仿生机器鱼在预设深度 范围内运动期间,根据仿生机器鱼在当前时刻的第二深度和预设深度调节胸鳍在当前时刻的第四偏转角度,预设深度在预设深度范围内。When the bionic robotic fish moves from the first depth to the boundary of the preset depth range, both the first expected pectoral fin attack angle and the third pectoral fin deflection angle are adjusted to 0, and then, the bionic robotic fish moves within the preset depth range , adjusting the fourth deflection angle of the pectoral fin at the current moment according to the second depth of the bionic robotic fish at the current moment and the preset depth, and the preset depth is within the preset depth range.
基于本申请提供的仿生机器鱼定深控制方法,根据第一深度与预设深度范围的相对位置关系,可以确定仿生机器鱼应当下潜还是上浮。根据当前时刻的俯仰角以及胸鳍在上一时刻的第一偏转角度确定仿生机器鱼在当前时刻的实际胸鳍攻角,利用实际胸鳍攻角和第一期望胸鳍攻角可以对第一偏转角度进行调节。通过对胸鳍偏转角度的实时调节,可以调整仿生机器鱼的俯仰角以及运动方向,进而对实际胸鳍攻角进行调节使其趋近于第一期望胸鳍攻角,使得仿生机器鱼可以产生较大的俯仰力矩,从而缩短仿生机器鱼从第一深度向预设深度范围运动的路径,减小仿生机器鱼从第一深度到预设深度范围之间的时间,进而提高定深控制方法的实时性。Based on the depth determination control method for the bionic robotic fish provided in the present application, it can be determined whether the bionic robotic fish should dive or float up according to the relative positional relationship between the first depth and the preset depth range. Determine the actual pectoral fin attack angle of the bionic robot fish at the current moment according to the pitch angle at the current moment and the first deflection angle of the pectoral fin at the previous moment, and the first deflection angle can be adjusted by using the actual pectoral fin attack angle and the first expected pectoral fin attack angle . Through the real-time adjustment of the pectoral fin deflection angle, the pitch angle and motion direction of the bionic robotic fish can be adjusted, and then the actual pectoral fin angle of attack can be adjusted to approach the first desired pectoral fin angle of attack, so that the bionic robotic fish can produce a larger The pitching moment shortens the path of the bionic robotic fish moving from the first depth to the preset depth range, reduces the time between the bionic robotic fish from the first depth to the preset depth range, and improves the real-time performance of the depth-fixed control method.
可选地,根据实际胸鳍攻角和第一期望胸鳍攻角将第一偏转角度调节为第二偏转角度,包括:确定实际胸鳍攻角和第一期望胸鳍攻角的胸鳍攻角误差与胸鳍攻角误差变化率;利用与相对位置关系对应的预设的第一模糊控制表对胸鳍攻角误差和胸鳍攻角误差变化率进行模糊控制处理,得到实际控制增量;根据实际控制增量对第一偏转角度进行调节,得到当前时刻胸鳍的第二偏转角度。Optionally, adjusting the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle includes: determining the difference between the pectoral fin attack angle error and the pectoral fin attack angle Angle error change rate; use the preset first fuzzy control table corresponding to the relative position relationship to perform fuzzy control on the pectoral fin angle of attack error and pectoral fin angle of attack error change rate to obtain the actual control increment; according to the actual control increment The first deflection angle is adjusted to obtain the second deflection angle of the pectoral fin at the current moment.
基于上述可选地方式,在仿生机器鱼运动的过程中,实际胸鳍攻角会受到周围水流、运动姿态等因素的影响。利用模糊控制算法在处理非线性控制和不确定性方面的优势,对实际胸鳍攻角和第一期望胸鳍攻角之间的胸鳍攻角误差与胸鳍攻角误差变化率进行处理,得到实际控制增量,以对第一偏转角度进行实时调节,可以提高仿生机器鱼定深控制的准确度。Based on the above optional method, during the motion of the bionic robotic fish, the actual angle of attack of the pectoral fins will be affected by factors such as the surrounding water flow and motion posture. Using the advantages of fuzzy control algorithm in dealing with nonlinear control and uncertainty, the pectoral fin angle of attack error between the actual pectoral fin angle of attack and the first expected pectoral fin angle of attack and the rate of change of pectoral fin angle of attack error are processed, and the actual control gain is obtained. to adjust the first deflection angle in real time, which can improve the accuracy of the depth control of the bionic robotic fish.
可选地,俯仰力矩包括俯力矩和仰力矩;若第一深度小于预设深度范围的最小值,则第一期望胸鳍攻角用于使仿生机器鱼的俯力矩大于或等于第一阈值,第一模糊控制表为用于控制仿生机器鱼进行下潜运动的下潜模糊控制表;若第一深度大于预设深度范围的最大值,则第一期望胸鳍攻角用于使仿生机器鱼的仰力矩大于或等于第一阈值,第一模糊控制表为用于控制仿生机器鱼进行上浮运动的上浮模糊控制表。Optionally, the pitching moment includes pitching moment and pitching moment; if the first depth is less than the minimum value of the preset depth range, the first expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, the first A fuzzy control table is a diving fuzzy control table used to control the bionic robotic fish to dive; if the first depth is greater than the maximum value of the preset depth range, the first expected pectoral fin attack angle is used to make the bionic robotic fish look up. The torque is greater than or equal to the first threshold, and the first fuzzy control table is a floating fuzzy control table used to control the bionic robotic fish to perform floating movement.
可选地,根据仿生机器鱼在当前时刻的第二深度和预设深度调节胸鳍在当前时刻的第四偏转角度包括:确定仿生机器鱼在当前时刻的第二深度 和预设深度的深度误差与深度误差变化率;利用预设的第二模糊控制表对深度误差和深度误差变化率进行模糊控制处理,得到胸鳍在当前时刻的第四偏转角度。Optionally, adjusting the fourth deflection angle of the pectoral fin at the current moment according to the second depth and the preset depth of the bionic robotic fish at the current moment includes: determining the difference between the depth error and the preset depth of the bionic robotic fish at the second depth at the current moment and the preset depth Depth error change rate: use the preset second fuzzy control table to perform fuzzy control processing on the depth error and the depth error change rate to obtain the fourth deflection angle of the pectoral fin at the current moment.
可选地,定深控制方法还包括:仿生机器鱼从第一深度向预设深度范围运动期间,调节仿生机器鱼的尾鳍的摆动频率和摆动幅度,将仿生机器鱼的运动速度设为第一速度;仿生机器鱼在预设深度范围内运动期间,将第一速度调节为第二速度,第二速度小于第一速度。Optionally, the fixed depth control method also includes: during the bionic robotic fish moves from the first depth to the preset depth range, adjusting the swing frequency and swing amplitude of the tail fin of the bionic robotic fish, and setting the moving speed of the bionic robotic fish to the first Speed: During the movement of the bionic robotic fish within the preset depth range, the first speed is adjusted to a second speed, and the second speed is lower than the first speed.
基于上述可选地方式,尾鳍的摆动频率和摆动幅度会影响仿生机器鱼的运动速度,尾鳍周期性的摆动可以为仿生机器鱼提供推力,通过尾鳍和胸鳍的协同推进可以使仿生机器鱼快速地从第一深度向预设深度范围运动。Based on the above optional method, the swing frequency and swing amplitude of the tail fin will affect the movement speed of the bionic robot fish. The periodic swing of the tail fin can provide thrust for the bionic robot fish, and the coordinated propulsion of the tail fin and pectoral fin can make the bionic robot fish move quickly. Movement from a first depth to a preset depth range.
第二方面,本申请实施例提供了一种基于攻角法的仿生机器鱼定深控制装置,该装置包括:In the second aspect, the embodiment of the present application provides a bionic robotic fish depth-fixing control device based on the angle of attack method, which includes:
获取单元,用于当仿生机器鱼在当前时刻的第一深度不在预设深度范围内时,获取仿生机器鱼在当前时刻的俯仰角,以及仿生机器鱼的胸鳍在上一时刻的第一偏转角度;The acquiring unit is used to acquire the pitch angle of the bionic robotic fish at the current moment and the first deflection angle of the pectoral fin of the bionic robotic fish at the previous moment when the first depth of the bionic robotic fish at the current moment is not within the preset depth range ;
控制单元,用于根据第一偏转角度和俯仰角确定仿生机器鱼在当前时刻的实际胸鳍攻角,根据第一深度与预设深度范围的相对位置关系,确定第一期望胸鳍攻角,第一期望胸鳍攻角用于使仿生机器鱼的俯仰力矩大于或等于第一阈值,根据实际胸鳍攻角和第一期望胸鳍攻角将第一偏转角度调节为第二偏转角度,以使仿生机器鱼向预设深度范围运动;当仿生机器鱼从第一深度运动至预设深度范围的边界时,将第一期望胸鳍攻角和胸鳍的第三偏转角度均调节为0,之后,仿生机器鱼在预设深度范围内运动期间,根据仿生机器鱼在当前时刻的第二深度和预设深度调节胸鳍在当前时刻的第四偏转角度,预设深度在预设深度范围内。The control unit is used to determine the actual pectoral fin attack angle of the bionic robotic fish at the current moment according to the first deflection angle and pitch angle, and determine the first expected pectoral fin attack angle according to the relative positional relationship between the first depth and the preset depth range, the first The expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, and the first deflection angle is adjusted to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle, so that the bionic robotic fish will Preset depth range movement; when the bionic robotic fish moves from the first depth to the boundary of the preset depth range, both the first expected pectoral fin attack angle and the third pectoral fin deflection angle are adjusted to 0, and then the bionic robotic fish During movement within the preset depth range, the fourth deflection angle of the pectoral fins at the current moment is adjusted according to the second depth of the bionic robotic fish at the current moment and the preset depth, and the preset depth is within the preset depth range.
可选地,根据实际胸鳍攻角和第一期望胸鳍攻角将第一偏转角度调节为第二偏转角度,包括:确定实际胸鳍攻角和第一期望胸鳍攻角的胸鳍攻角误差与胸鳍攻角误差变化率;利用与所述相对位置关系对应的预设的第一模糊控制表对胸鳍攻角误差和胸鳍攻角误差变化率进行模糊控制处理,得到实际控制增量;根据实际控制增量对第一偏转角度进行调节,得到当 前时刻胸鳍的第二偏转角度。Optionally, adjusting the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle includes: determining the difference between the pectoral fin attack angle error and the pectoral fin attack angle Angle error rate of change; Utilize the preset first fuzzy control table corresponding to the relative positional relationship to carry out fuzzy control processing on pectoral fin angle of attack error and pectoral fin angle of attack error rate of change to obtain actual control increment; according to actual control increment The first deflection angle is adjusted to obtain the second deflection angle of the pectoral fin at the current moment.
可选地,俯仰力矩包括俯力矩和仰力矩;若第一深度小于预设深度范围的最小值,则第一期望胸鳍攻角用于使仿生机器鱼的俯力矩大于或等于第一阈值,第一模糊控制表为用于控制仿生机器鱼进行下潜运动的下潜模糊控制表;若第一深度大于预设深度范围的最大值,则第一期望胸鳍攻角用于使仿生机器鱼的仰力矩大于或等于第一阈值,第一模糊控制表为用于控制仿生机器鱼进行上浮运动的上浮模糊控制表。Optionally, the pitching moment includes pitching moment and pitching moment; if the first depth is less than the minimum value of the preset depth range, the first expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, the first A fuzzy control table is a diving fuzzy control table used to control the bionic robotic fish to dive; if the first depth is greater than the maximum value of the preset depth range, the first expected pectoral fin attack angle is used to make the bionic robotic fish look up. The torque is greater than or equal to the first threshold, and the first fuzzy control table is a floating fuzzy control table used to control the bionic robotic fish to perform floating movement.
可选地,根据仿生机器鱼在当前时刻的第二深度和预设深度调节胸鳍在当前时刻的第四偏转角度包括:确定仿生机器鱼在当前时刻的第二深度和预设深度的深度误差与深度误差变化率;利用预设的第二模糊控制表对深度误差和深度误差变化率进行模糊控制处理,得到胸鳍在当前时刻的第四偏转角度。Optionally, adjusting the fourth deflection angle of the pectoral fin at the current moment according to the second depth and the preset depth of the bionic robotic fish at the current moment includes: determining the difference between the depth error and the preset depth of the bionic robotic fish at the second depth at the current moment and the preset depth Depth error change rate: use the preset second fuzzy control table to perform fuzzy control processing on the depth error and the depth error change rate to obtain the fourth deflection angle of the pectoral fin at the current moment.
第三方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如上述第一方面中任一项的方法。In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of the above-mentioned first aspects is implemented.
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项的方法。In a fourth aspect, an embodiment of the present application provides a computer program product, which, when the computer program product is run on a terminal device, causes the terminal device to execute the method in any one of the foregoing first aspects.
第五方面,本申请实施例提供了一种仿生机器鱼,仿生机器鱼包括:鱼体、设在鱼体上的尾鳍以及对称设置在鱼体两侧的胸鳍,鱼体内设置有处理器、舵机驱动器、拉线式驱动器、中枢模式发生器、深度传感器和惯性传感器;处理器用于实现上述第一方面中任一项的方法,并通过舵机驱动器调整胸鳍的偏转角度;拉线式驱动器通过中枢模式发生器控制尾鳍的摆动幅度和摆动频率,进而控制仿生机器鱼的运动速度;深度传感器用于检测仿生机器鱼所在的深度;惯性传感器用于检测鱼体的俯仰角。In the fifth aspect, the embodiment of the present application provides a bionic robotic fish. The bionic robotic fish includes: a fish body, a caudal fin arranged on the fish body, and pectoral fins symmetrically arranged on both sides of the fish body. A processor, a rudder machine driver, pull-wire driver, central mode generator, depth sensor and inertial sensor; the processor is used to realize the method in any one of the above-mentioned first aspects, and adjusts the deflection angle of the pectoral fin through the steering gear driver; the pull-wire driver passes the central mode The generator controls the swing amplitude and swing frequency of the caudal fin, and then controls the movement speed of the bionic robotic fish; the depth sensor is used to detect the depth of the bionic robotic fish; the inertial sensor is used to detect the pitch angle of the fish body.
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面和第一方面的各可能的实施方式所带来的有益效果的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the above-mentioned second aspect to the fifth aspect, reference may be made to the relevant description of the above-mentioned first aspect and the beneficial effects brought about by each possible implementation manner of the first aspect, and details are not repeated here.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only for the present application For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本申请一实施例提供的一种仿生机器鱼的结构图;Fig. 1 is a structural diagram of a bionic robotic fish provided by an embodiment of the present application;
图2是本申请一实施例提供的仿生机器鱼中胸鳍的不同视角的截面图;Fig. 2 is a cross-sectional view of different viewing angles of the pectoral fin in the bionic robotic fish provided by an embodiment of the present application;
图3是本申请一实施例提供的一种基于攻角法的仿生机器鱼定深控制方法的流程图;Fig. 3 is a flow chart of a method for controlling the depth of a bionic robotic fish based on the angle of attack method provided by an embodiment of the present application;
图4是本申请一实施例提供的一种模糊控制方法的流程图;Fig. 4 is the flowchart of a kind of fuzzy control method provided by an embodiment of the present application;
图5是本申请另一实施例提供的一种模糊控制方法的流程图;Fig. 5 is a flow chart of a fuzzy control method provided by another embodiment of the present application;
图6是本申请一实施例提供的一种下潜模糊控制规则表;Fig. 6 is a kind of diving fuzzy control rule table provided by an embodiment of the present application;
图7是本申请一实施例提供的一种下潜模糊控制表;Fig. 7 is a kind of diving fuzzy control table provided by an embodiment of the present application;
图8是本申请一实施例提供的一种上潜模糊控制规则表;Fig. 8 is a kind of upward fuzzy control rule table provided by an embodiment of the present application;
图9是本申请一实施例提供的一种上潜模糊控制表;Fig. 9 is a kind of upper-submarine fuzzy control table provided by an embodiment of the present application;
图10是本申请一实施例提供的一种定深巡游模糊控制规则表;Fig. 10 is a table of fuzzy control rules for fixed-depth cruising provided by an embodiment of the present application;
图11是本申请一实施例提供的一种定深巡游模糊控制表;Fig. 11 is a kind of fixed-depth cruise fuzzy control table provided by an embodiment of the present application;
图12是本申请一实施例提供的一种基于攻角法的仿生机器鱼定深控制装置的结构示意图。Fig. 12 is a schematic structural diagram of a depth-fixing control device for a bionic robotic fish based on an angle of attack method provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
深度控制是仿生机器鱼完成水下作业所需的基本能力之一,包括上浮控制、下潜控制和定深巡游控制等。具体地,上浮控制用于在仿生机器鱼的当前深度值大于期望的深度值时,控制仿生机器鱼从当前的深度向期望的深度做上浮运动。下潜控制用于在仿生机器鱼的当前深度值小于期望的深度值时,控制仿生机器鱼从当前的深度向期望的深度做下潜运动。定深 巡游控制用于控制仿生机器鱼在期望的深度运动。Depth control is one of the basic capabilities required for the bionic robotic fish to complete underwater operations, including floating control, diving control, and depth-fixed cruise control. Specifically, the floating control is used to control the bionic robotic fish to move upward from the current depth to the desired depth when the current depth value of the bionic robotic fish is greater than the expected depth value. The dive control is used to control the bionic robotic fish to dive from the current depth to the desired depth when the current depth value of the bionic robotic fish is less than the expected depth value. Depth-fixed cruise control is used to control the movement of the bionic robotic fish at the desired depth.
现有的深度控制方法包括形状改变法、储水仓法、重心调节法等。其中,形状控制法通过改变仿生机器鱼自身的体积,从而改变浮力的大小,以实现上浮和下潜运动;储水仓法是通过吸水或放水改变仿生机器鱼的自重,从而实现上浮和下潜运动。这两种方法受到仿生机器鱼体积的限制,使得仿生机器鱼到达的深度有限,且调整的速度较慢,方法的实时性较差。重心法需搭载配重滑块、丝杆、电机和编码器等器件调整重心,以改变仿生机器鱼鱼头的俯仰角,从而完成上浮和下潜运动,仿生机器鱼的结构较为复杂。这些方法需要设计复杂的机器鱼结构或者需要占据较大的空间,方法的实时性较差且缺乏机动性,机器鱼内部空间的大小导致可搭载的探测仪器数量有限,不利于其他功能任务的扩展。Existing depth control methods include shape change method, water storage bin method, center of gravity adjustment method, etc. Among them, the shape control method changes the volume of the bionic robotic fish itself, thereby changing the size of the buoyancy to achieve floating and diving movements; the water storage method is to change the self-weight of the bionic robotic fish by absorbing or releasing water, thereby achieving floating and diving movements. These two methods are limited by the size of the bionic robot fish, which makes the depth of the bionic robot fish limited, and the adjustment speed is slow, and the real-time performance of the method is poor. The center of gravity method needs to be equipped with counterweight sliders, screw rods, motors, encoders and other components to adjust the center of gravity to change the pitch angle of the head of the bionic robotic fish to complete the floating and diving movements. The structure of the bionic robotic fish is relatively complicated. These methods need to design complex robotic fish structures or occupy a large space. The real-time performance of the method is poor and lacks mobility. The size of the internal space of the robotic fish leads to a limited number of detection instruments that can be carried, which is not conducive to the expansion of other functional tasks. .
为了解决上述问题,本申请实施例提供了一种基于攻角法的仿生机器鱼定深控制方法和装置。根据当前时刻的俯仰角以及胸鳍在上一时刻的第一偏转角度确定仿生机器鱼在当前时刻的实际胸鳍攻角,利用实际胸鳍攻角和第一期望胸鳍攻角可以对第一偏转角度进行实时调节,进而调整仿生机器鱼的俯仰角以及运动方向,使得仿生机器鱼产生较大的俯仰力矩,从而缩短仿生机器鱼从第一深度向预设深度范围运动的路径,提高定深控制方法的实时性。In order to solve the above problems, the embodiment of the present application provides a method and device for controlling the depth of a bionic robotic fish based on the angle of attack method. Determine the actual pectoral fin attack angle of the bionic robot fish at the current moment according to the pitch angle at the current moment and the first deflection angle of the pectoral fin at the previous moment, and the first deflection angle can be calculated in real time by using the actual pectoral fin attack angle and the first expected pectoral fin attack angle. Adjust, and then adjust the pitch angle and motion direction of the bionic robotic fish, so that the bionic robotic fish can generate a larger pitching moment, thereby shortening the path of the bionic robotic fish moving from the first depth to the preset depth range, and improving the real-time accuracy of the fixed depth control method. sex.
下面结合附图,对本申请的技术方案进行详细描述。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The technical solution of the present application will be described in detail below in conjunction with the accompanying drawings. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.
图1为本申请实施例提供的一种仿生机器鱼的结构图。其中,图1中的(a)为仿生机器鱼的外形结构图,图1中的(b)为仿生机器鱼的内部结构示意图。如图1中的(a)所示,该仿生机器鱼1包括:鱼体11、设在鱼体11上的尾鳍13以及对称设置在鱼体两侧的胸鳍12。Fig. 1 is a structural diagram of a bionic robotic fish provided in an embodiment of the present application. Among them, (a) in FIG. 1 is the outline structure diagram of the bionic robotic fish, and (b) in FIG. 1 is a schematic diagram of the internal structure of the bionic robotic fish. As shown in (a) of FIG. 1 , the bionic robotic fish 1 includes: a fish body 11 , a caudal fin 13 arranged on the fish body 11 , and pectoral fins 12 arranged symmetrically on both sides of the fish body.
如图1中的(b)所示,鱼体11内设置有处理器14以及分别与处理器14连接的存储器19、舵机驱动器17、拉线式驱动器15、中枢模式发生器16、惯性传感器181和深度传感器182。深度传感器182用于实时检测仿生机器鱼1所在的深度。惯性传感器181用于检测鱼体11的姿态参数(例如俯仰角、横滚角等)、角速度、加速度和航向角等。舵机驱动器17与胸鳍 12连接,通过调整舵机驱动器17的旋转角度以调节胸鳍12的偏转角度。拉线式驱动器15通过中枢模式发生器16与尾鳍13连接,拉线式驱动器15用于驱动中枢模式发生器16,并通过中枢模式发生器16控制尾鳍13的摆动幅度和摆动频率,进而控制仿生机器鱼1的运动速度。As shown in (b) among Fig. 1, be provided with processor 14 and the memory 19 that is connected with processor 14 respectively, steering gear driver 17, pull-wire driver 15, central pattern generator 16, inertial sensor 181 in fish body 11 and depth sensor 182 . The depth sensor 182 is used to detect the depth of the bionic robotic fish 1 in real time. The inertial sensor 181 is used to detect the attitude parameters (such as pitch angle, roll angle, etc.), angular velocity, acceleration, and heading angle of the fish body 11 . The steering gear driver 17 is connected with the pectoral fins 12, and the deflection angle of the pectoral fins 12 is regulated by adjusting the rotation angle of the steering gear driver 17. The pull-wire driver 15 is connected to the tail fin 13 through the central pattern generator 16, and the pull-wire driver 15 is used to drive the central pattern generator 16, and controls the swing amplitude and swing frequency of the tail fin 13 through the central pattern generator 16, thereby controlling the bionic robotic fish. 1 movement speed.
仿生机器鱼还包括存储器19。存储器19用于存储计算机程序191以及模块,例如本申请提供的基于攻角法的仿真机器鱼定深控制方法。处理器14通过运行存储在存储器19的计算机程序以及模块,从而执行仿真机器鱼的各种功能以及数据处理。处理器14也可以是模糊控制器。处理器14可以根据传感器18等检测到的数据执行本申请提供的基于攻角法的仿真机器鱼定深控制方法,向舵机驱动器发送控制信号,以调节舵机驱动器的偏转角度,进而调节胸鳍12的偏转角度。胸鳍12的偏转角度为胸鳍12的翼弦121与鱼体11的夹角。示例性的,控制信号可以是脉冲宽度调制信号,脉冲宽度调制信号信号的脉宽决定了舵机驱动器的偏转角度。假设脉冲宽度调制信号的信号周期为20MS,其中0.5MS-2.5MS之间的脉冲宽度可以使舵机驱动器的偏转角度从0度线性变化至180度。仿生机器鱼中可以设置有多个舵机驱动器,分别用于控制对应胸鳍的旋转和上下拍翼。The bionic robotic fish also includes a memory 19 . The memory 19 is used to store computer programs 191 and modules, such as the depth-fixing control method for simulated robotic fish based on the angle of attack method provided in this application. The processor 14 executes various functions and data processing of the simulated robotic fish by running the computer programs and modules stored in the memory 19 . Processor 14 may also be a fuzzy controller. The processor 14 can execute the depth-fixing control method of simulated robotic fish based on the angle of attack method provided by the present application according to the data detected by the sensor 18, and send a control signal to the steering gear driver to adjust the deflection angle of the steering gear driver, and then adjust the pectoral fin. 12 deflection angles. The deflection angle of the pectoral fin 12 is the angle between the chord 121 of the pectoral fin 12 and the fish body 11 . Exemplarily, the control signal may be a pulse width modulation signal, and the pulse width of the pulse width modulation signal determines the deflection angle of the steering gear driver. Assuming that the signal period of the pulse width modulation signal is 20MS, the pulse width between 0.5MS and 2.5MS can make the deflection angle of the steering gear driver change linearly from 0 degrees to 180 degrees. The bionic robot fish can be provided with a plurality of steering gear drivers, which are respectively used to control the rotation of the corresponding pectoral fins and flap the wings up and down.
需要说明的是,仿生机器鱼在水中进行上浮运动和下潜运动时,随着仿生机器鱼姿态的变化,俯仰角度和胸鳍攻角也会随之改变。如图1中所示,仿生机器鱼1的俯仰角θ为鱼体11与水流方向的夹角。假设水流方向为水平方向,则鱼体11水平悬浮于水中时,仿生机器鱼1的俯仰角为0;仿生机器鱼1向下俯冲时俯仰角为负值;仿生机器鱼2向上浮时俯仰角为正值。It should be noted that when the bionic robotic fish floats and dives in the water, the pitch angle and pectoral fin attack angle will also change with the change of the bionic robotic fish's posture. As shown in FIG. 1 , the pitch angle θ of the bionic robotic fish 1 is the angle between the fish body 11 and the water flow direction. Assuming that the direction of the water flow is horizontal, when the fish body 11 is horizontally suspended in the water, the pitch angle of the bionic robotic fish 1 is 0; when the bionic robotic fish 1 dives downward, the pitch angle is negative; when the bionic robotic fish 2 floats upward, the pitch angle is a positive value.
图2为仿生机器鱼的胸鳍处于不同偏转状态时的截面图。胸鳍12的截面形状采用机翼的翼型,示例性的,可以用NACA 0012或NACA 0020类型的翼形曲线生成胸鳍12的截面形状。仿生机器鱼1在水中游动时,作用于胸鳍12上的力主要为升力和阻力。其中,阻力为仿生机器鱼1游动时水阻碍胸鳍12运动产生的力,与胸鳍12速度方向相反;升力为胸鳍12与水流方向形成胸鳍攻角,导致胸鳍12产生了上下压力差,从而产生了升力。仿生机器鱼1依靠胸鳍12与水相互作用从而产生俯仰力矩。如图2中的(a)所示,一般胸鳍翼的升力中心122选为距翼型前缘点0.25翼弦121长处。 在胸鳍12和尾鳍13协同驱动仿生机器鱼1运动时,尾鳍13的周期性摆动使仿生机器鱼1产生一定的运动速度,同时通过胸鳍12的偏转角度使仿生机器鱼1产生升力从而产生俯仰力矩,进而实现俯仰运动。当胸鳍攻角为正时仿生机器鱼1产生仰力矩,当胸鳍攻角为负时仿生机器鱼1产生俯力矩,当胸鳍攻角为零时升力为零。Fig. 2 is a cross-sectional view of the pectoral fins of the bionic robotic fish in different deflection states. The cross-sectional shape of the pectoral fin 12 adopts the airfoil profile of an airfoil. Exemplarily, a NACA 0012 or NACA 0020 airfoil curve can be used to generate the cross-sectional shape of the pectoral fin 12 . When the bionic robotic fish 1 swims in water, the forces acting on the pectoral fins 12 are mainly lift and drag. Among them, the resistance is the force generated by the water hindering the movement of the pectoral fin 12 when the bionic robot fish 1 swims, which is opposite to the speed direction of the pectoral fin 12; up the lift. The bionic robotic fish 1 relies on the pectoral fins 12 to interact with water to generate a pitching moment. As shown in (a) in FIG. 2 , the lift center 122 of the general pectoral fin wing is selected as the length of the chord 121 of 0.25 from the leading edge point of the airfoil. When the pectoral fin 12 and the caudal fin 13 jointly drive the bionic robotic fish 1 to move, the periodic swing of the caudal fin 13 makes the bionic robotic fish 1 move at a certain speed, and at the same time, the deflection angle of the pectoral fin 12 makes the bionic robotic fish 1 generate lift and thus generate a pitching moment , and then realize the pitching motion. When the angle of attack of the pectoral fin is positive, the bionic robotic fish 1 generates a pitch moment, when the angle of attack of the pectoral fin is negative, the bionic robotic fish 1 generates a moment of depression, and when the angle of attack of the pectoral fin is zero, the lift force is zero.
如图2中的(b)所示,仿生机器鱼1的胸鳍攻角α为胸鳍12的翼弦121与水流方向之间的夹角。假设水流方向为水平方向,则翼弦121与水流方向在同一水平面时,仿生机器鱼1的胸鳍攻角为0,如图2中的(a)所示;相对水流方向指向胸鳍12的下表面时,仿生机器鱼1的胸鳍攻角为正值,如图2中的(b)所示;相对水流方向指向胸鳍12的上表面时,仿生机器鱼1的胸鳍攻角为负值。As shown in (b) of FIG. 2 , the pectoral fin attack angle α of the bionic robotic fish 1 is the angle between the chord 121 of the pectoral fin 12 and the direction of water flow. Assuming that the direction of water flow is horizontal, when the chord 121 and the direction of water flow are at the same level, the angle of attack of the pectoral fin of the bionic robotic fish 1 is 0, as shown in (a) in Figure 2; the relative direction of water flow points to the lower surface of the pectoral fin 12 , the angle of attack of the pectoral fin of the bionic robotic fish 1 is positive, as shown in (b) in Figure 2; when the relative water flow direction points to the upper surface of the pectoral fin 12, the angle of attack of the pectoral fin of the bionic robotic fish 1 is negative.
此外,如图1中的(b)所示,仿生机器鱼1还包括分别与处理器14连接的声呐、北斗定位、工控板、无线通信模块、摄像机、伺服电机、漏水传感器和动力电池等其他部件。本申请提供的仿生机器鱼的结构是示例性的。对于仿生机器鱼的其他结构此处不再赘述。In addition, as shown in (b) in Figure 1, the bionic robotic fish 1 also includes sonar, Beidou positioning, industrial control board, wireless communication module, camera, servo motor, water leakage sensor, power battery, etc. connected to the processor 14, etc. part. The structure of the bionic robotic fish provided in this application is exemplary. Other structures of the bionic robotic fish will not be described in detail here.
基于上述实施例提供的仿生机器鱼,本申请实施例还提供了一种基于攻角法的仿生机器鱼定深控制方法。如图3所示,在一种可能的实现方式中,基于攻角法的仿生机器鱼定深控制方法包括以下步骤:Based on the bionic robotic fish provided in the above embodiments, the embodiment of the present application also provides a method for controlling the depth of the bionic robotic fish based on the angle of attack method. As shown in Figure 3, in a possible implementation, the method for controlling the depth of the bionic robotic fish based on the angle of attack method includes the following steps:
S100,当仿生机器鱼在当前时刻的第一深度不在预设深度范围内时,获取仿生机器鱼在当前时刻的俯仰角,以及仿生机器鱼的胸鳍在上一时刻的第一偏转角度。S100. When the first depth of the bionic robotic fish at the current moment is not within the preset depth range, acquire the pitch angle of the bionic robotic fish at the current moment and the first deflection angle of the pectoral fin of the bionic robotic fish at the previous moment.
需要说明的是,在利用仿生机器鱼进行水下作业时,一般需要仿生机器鱼能够上浮或者下潜到预设深度,并在预设深度范围内定深巡游以完成水下作业。预设深度范围可以是以预设深度为中心的一个深度范围。示例性的,可以使仿生机器鱼在自身体高的范围内巡游。假设预设深度为h,仿生机器鱼的高度为g,g≤h,则预设深度范围为[h-g,h+g],h-g和h+g即为预设深度范围的边界。It should be noted that when using the bionic robotic fish for underwater operations, it is generally required that the bionic robotic fish can float up or dive to a preset depth, and cruise at a fixed depth within the preset depth range to complete the underwater operations. The preset depth range may be a depth range centered on the preset depth. Exemplarily, the bionic robot fish can be made to swim within the range of its own height. Suppose the preset depth is h, the height of the bionic robotic fish is g, and g≤h, then the preset depth range is [h-g, h+g], and h-g and h+g are the boundaries of the preset depth range.
示例性的,可以通过仿生机器鱼中的深度传感器实时检测仿生机器鱼的第一深度。利用惯性传感器实时检测仿生机器鱼在当前时刻的俯仰角。舵机驱动器的偏转角度即为胸鳍的偏转角度。Exemplarily, the first depth of the bionic robotic fish can be detected in real time by a depth sensor in the bionic robotic fish. Inertial sensors are used to detect the pitch angle of the bionic robotic fish in real time at the current moment. The deflection angle of the steering gear driver is the deflection angle of the pectoral fin.
在一个实施例中,当仿生机器鱼的第一深度不在预设深度范围内时,可以通过控制仿生机器鱼的尾鳍的摆动频率和摆动幅度,使得仿生机器鱼的运动速度为第一速度,第一速度为可以使仿生机器鱼获得较大的俯仰力矩的俯仰速度。In one embodiment, when the first depth of the bionic robotic fish is not within the preset depth range, the motion speed of the bionic robotic fish can be the first speed by controlling the swing frequency and swing amplitude of the caudal fin of the bionic robotic fish, and the second One speed is the pitching speed that can make the bionic robotic fish obtain a larger pitching moment.
具体地,当仿生机器鱼的第一深度不在预设深度范围内时,需要通过下潜运动或上浮运动使仿生机器鱼从第一深度向预设深度范围运动。尾鳍的摆动频率和摆动幅度会影响仿生机器鱼的运动速度,尾鳍周期性的摆动可以为仿生机器鱼提供推力。仿生机器鱼从第一深度向预设深度范围运动的过程中,仿生机器鱼的俯仰力矩的大小与胸鳍攻角以及运动速度有关,为了使仿生机器鱼在做俯仰运动的过程中产生较大的俯仰力矩,需使鱼体产生较快的俯仰速度。通过尾鳍和胸鳍的协同推进可以使仿生机器鱼快速地从第一深度向预设深度范围运动。因此,可以通过控制仿生机器鱼的尾鳍的摆动频率和摆动幅度,将仿生机器鱼的运动速度设为第一速度。示例性的,可以将仿生机器鱼的尾鳍的摆动频率和摆动幅度分别调节至最大值,使仿生机器鱼获得较大的俯仰速度。Specifically, when the first depth of the bionic robotic fish is not within the preset depth range, it is necessary to move the bionic robotic fish from the first depth to the preset depth range by diving or floating. The swing frequency and swing amplitude of the caudal fin will affect the movement speed of the bionic robotic fish, and the periodic swing of the caudal fin can provide thrust for the bionic robotic fish. During the movement of the bionic robotic fish from the first depth to the preset depth range, the pitching moment of the bionic robotic fish is related to the angle of attack of the pectoral fin and the movement speed. The pitching moment needs to make the fish body produce a faster pitching speed. The coordinated propulsion of the caudal fin and the pectoral fin can make the bionic robot fish quickly move from the first depth to the preset depth range. Therefore, the motion speed of the bionic robotic fish can be set to the first speed by controlling the swing frequency and swing amplitude of the tail fin of the bionic robotic fish. Exemplarily, the swing frequency and swing amplitude of the caudal fin of the bionic robotic fish can be adjusted to the maximum value, so that the bionic robotic fish can obtain a larger pitching speed.
S200,根据第一偏转角度和俯仰角确定仿生机器鱼在当前时刻的实际胸鳍攻角;根据第一深度与预设深度范围的相对位置关系,确定第一期望胸鳍攻角,第一期望胸鳍攻角用于使仿生机器鱼的俯仰力矩大于或等于第一阈值;根据实际胸鳍攻角和第一期望胸鳍攻角将第一偏转角度调节为第二偏转角度,以使仿生机器鱼向预设深度范围运动。S200. Determine the actual pectoral fin attack angle of the bionic robotic fish at the current moment according to the first deflection angle and pitch angle; determine the first expected pectoral fin attack angle according to the relative positional relationship between the first depth and the preset depth range, The angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold; adjust the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle, so that the bionic robotic fish moves to the preset depth. range of motion.
仿生机器鱼在水中运动的过程中俯仰姿态会随着水流等因素产生变化,仿生机器鱼在每一时刻的胸鳍攻角也会随俯仰角的变化而变化。根据第一偏转角度和俯仰角可以确定仿生机器鱼在当前时刻的实际胸鳍攻角,具体公式为:The pitch attitude of the bionic robotic fish will change with the current and other factors during the movement in the water, and the angle of attack of the bionic robotic fish's pectoral fins at each moment will also change with the change of the pitch angle. According to the first deflection angle and pitch angle, the actual pectoral fin attack angle of the bionic robotic fish at the current moment can be determined, and the specific formula is:
α c(t)=P 1(t-1)+θ(t) α c (t)=P 1 (t-1)+θ(t)
其中,α c(t)表示仿生机器鱼在当前时刻的实际胸鳍攻角;P 1(t-1)表示仿生机器鱼在上一时刻的第一偏转角度;θ(t)表示仿生机器鱼在当前时刻的俯仰角。在本申请实施例中,胸鳍攻角、偏转角度和俯仰角均为矢量。 Among them, α c (t) represents the actual pectoral fin attack angle of the bionic robotic fish at the current moment; P 1 (t-1) represents the first deflection angle of the bionic robotic fish at the previous moment; The pitch angle at the current moment. In the embodiment of the present application, the pectoral fin attack angle, deflection angle, and pitch angle are all vectors.
在一种可能的实现方式中,根据实际胸鳍攻角和第一期望胸鳍攻角将第一偏转角度调节为第二偏转角度的方法包括以下步骤:In a possible implementation, the method for adjusting the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle includes the following steps:
步骤一,确定实际胸鳍攻角和第一期望胸鳍攻角的胸鳍攻角误差与胸鳍攻角误差变化率。Step 1: Determine the pectoral fin angle of attack error and pectoral fin angle of attack error change rate between the actual pectoral fin attack angle and the first expected pectoral fin attack angle.
具体地,胸鳍攻角误差可以表示为:e α(t)=α 1c(t)。其中,e α(t)表示胸鳍攻角误差;α 1表示第一期望胸鳍攻角。 Specifically, the pectoral fin angle of attack error can be expressed as: e α (t)=α 1 −α c (t). Among them, e α (t) represents the pectoral fin angle of attack error; α 1 represents the first expected pectoral fin attack angle.
胸鳍攻角误差变化率ec α可以表示为:
Figure PCTCN2021137578-appb-000001
The pectoral fin angle of attack error change rate ec α can be expressed as:
Figure PCTCN2021137578-appb-000001
步骤二,利用预设的第一模糊控制表对胸鳍攻角误差和胸鳍攻角误差变化率进行模糊控制处理,得到实际控制增量。Step 2: Use the preset first fuzzy control table to perform fuzzy control processing on the pectoral fin angle of attack error and the rate of change of the pectoral fin angle of attack error to obtain the actual control increment.
在本申请实施例中,如图4所示,可以利用模糊控制方法对胸鳍攻角误差和胸鳍攻角误差变化率进行处理,得到实际控制增量。具体的方法如下:首先利用第一误差量化因子Ke 1和第一误差变化率量化因子Kec 1分别对胸鳍攻角误差e α和胸鳍攻角误差变化率ec α进行量化处理,得到量化胸鳍攻角误差E α和量化胸鳍攻角误差变化率EC α;然后根据量化胸鳍攻角误差E α和量化胸鳍攻角误差变化率EC α查询预设的第一模糊控制表,得到模糊控制增量U;利用重心法以及第一比例因子Ku 1对模糊控制增量U进行去模糊化处理,得到实际控制增量u。 In the embodiment of the present application, as shown in Fig. 4, the pectoral fin angle of attack error and the rate of change of the pectoral fin angle of attack error can be processed by using the fuzzy control method to obtain the actual control increment. The specific method is as follows: firstly, the pectoral fin angle of attack error e α and the pectoral fin angle of attack error change rate ec α are respectively quantified by using the first error quantization factor Ke 1 and the first error change rate quantization factor Kec 1 to obtain the quantified pectoral fin attack angle Error E α and quantitative pectoral fin angle of attack error rate of change EC α ; then query the preset first fuzzy control table according to the quantified pectoral fin angle of attack error E α and quantified pectoral fin angle of attack error rate of change EC α , and obtain the fuzzy control increment U; Use the center of gravity method and the first proportional factor Ku 1 to defuzzify the fuzzy control increment U to obtain the actual control increment u.
步骤三,根据实际控制增量u将第一偏转角度P 1调节为第二偏转角度P 2 Step 3, adjusting the first deflection angle P 1 to the second deflection angle P 2 according to the actual control increment u.
具体地,将实际控制增量u与仿生机器鱼在上一时刻的第一偏转角度P 1相加,得到第二偏转角度P 2Specifically, the actual control increment u is added to the first deflection angle P 1 of the bionic robotic fish at the last moment to obtain the second deflection angle P 2 .
基于图1所示的仿生机器鱼,处理器确定第二偏转角度后,可以向舵机控制器发送控制信号,使得舵机控制器的偏转角度调节为第二偏转角度,进而调节胸鳍的偏转角度,使得仿生机器鱼的实际胸鳍攻角接近第一期望胸鳍攻角,使得仿生机器鱼以最短路径从第一深度向预设深度范围运动。可以理解的是,最短路径应趋近于第一深度至预设深度范围之间的垂直距离。Based on the bionic robotic fish shown in Figure 1, after the processor determines the second deflection angle, it can send a control signal to the steering gear controller, so that the deflection angle of the steering gear controller can be adjusted to the second deflection angle, and then adjust the deflection angle of the pectoral fins , so that the actual pectoral fin attack angle of the bionic robotic fish is close to the first desired pectoral fin attack angle, so that the bionic robotic fish moves from the first depth to the preset depth range in the shortest path. It can be understood that the shortest path should be close to the vertical distance between the first depth and the preset depth range.
在一个实施例中,若仿生机器鱼的第一深度小于预设深度范围的最小值,则说明仿生机器鱼需要从第一深度下潜运动至预设深度范围。此时,第一期望胸鳍攻角用于使仿生机器鱼产生俯力矩,且俯力矩需大于或者等于第一阈值,第一模糊控制表应为用于控制仿生机器鱼进行下潜运动的下 潜模糊控制表。In one embodiment, if the first depth of the bionic robotic fish is less than the minimum value of the preset depth range, it means that the bionic robotic fish needs to dive from the first depth to the preset depth range. At this time, the first expected pectoral fin attack angle is used to make the bionic robotic fish generate a pitching moment, and the pitching moment must be greater than or equal to the first threshold, and the first fuzzy control table should be the dive Fuzzy control table.
在另一个实施例中,若仿生机器鱼的第一深度大于预设深度范围的最大值,则说明仿生机器鱼需要从第一深度上浮运动至预设深度范围。此时,第一期望胸鳍攻角用于使仿生机器鱼产生仰力矩,且仰力矩需大于或者等于第一阈值,第一模糊控制表应为用于控制仿生机器鱼进行上浮运动的上浮模糊控制表。In another embodiment, if the first depth of the bionic robotic fish is greater than the maximum value of the preset depth range, it means that the bionic robotic fish needs to float up from the first depth to the preset depth range. At this time, the first expected pectoral fin attack angle is used to make the bionic robotic fish generate the upward moment, and the upward moment must be greater than or equal to the first threshold value, and the first fuzzy control table should be the fuzzy control for floating up for controlling the bionic robotic fish to perform upward movement surface.
作为示例而非限定,通过试验和仿真分析发现,仿真机器鱼的升力和阻力会随着攻角的变化而变化,升力远大于阻力时,会使仿真机器鱼产生较大的俯仰力矩,从而使得仿生机器鱼快速进行上浮运动和下潜运动,因此,第一阈值可以设置为仿生机器鱼产生的最大的俯仰力矩值,也可以是一个略微小于仿生机器鱼产生的最大的俯仰力矩值的数值。示例性的,基于本申请图1所示的仿真机器鱼,仿真机器鱼在水中运动时,仿真机器鱼的胸鳍攻角的绝对值在1度至15度之间,仿真机器鱼的升力会随绝对值的增大而增大,阻力会随绝对值的增大而基本保持不变;胸鳍攻角的绝对值大于15度时,仿真机器鱼的升力会随绝对值的增大而减小,阻力会随绝对值的增大而增大。因此,胸鳍攻角的绝对值为15度时,仿生机器鱼可以产生最大的俯仰力矩。As an example and not a limitation, through experiments and simulation analysis, it is found that the lift and drag of the simulated robotic fish will change with the change of the angle of attack. The bionic robotic fish quickly moves up and down. Therefore, the first threshold can be set to the maximum pitching moment value generated by the bionic robotic fish, or a value slightly smaller than the maximum pitching moment value generated by the bionic robotic fish. Exemplarily, based on the simulated robotic fish shown in Figure 1 of the present application, when the simulated robotic fish moves in water, the absolute value of the angle of attack of the pectoral fin of the simulated robotic fish is between 1 degree and 15 degrees, and the lift of the simulated robotic fish will vary with The increase of the absolute value increases, and the resistance will basically remain unchanged with the increase of the absolute value; when the absolute value of the pectoral fin attack angle is greater than 15 degrees, the lift of the simulated robotic fish will decrease with the increase of the absolute value. The resistance will increase as the absolute value increases. Therefore, when the absolute value of the pectoral fin attack angle is 15 degrees, the biomimetic robotic fish can generate the maximum pitching moment.
在另一种可能实现的方式中,当仿生机器鱼从第一深度运动到预设深度范围的边界时,需要将仿生机器鱼的俯仰角逐渐调整为0度,使得仿生机器鱼的鱼体与水流方向平行。在预设深度范围内,仿生机器鱼的鱼体调整为水平状态后,就可以利用尾鳍产生的推力以及通过胸鳍的的偏转角度,使仿生机器鱼在预设深度范围内定深巡游。因此,在上述步骤S200之后,本申请提供的仿生机器鱼控制方法还包括步骤S300,具体如下:In another possible implementation, when the bionic robotic fish moves from the first depth to the boundary of the preset depth range, the pitch angle of the bionic robotic fish needs to be gradually adjusted to 0 degrees, so that the fish body of the bionic robotic fish is in line with the The flow direction is parallel. Within the preset depth range, after the fish body of the bionic robotic fish is adjusted to a horizontal state, the thrust generated by the tail fin and the deflection angle of the pectoral fin can be used to make the bionic robotic fish swim at a fixed depth within the preset depth range. Therefore, after the above step S200, the bionic robotic fish control method provided by the present application also includes step S300, specifically as follows:
S300,当仿生机器鱼从第一深度运动至预设深度范围的边界时,将第一期望胸鳍攻角和胸鳍的第三偏转角度均调节为0;之后,仿生机器鱼在预设深度范围内运动期间,根据仿生机器鱼在当前时刻的第二深度和预设深度调节胸鳍在当前时刻的第四偏转角度,预设深度在预设深度范围内。S300, when the bionic robotic fish moves from the first depth to the boundary of the preset depth range, adjust both the first expected pectoral fin attack angle and the third pectoral fin deflection angle to 0; after that, the bionic robotic fish is within the preset depth range During the movement, the fourth deflection angle of the pectoral fin at the current moment is adjusted according to the second depth of the bionic robotic fish at the current moment and the preset depth, and the preset depth is within the preset depth range.
在一个实施例中,当第一次检测到仿生机器鱼从第一深度运动到预设深度范围边界值时,可以将第一期望胸鳍攻角调节为第二期望胸鳍攻角;根据第二期望胸鳍攻角和仿生机器鱼在每一时刻的俯仰角,确定胸鳍在对 应时刻的第三偏转角度。直至仿生机器鱼的俯仰角为0时,将第三偏转角度也调节为0。In one embodiment, when it is detected for the first time that the bionic robotic fish moves from the first depth to the boundary value of the preset depth range, the first expected pectoral fin attack angle can be adjusted to the second expected pectoral fin attack angle; according to the second expected The angle of attack of the pectoral fin and the pitch angle of the bionic robotic fish at each moment determine the third deflection angle of the pectoral fin at the corresponding moment. Until the pitch angle of the bionic robotic fish is 0, the third deflection angle is also adjusted to 0.
根据第二期望胸鳍攻角α 2和仿生机器鱼在每一时刻的俯仰角θ(t),确定胸鳍在对应时刻的第三偏转角度P 3(t),可以表示为:α 2=P 3(t)-θ(t)。 According to the second expected pectoral fin attack angle α 2 and the pitch angle θ(t) of the bionic robotic fish at each moment, determine the third deflection angle P 3 (t) of the pectoral fin at the corresponding moment, which can be expressed as: α 2 =P 3 (t)-theta(t).
其中,第二期望胸鳍攻角用于使仿生机器鱼在预设深度范围内将仿生机器鱼的俯仰角调节为0度。Wherein, the second expected pectoral fin attack angle is used to make the bionic robotic fish adjust the pitch angle of the bionic robotic fish to 0 degree within a preset depth range.
在一个示例中,假设仿生机器鱼在第一深度正水平悬浮于水中游动,现需仿生机器鱼从第一深度下潜运动至预设深度范围,可以将第一期望胸鳍攻角设为-15度,使得仿生机器鱼产生最大的俯力矩。那么,在下潜前可以首先将胸鳍的偏转角度调整为第一期望胸鳍攻角-15度,使仿生机器鱼向下俯冲。在下潜的过程中,利用本申请提供的步骤S100和S200实时调整胸鳍的偏转角度,使得仿生机器鱼一直以第一期望胸鳍攻角-15度进行下潜运动。当仿生机器鱼从第一深度下潜运动至预设深度范围的最小值时,将第一期望胸鳍攻角-15度调节为第二期望胸鳍攻角+10度。In one example, assuming that the bionic robotic fish is suspended and swimming horizontally in the water at the first depth, and now the bionic robotic fish needs to dive from the first depth to a preset depth range, the first expected pectoral fin attack angle can be set as - 15 degrees, so that the bionic robotic fish can produce the maximum bending moment. Then, before diving, the deflection angle of the pectoral fin can be adjusted to the first expected pectoral fin angle of attack -15 degrees, so that the bionic robotic fish dives downward. During the diving process, the deflection angle of the pectoral fins is adjusted in real time by using the steps S100 and S200 provided by the present application, so that the bionic robotic fish always dives at the first desired pectoral fin attack angle of -15 degrees. When the bionic robotic fish dives from the first depth to the minimum value of the preset depth range, the first expected pectoral fin attack angle -15 degrees is adjusted to the second expected pectoral fin attack angle +10 degrees.
在另一个实施例中,当仿生机器鱼从第一深度下潜至预设深度范围的最大值时,则利用本申请提供的步骤S300使仿生机器鱼的俯仰角调整为0度后,将胸鳍的偏转角度调为0,并将第二期望胸鳍攻角调节为第三期望胸鳍攻角,第三期望胸鳍攻角为0。第三期望胸鳍攻角用于使仿生机器鱼在预设深度范围内运动,以实现定深巡游。仿生机器鱼在预设深度范围内运动期间,获取仿生机器鱼在当前时刻的深度,根据当前时刻的深度和预设深度并利用模糊控制算法确定仿生机器鱼在当前时刻的第四偏转角度。In another embodiment, when the bionic robotic fish dives from the first depth to the maximum value of the preset depth range, step S300 provided in this application is used to adjust the pitch angle of the bionic robotic fish to 0 degrees, and then the pectoral fins are adjusted to 0 degrees. The deflection angle of is adjusted to 0, and the second expected pectoral fin attack angle is adjusted to the third expected pectoral fin attack angle, and the third expected pectoral fin attack angle is 0. The third expected pectoral fin attack angle is used to make the bionic robotic fish move within a preset depth range, so as to realize constant depth cruise. During the movement of the bionic robotic fish within the preset depth range, the depth of the bionic robotic fish at the current moment is obtained, and the fourth deflection angle of the bionic robotic fish at the current moment is determined according to the depth at the current moment and the preset depth using a fuzzy control algorithm.
需要说明的是,当仿生机器鱼的胸鳍攻角为0时才不会产生俯仰力矩,仅依靠尾鳍摆动产生的推力使得仿生机器鱼在预设深度范围内巡游。因此,当仿生机器鱼的俯仰角为0度时,说明鱼体为水平姿态,此时需要将胸鳍的偏转角度调为0度,并将第二期望胸鳍攻角调节为0度。It should be noted that when the angle of attack of the pectoral fin of the bionic robotic fish is 0, no pitching moment will be generated, and only relying on the thrust generated by the swing of the tail fin makes the bionic robotic fish cruise within the preset depth range. Therefore, when the pitch angle of the bionic robotic fish is 0 degrees, it means that the fish body is in a horizontal posture. At this time, the deflection angle of the pectoral fins needs to be adjusted to 0 degrees, and the second expected pectoral fin attack angle is adjusted to 0 degrees.
作为示例而非限定,在仿生机器鱼定深巡游的过程中,可以通过减小尾鳍的摆动频率和摆动幅度,使仿生机器鱼的运动速度从第一运动速度降低为第二运动速度。第二运动速度是在仿生机器鱼的供电量有限的情况下为使仿生机器鱼的巡游路程更远而计算的巡游速度。As an example and not a limitation, during the depth-fixed cruise of the bionic robotic fish, the movement speed of the bionic robotic fish can be reduced from the first movement speed to the second movement speed by reducing the swing frequency and swing amplitude of the caudal fin. The second movement speed is the cruising speed calculated to make the cruising distance of the bionic robotic fish longer when the power supply of the bionic robotic fish is limited.
在一个实施例中,根据仿生机器鱼在当前时刻的第二深度和预设深度 确定仿生机器鱼在当前时刻的第四偏转角度,包括以下步骤:In one embodiment, determining the fourth deflection angle of the bionic robotic fish at the current moment according to the second depth and the preset depth of the bionic robotic fish at the current moment may include the following steps:
步骤一,确定第二深度和预设深度的深度误差与深度误差变化率。 Step 1, determining the depth error and depth error change rate of the second depth and the preset depth.
具体地,深度误差可以表示为:e h(t)=h-h c(t)。其中,e h(t)表示仿生机器鱼在当前时刻的深度误差;h表示预设深度;h c(t)表示仿生机器鱼在当前时刻的第二深度。 Specifically, the depth error can be expressed as: e h (t)=hh c (t). Among them, e h (t) represents the depth error of the bionic robotic fish at the current moment; h represents the preset depth; h c (t) represents the second depth of the bionic robotic fish at the current moment.
深度误差变化率ec h可以表示为:
Figure PCTCN2021137578-appb-000002
The rate of change of depth error ec h can be expressed as:
Figure PCTCN2021137578-appb-000002
步骤二,利用预设的第二模糊控制表对深度误差和深度误差变化率进行模糊控制处理,得到仿生机器鱼在当前时刻的第四偏转角度。 Step 2, using the preset second fuzzy control table to perform fuzzy control processing on the depth error and the rate of change of the depth error to obtain the fourth deflection angle of the bionic robotic fish at the current moment.
在本申请实施例中,如图5所示,可以利用模糊控制算法对深度误差和所述深度误差变化率进行处理,确定当前时刻胸鳍的第四偏转角度。具体的实现方式如下:首先利用第二误差量化因子Ke 2和第二误差变化率量化因子Kec 2分别对深度误差e h和深度误差变化率ec h进行模糊化处理(也可以称为量化处理),得到量化深度误差E h和量化深度误差变化率EC h;然后根据量化深度误差E h和量化深度误差变化率EC h查询预设的第二模糊控制表,得到模糊控制量A;利用重心法以及第二比例因子Ku 2对模糊控制量A进行去模糊化处理,得到实际控制量a。实际控制量a即为仿生机器鱼的胸鳍在当前时刻的第四偏转角度P 4In the embodiment of the present application, as shown in FIG. 5 , a fuzzy control algorithm may be used to process the depth error and the rate of change of the depth error to determine the fourth deflection angle of the pectoral fin at the current moment. The specific implementation method is as follows: first, the second error quantization factor Ke 2 and the second error change rate quantization factor Kec 2 are used to fuzzify the depth error e h and the depth error change rate ec h respectively (also called quantization processing) , to obtain the quantized depth error E h and the rate of change of the quantized depth error EC h ; then query the preset second fuzzy control table according to the quantized depth error E h and the rate of change of the quantized depth error EC h to obtain the fuzzy control quantity A; use the center of gravity method And the second proportional factor Ku 2 performs defuzzification processing on the fuzzy control variable A to obtain the actual control variable a. The actual control amount a is the fourth deflection angle P 4 of the pectoral fin of the bionic robotic fish at the current moment.
需要说明的是,第二模糊控制表为用于使仿生机器鱼可以在预设深度范围内定深巡游的定深巡游模糊控制表。It should be noted that the second fuzzy control table is a fuzzy control table for depth-fixed cruising for the bionic robotic fish within a preset depth range.
基于图1所示的仿生机器鱼,处理器确定实际控制量a后,可以根据实际控制量a确定控制信号的脉宽,并向舵机控制器发送控制信号,使得舵机控制器的偏转角度调节为第四偏转角度,进而调节胸鳍的偏转角度,使得仿生机器鱼的实际胸鳍攻角接近0度。若a>0,则仿生机器鱼上升;如a<0,则仿生机器鱼下潜,通过上浮下潜过程,可以使仿生机器鱼在预设深度范围内运动,进而使仿生机器鱼可以在预设深度保持定深巡航。Based on the bionic robotic fish shown in Figure 1, after the processor determines the actual control quantity a, it can determine the pulse width of the control signal according to the actual control quantity a, and send the control signal to the steering gear controller, so that the deflection angle of the steering gear controller Adjust to the fourth deflection angle, and then adjust the deflection angle of the pectoral fin, so that the actual angle of attack of the pectoral fin of the bionic robotic fish is close to 0 degrees. If a>0, the bionic robotic fish will ascend; if a<0, the bionic robotic fish will dive. Through the process of floating up and down, the bionic robotic fish can move within the preset depth range, and then the bionic robotic fish can move in the preset depth range. Set depth to maintain constant depth cruise.
下面对本申请实施例中的第一模糊控制表以及第二模糊控制表的制定方法进行详细的介绍。The method for formulating the first fuzzy control table and the second fuzzy control table in the embodiment of the present application will be described in detail below.
以第一模糊控制表为下潜模糊控制表为例,对第一模糊控制表的设计方法进行示例性的说明。通过仿真和实验经验,将胸鳍攻角误差e α的论域 设为[-3,3]度,胸鳍攻角误差变化率ec α的论域设为[-6,6]度/s,实际控制增量u的论域设为[-3,3]度。在下潜运动中,以仿生机器鱼快速接近预设深度范围为目的,在模糊化的过程中将量化胸鳍攻角误差E α、量化胸鳍攻角误差变化率EC α和模糊控制增量U均分为7个量化等级,即取变量的模糊子集论域为{-3,-2,-1,0,1,2,3},相应的第一误差量化因子Ke 1=n/e α(max)=3/3=1,第一误差变化率量化因子Kec 1=n/ec α(max)=3/6=0.5,第一比例因子Ku 1=u(max)/3=3/3=1。 Taking the first fuzzy control table as a submerged fuzzy control table as an example, the design method of the first fuzzy control table is exemplarily described. Through simulation and experimental experience, the universe of pectoral fin angle of attack error e α is set to [-3,3] degrees, and the universe of pectoral fin angle of attack error change rate ec α is set to [-6,6] degrees/s. The domain of discourse controlling the increment u is set to [-3,3] degrees. In the dive movement, with the purpose of the bionic robotic fish quickly approaching the preset depth range, the quantized pectoral fin angle of attack error E α , the quantified pectoral fin angle of attack error change rate EC α and the fuzzy control increment U are equally divided into There are 7 quantization levels, that is, the fuzzy subset universe of variables is {-3, -2, -1, 0, 1, 2, 3}, and the corresponding first error quantization factor Ke 1 =n/e α ( max)=3/3=1, the first error change rate quantization factor Kec 1 =n/ec α (max)=3/6=0.5, the first scaling factor Ku 1 =u(max)/3=3/3 =1.
此外,将E α、EC α和U均分为7个模糊状态,由语言变量负大(NB)、负中(NM)、负小(NS)、零(ZE)、正小(PS)、正中(PM)、正大(PB)分别表示。确定语言值隶属度函数,对上面各语言给定其模糊化的隶属度函数,这里各语言值的隶属函数采用三角函数。在模糊推理过程中,采用Mamdani极大极小法进行推理,得出一组由49条模糊条件语句构成的控制规则,根据控制规则建立下潜模糊控制规则表。下潜模糊控制规则表如图6所示,基于图6所示的下潜模糊控制规则表设计的下潜模糊控制表如图7所示。 In addition, E α , EC α and U are equally divided into 7 fuzzy states, which are composed of linguistic variables Negative Big (NB), Negative Medium (NM), Negative Small (NS), Zero (ZE), Positive Small (PS), Median (PM) and Zhengda (PB) are respectively indicated. Determine the membership function of the language value, and give the fuzzy membership function for each of the above languages. Here, the membership function of each language value adopts a trigonometric function. In the process of fuzzy reasoning, the Mamdani maximin method is used for reasoning, and a set of control rules consisting of 49 fuzzy conditional statements is obtained, and the submerged fuzzy control rule table is established according to the control rules. The dive fuzzy control rule table is shown in Figure 6, and the dive fuzzy control table designed based on the dive fuzzy control rule table shown in Figure 6 is shown in Figure 7.
上浮模糊控制表的设计方法与下潜模糊控制表的设计方法相同。只是上浮模糊控制规则表与下潜模糊控制规则表的部署方式相反。上浮模糊控制规则表如图8所示,基于图8所示的上浮模糊控制规则表设计的上浮模糊控制表如图9所示。上浮模糊控制表中U的数值与下潜模糊控制表中U的数值互为相反数。The design method of the floating fuzzy control table is the same as that of the diving fuzzy control table. It's just that the deployment method of the floating fuzzy control rule table is opposite to that of the submerged fuzzy control rule table. The floating fuzzy control rule table is shown in Figure 8, and the floating fuzzy control table designed based on the floating fuzzy control rule table shown in Figure 8 is shown in Figure 9. The value of U in the floating fuzzy control table is opposite to the value of U in the submerged fuzzy control table.
在定深巡游阶段,通过仿真和实验经验,将深度误差变化率ec h的论域设为[-6,6]cm/s,实际控制量a的论域设为[-6,6]度。为了在定深巡游阶段保持较高的精度,模糊化的过程将量化深度误差E h、量化深度误差变化率EC h和模糊控制量A均分为13个量化等级,即取变量的模糊子集论域为{-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6},第二误差量化因子Ke 2=n/e h(max)=6/18=1/3,第二误差变化率量化因子Kec 2=n/ec h(max)=6/6=1,第二比例因子Ku 2=a(max)/6=6/6=1。 In the depth-fixed cruising stage, through simulation and experimental experience, the discourse domain of the depth error change rate ec h is set to [-6,6] cm/s, and the discourse domain of the actual control variable a is set to [-6,6] degrees . In order to maintain a high precision in the fixed-depth cruise stage, the fuzzification process divides the quantization depth error E h , the quantization depth error change rate EC h and the fuzzy control amount A into 13 quantization levels, that is, the fuzzy subset of variables is taken The domain of discourse is {-6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6}, the second error quantization factor Ke 2 =n/e h ( max)=6/18=1/3, the second error change rate quantization factor Kec 2 =n/ec h (max)=6/6=1, the second scaling factor Ku 2 =a(max)/6=6 /6=1.
此外,将E h、EC h和A均分为7个模糊状态,由语言变量负大(NB)、负中(NM)、负小(NS)、零(ZE)、正小(PS)、正中(PM)、正大(PB)分别表示。确定语言值隶属度函数,对上面各语言给定其模糊化的隶 属度函数,这里各语言值的隶属函数采用三角函数。在模糊推理过程中,采用Mamdani极大极小法进行推理,定深巡游模糊控制规则表如图10所示,基于图10所示的定深巡游模糊控制规则表设计的定深巡游模糊控制表如图11所示。 In addition, E h , EC h and A are equally divided into 7 fuzzy states, which are composed of linguistic variables negative large (NB), negative medium (NM), negative small (NS), zero (ZE), positive small (PS), Median (PM) and Zhengda (PB) are respectively indicated. Determine the membership function of the language value, and give the fuzzy membership function for each of the above languages. Here, the membership function of each language value adopts a trigonometric function. In the process of fuzzy reasoning, the Mamdani maxima-minimum method is used for reasoning. The fuzzy control rule table for fixed-depth cruise is shown in Figure 10. The fuzzy control table for fixed-depth cruise is designed based on the fuzzy control rule table for fixed-depth cruise As shown in Figure 11.
本申请提供的基于攻角法的仿生机器鱼定深控制方法利用实际胸鳍攻角和第一期望胸鳍攻角可以对第一偏转角度进行实时调节,以调整仿生机器鱼的俯仰角以及运动方向,进而对实际胸鳍攻角进行调节使其趋近于第一期望胸鳍攻角,使得仿生机器鱼可以产生较大的俯仰力矩,并以最短路径从第一深度向预设深度范围运动,从而缩短仿生机器鱼到达预设深度范围的时间。此外,利用模糊控制算法在处理非线性控制和不确定性方面的优势,对上浮运动和下潜运动中对实际胸鳍攻角和第一期望胸鳍攻角之间的胸鳍攻角误差和胸鳍攻角误差变化率进行模糊控制处理得到实际控制增量,以对第一偏转角度进行实时调节。并在定深巡游阶段,对当前攻深度和预设深度之间的深度误差和深度差变化率进行模糊控制处理得到实际控制量,使得仿生机器人在预设深度范围内巡游,以提高仿生机器鱼定深控制的实时性以及准确度。The bionic robotic fish depth control method based on the angle of attack method provided by this application can adjust the first deflection angle in real time by using the actual pectoral fin attack angle and the first expected pectoral fin attack angle to adjust the pitch angle and movement direction of the bionic robotic fish. Then adjust the actual pectoral fin attack angle to make it close to the first desired pectoral fin attack angle, so that the bionic robot fish can generate a larger pitching moment and move from the first depth to the preset depth range in the shortest path, thereby shortening the bionic robotic fish. The time it takes for the robot fish to reach the preset depth range. In addition, using the advantages of fuzzy control algorithm in dealing with nonlinear control and uncertainty, the pectoral fin angle of attack error between the actual pectoral fin angle of attack and the first expected pectoral fin angle of attack and the pectoral fin angle of attack The error change rate is processed by fuzzy control to obtain the actual control increment, so as to adjust the first deflection angle in real time. And in the fixed-depth cruising stage, fuzzy control is performed on the depth error and depth difference change rate between the current attack depth and the preset depth to obtain the actual control amount, so that the bionic robot can cruise within the preset depth range to improve the bionic robotic fish. Real-time and accuracy of depth control.
如图12所示,基于同一发明构思,本申请实施例还提供了一种基于攻角法的仿生机器鱼定深控制装置。定深控制装置400包括获取单元401和控制单元402。As shown in Fig. 12, based on the same inventive concept, the embodiment of the present application also provides a bionic robot fish depth-fixing control device based on the angle of attack method. The fixed depth control device 400 includes an acquisition unit 401 and a control unit 402 .
其中,获取单元401用于当仿生机器鱼在当前时刻的第一深度不在预设深度范围内时,获取仿生机器鱼在当前时刻的俯仰角,以及仿生机器鱼的胸鳍在上一时刻的第一偏转角度。Wherein, the acquiring unit 401 is used to acquire the pitch angle of the bionic robotic fish at the current moment and the first depth of the pectoral fin of the bionic robotic fish at the previous moment when the first depth of the bionic robotic fish at the current moment is not within the preset depth range. deflection angle.
控制单元402用于根据第一偏转角度和俯仰角确定仿生机器鱼在当前时刻的实际胸鳍攻角,根据第一深度与预设深度范围的相对位置关系,确定第一期望胸鳍攻角,第一期望胸鳍攻角用于使仿生机器鱼的俯仰力矩大于或等于第一阈值,根据实际胸鳍攻角和第一期望胸鳍攻角将第一偏转角度调节为第二偏转角度,以使仿生机器鱼向预设深度范围运动;当仿生机器鱼从第一深度运动至预设深度范围的边界时,将第一期望胸鳍攻角和胸鳍的第三偏转角度均调节为0,之后,仿生机器鱼在预设深度范围内运动期间,根据仿生机器鱼在当前时刻的第二深度和预设深度调节胸鳍在当前时 刻的第四偏转角度,预设深度在预设深度范围内。The control unit 402 is used to determine the actual pectoral fin attack angle of the bionic robotic fish at the current moment according to the first deflection angle and pitch angle, and determine the first expected pectoral fin attack angle according to the relative positional relationship between the first depth and the preset depth range. The expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, and the first deflection angle is adjusted to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle, so that the bionic robotic fish will Preset depth range movement; when the bionic robotic fish moves from the first depth to the boundary of the preset depth range, both the first expected pectoral fin attack angle and the third pectoral fin deflection angle are adjusted to 0, and then the bionic robotic fish During movement within the preset depth range, the fourth deflection angle of the pectoral fins at the current moment is adjusted according to the second depth of the bionic robotic fish at the current moment and the preset depth, and the preset depth is within the preset depth range.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述装置400中各个单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of each unit in the above-mentioned apparatus 400, reference may be made to the corresponding process in the foregoing method embodiment, and details are not repeated here.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的定深控制方法。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the depth-fixing control method described in the foregoing method embodiments is implemented.
本申请实施例还提供一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现上述方法实施例所述的定深控制方法。An embodiment of the present application further provides a computer program product, which, when the computer program product is run on a terminal device, enables the terminal device to implement the depth-fixing control method described in the foregoing method embodiments when executed.
在本申请中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in this application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
在本申请的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。In the description of the present application, it should be understood that the terms "first" and "second" are used for description purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features.
此外,在本申请中,除非另有明确的规定和限定,术语“连接”、“相连”等应做广义理解,例如可以是机械连接,也可以是电连接;可以是直 接连接,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定、对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In addition, in this application, unless otherwise clearly stipulated and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be mechanical connection or electrical connection; it can be direct connection or through An intermediate medium is indirectly connected, which can be the internal communication of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, those of ordinary skill in the art can understand the above terms in this application according to the specific situation. specific meaning.
以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be applied to the foregoing embodiments The technical solutions described in the examples are modified, or some or all of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the application.

Claims (10)

  1. 一种基于攻角法的仿生机器鱼定深控制方法,其特征在于,所述方法包括:A method for controlling the depth of a bionic robotic fish based on an angle of attack method, characterized in that the method comprises:
    当仿生机器鱼在当前时刻的第一深度不在预设深度范围内时,获取所述仿生机器鱼在所述当前时刻的俯仰角,以及所述仿生机器鱼的胸鳍在上一时刻的第一偏转角度;When the first depth of the bionic robotic fish at the current moment is not within the preset depth range, obtain the pitch angle of the bionic robotic fish at the current moment, and the first deflection of the pectoral fin of the bionic robotic fish at the previous moment angle;
    根据所述第一偏转角度和所述俯仰角确定所述仿生机器鱼在所述当前时刻的实际胸鳍攻角,根据所述第一深度与所述预设深度范围的相对位置关系,确定第一期望胸鳍攻角,所述第一期望胸鳍攻角用于使所述仿生机器鱼的俯仰力矩大于或等于第一阈值,根据所述实际胸鳍攻角和所述第一期望胸鳍攻角将所述第一偏转角度调节为第二偏转角度,以使所述仿生机器鱼向所述预设深度范围运动;Determine the actual pectoral fin attack angle of the bionic robotic fish at the current moment according to the first deflection angle and the pitch angle, and determine the first pectoral fin attack angle according to the relative positional relationship between the first depth and the preset depth range. Expected pectoral fin attack angle, the first expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to a first threshold value, and the adjusting the first deflection angle to a second deflection angle, so that the bionic robotic fish moves to the preset depth range;
    当所述仿生机器鱼从所述第一深度运动至所述预设深度范围的边界时,将所述第一期望胸鳍攻角和所述胸鳍的第三偏转角度均调节为0,之后,所述仿生机器鱼在所述预设深度范围内运动期间,根据所述仿生机器鱼在当前时刻的第二深度和预设深度调节所述胸鳍在当前时刻的第四偏转角度,所述预设深度在所述预设深度范围内。When the bionic robotic fish moves from the first depth to the boundary of the preset depth range, both the first expected pectoral fin attack angle and the third pectoral fin deflection angle are adjusted to 0, after that, the During the movement of the bionic robotic fish within the preset depth range, adjust the fourth deflection angle of the pectoral fin at the current moment according to the second depth of the bionic robotic fish at the current moment and the preset depth, the preset depth within the preset depth range.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述实际胸鳍攻角和所述第一期望胸鳍攻角将所述第一偏转角度调节为第二偏转角度,包括:The method according to claim 1, wherein the adjusting the first deflection angle to a second deflection angle according to the actual pectoral fin angle of attack and the first desired pectoral fin attack angle comprises:
    确定所述实际胸鳍攻角和所述第一期望胸鳍攻角的胸鳍攻角误差与胸鳍攻角误差变化率;determining the pectoral fin angle of attack error and pectoral fin angle of attack error rate of change of the actual pectoral fin angle of attack and the first desired pectoral fin angle of attack;
    利用与所述相对位置关系对应的预设的第一模糊控制表对所述胸鳍攻角误差和所述胸鳍攻角误差变化率进行模糊控制处理,得到实际控制增量;performing fuzzy control processing on the pectoral fin angle of attack error and the rate of change of the pectoral fin angle of attack error by using the preset first fuzzy control table corresponding to the relative positional relationship to obtain an actual control increment;
    根据所述实际控制增量将所述第一偏转角度调节为第二偏转角度。The first deflection angle is adjusted to a second deflection angle according to the actual control increment.
  3. 根据权利要求2所述的方法,其特征在于,所述俯仰力矩包括俯力矩和仰力矩;The method according to claim 2, wherein the pitching moment comprises a pitching moment and a pitching moment;
    若所述第一深度小于所述预设深度范围的最小值,则所述第一期望胸鳍攻角用于使所述仿生机器鱼的所述俯力矩大于或者等于所述第一阈值,所述第一模糊控制表为用于控制所述仿生机器鱼进行下潜运动的下潜模糊控制表;If the first depth is less than the minimum value of the preset depth range, the first expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, the The first fuzzy control table is a diving fuzzy control table used to control the bionic robotic fish to dive;
    若所述第一深度大于所述预设深度范围的最大值,则所述第一期望胸鳍攻角用于使所述仿生机器鱼的所述仰力矩大于或者等于所述第一阈值,所述第一模糊控制表为用于控制所述仿生机器鱼进行上浮运动的上浮模糊控制表。If the first depth is greater than the maximum value of the preset depth range, the first expected pectoral fin attack angle is used to make the pitch moment of the bionic robotic fish greater than or equal to the first threshold, the The first fuzzy control table is a floating fuzzy control table used for controlling the floating movement of the bionic robotic fish.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述仿生机器鱼在当前时刻的第二深度和预设深度调节所述胸鳍在当前时刻的第四偏转角度,包括:The method according to claim 1, wherein the adjusting the fourth deflection angle of the pectoral fin at the current moment according to the second depth and the preset depth of the bionic robotic fish at the current moment comprises:
    确定所述仿生机器鱼在当前时刻的第二深度和预设深度的深度误差与深度误差变化率;Determining the depth error and depth error change rate of the second depth and the preset depth of the bionic robotic fish at the current moment;
    利用预设的第二模糊控制表对所述深度误差和所述深度误差变化率进行模糊控制处理,得到所述胸鳍在当前时刻的第四偏转角度。The second preset fuzzy control table is used to perform fuzzy control processing on the depth error and the change rate of the depth error to obtain a fourth deflection angle of the pectoral fin at the current moment.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述仿生机器鱼从所述第一深度向所述预设深度范围运动期间,调节所述仿生机器鱼的尾鳍的摆动频率和摆动幅度,将所述仿生机器鱼的运动速度设为第一速度;During the movement of the bionic robotic fish from the first depth to the preset depth range, adjust the swing frequency and swing amplitude of the tail fin of the bionic robotic fish, and set the moving speed of the bionic robotic fish to the first speed ;
    所述仿生机器鱼在所述预设深度范围内运动期间,将所述第一速度调节为第二速度,所述第二速度小于所述第一速度。During the movement of the bionic robotic fish within the preset depth range, the first speed is adjusted to a second speed, and the second speed is lower than the first speed.
  6. 一种基于攻角法的仿生机器鱼定深控制装置,其特征在于,所述装置包括:A bionic robotic fish depth-fixing control device based on the angle of attack method, characterized in that the device comprises:
    获取单元,用于当仿生机器鱼在当前时刻的第一深度不在预设深度范围内时,获取所述仿生机器鱼在所述当前时刻的俯仰角,以及所述仿生机器鱼的胸鳍在上一时刻的第一偏转角度;The acquiring unit is used to acquire the pitch angle of the bionic robotic fish at the current moment when the first depth of the bionic robotic fish at the current moment is not within the preset depth range, and the position of the pectoral fin of the bionic robotic fish at the previous The first deflection angle at time;
    控制单元,用于根据所述第一偏转角度和所述俯仰角确定所述仿生机器鱼在所述当前时刻的实际胸鳍攻角,根据所述第一深度与所述预设深度范围的相对位置关系,确定第一期望胸鳍攻角,所述第一期望胸鳍攻角用于使所述仿生机器鱼的俯仰力矩大于或等于第一阈值,根据所述实际胸鳍攻角和所述第一期望胸鳍攻角将所述第一偏转角度调节为第二偏转角度,以使所述仿生机器鱼向所述预设深度范围运动;当所述仿生机器鱼从所述第一深度运动至所述预设深度范围的边界时,将所述第一期望胸鳍攻角和 所述胸鳍的第三偏转角度均调节为0,之后,所述仿生机器鱼在所述预设深度范围内运动期间,根据所述仿生机器鱼在当前时刻的第二深度和预设深度调节所述胸鳍在当前时刻的第四偏转角度,所述预设深度在所述预设深度范围内。A control unit, configured to determine the actual pectoral fin attack angle of the bionic robotic fish at the current moment according to the first deflection angle and the pitch angle, and according to the relative position between the first depth and the preset depth range relationship, determine the first expected pectoral fin attack angle, the first expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle The angle of attack adjusts the first deflection angle to a second deflection angle, so that the bionic robotic fish moves to the preset depth range; when the bionic robotic fish moves from the first depth to the preset At the boundary of the depth range, both the first expected angle of attack of the pectoral fin and the third deflection angle of the pectoral fin are adjusted to 0, and then, during the movement of the bionic robotic fish within the preset depth range, according to the The second depth of the bionic robotic fish at the current moment and the preset depth adjust the fourth deflection angle of the pectoral fin at the current moment, and the preset depth is within the preset depth range.
  7. 根据权利要求6所述的装置,其特征在于,所述根据所述实际胸鳍攻角和所述第一期望胸鳍攻角将所述第一偏转角度调节为第二偏转角度,包括:The device according to claim 6, wherein the adjusting the first deflection angle to the second deflection angle according to the actual pectoral fin attack angle and the first expected pectoral fin attack angle comprises:
    确定所述实际胸鳍攻角和所述第一期望胸鳍攻角的胸鳍攻角误差与胸鳍攻角误差变化率;determining the pectoral fin angle of attack error and pectoral fin angle of attack error rate of change of the actual pectoral fin angle of attack and the first desired pectoral fin angle of attack;
    利用与所述相对位置关系对应的预设的第一模糊控制表对所述胸鳍攻角误差和所述胸鳍攻角误差变化率进行模糊控制处理,得到实际控制增量;performing fuzzy control processing on the pectoral fin angle of attack error and the rate of change of the pectoral fin angle of attack error by using the preset first fuzzy control table corresponding to the relative positional relationship to obtain an actual control increment;
    根据所述实际控制增量将所述第一偏转角度调节为第二偏转角度。The first deflection angle is adjusted to a second deflection angle according to the actual control increment.
  8. 根据权利要求7所述的装置,其特征在于,所述俯仰力矩包括俯力矩和仰力矩;The device according to claim 7, wherein the pitching moment comprises a pitching moment and a pitching moment;
    若所述第一深度小于所述预设深度范围的最小值,则所述第一期望胸鳍攻角用于使所述仿生机器鱼的所述俯力矩大于或者等于所述第一阈值,所述第一模糊控制表为用于控制所述仿生机器鱼进行下潜运动的下潜模糊控制表;If the first depth is less than the minimum value of the preset depth range, the first expected pectoral fin attack angle is used to make the pitching moment of the bionic robotic fish greater than or equal to the first threshold, the The first fuzzy control table is a diving fuzzy control table used to control the bionic robotic fish to dive;
    若所述第一深度大于所述预设深度范围的最大值,则所述第一期望胸鳍攻角用于使所述仿生机器鱼的所述仰力矩大于或者等于所述第一阈值,所述第一模糊控制表为用于控制所述仿生机器鱼进行上浮运动的上浮模糊控制表。If the first depth is greater than the maximum value of the preset depth range, the first expected pectoral fin attack angle is used to make the pitch moment of the bionic robotic fish greater than or equal to the first threshold, the The first fuzzy control table is a floating fuzzy control table used for controlling the floating movement of the bionic robotic fish.
  9. 根据权利要求6至8任一项所述的装置,其特征在于,所述根据所述仿生机器鱼在当前时刻的第二深度和预设深度调节所述胸鳍在当前时刻的第四偏转角度,包括:The device according to any one of claims 6 to 8, wherein the fourth deflection angle of the pectoral fin at the current moment is adjusted according to the second depth of the bionic robotic fish at the current moment and the preset depth, include:
    确定所述仿生机器鱼在当前时刻的第二深度和预设深度的深度误差与深度误差变化率;Determining the depth error and depth error change rate of the second depth and the preset depth of the bionic robotic fish at the current moment;
    利用预设的第二模糊控制表对所述深度误差和所述深度误差变化率进行模糊控制处理,得到所述胸鳍在当前时刻的第四偏转角度。The second preset fuzzy control table is used to perform fuzzy control processing on the depth error and the change rate of the depth error to obtain a fourth deflection angle of the pectoral fin at the current moment.
  10. 一种仿生机器鱼,其特征在于,所述仿生机器鱼包括:A bionic robotic fish, characterized in that the bionic robotic fish comprises:
    鱼体、设在所述鱼体上的尾鳍以及对称设置在所述鱼体两侧的胸鳍,所述鱼体内设置有处理器以及分别与所述处理器连接的舵机驱动器、拉线式驱动器、中枢模式发生器、深度传感器和惯性传感器;The fish body, the caudal fin on the fish body and the pectoral fins symmetrically arranged on both sides of the fish body, a processor and a steering gear driver, a pull-wire driver, Central pattern generator, depth sensor and inertial sensor;
    所述处理器用于实现如权利要求1至5任一项所述的方法,并通过所述舵机驱动器调整所述胸鳍的偏转角度;所述拉线式驱动器通过所述中枢模式发生器控制所述尾鳍的摆动幅度和摆动频率,进而控制所述仿生机器鱼的运动速度;所述深度传感器用于检测所述仿生机器鱼所在的深度;所述惯性传感器用于检测所述鱼体的俯仰角。The processor is used to implement the method according to any one of claims 1 to 5, and adjust the deflection angle of the pectoral fin through the steering gear driver; The swing amplitude and swing frequency of the caudal fin, and then control the movement speed of the bionic robotic fish; the depth sensor is used to detect the depth of the bionic robotic fish; the inertial sensor is used to detect the pitch angle of the fish body.
PCT/CN2021/137578 2021-09-28 2021-12-13 Angle of attack-based bionic robotic fish fixed-depth control method and apparatus WO2023050582A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111143067.7 2021-09-28
CN202111143067.7A CN113734393B (en) 2021-09-28 2021-09-28 Bionic robot fish depth control method and device based on attack angle method

Publications (1)

Publication Number Publication Date
WO2023050582A1 true WO2023050582A1 (en) 2023-04-06

Family

ID=78741492

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137578 WO2023050582A1 (en) 2021-09-28 2021-12-13 Angle of attack-based bionic robotic fish fixed-depth control method and apparatus

Country Status (2)

Country Link
CN (1) CN113734393B (en)
WO (1) WO2023050582A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116443221A (en) * 2023-04-20 2023-07-18 北方工业大学 Single-drive robot fish and plane motion control method thereof

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113734393B (en) * 2021-09-28 2022-12-02 深圳先进技术研究院 Bionic robot fish depth control method and device based on attack angle method
CN114394219A (en) * 2022-01-14 2022-04-26 中国科学院深圳先进技术研究院 Intelligent bionic robot fish based on head and multi-fin cooperative motion

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120312221A1 (en) * 2007-12-07 2012-12-13 iRobot Corpoartion Submersible vehicles and methods for propelling and/or powering the same in an underwater environment
RU2490164C1 (en) * 2012-05-04 2013-08-20 Федеральное государственное бюджетное учреждение науки Тихоокеанский океанологический институт им. В.И. Ильичева Дальневосточного отделения Российской академии наук (ТОИ ДВО РАН) Underwater glider (versions)
CN110758698A (en) * 2019-11-28 2020-02-07 中国科学院自动化研究所 Method, system and device for controlling gliding depth of bionic gliding dolphin
CN113126607A (en) * 2019-12-31 2021-07-16 深圳市优必选科技股份有限公司 Robot and motion control method and device thereof
CN113277046A (en) * 2021-06-08 2021-08-20 西北工业大学 Simulated bat ray underwater vehicle depth control method based on centroid and tail fin
CN113734393A (en) * 2021-09-28 2021-12-03 深圳先进技术研究院 Bionic robot fish depth control method and device based on attack angle method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916071B (en) * 2010-08-04 2012-05-02 中国科学院自动化研究所 CPG feedback control method of biomimetic robot fish movement
CN103879534B (en) * 2014-03-12 2016-04-13 浙江大学 There is the machine fish of independent ring-type tail support and the method that snorkels thereof
CN107161305A (en) * 2017-06-14 2017-09-15 兰州交通大学 A kind of Three Degree Of Freedom imitates Scad sections autonomous machine fish
CN108839783B (en) * 2018-06-04 2023-10-20 吕梁学院 Flexible submerged bionic robot fish and control method thereof
CN209776776U (en) * 2019-05-08 2019-12-13 大连理工大学 Manta ray mode underwater robotic fish device
US10935986B1 (en) * 2019-11-28 2021-03-02 Institute Of Automation, Chinese Academy Of Sciences Gliding depth control method, system and device for biomimetic gliding robotic dolphin
CN112918646A (en) * 2021-03-15 2021-06-08 武汉理工大学 Pectoral fin and tail fin cooperative control system and method for bionic robot fish

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120312221A1 (en) * 2007-12-07 2012-12-13 iRobot Corpoartion Submersible vehicles and methods for propelling and/or powering the same in an underwater environment
RU2490164C1 (en) * 2012-05-04 2013-08-20 Федеральное государственное бюджетное учреждение науки Тихоокеанский океанологический институт им. В.И. Ильичева Дальневосточного отделения Российской академии наук (ТОИ ДВО РАН) Underwater glider (versions)
CN110758698A (en) * 2019-11-28 2020-02-07 中国科学院自动化研究所 Method, system and device for controlling gliding depth of bionic gliding dolphin
CN113126607A (en) * 2019-12-31 2021-07-16 深圳市优必选科技股份有限公司 Robot and motion control method and device thereof
CN113277046A (en) * 2021-06-08 2021-08-20 西北工业大学 Simulated bat ray underwater vehicle depth control method based on centroid and tail fin
CN113734393A (en) * 2021-09-28 2021-12-03 深圳先进技术研究院 Bionic robot fish depth control method and device based on attack angle method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116443221A (en) * 2023-04-20 2023-07-18 北方工业大学 Single-drive robot fish and plane motion control method thereof
CN116443221B (en) * 2023-04-20 2023-10-27 北方工业大学 Single-drive robot fish and plane motion control method thereof

Also Published As

Publication number Publication date
CN113734393A (en) 2021-12-03
CN113734393B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
WO2023050582A1 (en) Angle of attack-based bionic robotic fish fixed-depth control method and apparatus
CN109976349B (en) Design method of path tracking guidance and control structure of constraint-containing unmanned ship
Dong et al. Development of a whale-shark-inspired gliding robotic fish with high maneuverability
CN113885534B (en) Intelligent predictive control-based water surface unmanned ship path tracking method
WO2022242633A1 (en) Nacelle type unmanned ship course control method
CN111547212B (en) Buoyancy control method for unpowered rapid submerged-floating AUV
Al Makdah et al. Three-dimensional trajectory tracking of a hybrid autonomous underwater vehicle in the presence of underwater current
CN112147899A (en) Underwater robot autonomous obstacle avoidance control method based on fuzzy sliding mode algorithm
Zhou et al. Dynamic modeling and motion control of a novel conceptual multimodal underwater vehicle for autonomous sampling
Shen et al. Depth control for robotic dolphin based on fuzzy PID control
CN113359785A (en) Microminiature AUV underwater motion and hovering control method
Jing et al. Self-tuning adaptive active disturbance rejection pitch control of a manta-ray-like underwater glider
CN113342012B (en) Course control method of sliding and flapping integrated aircraft
Dong et al. Gliding motion optimization for a biomimetic gliding robotic fish
CN109018278B (en) Non-trim unpowered diving method suitable for full-sea-depth AUV and trim restraining device
CN115755891A (en) Near-surface aircraft motion control method under high sea condition
Fan et al. Optimized design and implementation of biomimetic robotic dolphin
CN113325857B (en) Simulated bat ray underwater vehicle depth control method based on centroid and buoyancy system
Liu et al. Line-of-sight based three-dimensional path following control for an underactuated robotic dolphin
CN113342011A (en) Gliding course control method of simulated bat aircraft based on rolling mechanism
CN113009923A (en) Composite obstacle avoidance method and device for double-joint robot fish
CN115755938B (en) Method for controlling depth of simulated ray aircraft based on asymmetric fuzzy S-plane
CN114690789A (en) Optimization control method for vertical plane navigation attitude of underwater vehicle
Li et al. Tight-Space Maneuvering of a Hybrid-Driven Robotic Fish Using Backstepping-Based Adaptive Control
CN113342013B (en) Course control method combining roll mechanism and flapping wing asymmetric phase difference

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21959142

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE