Semi-physical simulation platform and method for UUV (Unmanned Underwater Vehicle) water surface target identification and guidance

By combining the Nanodet target recognition system and the similar triangle infrared ranging module in the UUV water surface target recognition and guidance, combined with the infrared photoelectric instrument-ROS underwater simulation platform, the existing technology of UUV water surface target recognition and guidance in the complex underwater environment is solved. It solves the accuracy and stability problems and achieves accurate identification and guidance of underwater UUV targets.

CN118534788APending Publication Date: 2024-08-23NORTHWESTERN POLYTECHNICAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410542940.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-01
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing UUV water surface target recognition and guidance technology is difficult to achieve accurate target recognition and guidance in complex underwater environments, especially under changeable underwater conditions. The existing semi-physical simulation platform cannot effectively simulate the real environment and real-time interaction. , resulting in insufficient guidance accuracy and stability.

Method used

Using a Nanodet-based target recognition system and a similar triangle-based monocular infrared ranging module, combined with an infrared photoelectric instrument-ROS underwater simulation platform, the target coordinates are calculated through the Nanodet target recognition algorithm and similar triangle ranging algorithm, and through TCP/IP The protocol imports the target coordinates into the simulation system to realize real-time guidance simulation of UUV.

Benefits of technology

It achieves accurate identification and guidance of underwater UUV targets, can complete guidance and tracking of specific targets under simulated various underwater terrains and conditions, and improves the accuracy and applicability of guidance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534788A
    Figure CN118534788A
Patent Text Reader

Abstract

The invention discloses a semi-physical simulation platform and a semi-physical simulation method for UUV (Unmanned Underwater Vehicle) water surface target identification guidance, which are used for underwater target guidance and tracking and comprise a Nanodet-based target identification system, a similar triangle-based monocular infrared distance measurement module and an infrared photoelectric instrument-ROS underwater simulation platform. The Nanodet-based target recognition system carries out early training and feature detection on a specific target; calculating the distance from the recognized target to the infrared photoelectric instrument based on a similar triangle monocular infrared distance measurement method, and calculating the coordinate of the target at the current moment by combining the rotation angle of the holder; and the infrared photoelectric instrument-ROS underwater simulation platform imports the target coordinates into a simulation system through a TCP / IP protocol, and real-time guidance simulation from the UUV to the target is completed in the ROS robot operation platform. According to the invention, the target guidance of the underwater UUV based on a Nanodet target detection algorithm and a similar triangle ground monocular infrared distance measurement algorithm is fully realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of simulation technology, and in particular relates to a semi-physical simulation platform and method for UUV surface target recognition and guidance. Background Art

[0002] Precision guidance is the primary task of underwater warfare. In the current maritime battlefield environment, the means of confrontation between the enemy and us are becoming increasingly complex. It is of great significance to study guided weapons with higher precision, longer range and stronger anti-interference ability. The precision guidance of underwater UUVs with the help of infrared optoelectronic instruments mainly includes surface target recognition technology, path planning and guidance technology.

[0003] Surface target recognition technology refers to the technology of using visual sensor data to detect and identify surface targets. Common surface target recognition technologies include sonar image processing, camera image processing, optoelectronic buoys equipped with infrared optoelectronic instruments, and other sensor data fusion technologies. These technologies can help UUV systems accurately identify surface targets and provide reliable data support for subsequent guidance decisions. Path planning and guidance technology refers to the technology of determining the navigation path of the UUV system and realizing autonomous guidance based on the target recognition results. These technologies need to consider the complexity of the surface and underwater environment, the dynamic characteristics of the UUV system, and the specific requirements of the task. Commonly used path planning and guidance technologies include rule-based path planning, optimization algorithms, and machine learning methods. Semi-physical simulation platform refers to combining actual hardware equipment with computer simulation technology to build a simulation platform that can simulate the real environment and interact in real time. In the research of UUV surface target recognition and guidance, the semi-physical simulation platform can be used to simulate the underwater environment, the behavior of the UUV system, and the performance of the sensor, and to realize real-time testing and verification of the path planning and guidance algorithms.

[0004] In summary, the research on the semi-physical simulation platform and method for UUV surface target recognition and guidance requires the comprehensive use of underwater target recognition technology, path planning and guidance technology, and semi-physical simulation technology to achieve effective control of the UUV system and mission execution. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art, the present invention provides a semi-physical simulation platform and method for UUV surface target recognition and guidance, and for underwater target guidance and tracking, including a target recognition system based on Nanodet, a monocular infrared ranging module based on similar triangles, and an infrared photoelectric instrument-ROS underwater simulation platform; the target recognition system based on Nanodet performs preliminary training and feature detection on specific targets; the monocular infrared ranging method based on similar triangles calculates the distance from the identified target to the infrared photoelectric instrument, and calculates the coordinates of the target at the current moment in combination with the pan-tilt rotation angle; the infrared photoelectric instrument-ROS underwater simulation platform imports the target coordinates into the simulation system through the TCP / IP protocol, and completes the real-time guidance simulation of the UUV to the target in the ROS robot operation platform. The present invention fully realizes the target guidance of underwater UUV by the Nanodet target detection algorithm and the monocular infrared ranging algorithm based on similar triangles.

[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0007] A semi-physical simulation platform for UUV surface target recognition and guidance, including a target recognition system based on Nanodet, a monocular infrared ranging module based on similar triangles, and an infrared optoelectronic instrument-ROS underwater simulation platform;

[0008] The Nanodet-based target recognition system completes target detection of streaming video frames through the Nanodet target recognition algorithm;

[0009] The Nanodet target recognition algorithm includes three operating modes, namely, target detection from real-time images captured by the camera, target detection on images in a specified folder, and target detection on a specified video file;

[0010] Select weights and network training parameters to train the Nanodet target recognition algorithm; after training, the infrared photoelectric instrument transmits streaming video information through the USB port, and the collected visual matrix is ​​input into the Nanodet target recognition algorithm for video reading and real-time display. After target recognition, the image information, confidence and category are returned;

[0011] The monocular infrared ranging module based on similar triangles calculates the focal length of the infrared photoelectric instrument camera by inputting a target image with a known target-to-camera distance in the target recognition algorithm data set in advance, and then calculates the distance from the target to the camera through the focal length;

[0012] The infrared photoelectric instrument-ROS underwater simulation platform includes an infrared photoelectric instrument and a ROS underwater simulation system; the target recognition of the video stream collected by the infrared photoelectric instrument is completed through the Nanodet target recognition algorithm; the target distance is measured through a monocular infrared ranging module based on similar triangles, and the target position coordinates are calculated in combination with the rotating pan-tilt angle; the target position coordinates are subscribed through the ROS topic, the ROS node is started, and the underwater UUV guidance task is completed;

[0013] The infrared photoelectric instrument focuses light onto a photosensitive element through a lens and converts light signals into electrical signals, and can capture images outside the range of the infrared light image; the infrared photoelectric instrument includes a pan-tilt that can rotate ±180°, and the target is found by rotating the pan-tilt.

[0014] Preferably, the ROS underwater simulation system is developed based on the ROS1+Gazebo+rviz environment under the ubuntu18.04 operating system; the ROS1 supports two languages, python and c++, to write different modules respectively; the Gazebo is used to perform dynamics and sensor simulation of the UUV; the rivz is used to realize the visualization of the simulation environment, present the geometric features of the UUV, and display waypoints, UUV trajectories, sonar, and odometer parameters.

[0015] Preferably, the Nanodet target recognition algorithm is implemented in the conda virtual environment under Anaconda during environment configuration, and the virtual environment is all set to conda activate=3.8 when activated.

[0016] Preferably, the server of the semi-physical simulation platform is in the Python 3 version of the virtual environment activated by Anaconda, the client is in the Python 2 script in the ROS Melodic operating system, and the robot ROS system runs in the Ubuntu Bionic 18.04 system.

[0017] A semi-physical simulation method for UUV surface target recognition and guidance specifically includes the following steps:

[0018] Step 1: Design the Nanodet target dataset and target recognition program to realize target detection;

[0019] Step 1-1: Create a target dataset for the target image, including collecting images of the target under different backgrounds, labeling the target, selecting pre-training weights, and training the network and generating the final optimal target weights;

[0020] Step 1-2: Design a streaming video specific target recognition algorithm based on Nanodet, activate the Python=3.8 environment in Anaconda, install the relevant configuration files, and complete the streaming video frame reading;

[0021] Step 1-3: Design the constructor of the Nanodet class to load the model and parameter files and initialize ncnn;

[0022] Step 1-4: Call the create_extractor function of the ncnn model to create an inferencer, set the number of threads, input the preprocessed image, and extract the prediction results from the output;

[0023] Step 1-5: parse the output feature map, generate bounding boxes based on the prediction results, and use the non-maximum suppression (NMS) algorithm to filter overlapping bounding boxes;

[0024] Step 1-6: Return the filtered bounding box information to the caller, including bounding box coordinates, confidence, and category;

[0025] Step 2: Design a monocular infrared ranging method based on similar triangles to realize target coordinate calculation;

[0026] Step 2-1: Get the target outline and define a function find_marker to find the target object to be calculated in the image. The target has been identified and marked in step 1. Convert the input image to a grayscale image, use Gaussian blur to reduce the high-frequency noise of the image, and then use the Canny algorithm to detect the edge of the image.

[0027] Step 2-2: Calculate the image distance and define the distance calculation function:

[0028]

[0029] Where D is the distance from the object to the camera, W is the known width of the object, F is the focal length, and P is the pixel width of the object in the image;

[0030] First, determine the known distance of the target object from the camera and the known width of the object; then, load a picture of the object at a known distance from the camera, find the outline of the object using the find_marker function, and use this information to calculate the focal length; loop through the pictures and calculate the distance. In the loop, process each picture, use the find_marker function to find the outline of the object, and then call the distance calculation function to calculate the distance from the object to the camera; the results are displayed on the picture, including the drawn bounding box and distance information;

[0031] Step 2-3: Calculate the target coordinates, calculate the angle of the rotating gimbal equipped with the infrared photoelectric instrument, and calculate the target azimuth. The target azimuth φ is the rotation angle α of the gimbal carried by the semi-physical simulation platform in the current state:

[0032] φ=α

[0033] Combined with the distance D' from the camera to the target and the target azimuth φ, calculate the horizontal and vertical coordinates (x, y) of the target:

[0034] (x,y)=(D'cosφ,D'sinφ)

[0035] Step 3: Complete the semi-physical simulation of infrared optoelectronic instrument-ROS UUV surface target guidance, obtain the target position coordinates through ROS topic subscription, start the ROS node, and complete the guidance simulation of UUV from the starting point to the target position.

[0036] The beneficial effects of the present invention are as follows:

[0037] The present invention fully implements the Nanodet target detection algorithm and the monocular infrared ranging algorithm based on similar triangles to guide the underwater UUV. The designed semi-physical simulation platform can simulate various underwater terrains, target types and underwater conditions, and combine infrared photoelectric information to complete the guidance and tracking requirements for specific targets, which can better meet the actual application needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is the overall structure diagram of the platform of the present invention;

[0039] Figure 2 The flowchart of the monocular infrared ranging method based on similar triangles of the present invention;

[0040] Figure 3 This is a target recognition and ranging effect diagram of the present invention;

[0041] Figure 4 This is a diagram showing the operation effect of the ROS underwater UUV simulation platform of the present invention. DETAILED DESCRIPTION

[0042] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0043] In order to overcome the shortcomings of the prior art, the present invention provides a semi-physical simulation platform and method for UUV surface target recognition and guidance. The system is for underwater target guidance and tracking, including a target recognition system based on Nanodet, a monocular infrared ranging method based on similar triangles, and an infrared photoelectric instrument-ROS underwater simulation platform; the target recognition system based on Nanodet performs preliminary training and feature detection on specific targets; the monocular infrared ranging method based on similar triangles calculates the distance from the identified target to the infrared photoelectric instrument, and calculates the coordinates of the target at the current moment in combination with the pan-tilt rotation angle; the infrared photoelectric instrument-ROS underwater simulation platform imports the target coordinates into the simulation system through the TCP / IP protocol, and completes the real-time guidance simulation of the UUV to the target in the ROS robot operation platform. In this example, a land experiment is used to demonstrate the target recognition and ranging effects. A car is used as the target in the semi-physical simulation, and the distance between the car and the infrared photoelectric instrument is 20m.

[0044] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0045] A semi-physical simulation platform and method for UUV surface target recognition and guidance, including a target recognition system based on Nanodet, a monocular infrared ranging module based on similar triangles, and an infrared optoelectronic instrument-ROS underwater simulation platform;

[0046] The Nanodet-based target recognition system completes target detection of streaming video frames through the Nanodet target recognition algorithm;

[0047] The Nanodet target recognition algorithm includes three operating modes, namely, capturing real-time images from a camera for target detection (webcam), performing target detection on images in a specified folder (image), and performing target detection on a specified video file (video);

[0048] Select weights and network training parameters to train the recognition algorithm; after training, the infrared photoelectric instrument transmits streaming video information through the USB port, inputs the collected visual matrix into the target recognition program, reads the video and displays it in real time, and returns image information, confidence and category after target recognition;

[0049] The monocular infrared ranging module based on similar triangles calculates the focal length of the infrared photoelectric instrument camera by pre-inputting a target image with a known target-to-camera distance in the target recognition algorithm data set, and then calculates the distance from the target to the camera through the focal length;

[0050] The infrared photoelectric instrument-ROS underwater simulation platform includes an infrared photoelectric instrument and a ROS underwater simulation system; the target recognition of the video stream collected by the infrared photoelectric instrument is completed by the Nanodet target recognition algorithm; the target distance is measured by the monocular infrared ranging algorithm based on similar triangles, and the target position coordinates are calculated in combination with the rotating pan-tilt angle; the target position coordinates are subscribed through the ROS topic, the ROS node is started, and the underwater UUV guidance task is completed;

[0051] The infrared photoelectric instrument focuses light onto a photosensitive element through a lens and converts light signals into electrical signals, and can capture images outside the range of the infrared light image; the infrared photoelectric instrument includes a pan-tilt that can rotate ±180°, and the target is found by rotating the pan-tilt;

[0052] The ROS underwater simulation system is developed based on the ROS1+Gazebo+rviz environment under the ubuntu18.04 operating system; the ROS1 supports two languages, python and c++, to write different modules respectively; the Gazebo is used to simulate the dynamics and sensors of the UUV; the rivz is used to realize the visualization of the simulation environment, which can well present the geometric features of the UUV and display parameters such as waypoints, UUV trajectories, sonar, and odometer;

[0053] The UUV system design of the simulation platform, the global waypoints of the UUV can be determined by the UUV simulator. The global planning module of the UUV simulator can generate global waypoints based on the obstacle prior information in the initial map. After that, the forward-looking sonar of the UUV updates the map based on the detected environmental information, generates new waypoints, and realizes dynamic obstacle avoidance. Then the trajectory generation module generates a trajectory suitable for UUV guidance based on these waypoints. The UUV control module controls the UUV to track the generated trajectory based on the generated trajectory and the current position of the UUV.

[0054] The Nanodet algorithm is implemented in the conda virtual environment under Anaconda during environment configuration, and all virtual environments are set to conda activate=3.8 when activated.

[0055] The described semi-physical simulation platform for UUV surface target recognition and guidance has a server in the virtual environment Python3 version activated by Anaconda, a client in the Python2 script in the ROS Melodic operating system, and a robot ROS system running in the Ubuntu Bionic18.04 system.

[0056] A semi-physical simulation method for UUV surface target recognition and guidance includes the following steps:

[0057] Step 1: Design the Nanodet target dataset and target recognition program to realize target detection;

[0058] Step 1-1: Create a target dataset for the target image, including collecting images of the target under different backgrounds, labeling the target, selecting pre-training weights and training the network, and generating the final optimal target weights;

[0059] Step 1-2: Design a streaming video specific target recognition algorithm based on Nanodet, activate the Python=3.8 environment in Anaconda, install the relevant configuration files, and complete the streaming video frame reading;

[0060] Step 1-3: Design the constructor of the Nanodet class to load the model and parameter files and initialize ncnn;

[0061] Step 1-4: Call the create_extractor function of the ncnn model to create an inferencer, set parameters such as the number of threads, input the preprocessed image, and extract the prediction results from the output;

[0062] Step 1-5: parse the output feature map, generate bounding boxes based on the prediction results, and use the non-maximum suppression (NMS) algorithm to filter overlapping bounding boxes;

[0063] Step 1-6: Return the filtered bounding box information to the caller, including bounding box coordinates, confidence, category, etc.

[0064] Step 2: Design a monocular infrared ranging method based on similar triangles to realize target coordinate calculation;

[0065] Step 2-1: Get the target outline and define a function find_marker to find the target object in the image whose distance we want to calculate. The target has been identified and marked in step 1. Convert the input image to a grayscale image, use Gaussian blur to reduce the high-frequency noise of the image, and then use the Canny algorithm to detect the edge of the image;

[0066] Step 2-2: Calculate the distance from the photoelectric instrument to the target:

[0067]

[0068] Where D is the distance from the object to the camera, W is the known width of the object, F is the focal length, and P is the pixel width of the object in the image.

[0069] First, determine the known distance of the target object from the camera and the known width of the object. Then, load an image with a known distance of the object from the camera, find the outline of the object using the find_marker function, and use this information to calculate the focal length. Loop through the images and calculate the distance. In the loop, process each image, use the find_marker function to find the outline of the object, and then call the distance calculation function to calculate the distance from the object to the camera. The results are displayed on the image, including the drawn bounding box and distance information.

[0070] Step 2-3: Calculate the target coordinates, calculate the angle of the rotating gimbal equipped with the infrared photoelectric instrument, and calculate the target azimuth. The target azimuth φ is the rotation angle α of the gimbal carried by the semi-physical simulation platform in the current state:

[0071] φ=α=129.2°

[0072] Combined with the distance D from the camera to the target and the target azimuth φ, calculate the horizontal and vertical coordinates (x, y) of the target:

[0073] (x,y)=(Dcosφ,Dsinφ)=(-12.19m,14.94m)

[0074] Step 3: Complete the semi-physical simulation of infrared optoelectronic instrument-ROS UUV surface target guidance. The initial position coordinates of UUV are (0, 0). Obtain the target position coordinates through ROS topic subscription, start the ROS node, and complete the guidance simulation of UUV from the starting point to the target position.

Claims

1. A semi-physical simulation platform for UUV surface target recognition and guidance, characterized in that: Including the target recognition system based on Nanodet, the monocular infrared ranging module based on similar triangles, and the infrared optoelectronic instrument-ROS underwater simulation platform; The Nanodet-based target recognition system completes target detection of streaming video frames through the Nanodet target recognition algorithm; The Nanodet target recognition algorithm includes three operating modes, namely, target detection from real-time images captured by the camera, target detection on images in a specified folder, and target detection on a specified video file; Select weights and network training parameters to train the Nanodet target recognition algorithm; After the training is completed, the infrared photoelectric instrument transmits the streaming video information through the USB port, and the collected visual matrix is ​​input into the Nanodet target recognition algorithm for video reading and real-time display. After target recognition, the image information, confidence and category are returned; The monocular infrared ranging module based on similar triangles calculates the focal length of the infrared photoelectric instrument camera by inputting a target image with a known target-to-camera distance in the target recognition algorithm data set in advance, and then calculates the distance from the target to the camera through the focal length; The infrared photoelectric instrument-ROS underwater simulation platform includes an infrared photoelectric instrument and a ROS underwater simulation system; the target recognition of the video stream collected by the infrared photoelectric instrument is completed through the Nanodet target recognition algorithm; the target distance is measured through a monocular infrared ranging module based on similar triangles, and the target position coordinates are calculated in combination with the rotating pan-tilt angle; the target position coordinates are subscribed through the ROS topic, the ROS node is started, and the underwater UUV guidance task is completed; The infrared photoelectric instrument focuses light onto a photosensitive element through a lens and converts light signals into electrical signals, and can capture images outside the range of the infrared light image; the infrared photoelectric instrument includes a pan-tilt that can rotate ±180°, and the target is found by rotating the pan-tilt.

2. A semi-physical simulation platform for UUV surface target recognition and guidance according to claim 1, characterized in that: The ROS underwater simulation system is developed based on the ROS1+Gazebo+rviz environment under the ubuntu18.04 operating system; the ROS1 supports two languages, python and c++, to write different modules respectively; the Gazebo is used to simulate the dynamics and sensors of the UUV; the rivz is used to realize the visualization of the simulation environment, present the geometric features of the UUV, and display waypoints, UUV trajectories, sonar, and odometer parameters.

3. A semi-physical simulation platform for UUV surface target recognition and guidance according to claim 1, characterized in that: The Nanodet target recognition algorithm is implemented in the conda virtual environment under Anaconda during environment configuration, and all virtual environments are set to conda activate=3.8 when activated.

4. A semi-physical simulation platform for UUV surface target recognition and guidance according to claim 1, characterized in that: The semi-physical simulation platform has a server in the Python3 version of the virtual environment activated by Anaconda, a client in the Python2 script in the ROS Melodic operating system, and a robot ROS system running in the Ubuntu Bionic18.04 system.

5. A semi-physical simulation method using the platform as claimed in claim 1, characterized in that: The specific steps include: Step 1: Design the Nanodet target dataset and target recognition program to realize target detection; Step 1-1: Create a target dataset for the target image, including collecting images of the target under different backgrounds, labeling the target, selecting pre-training weights, and training the network and generating the final optimal target weights; Step 1-2: Design a streaming video specific target recognition algorithm based on Nanodet, activate the Python=3.8 environment in Anaconda, install the relevant configuration files, and complete the streaming video frame reading; Step 1-3: Design the constructor of the Nanodet class to load the model and parameter files and initialize ncnn; Step 1-4: Call the create_extractor function of the ncnn model to create an inferencer, set the number of threads, input the preprocessed image, and extract the prediction results from the output; Step 1-5: parse the output feature map, generate bounding boxes based on the prediction results, and use the non-maximum suppression (NMS) algorithm to filter overlapping bounding boxes; Step 1-6: Return the filtered bounding box information to the caller, including bounding box coordinates, confidence, and category; Step 2: Design a monocular infrared ranging method based on similar triangles to realize target coordinate calculation; Step 2-1: Get the target outline and define a function find_marker to find the target object to be calculated in the image. The target has been identified and marked in step 1. Convert the input image to a grayscale image, use Gaussian blur to reduce the high-frequency noise of the image, and then use the Canny algorithm to detect the edge of the image. Step 2-2: Calculate the image distance and define the distance calculation function: Where D is the distance from the object to the camera, W is the known width of the object, F is the focal length, and P is the pixel width of the object in the image; First, determine the known distance of the target object from the camera and the known width of the object; then, load a picture of the object at a known distance from the camera, find the outline of the object using the find_marker function, and use this information to calculate the focal length; loop through the pictures and calculate the distance. In the loop, process each picture, use the find_marker function to find the outline of the object, and then call the distance calculation function to calculate the distance from the object to the camera; the results are displayed on the picture, including the drawn bounding box and distance information; Step 2-3: Calculate the target coordinates, calculate the angle of the rotating gimbal equipped with the infrared photoelectric instrument, and calculate the target azimuth. The target azimuth φ is the rotation angle α of the gimbal carried by the semi-physical simulation platform in the current state: φ=α Combined with the distance D' from the camera to the target and the target azimuth φ, calculate the horizontal and vertical coordinates (x, y) of the target: (x,y)=(D'cosφ,D'sinφ) Step 3: Complete the semi-physical simulation of infrared optoelectronic instrument-ROS UUV surface target guidance, obtain the target position coordinates through ROS topic subscription, start the ROS node, and complete the guidance simulation of UUV from the starting point to the target position.