A robot motion mode estimation method and device

By installing a four-point distributed light source beacon and a binocular camera on the tail of the underwater bionic robot, the angle between the pectoral fin rays and the longitudinal axis of the body is calculated, which solves the problems of high noise and poor maneuverability in the transmission of motion information of underwater vehicles. Efficient motion pattern estimation and simplified communication are achieved, the response rate is improved, and a priori support is provided for underwater bionic robot swarm motion.

CN114820795BActive Publication Date: 2024-08-30NORTHWESTERN POLYTECHNICAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210493513.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-26
Publication Date
2024-08-30
Estimated Expiration
2042-04-26

AI Technical Summary

Technical Problem

Existing underwater vehicles have problems such as high noise, poor maneuverability, and poor concealment in the transmission of motion information. In particular, there are few studies on biological propulsion modes, and underwater communication costs are high and efficiency is low.

Method used

A vision-based method for estimating the motion pattern of an underwater bionic robot based on pectoral fin flapping is used. Four-point distributed light source beacons are installed on the tail of the underwater bionic robot, and binocular cameras are used to collect motion images to calculate the relationship between the pectoral fin rays and the body's longitudinal axis. The angle between them can determine the movement pattern and avoid the defects of underwater communication.

Benefits of technology

It realizes the simple estimation of the motion mode of underwater bionic robots, reduces the communication cost, improves the motion response rate, lays the foundation for the underwater bionic robot cluster formation, and simplifies the communication between the underwater bionic robots in the front.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114820795B
    Figure CN114820795B
Patent Text Reader

Abstract

The present invention discloses a robot motion mode estimation method and device, belonging to the field of bionic robot technology. First, four light source beacons are placed on an underwater bionic robot to calibrate the position of the robot's body longitudinal axis and pectoral fins. Then, the motion image of the underwater bionic robot is collected by an image acquisition unit, and then preprocessed to obtain clear light source target features. The target position parameters of the target light source on the image are detected to obtain the image coordinates of the target light source. Finally, the angles between the pectoral fin rays on the left and right sides of the underwater bionic robot and the body longitudinal axis are calculated and compared to obtain the motion mode estimation result of the underwater bionic robot. The present invention uses underwater vision and light source beacon methods to obtain the motion mode of the underwater bionic robot in front, simplifies the communication between underwater bionic robots, and also provides motion feedback information for the rear robot, laying a foundation for subsequent research on underwater bionic robot cluster formation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of bionic robots, and in particular relates to a method and a device for estimating a robot motion mode. Background Art

[0002] With the development of society, human demand for resources has increased significantly. As an important tool for underwater resource development, underwater vehicles can replace humans to perform complex tasks, such as environmental monitoring, target detection, military strikes, etc. In recent years, underwater vehicles have been vigorously developed, and propellers and pump-jet propulsion are often used as the main propulsion methods. However, such propulsion vehicles have the disadvantages of high noise, poor maneuverability, and poor concealment during navigation. Based on this, underwater bionic underwater robots have been developed. After hundreds of millions of years of natural evolution, fish have already possessed superb swimming skills. Their high efficiency, low noise and flexible movement have inspired underwater vehicles. With the development of related fields and technologies such as bioengineering, fluid mechanics, and computer science, researchers around the world have imitated the propulsion mode of natural organisms.

[0003] According to the different parts of the body used by fish when swimming, fish movement can be divided into pectoral fin / intermediate fin propulsion movement mode and caudal fin / body propulsion movement mode. The caudal fin / body propulsion mode is the swimming mode adopted by most fish. This type of fish uses vortices to push water backwards through body fluctuations or caudal fin swings, so that the fish body is affected by the water's reaction, thereby achieving forward movement of the fish body; fish in the pectoral fin / intermediate fin propulsion mode mainly obtain forward momentum through the swing of pectoral fins and dorsal fins. When this type of fish swims at a low speed, the body will not shake with the swimming, and can maintain high maneuverability, stability and swimming efficiency. Generally, it can achieve precise six-degree-of-freedom movement, position maintenance and reversal. Underwater robots that use this type of fish as bionic objects have the advantages of high stability, high detection efficiency and strong endurance.

[0004] At present, underwater vehicles with biological propulsion modes are in the initial development stage and have few research results. The research on underwater bionic robots is also mainly focused on the tail fin / body propulsion mode, and there is little research on underwater bionic robots with pectoral fin propulsion modes. In the prior art, there is an autonomous underwater vehicle pose estimation method based on light source beacon, which can estimate the relative position and orientation of the underwater vehicle itself. However, this method can only obtain the motion information of the underwater vehicle in front through underwater communication, and underwater communication has the disadvantages of high communication cost, low efficiency and complexity. Summary of the invention

[0005] Technical issues to be solved:

[0006] In order to avoid the shortcomings of the prior art, the present invention provides a vision-based method and device for estimating the motion pattern of an underwater bionic robot with pectoral fin flapping, by installing four distributed light source beacon lights at the tail of the underwater bionic robot and using a binocular camera to capture the motion image of the bionic robot, then processing the captured image to obtain the target light source, and calculating the angle between each target light source, thereby obtaining the motion pattern of the underwater bionic robot with pectoral fin flapping.

[0007] The technical solution of the present invention is: a robot motion mode estimation method, which is applied to a pectoral fin flapping underwater bionic robot, and the specific steps are as follows:

[0008] Step 1: Place four light source beacons on the underwater bionic robot to calibrate the position of the robot's body longitudinal axis and pectoral fins;

[0009] Step 2: Collecting the motion image of the underwater bionic robot through the image acquisition unit;

[0010] Step 3: Preprocess the collected underwater bionic robot motion images to obtain clear light source target features;

[0011] Step 4: Detect the target position parameters of the target light source on the image to obtain the image coordinates of the target light source;

[0012] Step 5: Calculate the angles between the pectoral fin rays on the left and right sides of the underwater bionic robot and the longitudinal axis of the body, and compare them to obtain the estimated result of the motion mode of the underwater bionic robot: if they are equal, the underwater bionic robot is judged to be in active propulsion mode; if they are not equal, it is in turning mode.

[0013] A further technical solution of the present invention is: in step 1, the four-point light source beacon includes a blue light and three green light source lights; the blue light source light is located above the body of the underwater bionic robot and on the longitudinal axis of the robot; a green light source light is located below the body of the underwater bionic robot and on the longitudinal axis of the robot; the other two green light sources are respectively located at the ends of the pectoral fins.

[0014] A further technical solution of the present invention is: in step 2, the image acquisition unit is a binocular camera.

[0015] A further technical solution of the present invention is: in step 3, the collected underwater bionic robot motion image is preprocessed including color space conversion, image smoothing and image edge detection, and non-target features are filtered out through image preprocessing operations.

[0016] A further technical solution of the present invention is: the image smoothing process uses a median filtering method to blur the image and reduce the noise of the grayscale image.

[0017] A further technical solution of the present invention is: the image edge detection uses canny edge detection to process the target image.

[0018] A further technical solution of the present invention is: in the step 4, the target position parameter detection of the target light source on the image is based on a least squares target light source detection algorithm, which can eliminate false light sources caused by water surface reflections;

[0019] Firstly, the edge features of the target are extracted from the smoothed image using an edge extraction algorithm;

[0020] Then, the noise and bright spots in the extracted target edge features are eliminated;

[0021] Finally, the four points with the smallest Y coordinates of the center of the target light source are selected as image coordinates.

[0022] A further technical solution of the present invention is: in step 5, the method for calculating the angle between the left and right sides of the underwater bionic robot in the image is:

[0023] First, define the center of the light source beacon light above the robot and located on the longitudinal axis of the body as coordinate O b =(x b ,y b ), the center of the light source beacon located below the robot and on the longitudinal axis of the body is the coordinate O g =(x g ,y g ), then the geometric center coordinates of the straight line formed by these two light sources are O c =(x c ,y c ) is expressed as

[0024]

[0025] Define the coordinates of the center of the remaining two beacon light sources that calibrate the pectoral fins on both sides on the captured image as O g1 =(x g1 ,y g1 ), O g2 =(x g2 ,y g2 ). Take O c As the base point, vector Expressed as

[0026]

[0027] Design angle calculation function

[0028]

[0029] Then the vector and vector The angle θ1 is calculated as follows:

[0030] θ1=f(x c -x b ,y c -y b )-f(x c -x g1 ,y c -y g1 ) (4)

[0031] Similarly, vector and vector The angle θ2 is calculated as follows:

[0032] θ2=f(x c -x b ,y c -y b )-f(x c -x g2 ,y c -y g2 ) (5)

[0033] According to the movement characteristics of the underwater bionic robot, when the underwater bionic robot is in the active propulsion mode, the vector angle θ1 formed by the identified coordinates of the center of the light source is θ2, and when the underwater bionic robot is in the turning mode, the vector angle θ1≠θ2.

[0034] A device using an underwater bionic robot motion mode estimation method comprises a four-point light source beacon lamp, an image acquisition unit, an image processing unit and a target position analysis unit;

[0035] The four-point light source beacon lights are used to calibrate the position of the robot's body longitudinal axis and pectoral fins as a target image;

[0036] The image acquisition unit is used to acquire the motion image of the underwater bionic robot in real time;

[0037] The image processing unit is used to pre-process the target image on the motion image to obtain clear light source target features;

[0038] The target position analysis unit is used to detect the target position parameters of the target light source on the image to obtain the image coordinates of the target light source; and calculate the angles between the pectoral fin rays on the left and right sides of the underwater bionic robot and the longitudinal axis of the body, and compare them to obtain the motion mode estimation result of the underwater bionic robot.

[0039] A further technical solution of the present invention is: the device is applied to the motion control of a bionic robot cluster, any bionic robot in the cluster collects the motion pattern of the bionic robot in front through an image acquisition unit, and transmits the motion pattern signal to the control system, and the control system outputs instructions to control the bionic robot behind to make a motion response.

[0040] Beneficial Effects

[0041] The beneficial effects of the present invention are as follows: the present invention provides a method for estimating the motion mode of an underwater bionic robot with pectoral fin flapping based on vision, simplifies the pectoral fin flapping form of the underwater bionic robot into the angle between its pectoral fin rays and the longitudinal axis of the body, uses a camera to collect the motion image of the underwater bionic robot, and estimates the motion mode of the underwater bionic robot by calculating the angles on the left and right sides of the image. If the calculated angles on the left and right sides are equal, the underwater bionic robot is determined to be in active propulsion mode; if the angles on the left and right sides are not equal, it is in turning mode.

[0042] The present invention provides a vision-based method for estimating the motion mode of an underwater bionic robot with pectoral fin flapping, which innovatively simplifies the motion mode of an underwater bionic robot with pectoral fin flapping into the angle between the pectoral fin rays and the longitudinal axis of the body, and uses underwater vision and light source beacon methods to obtain the motion mode of the underwater bionic robot in front, thereby realizing communication between underwater bionic robots in a relatively simple manner, avoiding the defects of using high-cost hydroacoustic communication, and also providing motion feedback information for the rear robot, laying a foundation for subsequent research on underwater bionic robot cluster formation. The embodiment of the present invention provides a light source beacon recognition effect diagram of an underwater bionic robot with pectoral fin flapping. It can be seen from the processing results that the method proposed by the present invention can realize the motion mode estimation of an underwater bionic robot, and the processing results are shown in Tables 1 and 2.

[0043] The device of the present invention is applied to the bionic robot cluster motion control to identify the motion mode of the neighbor underwater bionic robot, which can improve the motion response rate of the own underwater bionic robot and provide a priori for realizing the underwater bionic robot cluster motion. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 : Flow chart of the method for estimating the motion mode of an underwater bionic robot of the present invention;

[0045] Figure 2 : The underwater bionic robot prototype and the four-point distributed beacon device diagram;

[0046] Figure 3 : RGB color space and HSV color space;

[0047] Figure 4 : HSV channel separation results;

[0048] Figure 5 : Original image (left) and image after binarization (right);

[0049] Figure 6 : Median filtering result image (right);

[0050] Figure 7 : Circular feature detection result image (right);

[0051] Figure 8 : Image of light source under water;

[0052] Fig. 9 : Underwater image preprocessing and light source recognition effect diagram;

[0053] Fig.10 : Schematic diagram of underwater bionic robot motion mode;

[0054] Fig.11 : Result of light source identification when the fins flap symmetrically;

[0055] Fig.12 : Result diagram of light source identification when the fins flap asymmetrically. DETAILED DESCRIPTION

[0056] The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, but should not be construed as limiting the present invention.

[0057] The bionic object of the pectoral fin flapping underwater bionic robot described in the present invention is the manta ray. It can be seen from the observation of the swimming of the manta ray that the manta ray generates propulsion and lift by flapping the surrounding fluid with the pectoral fins on both sides. As the pectoral fins swing, the flexible pectoral fins generate wave transmission from the head to the tail, thereby generating thrust opposite to the wave transmission and lift opposite to the swing direction of the pectoral fins. During the active propulsion movement of the manta ray, the motion trajectory of the pectoral fin tip is approximately a sine function, the amplitude of the fin tip swinging up and down is basically equal, and the pectoral fins on both sides swing symmetrically at the same time; when turning, it usually uses the asymmetrical swinging of the left and right pectoral fins to generate a large lateral force and torque for turning, that is, when the left and right pectoral fins swing asymmetrically at the same time, the manta ray turns to the side with less thrust.

[0058] The working process of the present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0059] Step 1: Design of four-point distributed blue-green light sources for underwater bionic robots

[0060] The present invention is designed as Figure 3The underwater bionic robot prototype and the four-point distributed circular light source beacon are shown. The vertical rod in the middle of the underwater bionic robot prototype is designed to fix the light source beacon light, ensure that the light source beacon and the robot are closely connected, and estimate the motion mode of the underwater bionic robot through the recognition of the target light source beacon. The rods on both sides of the body are designed to imitate the pectoral fin flapping of the bionic prototype manta ray. The rods on both sides are driven by servos to imitate the pectoral fin flapping movement of the manta ray. When the pectoral fins on both sides of the underwater bionic robot flap symmetrically, it is in the active propulsion mode, and when the pectoral fins on both sides move asymmetrically, it is in the turning mode. The four-point distributed circular light source beacon consists of a blue light and three green light source lights. The blue-green light can emit a wavelength of 400 to 500nm underwater, with the lowest absorption rate and scattering rate, and has the advantage of strong light transmittance. The light source beacon and the underwater bionic robot prototype shown in the figure have been sealed underwater and can be used for underwater experiments.

[0061] Step 2: Preprocess the collected underwater bionic robot motion images

[0062] Step 2-1: Image color space conversion. The color elements in the image are represented by the RGB color model. RGB stands for red, green and blue. The color space of the image is defined by the brightness of these three colors as basis vectors, and the value range is 0-255. However, the colors on the image are difficult to represent using RGB values. Therefore, it is necessary to convert the color space of the image into the HSV color space. HSV stands for hue, saturation and brightness. In OpenCV, the value range of the H channel is 0-180, the value range of the S channel is 0-255, and the value range of the V channel is 0-255. The HSV color model is converted from the RGB color model. The color space representations of the two colors are as follows: Figure 3 As shown.

[0063] There is a scattering phenomenon of visible light in the underwater environment, that is, the brightness of the light source beacon will decay rapidly at a long distance. When there is light scattering in the collected image, the values ​​of the colors in the three channels of the image will change, causing image distortion and inaccurate information. In addition, the brightness of the ambient light will also affect the quality of the light beacon in the camera imaging. Therefore, before performing image calculation, the image collected from the camera is first converted from the RGB color space to the HSV color space, and the tones of other noises are strictly filtered, while the receiving range of the brightness value is increased to obtain the target information as clearly and accurately as possible.

[0064] Assume that a color vector is represented in RGB space as (r, g, b), define

[0065]

[0066] Then, the hue h of the color vector is expressed as

[0067]

[0068] The saturation s of the color vector is expressed as

[0069]

[0070] The brightness value v of the color vector is expressed as

[0071] v=c max (4)

[0072] like Figure 4 The figure shows the converted HSV three-channel image of the picture collected in the experiment. It can be seen from the converted image that the color of the light source beacon can be distinguished according to the value of the hue channel, and the image is threshold segmented by combining the saturation value and brightness value of the converted image, which can preliminarily eliminate obvious non-target features in the image.

[0073] In addition, in order to reduce the amount of computational effort in subsequent image processing, the image data needs to be converted from three dimensions to one dimension. If the image pixel is within the detected HSV range, the color is white, otherwise the color is black, thereby converting the color image into a grayscale image after binary processing, such as Figure 5 The detection target is a colored light source beacon, so the color within the detection range becomes white and other colors become black.

[0074] Step 2-2: Image filtering. After the above steps, the white areas of the image have irregular edges and unevenness caused by noise, which affects the accuracy of the position measurement of these areas. Therefore, it is necessary to remove the irregularities and unevenness caused by the white areas in the grayscale image. OpenCV provides four noise reduction methods, including mean filtering, Gaussian filtering, median filtering and bilateral filtering. The present invention uses the median filtering method to blur the image and reduce the noise of the grayscale image. The result of median filtering image smoothing is shown in Figure 2. Figure 6 As shown in the figure, it can be seen that the edges of the image are clearer after smoothing.

[0075] Step 2-3: Circular feature detection. Image edge detection refers to detecting the boundary of the target object. Image edge detection is used to identify and analyze the detected target shape, and the edge detection method is used to distinguish target features from non-target features. OpenCV provides four edge detection methods, namely canny edge detection, sobel edge detection, Laplacian operator, and scharr filter. The present invention uses canny edge detection to process the target image and separate circular features from non-circular features. The circular feature detection results are shown in Figure 2. Figure 7 shown.

[0076] Step 3: Target light source detection and motion mode estimation based on least squares

[0077] Step 3-1: Design of target light source detection algorithm based on least squares. When an underwater bionic robot equipped with a light source beacon moves in an underwater environment, there is false light source interference caused by light source reflection, such as Figure 8 The figure shows the underwater imaging effect of the light source. It can be seen from the figure that due to the influence of the water surface reflection, non-target light source features, also known as false light sources, will appear in the collected image. The least squares-based light source detection method adopted in the present invention can eliminate the false light sources caused by the water surface reflection.

[0078] First, use the edge extraction algorithm to extract the edge features of the target on the smoothed image. Only the outermost edges are extracted, and each edge is described by a set of edge points. The set of edge points found after one processing is B, and the set of the kth edge point is defined as B k ={(x i ,y i )|i=1...n}, its area is

[0079]

[0080] In the formula, (x i ,y i ) represents the pixel coordinates of edge point i, and n represents the number of edge points.

[0081] There are noise and small bright spots in the image obtained by the edge extraction algorithm. Therefore, it is necessary to set a threshold for the area of ​​the connected domain surrounded by the edge and remove the edge point set whose connected domain area is less than 1. If the connected domain surrounded by the edge point set is less than 3, it is considered unrecognizable and the edge extraction algorithm is terminated. If the edge point set is greater than or equal to 3, the least squares circle fitting method is used for each edge point set within the acceptable range. Assume that the standard equation of the circle to be fitted is

[0082] (xx c ) 2 +(yy c ) 2 =R 2 (2)

[0083] Where R represents the radius of the fitting circle, (x c ,y c ) represents the coordinates of the center of the fitted circle, (x, y) represents the coordinates of the edge points, assuming

[0084]

[0085] Then the standard equation for the fitted circle can be rewritten as

[0086] x 2 +y 2 +ax+by+c=0 (4)

[0087] Using the least squares fitting method, we define

[0088]

[0089] (x i ,y i ) represents the coordinates of edge point i, and n represents the number of edge points.

[0090] To simplify the description, assume

[0091]

[0092] Thus, the least squares estimate of the center coordinates and radius of the fitted circle is obtained.

[0093]

[0094] Design edge point set and fitting circle matching function, which is defined as image feature edge point set B k The degree of matching with the fitting circle, the variance of the distance between the edge point set and the center of the fitting circle is defined as the fitting degree f k , expressed as

[0095]

[0096] In the formula, (x c ,y c ) represents the coordinates of the center of the fitting circle, (x i ,y i ) represents the coordinates of edge point i.

[0097] It can be seen from formula (8) that the fitting degree f k ≥0, f k The smaller it is, the better the match between the edge point set and the fitting circle. k When =0, it indicates that the edge point sets are all on the fitted circle.

[0098] When identifying light source features, there is a situation where the feature edge point set is incomplete. In order to describe the integrity of the image feature edge point set, a function v about the feature edge point set and the fitting circle completeness is proposed. k , v k It represents the ratio of the distance between the center of the edge point set and the center of the fitted circle to the radius of the fitted circle. The expression is

[0099]

[0100] From formula (9), we can see that v k ≥0, and when v k When =1, it indicates that the edge point set of the feature is on the fitted circle, and the integrity is the highest; k The larger it is, the worse the distribution completeness of the edge point set on the fitting circle is.

[0101] The brightness of the image feature area is another consideration for target recognition. k Represents the average brightness of the connected domain surrounded by the set of image edge points. The brightness expression describing the image feature area is:

[0102]

[0103] In formula (10), w x,y represents the brightness of the point (x, y), m represents the number of connected domains surrounded by the feature edge point set, and the image brightness characteristics of the connected region surrounded by the feature edge point set can be described by formula (10).

[0104] The present invention adopts the fitting degree f k 、Completeness k and the overall brightness w of the feature area point set k , plus the four characteristic parameters of the fitting circle radius of the feature point set to improve the recognition accuracy of the image target area features. Therefore, the characteristic expression describing the edge point set is defined as

[0105] b k =(f k ,v k ,w k ,R k ) T (11)

[0106] In the formula, f k represents the goodness of fit, v k represents completeness, w k Represents the overall brightness of the feature area point set, R k Represents the radius of the fitted circle.

[0107] Since an easy-to-identify light beacon is installed on the underwater bionic robot carrier, it is reasonable to assume that the light beacon is the area with the most obvious features in the image captured by the camera. The next goal is to find the connected domain with the best features in the image connected domain through the above feature constraints to achieve accurate recognition. First, set threshold limits for the fit and completeness. When the fit and fit completeness of the feature edge point set exceed the set thresholds, remove the points that do not meet the conditions from the edge point set. In order to meet scale invariance, the feature quantity of each point set is normalized.

[0108]

[0109] In formula (12), q represents the number of remaining points after eliminating the points that do not meet the conditions, and f i 、v i 、f i 、v i 、w i , R i They represent the fit, completeness, overall brightness and circle radius of the edge point set i respectively.

[0110] All feature quantities after normalization are less than or equal to 1, and the sum of the features of each point set is 1.

[0111] The feature quantity is weighted averaged, and the ratio of the number of points that satisfy the feature constraint to the total number of points is used as the weight, which is expressed as

[0112]

[0113] In formula (13), n k Indicates the number of image feature edge points.

[0114] The distance from the feature value of each edge point set to the weighted average feature value is obtained, and the standard deviation of the distance from the feature value of all point sets to the weighted average feature value is calculated.

[0115]

[0116] q represents the number of points that meet the conditions, d i Represents the distance from the feature value of edge point set i to the weighted average feature value, d j Represents the distance from the feature value of edge point set j to the weighted average feature value.

[0117] If the distance standard deviation is too large, the set points that do not meet the conditions are removed from the edge point set, and the value of formula (14) is iteratively calculated through formulas (12), (13), and (14) until the value is less than the set threshold, which can be determined by color channel separation. If the number of connected domains found is less than four, it is considered that not enough light source beacons have been identified. If the number of connected domains found is greater than four, the pseudo light source presented on the image appears above the real light source due to water surface reflection. Therefore, the four point sets with the smallest Y coordinates of the center of the fitting circle are selected as the real light source beacons.

[0118] Then, the target light source detection algorithm proposed in the present invention is verified by underwater experiments. First, the motion image of the underwater bionic robot in front is collected by the underwater bionic robot prototype and binocular camera. Fig. 9(a) shows the image of the robot in front captured by the binocular camera installed on the underwater bionic robot platform when the relative distance between the rear underwater bionic robot and the front underwater bionic robot is 1 meter.

[0119] According to the target light source recognition step proposed by the present invention, first, the collected image is preprocessed, including underwater light source color detection, image smoothing and target edge detection. The image processing results obtained through these steps are as follows: Fig. 9 (b), (c), and (d). A large amount of background interference is eliminated through image preprocessing. Then the least squares boundary fitting algorithm proposed in this paper is used to identify the target light source. The target light source recognition results are shown in Fig. 9 As shown in (e), it can be seen from the figure that the target light source recognition algorithm in this paper can obtain a relatively accurate recognition result. Fig. 9 (f) shows the center coordinates and radius of the target light source.

[0120] Step 3-2: Calculate the angle between the left and right sides of the underwater bionic robot in the image. The schematic diagram of the underwater bionic robot motion mode represented by vector angle is as follows: Fig.10 After obtaining the target light source, first determine the blue light source beacon light, that is, the top light source beacon light installed on the underwater bionic robot carrier. Define the center of the light source beacon light as the coordinate O b =(x b ,y b ). The other three beacon lights are green light sources. Assume that the coordinates of the center of the fitting circle of the beacon light installed directly below the green light source are O g =(x g ,y g ), then the geometric center coordinates of the straight line formed by these two light sources are O c =(x c ,y c ) is expressed as

[0121]

[0122] Define the center coordinates of the remaining two green beacon light sources on the captured image as O g1 =(x g1 ,y g1 ), O g2 =(x g2 ,y g2 ). Take O c As the base point, vector It can be expressed as

[0123]

[0124] Design angle calculation function

[0125]

[0126] Then the vector and vector The angle θ1 is calculated as follows:

[0127] θ1=f(x c -x b ,y c -y b )-f(x c -x g1 ,y c -y g1 ) (18)

[0128] Similarly, vector and vector The angle θ2 is calculated as follows:

[0129] θ2=f(x c -x b ,y c -y b )-f(x c -x g2 ,y c -y g2 ) (19)

[0130] According to the movement characteristics of the underwater bionic robot, when the underwater bionic robot is in the active propulsion mode, the vector angle θ1 formed by the identified coordinates of the center of the light source is θ2, and when the underwater bionic robot is in the turning mode, the vector angle θ1≠θ2.

[0131] The present invention divides the motion mode of the underwater bionic robot into an active propulsion mode when the fins flap symmetrically, and a turning mode when the fins flap asymmetrically. The present invention describes this flapping form as the angle between the pectoral fin rays of the underwater bionic robot and the longitudinal axis of the body, and estimates the motion mode of the underwater bionic robot by calculating the angles on the left and right sides. Identifying the motion mode of the neighboring underwater bionic robot can improve the motion response rate of the underwater bionic robot itself, and provide a priori for realizing the cluster motion of underwater bionic robots.

[0132] (1) Active propulsion model estimation experiment

[0133] like Fig.11The image of the underwater bionic robot fins flapping symmetrically is collected, and the recognition effect diagram of the underwater bionic robot in a specific motion state is obtained by the target light source recognition algorithm. The target light source recognition algorithm finally obtains the center coordinates of the target light source, and then calculates the angles θ1 and θ2 through equations (5)-(9). The motion mode of the underwater bionic robot is determined by the angles θ1 and θ2. The experimental results of the active propulsion mode estimation of the underwater bionic robot are shown in Table 1.

[0134] Table 1 The coordinates of the center of the light source identified

[0135]

[0136] From the experimental results in Table 1, it can be concluded that the experimental results of θ1 and θ2 are almost equal, and the recognition error of θ1 and θ2 is within 4°, so it can be estimated that the underwater bionic robot is in an active propulsion state. This verifies the proposed method of estimating the motion mode of the underwater bionic robot through target light source recognition.

[0137] (2) Turning pattern estimation experiment

[0138] like Fig.12 is the motion image of the fins of the underwater bionic robot in front collected by the underwater bionic robot behind. Similar to the above description, the target light source and the center coordinates of the light source beacon in the image are obtained through the target light source recognition algorithm, and then the angles θ1 and θ2 are calculated through equations (5)-(9), and then the motion mode of the neighboring underwater bionic robot is estimated. The experimental results of the underwater bionic robot turning mode estimation are shown in Table 2.

[0139] Table 2 The coordinates of the center of the light source identified

[0140]

[0141] From the experimental results in Table 2, it can be concluded that the values ​​of θ1 and θ2 are quite different, which is θ1≠θ2 proposed in this paper. Therefore, it can be determined that the underwater bionic robot is in turning mode. This further verifies the method proposed in this paper to estimate the motion mode of the underwater bionic robot through image target light source recognition.

[0142] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and intent of the present invention.

Claims

1. A robot motion pattern estimation method, applied to a pectoral fin flapping underwater bionic robot, characterized in that The specific steps are as follows: Step 1: Place four light source beacons on the underwater bionic robot to calibrate the position of the robot's body longitudinal axis and pectoral fins; Step 2: Collecting the motion image of the underwater bionic robot through the image acquisition unit; Step 3: Preprocess the collected underwater bionic robot motion images to obtain clear light source target features; Step 4: Detect the target position parameters of the target light source on the image to obtain the image coordinates of the target light source; Step 5: Calculate the angles between the pectoral fin rays on the left and right sides of the underwater bionic robot and the longitudinal axis of the body, and compare them to obtain the estimated result of the motion mode of the underwater bionic robot: if they are equal, the underwater bionic robot is determined to be in active propulsion mode; if they are not equal, it is in turning mode; In step 5, the method for calculating the angle between the left and right sides of the underwater bionic robot in the image is: First, define the center of the light source beacon light above the robot and located on the longitudinal axis of the body as coordinate O b =(x b ,y b ), the center of the light source beacon located below the robot and on the longitudinal axis of the body is the coordinate O g =(x g ,y g ), then the geometric center coordinates of the straight line formed by these two light sources are O c =(x c ,y c ) is expressed as Define the center coordinates of the remaining two beacon light sources for calibrating the pectoral fins on both sides as Og1 = (xg1, yg1) and Og2 = (xg2, yg2). c As the base point, vector Expressed as Design angle calculation function Then the vector and vector The angle θ1 is calculated as follows: θ1=f(x c -x b ,and c -and b )-f(x c -x g1 ,and c -and g1 ) (4) Similarly, vector and vector The angle θ2 is calculated as follows: θ2=f(x c -x b ,y c -y b )-f(x c -x g2 ,y c -y g2 ) (5) According to the movement characteristics of the underwater bionic robot, when the underwater bionic robot is in the active propulsion mode, the vector angle θ1 formed by the identified coordinates of the center of the light source is θ2, and when the underwater bionic robot is in the turning mode, the vector angle θ1≠θ2.

2. The method for estimating motion mode of an underwater bionic robot according to claim 1, characterized in that: In step 1, the four-point light source beacon includes a blue light and three green light source lights; the blue light source light is located above the body of the underwater bionic robot and on the longitudinal axis of the robot; A green light source lamp is located under the body of the underwater bionic robot and on the longitudinal axis of the robot; the other two green light sources lamps are located at the ends of the pectoral fins.

3. The method for estimating the motion mode of an underwater bionic robot according to claim 1, characterized in that: In step 2, the image acquisition unit is a binocular camera.

4. The method for estimating motion mode of an underwater bionic robot according to claim 1, characterized in that: In the step 3, the collected underwater bionic robot motion image is preprocessed, including color space conversion, image smoothing and image edge detection, and non-target features are filtered out through image preprocessing operations.

5. The method for estimating motion mode of an underwater bionic robot according to claim 1, characterized in that: The image smoothing process uses a median filtering method to blur the image and reduce the noise of the grayscale image.

6. The method for estimating motion mode of an underwater bionic robot according to claim 1, characterized in that: The image edge detection uses canny edge detection to process the target image.

7. The method for estimating motion mode of an underwater bionic robot according to claim 1, characterized in that: In step 4, the target position parameter detection of the target light source on the image is based on a least squares target light source detection algorithm, which can eliminate false light sources caused by water surface reflections; Firstly, the edge features of the target are extracted from the smoothed image using an edge extraction algorithm; Then, the noise and bright spots in the extracted target edge features are eliminated; Finally, the four points with the smallest Y coordinates of the center of the target light source are selected as image coordinates.

8. A device using the underwater bionic robot motion mode estimation method according to any one of claims 1 to 7, characterized in that: It includes four-point light source beacon lights, an image acquisition unit, an image processing unit and a target position analysis unit; The four-point light source beacon lights are used to calibrate the position of the robot's body longitudinal axis and pectoral fins as a target image; The image acquisition unit is used to acquire the motion image of the underwater bionic robot in real time; The image processing unit is used to pre-process the target image on the motion image to obtain clear light source target features; The target position analysis unit is used to detect the target position parameters of the target light source on the image to obtain the image coordinates of the target light source; and calculate the angles between the pectoral fin rays on the left and right sides of the underwater bionic robot and the longitudinal axis of the body, and compare them to obtain the motion mode estimation result of the underwater bionic robot.

9. The device of the underwater bionic robot motion mode estimation method according to claim 8, characterized in that: The device is applied to the motion control of bionic robot clusters. Any bionic robot in the cluster collects the motion pattern of the bionic robot in front through an image acquisition unit and transmits the motion pattern signal to the control system. The control system outputs instructions to control the bionic robot behind to make a motion response.

Citation Information

Patent Citations

  • Bionic fin propulsion mechanism based on arc surface free ends and axial rotating cross reeds

    CN110510090A

  • Construction of propulsion motion control equation of bionic undulatory fin and parameter setting optimization method thereof

    CN111443605A