Multi-sensor fusion underwater robot positioning method
Through the multi-sensor tightly coupled underwater SLAM method, combined with cameras, IMU and DVL sensors, the problem of difficult positioning in the underwater environment is solved, and higher precision and robustness of underwater robot positioning are achieved, which is suitable for unknown waters and Low texture, low light conditions.
Patent Information
- Application Number
- CN202411089993.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-15
AI Technical Summary
Radio signals are severely attenuated in the underwater environment, and conventional GPS and GNSS positioning technologies cannot be used. Positioning systems based on acoustic signals are expensive and cannot be applied to unknown waters, making it difficult for underwater robots to position themselves, especially under low-texture and low-light conditions. The positioning accuracy and robustness of the SLAM algorithm are insufficient.
A multi-sensor tightly coupled underwater SLAM method is used to collect and preprocess data through a combination of cameras, IMUs and DVL sensors, construct residual factors and perform nonlinear optimization, combined with DVL abnormal data detection and image synchronization labeling, to achieve sensor data Fusion and system state estimation improve positioning accuracy and robustness.
It improves the accuracy and robustness of underwater robot positioning, enables more accurate and stable pose estimation in the underwater environment, reduces noise interference and waste of computing resources, and enhances the applicability and reliability of the system.
Smart Images

Figure CN118778043A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of underwater robot positioning, and in particular relates to an underwater robot positioning method using multi-sensor fusion. Background Art
[0002] At present, underwater robots such as autonomous underwater robots (AUVs) and remotely operated robots (ROVs) are widely used in underwater environmental detection, equipment maintenance, underwater building monitoring and other fields. This type of robot can effectively reduce the time divers spend working underwater and improve the safety and efficiency of underwater tasks. Underwater positioning and environmental perception are the basis for underwater robots to carry out their work. Due to the serious attenuation of radio signals in water, conventional positioning technologies such as GPS and GNSS cannot be used in underwater environments. The underwater acoustic positioning system based on acoustic signals requires equipment layout in advance, which is not applicable to unknown waters and is costly, limiting its scope of application. In recent years, the rapid development of simultaneous localization and mapping (SLAM) technology has provided new ideas for solving underwater positioning problems. Among them, SLAM algorithms represented by low-cost and high-performance VINS-mono and ORB-SLAM3 (both are SLAM positioning algorithms based on visual inertial measurement unit fusion) have attracted the attention of researchers. However, the underwater environment has the characteristics of low texture and weak illumination, which makes it extremely challenging to extract visual features and match them, greatly reducing the positioning accuracy and robustness of vision-based SLAM algorithms underwater. Therefore, it has become a trend to combine underwater sensors such as long baseline systems, sonar, depth meters, and Doppler velocimeters (DVL) for multi-sensor fusion positioning. Among underwater sensors, sonar can only measure two-dimensional plane information and is greatly affected by noise, and depth meters can only measure depth information, and the information dimensions they obtain are limited. DVL has the characteristic of accurately measuring three-axis velocity information, which provides a new idea for underwater positioning problems. We propose a new multi-sensor tightly coupled underwater SLAM method, which makes our proposed method have better positioning accuracy and robustness than existing underwater positioning methods. Summary of the invention
[0003] In view of the problem that underwater robots are currently difficult to locate in underwater environments, the present invention proposes an underwater robot positioning method using multi-sensor fusion.
[0004] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0005] This solution provides a multi-sensor fusion underwater robot positioning method, which is characterized by comprising the following steps:
[0006] S1, collect data through the combination of camera, IMU and DVL sensor carried by the underwater robot;
[0007] S2, preprocessing camera and IMU measurement data and completing system initialization;
[0008] S3, preprocessing DVL measurement data;
[0009] S4, constructing residual factors through sensor data preprocessed by S2 and S3;
[0010] S5. Complete the sensor data fusion and system state estimation optimization through nonlinear optimization;
[0011] S6, obtaining the pose estimation value through the optimized system state estimation and performing window sliding;
[0012] Furthermore, the multi-sensor measurement data collected in step S1 is as follows:
[0013] The underwater robot collects various measurement data through the sensors it carries. The camera collects underwater image data; the IMU measures the underwater robot's three-axis angular velocity and acceleration; and the DVL measures the underwater robot's three-axis velocity.
[0014] Furthermore, step S2 includes the following steps:
[0015] S201. We extract corner points and perform optical flow tracking for each new image captured by the camera, and construct visual feature point matching pairs through the above preprocessing steps. In the time interval between images or DVL frames (image frame refers to the image data captured by the camera at a certain moment; DVL frame refers to the three-dimensional velocity vector measured by the DVL sensor at a certain moment), IMU pre-integration (a method of processing IMU measurement data) is performed through IMU measurement data.
[0016] S202, check whether the system is initialized. If the system has been initialized, enter S3, otherwise enter S203 to initialize the system.
[0017] S203, firstly, the estimated value of the IMU angular velocity zero bias is solved according to the visual feature information, the IMU pre-integration and the following cost function:
[0018]
[0019] Where B represents the index of all image frames in the window, for b k Frame the body coordinate system to c 0 Rotation quaternion in coordinate system, is the rotation pre-integration of the IMU, is the rotation pre-integrated relative IMU angular velocity zero bias b w The Jacobian matrix of is a quaternion multiplication operation, and |||| is a vector modulus operation.
[0020] Then set the state vector as follows:
[0021]
[0022] in is the speed of the underwater robot in the body coordinate system (the IMU coordinate system is selected as the body coordinate system of the underwater robot in the method) when the Kth frame image is taken, c 0 The gravitational acceleration vector in the coordinate system, s is the scale of the monocular SfM (Structure from Motion) to metric units. Considering two consecutive image frames b in the window k and b k+1 , the relationship between IMU pre-integration and state quantity is as follows:
[0023]
[0024] Where Δt k is the time interval between two consecutive frames, for The obtained rotation matrix is converted to establish a linear measurement model:
[0025]
[0026] in as follows:
[0027]
[0028] By solving a linear least squares problem:
[0029]
[0030] The scale information, initial posture, gravity acceleration vector and other information can be obtained to complete the initialization of the system.
[0031] Furthermore, step S3 includes the following steps:
[0032] As a sensor that needs to work with the help of an external environment, DVL cannot avoid abnormal measurement data caused by external interference. In addition, the frequency of DVL generating measurement data is lower than that of cameras and IMUs, and the asynchrony between sensors creates certain obstacles to multi-source data fusion. To this end, we propose DVL abnormal data detection and DVL-image synchronization marking to preprocess DVL measurement data.
[0033] S301. DVL abnormal data detection: DVL abnormal data usually manifests as a sudden change in measurement data, that is, there is a huge difference between the abnormal data and the previous measurement data. Since the DVL measurement object is speed, acceleration can naturally be used to represent the speed of change. Therefore, the acceleration measurement value measured by IMU can be combined to determine whether the DVL measurement data is abnormal. Suppose the measurement value of DVL at time t is The last measurement was Δt is the time difference between two measurement data. The speed measured by DVL is converted to the IMU coordinate system through the external reference between IMU and DVL. and Calculate the acceleration between two measurements
[0034]
[0035] Assume that the IMU acceleration measurement value after removing the gravity acceleration component at the corresponding moment of the adjacent image frame measured by the DVL is Use the following formula to compare and determine whether the DVL measurement value is abnormal.
[0036]
[0037] where a threshold is the difference tolerance parameter, and |||| is the vector modulus operation. DVL data judged to be abnormal will be discarded to reduce the interference of DVL abnormal data on the system.
[0038] S302, DVL-image synchronization mark: In VID-SLAM, the DVL measurement data constrains the corresponding DVL frame state quantity, and further constrains the state quantity of the adjacent image frame or DVL frame through IMU pre-integration. The different measurement frequencies of the camera and DVL will cause different pre-integration times between the image frame and the DVL frame, and the IMU pre-integration factor with too short integration time will cause numerical instability during nonlinear optimization. In addition, when the timestamp interval between the DVL frame and the image frame is very short, the corresponding state quantity difference is small, and optimizing the two state quantities at the same time will cause a waste of computing resources. In order to solve these two problems, we mark the DVL frames into two categories according to their timestamps and the timestamps of the adjacent image frames, and adopt different association strategies during optimization. Let the timestamp of the DVL frame be t DVL , the timestamp of the adjacent image frame is t img , DVL frames are marked by the following criteria
[0039]
[0040] where t threshold This is the time interval threshold used. The value of this parameter is related to the measurement frequency of the DVL and the camera.
[0041] Furthermore, step S4 includes the following steps:
[0042] S401, DVL frames are divided into two categories after DVL-image synchronization mark processing: DVL-Visual synchronous frames and DVL-Visual synchronous frames. The two have different ways of constructing DVL residual associated state quantities. For the former, the state quantity of the corresponding DVL frame is directly associated when constructing the DVL residual. While for the latter, the state quantity of the image frame with which it is synchronized is associated when constructing the DVL residual, that is, the state quantity of the synchronized DVL frame and the image frame is combined into one, reducing the number of optimization variables while enhancing the connection between the various state quantities. The definition of DVL residual is
[0043]
[0044]
[0045] in and Respectively represent the velocity measurement value of the DVL frame and the angular velocity measurement value of the IMU at the corresponding moment, is a quaternion The corresponding rotation matrix is, is the coordinate of DVL in the IMU coordinate system, It is the external reference between DVL and IMU.
[0046] S402, IMU pre-integration is used to constrain the relative pose between image frames or DVL frames. The residual of IMU pre-integration is defined as
[0047]
[0048] in is the IMU pre-integration result between image frames or DVL frames, g w is the gravitational acceleration vector in the world coordinate system, [·] xyz Represents the operation of extracting the imaginary part of the quaternion, Represents quaternion multiplication.
[0049] S403, in the method, the camera adopts a pinhole camera model, and defines the visual reprojection residual on the normalized plane (z=1) in the camera coordinate system
[0050]
[0051] in is the corresponding feature pixel coordinate of the lth visual landmark point observed for the first time by the i-th image frame, is the pixel coordinate of the feature corresponding to the lth visual landmark point in the jth image frame. and is the external parameter between the camera and IMU, π c -1 is the inverse projection function that transforms the pixel position into the normalized coordinates on the normalized plane of the camera coordinate system through the camera model, {·} norm It is a function that transforms the camera coordinates of landmark points into normalized coordinates.
[0052] Furthermore, step S5 includes the following steps:
[0053] The full state vector in the sliding window is defined as
[0054] χ=[x 0 ,x 1 ,...,x n ,λ 0 ,λ 1 ,...,λ m ]
[0055]
[0056] where x k It is the IMU state at the corresponding moment of the image frame or DVL frame in the sliding window. The elements contained in it represent the position, velocity, direction, acceleration bias and angular velocity bias of the IMU sensor in the world coordinate system at this moment. k is the inverse depth of the k-th visual feature point in its first observation.
[0057] In order to obtain the optimal a posteriori estimate of the state quantity, we construct a nonlinear optimization problem based on factor graph optimization and use the ceres solver to optimize the state quantity. The cost function used is
[0058]
[0059] in and Represent the IMU pre-integration residual and the visual reprojection residual, respectively. represents the DVL residual, r p and H p represents the prior information obtained from marginalization (a processing method that uses information outside the sliding window to constrain the state quantity), ||·|| Σ represents the Mahalanobis norm of the vector under the covariance Σ, ρ(·) is the huber function used to reduce the interference of outliers on the optimization process, C is the set of visual landmarks observed at least twice in the sliding window, i and j represent the reference frame and the corresponding matching frame of the landmark, B is the IMU pre-integration set, and D is the DVL frame set.
[0060] Furthermore, step S6 includes the following steps:
[0061] S601. The system outputs the robot's position in the world coordinate system at the time of the latest image through the latest image frame state quantity. and posture
[0062] S602. In the sliding window, we only retain certain key state quantities to prevent the computing resources required for optimization from increasing dramatically over time. Therefore, it is necessary to design a strategy for image key frames and DVL frames to enter and exit the window.
[0063] First, the number of common view landmark points and the average pixel movement distance of feature points contained in the image frame are used to determine whether the image frame is a key frame. When the number of common view landmark points is lower than the set threshold or the average pixel movement distance of feature points is greater than the set threshold, the frame is set as a key frame, otherwise it is a non-key frame.
[0064] When the latest image frame is a non-key frame, or the consensus landmarks between the next-newest frame and the image frames contained in the window are insufficient and there is no DVL frame between the next-newest frame and the latest image frame, we will discard the next-newest image frame from the sliding window. If the next-newest image frame has a synchronized DVL frame, its synchronized DVL frame will be re-marked as a DVL-Visual asynchronous frame and retained in the sliding window. Although vision is temporarily lost at this time, the subsequently received DVL frame can establish a connection with the image frame or DVL frame in the sliding window through IMU pre-integration, thereby maintaining the stability of the system.
[0065] For other cases, we marginalize the image frame with the earliest timestamp from the sliding window. We discard the DVL frame before the second oldest image frame and no longer add it to the marginalization information. We only construct the marginalization information through visual feature matching information, IMU pre-integration information and old edge information. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 The figure is a flow chart of the method of the present invention.
[0067] Figure 2 Trajectory positioning diagram of different algorithms under the Caves dataset.
[0068] Figure 3 This is a diagram of the Holooocean underwater data collection scene in this embodiment.
[0069] FIG. 4 is a diagram showing the positioning trajectories of various positioning algorithms obtained by testing a simulation data set in this embodiment. DETAILED DESCRIPTION
[0070] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0071] Example
[0072] The present invention proposes a multi-sensor fusion underwater robot positioning method. It belongs to the field of underwater robot positioning. First, data is collected through the multi-sensor combination of camera, IMU, and DVL carried by the underwater robot; secondly, the camera and IMU measurement data are preprocessed and the system initialization is completed; the DVL measurement data is preprocessed again; then the residual factor is constructed through the data after the above two steps of preprocessing; then the sensor data fusion and the optimization of the system state estimation are completed through nonlinear optimization; finally, the posture estimation value is obtained through the optimized system state estimation and the window sliding is performed. Figure 1 As shown, the present invention proposes a multi-sensor fusion underwater robot positioning method, and its implementation method is as follows:
[0073] S1. Data collection through the combination of camera, IMU and DVL sensor carried by the underwater robot:
[0074] The underwater robot collects various measurement data through the sensors it carries. The camera collects underwater image data; the IMU measures the underwater robot's three-axis angular velocity and acceleration; and the DVL measures the underwater robot's three-axis velocity.
[0075] S2, preprocess the camera and IMU measurement data and complete the system initialization, the implementation method is as follows:
[0076] S201, we extract corner points and perform optical flow tracking for each new image captured by the camera, and construct visual feature point matching pairs through the above preprocessing steps. In the time interval between images or DVL frames, IMU pre-integration is performed through IMU measurement data.
[0077] S202, check whether the system is initialized. If the system has been initialized, enter S3, otherwise enter S203 to initialize the system.
[0078] S203, firstly, the estimated value of the IMU angular velocity zero bias is solved according to the visual feature information, the IMU pre-integration and the following cost function:
[0079]
[0080] Where B represents the index of all frames in the window, for b k Frame the body coordinate system to c 0 Rotation quaternion in coordinate system, is the rotation pre-integration of the IMU, is the rotation pre-integrated relative IMU angular velocity zero bias b w The Jacobian matrix of is a quaternion multiplication operation, and |||| is a vector modulus operation.
[0081] Then set the state vector as follows:
[0082]
[0083] in is the speed of the underwater robot in the body coordinate system when taking the Kth frame of image, c 0 The gravitational acceleration vector in the coordinate system, s is the scale of the monocular SfM to metric units. Considering two consecutive image frames b in the window k and b k+1 , the relationship between IMU pre-integration and state quantity is as follows:
[0084]
[0085] Where Δt k is the time interval between two consecutive frames, for The obtained rotation matrix is converted to establish a linear measurement model:
[0086]
[0087] in as follows:
[0088]
[0089] By solving a linear least squares problem:
[0090]
[0091] The scale information, initial posture, gravity acceleration vector and other information can be obtained to complete the initialization of the system.
[0092] S3, preprocessing DVL measurement data, the implementation method is as follows:
[0093] As a sensor that needs to work with the help of an external environment, DVL cannot avoid abnormal measurement data caused by external interference. In addition, the frequency of DVL generating measurement data is lower than that of cameras and IMUs, and the asynchrony between sensors creates certain obstacles to multi-source data fusion. To this end, we propose DVL abnormal data detection and DVL-image synchronization marking to preprocess DVL measurement data.
[0094] S301. DVL abnormal data detection: DVL abnormal data usually manifests as a sudden change in measurement data, that is, there is a huge difference between the abnormal data and the previous measurement data. Since the DVL measurement object is speed, acceleration can naturally be used to represent the speed of change. Therefore, the acceleration measurement value measured by IMU can be combined to determine whether the DVL measurement data is abnormal. Suppose the measurement value of DVL at time t is The last measurement was Δt is the time difference between two measurement data. The speed measured by DVL is converted to the IMU coordinate system through the external reference between IMU and DVL. and Calculate the acceleration between two measurements
[0095]
[0096] Assume that the IMU acceleration measurement value after removing the gravity acceleration component at the corresponding moment of the adjacent image frame measured by the DVL is Use the following formula to compare and determine whether the DVL measurement value is abnormal.
[0097]
[0098] where a threshold is the difference tolerance parameter, and |||| is the vector modulus operation. DVL data judged to be abnormal will be discarded to reduce the interference of DVL abnormal data on the system.
[0099] S302, DVL-image synchronization mark: In VID-SLAM, the DVL measurement data constrains the corresponding DVL frame state quantity, and further constrains the state quantity of the adjacent image frame or DVL frame through IMU pre-integration. The different measurement frequencies of the camera and DVL will cause different pre-integration times between the image frame and the DVL frame, and the IMU pre-integration factor with too short integration time will cause numerical instability during nonlinear optimization. In addition, when the timestamp interval between the DVL frame and the image frame is very short, the corresponding state quantity difference is small, and optimizing the two state quantities at the same time will cause a waste of computing resources. In order to solve these two problems, we mark the DVL frames into two categories according to their timestamps and the timestamps of the adjacent image frames, and adopt different association strategies during optimization. Let the timestamp of the DVL frame be t DVL, the timestamp of the adjacent image frame is t img , DVL frames are marked by the following criteria
[0100]
[0101] where t threshold This is the time interval threshold used. The value of this parameter is related to the measurement frequency of the DVL and the camera.
[0102] S4, constructing the residual factor through the sensor data preprocessed by S2 and S3, and the implementation method is as follows:
[0103] S401, DVL frames are divided into two categories after DVL-image synchronization mark processing: DVL-Visual asynchronous frames and DVL-Visual synchronous frames. The two have different ways of constructing DVL residual associated state quantities. For the former, the state quantity of the corresponding DVL frame is directly associated when constructing the DVL residual. While for the latter, the state quantity of the image frame with which it is synchronized is associated when constructing the DVL residual, that is, the state quantity of the synchronized DVL frame and the image frame is combined into one, reducing the number of optimization variables while enhancing the connection between each state quantity. The definition of DVL residual is
[0104]
[0105] in and Respectively represent the velocity measurement value of the DVL frame and the angular velocity measurement value of the IMU at the corresponding moment, is a quaternion The corresponding rotation matrix is, is the coordinate of DVL in the IMU coordinate system, It is the external reference between DVL and IMU.
[0106] S402, IMU pre-integration is used to constrain the relative pose between image frames or DVL frames. The residual of IMU pre-integration is defined as
[0107]
[0108] in is the IMU pre-integration result between image frames or DVL frames, g w is the gravitational acceleration vector in the world coordinate system, [·] xyz Represents the operation of extracting the imaginary part of the quaternion, Represents quaternion multiplication.
[0109] S403, in the method, the camera adopts a pinhole camera model, and defines the visual reprojection residual on the normalized plane (z=1) in the camera coordinate system
[0110]
[0111] in is the corresponding feature pixel coordinate of the lth visual landmark point observed for the first time by the i-th image frame, is the pixel coordinate of the feature corresponding to the lth visual landmark point in the jth image frame. and is the external parameter between the camera and IMU, π c -1 is the inverse projection function that transforms the pixel position into the normalized coordinates on the normalized plane of the camera coordinate system through the camera model, {·} norm It is a function that transforms the camera coordinates of landmark points into normalized coordinates.
[0112] S5. The sensor data fusion and the optimization of the system state estimation are completed through nonlinear optimization. The implementation method is as follows:
[0113] The full state vector in the sliding window is defined as
[0114] χ=[x 0 ,x 1 ,...,x n ,λ 0 ,λ 1 ,...,λ m ]
[0115]
[0116] where x k It is the IMU state at the corresponding moment of the image frame or DVL frame in the sliding window. The elements contained in it represent the position, velocity, direction, acceleration bias and angular velocity bias of the IMU sensor in the world coordinate system at this moment. k is the inverse depth of the k-th visual feature point in its first observation.
[0117] In order to obtain the optimal a posteriori estimate of the state quantity, we construct a nonlinear optimization problem based on factor graph optimization and use the ceres solver to optimize the state quantity. The cost function used is
[0118]
[0119] in and Represent the IMU pre-integration residual and the visual reprojection residual, respectively. represents the DVL residual, r p and H p represents the prior information obtained from marginalization, ||·|| Σrepresents the Mahalanobis norm of the vector under the covariance Σ, ρ(*) is the huber function used to reduce the interference of outliers on the optimization process, C is the set of visual landmarks observed at least twice in the sliding window, i and j represent the reference frame and the corresponding matching frame of the landmark, B is the IMU pre-integration set, and D is the DVL frame set.
[0120] S6. Obtain the pose estimation value through the optimized system state estimation and perform window sliding. The implementation method is as follows:
[0121] S601. The system outputs the robot's position in the world coordinate system at the time of the latest image through the latest image frame state quantity. and posture
[0122] S602. In the sliding window, we only retain certain key state quantities to prevent the computing resources required for optimization from increasing dramatically over time. Therefore, it is necessary to design a strategy for image key frames and DVL frames to enter and exit the window.
[0123] First, the number of common view landmark points and the average pixel movement distance of feature points contained in the image frame are used to determine whether the image frame is a key frame. When the number of common view landmark points is lower than the set threshold or the average pixel movement distance of feature points is greater than the set threshold, the frame is set as a key frame, otherwise it is a non-key frame.
[0124] When the latest image frame is a non-key frame, or the consensus landmarks between the next-newest frame and the image frames contained in the window are insufficient and there is no DVL frame between the next-newest frame and the latest image frame, we will discard the next-newest image frame from the sliding window. If the next-newest image frame has a synchronized DVL frame, its synchronized DVL frame will be re-marked as a DVL-Visual asynchronous frame and retained in the sliding window. Although vision is temporarily lost at this time, the subsequently received DVL frame can establish a connection with the image frame or DVL frame in the sliding window through IMU pre-integration, thereby maintaining the stability of the system.
[0125] For other cases, we marginalize the image frame with the earliest timestamp from the sliding window. We discard the DVL frame before the second oldest image frame and no longer add it to the marginalization information. We only construct the marginalization information through visual feature matching information, IMU pre-integration information and old edge information.
[0126] In this embodiment
[0127] In order to verify the performance of a multi-sensor fusion underwater robot positioning method, we tested it in the underwater dataset Caves and the underwater simulator Holoocean. The experiment tested the performance of the SOTA (currently the best performance) algorithms VINS-mono and ORB-SLAM3 in VI-SLAM (visual inertial navigation fusion SLAM algorithm), as well as the INEKF (invariant Kalman filter) and EKF (extended Kalman filter) positioning algorithms fused by IMU-DVL, as a comparative baseline for the performance evaluation of a multi-sensor fusion underwater robot positioning method (VID-SLAM) proposed by our invention.
[0128] The underwater dataset Caves was collected in a group of underwater caves on the seabed, and the caves were explored with the help of AUVs equipped with sensors such as cameras, IMUs, DVLs, and sonars. The size of the test site is about 100m×100m, and the AUV's driving route includes typical underwater scenes such as water plants, coral reefs, and sand.
[0129] Table 1. Cone spacing in the positioning results of each positioning algorithm in the Caves dataset (unit / meter)
[0130]
[0131]
[0132] Since it is very difficult to calibrate the path truth when making underwater datasets, the Caves dataset does not contain the path truth. The dataset author recommends using the distance between the cones pre-arranged in the AUV driving path as a reference. Figure 2 , the quantified cone spacing is shown in Table 1. Due to the scarcity of underwater features and dim lighting, the ORB-SLAM3 algorithm cannot complete initialization and cannot run at all, while the VINS-mono algorithm cannot continue to run after the AUV enters the sandy environment due to tracking loss, and the algorithm also has the problem of small scale. Both algorithms show insufficient robustness in underwater environments. Although InEKF and EKF can run completely, the scale of InEKF positioning trajectory is small, and both InEKF and EKF are affected by abnormal DVL data, and burrs appear in the trajectory. VID-SLAM has the highest positioning accuracy and the smoothest trajectory among all compared algorithms. In addition, VID-SLAM can run normally on sections with visual loss, and has stronger robustness than VINS and ORB-SLAM3.
[0133] The Holoocean simulator simulates two underwater scenes, Dam and Openwater. The Dam scene is built around a dam. The size of the entire scene is 650m×650m. The scene lighting conditions are poor and the visual features are not significant. We carry out underwater robot inspections of dams and underwater pipelines in this scene. The task trajectory length is about 680m and is named Dam_seq. The Openwater scene is built around a seabed covered with aquatic plants. The size of the entire scene is 2km×2km. The scene lighting conditions are good and the visual features of the aquatic plant area are rich, but the visual features in some sandy areas are not significant. In this scene, we simulate the underwater robot's detection of a submarine wreck and the surrounding environment on the seabed. The task trajectory length is about 490m and is named Openwater_seq. See the data collection scene. Figure 3 .
[0134] Table 2. ATE indicators of positioning results of various positioning algorithms in Holoocean simulation
[0135]
[0136]
[0137] The absolute path error (ATE, in meters) of each positioning algorithm obtained by the simulation data set test is shown in Table 2, and the positioning trajectory is shown in Figure 4. ORB-SLAM3 cannot complete initialization in the Dam-seq sequence with dim light and sparse features. Although it can complete initialization in Openwater-seq, it is still easy to lose tracking in sections with sparse visual features. VINS-mono, which is also a VI-SLAM, has greatly improved its positioning accuracy in the Openwater_seq sequence compared with the Dam-seq sequence, thanks to the improvement of the underwater visual environment. This shows that the algorithm requires good visual conditions (sufficient lighting and rich visual features) to run stably in the underwater environment. Since the IMU in the simulator cannot provide the initial value of the pose, the EKF cannot run. InEKF has comparable positioning accuracy in the two test sequences and has good consistency. This is because the IMU and DVL sensors it uses are not affected by changes in the visual environment, and its positioning accuracy depends on the performance of the sensor hardware. VID-SLAM has the highest positioning accuracy among the compared algorithms. Thanks to the introduction of DVL, our algorithm has a 45.8% performance improvement in Dam-seq sequence and a 22.1% performance improvement in Openwater_seq sequence compared to the infrastructure VINS-mono. The test on the data set verifies that the underwater robot positioning method based on multi-sensor fusion proposed in this invention has good positioning accuracy and robustness.
Claims
1. A multi-sensor fusion underwater robot positioning method (VID-SLAM), characterized in that: The following steps are involved: S1, collect data through the combination of camera, IMU and DVL sensor carried by the underwater robot; S2, preprocessing camera and IMU measurement data and completing system initialization; S3, preprocessing DVL measurement data; S4, constructing residual factors through sensor data preprocessed by S2 and S3; S5. Complete the sensor data fusion and system state estimation optimization through nonlinear optimization; S6. Obtain the pose estimation value through the optimized system state estimation and perform window sliding.
2. The underwater robot positioning method of multi-sensor fusion according to claim 1 is characterized in that: The sensor data collected in step S1 are as follows: The underwater robot collects various measurement data through the sensors it carries. The camera collects underwater image data; the IMU measures the underwater robot's three-axis angular velocity and acceleration; and the DVL measures the underwater robot's three-axis velocity.
3. The underwater robot positioning method of multi-sensor fusion according to claim 2 is characterized in that: The steps of step S2 are as follows: S201. We extract corner points and perform optical flow tracking for each new image captured by the camera, and construct visual feature point matching pairs through the above preprocessing steps. In the time interval between images or DVL frames (image frame refers to the image data captured by the camera at a certain moment; DVL frame refers to the three-dimensional velocity vector measured by the DVL sensor at a certain moment), IMU pre-integration (a method of processing IMU measurement data) is performed through IMU measurement data. S202, check whether the system is initialized. If the system has been initialized, enter S3, otherwise enter S203 to initialize the system. S203, firstly, the estimated value of the IMU angular velocity zero bias is solved according to the visual feature information, the IMU pre-integration and the following cost function: Where B represents the index of all image frames in the window, for b k The rotation quaternion from the frame body coordinate system to the c0 coordinate system, is the rotation pre-integration of the IMU, is the rotation pre-integrated relative IMU angular velocity zero bias b w The Jacobian matrix of is the quaternion multiplication operation, and || || is the vector modulus operation. Then set the state vector as follows: in is the speed of the underwater robot in the body coordinate system (the IMU coordinate system is selected as the body coordinate system of the underwater robot in the method) when the Kth frame image is taken, is the gravity acceleration vector in the c0 coordinate system, and s is the scale of the monocular SfM (Structure from Motion) to metric units. Considering two consecutive image frames b in the window k and b k+1 , the relationship between IMU pre-integration and state quantity is as follows: Where Δt k is the time interval between two consecutive frames, for The obtained rotation matrix is converted to establish a linear measurement model: in as follows: By solving a linear least squares problem: The scale information, initial posture, gravity acceleration vector and other information can be obtained to complete the initialization of the system.
4. According to the multi-sensor fusion underwater robot positioning method of claim 3, the steps of step S3 are as follows: As a sensor that needs to work with the help of an external environment, DVL cannot avoid abnormal measurement data caused by external interference. In addition, the frequency of DVL generating measurement data is lower than that of cameras and IMUs, and the asynchrony between sensors creates certain obstacles to multi-source data fusion. To this end, we propose DVL abnormal data detection and DVL-image synchronization marking to preprocess DVL measurement data. S301. DVL abnormal data detection: DVL abnormal data usually manifests as a sudden change in measurement data, that is, there is a huge difference between the abnormal data and the previous measurement data. Since the DVL measurement object is speed, acceleration can naturally be used to represent the speed of change. Therefore, the acceleration measurement value measured by IMU can be combined to determine whether the DVL measurement data is abnormal. Suppose the measurement value of DVL at time t is The last measurement was Δt is the time difference between two measurement data. The speed measured by DVL is converted to the IMU coordinate system through the external reference between IMU and DVL. and Calculate the acceleration between two measurements Assume that the IMU acceleration measurement value after removing the gravity acceleration component at the corresponding moment of the adjacent image frame measured by the DVL is Use the following formula to compare and determine whether the DVL measurement value is abnormal. where a threshold is the difference tolerance parameter, and || || is the vector modulus operation. DVL data judged to be abnormal will be discarded to reduce the interference of DVL abnormal data on the system. S302, DVL-image synchronization mark: In VID-SLAM, the DVL measurement data constrains the corresponding DVL frame state quantity, and further constrains the state quantity of the adjacent image frame or DVL frame through IMU pre-integration. The different measurement frequencies of the camera and DVL will cause different pre-integration times between the image frame and the DVL frame, and the IMU pre-integration factor with too short integration time will cause numerical instability during nonlinear optimization. In addition, when the timestamp interval between the DVL frame and the image frame is very short, the corresponding state quantity difference is small, and optimizing the two state quantities at the same time will cause a waste of computing resources. In order to solve these two problems, we mark the DVL frames into two categories according to their timestamps and the timestamps of the adjacent image frames, and adopt different association strategies during optimization. Let the timestamp of the DVL frame be t DVL , the timestamp of the adjacent image frame is t img , DVL frames are marked by the following criteria where t threshold This is the time interval threshold used. The value of this parameter is related to the measurement frequency of the DVL and the camera.
5. According to the multi-sensor fusion underwater robot positioning method of claim 4, the steps of step S4 are as follows: S401, DVL frames are divided into two categories after DVL-image synchronization mark processing: DVL-Visual asynchronous frames and DVL-Visual synchronous frames. The two have different ways of constructing DVL residual associated state quantities. For the former, the state quantity of the corresponding DVL frame is directly associated when constructing the DVL residual. While for the latter, the state quantity of the image frame with which it is synchronized is associated when constructing the DVL residual, that is, the state quantity of the synchronized DVL frame and the image frame is combined into one, reducing the number of optimization variables while enhancing the connection between each state quantity. The definition of DVL residual is in and Respectively represent the velocity measurement value of the DVL frame and the angular velocity measurement value of the IMU at the corresponding moment, is a quaternion The corresponding rotation matrix is, is the coordinate of DVL in the IMU coordinate system, It is the external reference between DVL and IMU. S402, IMU pre-integration is used to constrain the relative pose between image frames or DVL frames. The residual of IMU pre-integration is defined as in is the IMU pre-integration result between image frames or DVL frames, g w is the gravitational acceleration vector in the world coordinate system, [·] xyz Represents the operation of extracting the imaginary part of the quaternion, Represents quaternion multiplication. S403, in the method, the camera adopts a pinhole camera model, and defines the visual reprojection residual on the normalized plane (z=1) in the camera coordinate system in is the corresponding feature pixel coordinate of the lth visual landmark point observed for the first time by the i-th image frame, is the pixel coordinate of the feature corresponding to the lth visual landmark point in the jth image frame. and is the external parameter between the camera and IMU, π c -1 is the inverse projection function that transforms the pixel position into the normalized coordinates on the normalized plane of the camera coordinate system through the camera model, {·} norm It is a function that transforms the camera coordinates of landmark points into normalized coordinates.
6. According to the multi-sensor fusion underwater robot positioning method of claim 5, the steps of step S5 are as follows: The full state vector in the sliding window is defined as χ=[x0,x1,...,x n ,λ0,λ1,...,λ m ] where x k It is the IMU state at the corresponding moment of the image frame or DVL frame in the sliding window. The elements contained in it represent the position, velocity, direction, acceleration bias and angular velocity bias of the IMU sensor in the world coordinate system at this moment. k is the inverse depth of the kth visual feature point in its first observation. In order to obtain the optimal a posteriori estimate of the state quantity, we construct a nonlinear optimization problem based on factor graph optimization and use the ceres solver to optimize the state quantity. The cost function used is in and Represent the IMU pre-integration residual and the visual reprojection residual, respectively. represents the DVL residual, r p and H p represents the prior information obtained from marginalization (a processing method that uses information outside the sliding window to constrain the state quantity), ||·|| Σ represents the Mahalanobis norm of the vector under the covariance Σ, ρ(·) is the huber function used to reduce the interference of outliers on the optimization process, C is the set of visual landmarks observed at least twice in the sliding window, i and j represent the reference frame and the corresponding matching frame of the landmark, B is the IMU pre-integration set, and D is the DVL frame set.
7. According to the multi-sensor fusion underwater robot positioning method of claim 6, the steps of step S6 are as follows: S601. The system outputs the robot's position in the world coordinate system at the time of the latest image through the latest image frame state quantity. and posture S602. In the sliding window, we only retain certain key state quantities to prevent the computing resources required for optimization from increasing dramatically over time. Therefore, it is necessary to design a strategy for image key frames and DVL frames to enter and exit the window. First, the number of common view landmark points and the average pixel movement distance of feature points contained in the image frame are used to determine whether the image frame is a key frame. When the number of common view landmark points is lower than the set threshold or the average pixel movement distance of feature points is greater than the set threshold, the frame is set as a key frame, otherwise it is a non-key frame. When the latest image frame is a non-key frame, or the consensus landmarks between the next-newest frame and the image frames contained in the window are insufficient and there is no DVL frame between the next-newest frame and the latest image frame, we will discard the next-newest image frame from the sliding window. If the next-newest image frame has a synchronized DVL frame, its synchronized DVL frame will be re-marked as a DVL-Visual asynchronous frame and retained in the sliding window. Although vision is temporarily lost at this time, the subsequently received DVL frame can establish a connection with the image frame or DVL frame in the sliding window through IMU pre-integration, thereby maintaining the stability of the system. For other cases, we marginalize the image frame with the earliest timestamp from the sliding window. We discard the DVL frame before the second oldest image frame and no longer add it to the marginalization information. We only construct the marginalization information through visual feature matching information, IMU pre-integration information and old edge information.
Citation Information
Cited By
Underwater vision-inertia-acoustic odometer positioning method fused with DVL
CN119756338A
Method and system for calibrating inertial sensor by Doppler log
CN120385369A
