Collision detection method, system and equipment applied to underwater vehicle and medium
By adopting three-dimensional coordinate system and sphere modeling methods in underwater vehicles, combining intersection detection and ray intersection point judgment, the accuracy and efficiency of vehicle collision detection in complex underwater environments are solved, and the safety of the vehicle is improved Sex and autonomous navigation capabilities.
Patent Information
- Application Number
- CN202410914732.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-09
AI Technical Summary
The collision detection technology of existing underwater vehicles is difficult to achieve high-precision obstacle avoidance in complex underwater environments, especially in the presence of dynamic obstacles and obstacles of various shapes, resulting in slow system response and risk of false alarms and missed reports. High, and existing general algorithms are difficult to meet diversified needs.
Using a three-dimensional coordinate system with the geometric center of the underwater vehicle as the origin, a collision avoidance model is constructed through sphere modeling and cylindrical sweeping area, combining intersection detection and ray intersection judgment to achieve rapid filtering and precise assessment of collision risks and reduce false alarms and underreporting risks.
It improves the real-time and accuracy of collision detection, reduces unnecessary emergency operations and actual collision risks, improves the safety and autonomous navigation capabilities of underwater vehicles, and adapts to the needs of aircraft of different shapes and sizes.
Smart Images

Figure CN118887370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of underwater vehicles, and more particularly to a collision detection method, system, equipment and medium applied to underwater vehicles. Background Art
[0002] In the field of underwater vehicle technology, especially in deep-sea exploration, marine scientific research, submarine pipeline laying, underwater military operations, etc., vehicles need to operate autonomously or remotely in complex underwater environments, which requires them to have high-precision obstacle avoidance capabilities to ensure safety and mission success. However, the problems faced by existing collision detection technology have severely limited the performance and application scope of vehicles.
[0003] The particularity of the underwater environment, such as water fluctuations, low visibility, and complex terrain, makes it difficult for traditional collision detection algorithms based on simple geometric models to accurately simulate the behavior of dynamic obstacles. For example, the random movement of marine organisms and the irregular movement of seabed sediments greatly increase the difficulty of collision prediction.
[0004] As the complexity of underwater vehicle missions increases, the environmental models around them are becoming increasingly complex, including obstacles of various shapes and sizes. Although high-precision models can provide more realistic collision detection, their computational requirements grow exponentially, which is a huge challenge for resource-limited embedded vehicle control systems. Especially in real-time processing, complex computing tasks may lead to slow system response, affecting the maneuverability and obstacle avoidance efficiency of the vehicle.
[0005] At the same time, there are many types of underwater vehicles, from small unmanned underwater vehicles to large submarines, and their sizes, shapes, and mission requirements vary. Existing general collision detection algorithms often cannot meet diverse needs and require a lot of customized adjustments for each vehicle and its specific application scenarios.
[0006] Some current collision detection systems rely too much on data from a single sensor (such as sonar, camera), and fail to fully utilize the advantages of multi-sensor fusion. Single sensor data may have problems such as blind spots and noise interference, and it is difficult to provide sufficient environmental information in complex environments. The lack of effective data preprocessing and fusion mechanisms makes it difficult for the system to build an accurate environmental model.
[0007] Therefore, how to design a collision detection method for underwater vehicles to ensure the efficiency and accuracy of the underwater vehicle collision avoidance system and improve the safety, autonomous navigation capability and ability to perform complex tasks of underwater vehicles is an urgent problem to be solved by technical personnel in this field. Summary of the invention
[0008] In view of this, the present invention provides a collision detection method applied to underwater vehicles. The initial intersection judgment quickly filters out most of the safety situations, and the subsequent ray intersection detection further accurately judges, ensuring the accuracy of the collision warning and reducing unnecessary emergency operations caused by false alarms, or actual collision risks caused by missed alarms.
[0009] In order to achieve the above object, the present invention adopts the following technical solution:
[0010] In a first aspect, the present invention provides a collision detection method for an underwater vehicle, comprising:
[0011] S1. Constructing a three-dimensional coordinate system with the geometric center of the underwater vehicle as the origin; in the three-dimensional coordinate system, the navigation direction of the underwater vehicle is the positive direction of the X axis;
[0012] S2. Based on the three-dimensional coordinate system, a spherical model is performed on the obstacle to obtain a cylindrical sweeping area, and a three-dimensional collision avoidance model of the underwater vehicle is constructed to obtain a cylindrical bounding box of the underwater vehicle;
[0013] S3, judging whether the cylindrical sweeping area and the side of the cylindrical bounding box have an intersection; if there is an intersection, proceeding to S4, otherwise, determining that there is no collision risk;
[0014] S4. Based on the underwater vehicle three-dimensional collision avoidance model, an underwater vehicle ray set is constructed to determine whether all rays in the underwater vehicle ray set have an intersection with the cylindrical scanning area; if an intersection exists, it is determined that there is a collision risk; otherwise, it is determined that there is no collision risk.
[0015] Wherein, in said S1, constructing a three-dimensional coordinate system with the geometric center of the underwater vehicle as the origin includes:
[0016] Obtaining the navigation direction of the underwater vehicle in the global coordinate system; the navigation direction is represented by a heading angle θ;
[0017] The X-axis in the global coordinate system is rotated by θ°, and the navigation direction is defined as the positive direction of the X-axis in the local coordinate system with the geometric center of the underwater vehicle as the origin;
[0018] Based on the positive direction of the X-axis and in combination with the right-hand rule, the positive directions of the Y-axis and the Z-axis are determined.
[0019] Furthermore, in S2, a spherical model is performed on the obstacle to obtain a cylindrical sweeping area, including:
[0020] Based on the position and size information of the obstacle, a spherical model is constructed for the obstacle, and the radius of the sphere is R1;
[0021] Speed of passing obstacles and the speed of the underwater vehicle Get the speed of the obstacle relative to the underwater vehicle
[0022]
[0023] Using the speed of the obstacle relative to the underwater vehicle Combined with the time window T, the obstacle running distance H1 is determined;
[0024] The sphere radius R1 is used as the bottom radius of the cylindrical sweeping area, and the obstacle running distance H1 is used as the height of the cylindrical sweeping area.
[0025] Furthermore, the time window T:
[0026] T=T min +T reaction +T buffer
[0027]
[0028] Among them, T min is the shortest collision time, T reaction is the underwater vehicle reaction time, T buffer is the safety buffer time; V3 is the speed of the obstacle relative to the underwater vehicle, a max is the maximum deceleration capability of the underwater vehicle, D safe The safe distance for obstacles and underwater vehicles.
[0029] Furthermore, in S2, a three-dimensional collision avoidance model of the underwater vehicle is constructed to obtain a cylindrical bounding box of the underwater vehicle, including:
[0030] Based on the position and size information of the underwater vehicle, a three-dimensional collision avoidance model of the underwater vehicle is constructed;
[0031] Determine the bottom radius R2 and height H2 of the cylindrical bounding box through the underwater vehicle three-dimensional collision avoidance model;
[0032] R2=max(R v ,R h )
[0033] H2=R f +R p
[0034] Among them, R v is the front semi-major axis of the three-dimensional collision avoidance model, R h is the rear major axis of the three-dimensional collision avoidance field, R f are the upper and lower semi-major axes of the three-dimensional collision avoidance field, R pare the left and right semi-major axes of the three-dimensional collision avoidance field.
[0035] Furthermore, in S3, judging whether the cylindrical sweeping area and the side surface of the cylindrical bounding box have an intersection includes:
[0036] Calculate the minimum distance D1 between the cylindrical sweep area and the axis of the cylindrical bounding box; if the minimum distance is greater than the sum of the bottom radii of the cylindrical sweep area and the cylindrical bounding box, D1>R1+R2, then there is no intersection, otherwise, there is an intersection.
[0037] Furthermore, in S4, based on the underwater vehicle three-dimensional collision avoidance model, an underwater vehicle ray set is constructed, and it is determined whether all rays in the underwater vehicle ray set have intersections with the cylindrical scanning area, including:
[0038] Perform Bagua division on the three-dimensional collision avoidance model of the underwater vehicle to obtain the Bagua division result:
[0039] Based on the hexagram division result, identifying the hexagram with the smallest distance to the cylindrical sweeping area of the obstacle;
[0040] In the hexagram with the smallest distance from the cylindrical sweeping area, starting from the current position of the spacecraft, a number of rays are set toward the hexagram boundary to construct a ray set;
[0041] Calculate the minimum distance D2 between the endpoint of each ray in the ray set and the side of the cylindrical sweeping area;
[0042] If the minimum distance is greater than the radius of the cylindrical sweeping area, D2>R1, then there is no intersection point; otherwise, there is an intersection point.
[0043] In a second aspect, the present invention provides a collision detection system for an underwater vehicle, comprising:
[0044] Coordinate system construction module: used to construct a three-dimensional coordinate system with the geometric center of the underwater vehicle as the origin; in the three-dimensional coordinate system, the navigation direction of the underwater vehicle is the positive direction of the X axis;
[0045] Obstacle model and collision avoidance area generation module: used to perform spherical modeling of obstacles based on the three-dimensional coordinate system to obtain a cylindrical sweeping area, and to construct a three-dimensional collision avoidance model of the underwater vehicle to obtain a cylindrical bounding box of the underwater vehicle;
[0046] Intersection detection and preliminary collision avoidance judgment module: used to judge whether there is an intersection between the cylindrical sweeping area and the side of the cylindrical bounding box; if there is an intersection, further judgment is made in conjunction with the next module; otherwise, it is determined that there is no collision risk;
[0047] Ray set construction and collision detection module: used to construct an underwater vehicle ray set based on the underwater vehicle three-dimensional collision avoidance model, and determine whether all the rays in the underwater vehicle ray set have an intersection with the cylindrical scanning area; if there is an intersection, it is determined that there is a collision risk, otherwise, it is determined that there is no collision risk.
[0048] In a third aspect, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned collision detection method when executing the computer program.
[0049] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program implements the above-mentioned collision detection method when executed by a processor.
[0050] The descriptions of the second to fourth aspects of the present invention can refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second to fourth aspects can refer to the analysis of the beneficial effects of the first aspect, which will not be repeated here.
[0051] It can be seen from the above technical solution that compared with the prior art, the present invention has the following beneficial effects:
[0052] 1. By constructing a three-dimensional coordinate system with the geometric center of the aircraft as the origin and directly setting the navigation direction as the positive direction of the X-axis, the calculation of positioning and direction is simplified, making the collision avoidance detection process more efficient and accurate. It can adjust in real time according to the dynamics of the aircraft, quickly respond to changes in the surrounding environment, and improve the real-time performance of collision detection.
[0053] 2. Using sphere modeling for obstacles is a simplified processing method that can effectively reduce the computational complexity. The sphere sweep is converted into a cylindrical sweep area, taking into account the dynamic characteristics of obstacles (such as speed and direction), simplifying the spatial geometry problem of collision detection, and improving the efficiency of algorithm execution.
[0054] 3. The constructed cylindrical bounding box not only takes into account the size of the aircraft, but also integrates its three-dimensional shape, making the collision avoidance model closer to the physical characteristics of the actual aircraft. It can flexibly cope with aircraft of different shapes and sizes, increasing the versatility and adaptability of the method.
[0055] 4. Through intersection detection and intersection judgment between ray sets and cylindrical scanning areas, multi-level collision risk assessment from macro to micro is achieved. This includes: quickly eliminating situations where there is obviously no collision risk, reducing unnecessary calculation burden; and through detailed analysis of the edge rays of the aircraft, it ensures that potential collision risk points can be accurately identified even in complex navigation environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0057] Figure 1 A flow chart of a collision detection method for an underwater vehicle provided in an embodiment of the present invention;
[0058] Figure 2 A schematic diagram of a three-dimensional collision avoidance model for an underwater vehicle provided in an embodiment of the present invention;
[0059] Figure 3 A schematic diagram of a cylindrical sweeping area and a cylindrical bounding box provided by an embodiment of the present invention;
[0060] Figure 4 A schematic diagram of determining whether a cylindrical sweeping area and a side surface of a cylindrical bounding box have an intersection provided by an embodiment of the present invention;
[0061] Figure 5 A schematic diagram of determining whether all rays in an underwater vehicle ray set and a cylindrical sweeping area have intersections provided by an embodiment of the present invention;
[0062] Figure 6 A structural framework diagram of a collision detection system for an underwater vehicle provided by an embodiment of the present invention;
[0063] Figure 7 Provide a schematic diagram of the structure of an electronic device for an embodiment of the present invention;
[0064] Among them: 1- underwater vehicle, 2- obstacle, 3- cylindrical sweeping area, 4- cylindrical bounding box. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] The detection method provided in the embodiment of the present application can be applied to a detection server. The above-mentioned detection server can be hardware or software. When the detection server is hardware, it can be implemented as a distributed server cluster that provides detection services, or it can be implemented as a single server. When the detection server is software, it can be installed in the servers listed above. It can be implemented as multiple software or software modules, or it can be implemented as a single software or software module, which is not specifically limited here.
[0067] Embodiment 1:
[0068] like Figure 1 As shown, this embodiment provides a collision detection method applied to an underwater vehicle 1, comprising:
[0069] S1. construct a three-dimensional coordinate system with the geometric center of the underwater vehicle 1 as the origin; in the three-dimensional coordinate system, the navigation direction of the underwater vehicle 1 is the positive direction of the X axis;
[0070] S2. Based on the three-dimensional coordinate system, a spherical model is performed on the obstacle 2 to obtain a cylindrical sweeping area 3, and a three-dimensional collision avoidance model of the underwater vehicle 1 is constructed to obtain a cylindrical bounding box 4 of the underwater vehicle 1;
[0071] S3, judging whether there is an intersection between the cylindrical sweeping area 3 and the side of the cylindrical bounding box 4; if there is an intersection, proceeding to S4, otherwise, determining that there is no collision risk;
[0072] S4. Based on the three-dimensional collision avoidance model of the underwater vehicle 1, a ray set of the underwater vehicle 1 is constructed to determine whether all rays in the ray set of the underwater vehicle 1 have an intersection with the cylindrical scanning area 3; if there is an intersection, it is determined that there is a collision risk, otherwise, it is determined that there is no collision risk.
[0073] In this method, the initial intersection judgment quickly filters out most of the safety situations, and the subsequent ray intersection detection further accurately judges, ensuring the accuracy of collision warnings and reducing unnecessary emergency operations caused by false alarms or actual collision risks caused by missed alarms. It can be widely used in technical fields such as ocean exploration, underwater resource development, and military applications.
[0074] The above steps and related technical features are further described in detail below:
[0075] In this embodiment S1, a three-dimensional coordinate system with the geometric center of the underwater vehicle 1 as the origin is constructed, including:
[0076] The navigation direction of the underwater vehicle 1 in the global coordinate system is obtained by using a sensor or other navigation equipment; the navigation direction is represented by a heading angle θ;
[0077] The X-axis in the global coordinate system is rotated by θ°, and the navigation direction is defined as the positive direction of the X-axis in the local coordinate system with the geometric center of the underwater vehicle 1 as the origin;
[0078] Based on the positive direction of the X-axis and combined with the right-hand rule, the positive directions of the Y-axis and the Z-axis are determined, including: Determination of the Y-axis: The thumb of the right hand points to the positive direction of the X-axis, and the direction pointed by the naturally bent index finger is the positive direction of the Y-axis. In this way, the Y-axis is located in the horizontal plane of the aircraft and is perpendicular to the navigation direction. Determination of the Z-axis: Keep the thumb and index finger unchanged, straighten the middle finger, and the direction pointed by the middle finger is the positive direction of the Z-axis. In the underwater vehicle 1 scenario, the Z-axis usually points to the upward direction of the aircraft.
[0079] In this embodiment S2, a spherical model is performed on the obstacle 2 to obtain a cylindrical sweeping area 3, including:
[0080] Based on the position and size information of obstacle 2, obstacle 2 is modeled as a sphere with a radius of R1; this is intended to simplify the shape of obstacle 2 to make it easier to process and calculate.
[0081] Speed of passing obstacle 2 and the speed of the underwater vehicle 1 Get the speed of obstacle 2 relative to underwater vehicle 1
[0082]
[0083] Using the speed of obstacle 2 relative to underwater vehicle 1 Combined with the time window T, the running distance H1 of obstacle 2 is determined;
[0084] The sphere radius R1 is used as the bottom radius of the cylindrical sweeping area 3 , and the obstacle 2 running distance H1 is used as the height of the cylindrical sweeping area 3 .
[0085] The above aims to solve the problem of how to infer the possible future behavior of obstacles from known information and how to adjust the behavior of underwater vehicles accordingly to avoid collision. By modeling obstacles as spheres and predicting their running distances, a cylindrical scanning area is established to achieve effective monitoring of potential hazards.
[0086] Time window T:
[0087] T=T min +T reaction +T buffer
[0088]
[0089] Among them, T min is the shortest collision time, T reactionis the underwater vehicle reaction time, T buffer is the safety buffer time; V3 is the speed of the obstacle relative to the underwater vehicle, a max is the maximum deceleration capability of the underwater vehicle, D safe The safe distance for obstacles and underwater vehicles.
[0090] The determination of the time window takes into account various possible risk situations, such as the worst collision possibility, the response capability of the vehicle itself, and additional safety measures. The calculation method of the time window T has certain flexibility and scalability. With the technological advancement of the vehicle and changes in the environment, the values of various parameters can be adjusted accordingly to ensure that the vehicle is always in the best safety state. It effectively improves the obstacle avoidance capability and safety of underwater vehicles in complex environments.
[0091] like Figure 2 As shown, a three-dimensional collision avoidance model of the underwater vehicle 1 is constructed to obtain a cylindrical bounding box 4 of the underwater vehicle 1, including:
[0092] Based on the position and size information of the underwater vehicle 1, a three-dimensional collision avoidance model of the underwater vehicle 1 is constructed;
[0093] Determine the bottom radius R2 and height H2 of the cylindrical bounding box 4 through the three-dimensional collision avoidance model of the underwater vehicle 1;
[0094] R2=max(R v ,R h )
[0095] H2=R f +R p
[0096] Among them, R v is the front semi-major axis of the three-dimensional collision avoidance model, representing the longest distance in front of the aircraft, R h is the rear major axis of the three-dimensional collision avoidance field, representing the longest distance behind the spacecraft, R f are the upper and lower semi-major axes of the three-dimensional collision avoidance field, representing the longest distance above and below the spacecraft, R p are the left and right semi-major axes of the three-dimensional collision avoidance field, representing the longest distances to the left and right of the vehicle.
[0097] like Figure 3 As shown, the cylindrical sweeping area 3 and cylindrical bounding box 4 obtained based on the above steps not only consider the size and position of the static obstacle 2, but also incorporate the dynamic motion prediction and the geometric characteristics of the vehicle itself, so that in the complex and changeable underwater environment, the potential collision risk can be effectively predicted and avoided, thereby improving the safety and autonomy of navigation.
[0098] like Figure 4As shown, in this embodiment S3, judging whether there is an intersection between the cylindrical scanning area 3 and the side of the cylindrical bounding box 4 includes:
[0099] Calculate the minimum distance D1 between the axes of the cylindrical sweeping area 3 and the cylindrical bounding box 4; if the minimum distance is greater than the sum of the bottom radii of the cylindrical sweeping area 3 and the cylindrical bounding box 4, D1>R1+R2, then there is no intersection, otherwise, there is an intersection.
[0100] like Figure 5 As shown, in this embodiment S4, based on the three-dimensional collision avoidance model of the underwater vehicle 1, a ray set of the underwater vehicle 1 is constructed, and it is determined whether all rays in the ray set of the underwater vehicle 1 have an intersection with the cylindrical scanning area 3, including:
[0101] Perform Bagua division on the three-dimensional collision avoidance model of underwater vehicle 1 and obtain the Bagua division result:
[0102] Based on the hexagram division results, identify the hexagram with the smallest distance to the obstacle cylindrical scanning area 3;
[0103] In the hexagram with the smallest distance from the cylindrical sweeping area 3, starting from the current position of the spacecraft, a number of rays are set toward the hexagram boundary to construct a ray set;
[0104] Calculate the minimum distance D2 between the endpoint of each ray in the ray set and the side surface of the cylindrical sweeping area 3;
[0105] If the minimum distance is greater than the radius of the cylindrical sweeping area 3, D2>R1, there is no intersection point, otherwise, there is an intersection point.
[0106] This technical solution uses the local coordinate system established by the geometric center of the aircraft, combined with the heading angle, to achieve accurate positioning of the navigation direction, improving the immediacy and accuracy of obstacle avoidance response. By predicting the motion of the spherical model of obstacle 2 within the time window and converting it into a cylindrical sweep area 3, the potential trajectory of the dynamic obstacle 2 is effectively captured, enhancing the adaptability and predictability of dynamic obstacle avoidance in complex water environments. In addition, by constructing the cylindrical bounding box 4 of the aircraft and performing precise intersection and ray set analysis, the computational complexity is greatly reduced, ensuring the efficient execution of the collision detection algorithm while maintaining a high degree of detection accuracy.
[0107] The method also intelligently identifies the part of the vehicle closest to the obstacle 2 through the division of the eight trigrams, further refines the collision risk assessment, and reduces the probability of false alarms and missed alarms. In summary, the technical solution of the present application has significantly improved the real-time performance, accuracy, efficiency, adaptability and intelligence, providing strong technical support for the safe navigation of the underwater vehicle 1.
[0108] Embodiment 2;
[0109] like Figure 6 As shown, this embodiment provides a collision detection system applied to an underwater vehicle, comprising:
[0110] Coordinate system construction module: used to construct a three-dimensional coordinate system with the geometric center of the underwater vehicle as the origin; in the three-dimensional coordinate system, the navigation direction of the underwater vehicle is the positive direction of the X axis;
[0111] Obstacle model and collision avoidance area generation module: used to perform spherical modeling of obstacles based on a three-dimensional coordinate system, obtain a cylindrical sweeping area, and construct a three-dimensional collision avoidance model of the underwater vehicle to obtain a cylindrical bounding box of the underwater vehicle;
[0112] Intersection detection and preliminary collision avoidance judgment module: used to judge whether there is an intersection between the cylindrical sweeping area and the side of the cylindrical bounding box; if there is an intersection, enter S4, otherwise, determine that there is no collision risk;
[0113] Ray set construction and collision detection module: used to construct an underwater vehicle ray set based on the underwater vehicle three-dimensional collision avoidance model, and determine whether all the rays in the underwater vehicle ray set have an intersection with the cylindrical scanning area; if there is an intersection, it is determined that there is a collision risk, otherwise, it is determined that there is no collision risk.
[0114] Embodiment 3;
[0115] like Figure 7 As shown, this embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the collision detection method in the above embodiment is implemented.
[0116] Embodiment 4;
[0117] This embodiment provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the collision detection method in the above embodiment is implemented.
[0118] In the above embodiments provided in the present application, it should be understood that the disclosed methods, systems, devices and media can be implemented in other ways. The above described methods, systems, devices and media embodiments are only schematic. For example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation. Each functional unit can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0119] The units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0120] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. Computer readable media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium, etc.
[0121] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A collision detection method for underwater vehicles, characterized in that: include: S1. Construct a three-dimensional coordinate system with the geometric center of the underwater vehicle as the origin; In the three-dimensional coordinate system, the navigation direction of the underwater vehicle is the positive direction of the X-axis; S2. Based on the three-dimensional coordinate system, a spherical model is performed on the obstacle to obtain a cylindrical sweeping area, and a three-dimensional collision avoidance model of the underwater vehicle is constructed to obtain a cylindrical bounding box of the underwater vehicle; S3, determining whether there is an intersection between the cylindrical sweeping area and the side surface of the cylindrical bounding box; If there is an intersection, then go to S4, otherwise, it is determined that there is no collision risk; S4, constructing an underwater vehicle ray set based on the underwater vehicle three-dimensional collision avoidance model, and determining whether all rays in the underwater vehicle ray set have intersections with the cylindrical scanning area; If there is an intersection, it is determined that there is a collision risk; otherwise, it is determined that there is no collision risk.
2. The collision detection method for underwater vehicles according to claim 1, characterized in that: In S1, a three-dimensional coordinate system with the geometric center of the underwater vehicle as the origin is constructed, including: Obtaining the navigation direction of the underwater vehicle in the global coordinate system; the navigation direction is represented by a heading angle θ; The X-axis in the global coordinate system is rotated by θ°, and the navigation direction is defined as the positive direction of the X-axis in the local coordinate system with the geometric center of the underwater vehicle as the origin; Based on the positive direction of the X-axis and in combination with the right-hand rule, the positive directions of the Y-axis and the Z-axis are determined.
3. The collision detection method for underwater vehicles according to claim 1, characterized in that: In S2, a spherical model is performed on the obstacle to obtain a cylindrical sweeping area, including: Based on the position and size information of the obstacle, a spherical model is constructed for the obstacle, and the radius of the sphere is R1; Speed of passing obstacles and the speed of the underwater vehicle Get the speed of the obstacle relative to the underwater vehicle Using the speed of the obstacle relative to the underwater vehicle Combined with the time window T, the obstacle running distance H1 is determined; The sphere radius R1 is used as the bottom radius of the cylindrical sweeping area, and the obstacle running distance H1 is used as the height of the cylindrical sweeping area.
4. The collision detection method for underwater vehicles according to claim 3, characterized in that: The time window T: T=T min +T reaction +T buffer Among them, T min is the shortest collision time, T reaction is the underwater vehicle reaction time, T buffer is the safety buffer time; V3 is the speed of the obstacle relative to the underwater vehicle, a max is the maximum deceleration capability of the underwater vehicle, D safe The safe distance for obstacles and underwater vehicles.
5. The collision detection method for underwater vehicles according to claim 1, characterized in that: In S2, a three-dimensional collision avoidance model of the underwater vehicle is constructed to obtain a cylindrical bounding box of the underwater vehicle, including: Based on the position and size information of the underwater vehicle, a three-dimensional collision avoidance model of the underwater vehicle is constructed; Determine the bottom radius R2 and height H2 of the cylindrical bounding box through the underwater vehicle three-dimensional collision avoidance model; R2=max(R v ,R h ) H2=R f +R p Among them, R v is the front semi-major axis of the three-dimensional collision avoidance model, R h is the rear major axis of the three-dimensional collision avoidance field, R f are the upper and lower semi-major axes of the three-dimensional collision avoidance field, R p are the left and right semi-major axes of the three-dimensional collision avoidance field.
6. The collision detection method for underwater vehicles according to claim 1, characterized in that: In S3, judging whether the cylindrical sweeping area and the side surface of the cylindrical bounding box have an intersection includes: Calculate the minimum distance D1 between the cylindrical sweep area and the axis of the cylindrical bounding box; if the minimum distance is greater than the sum of the bottom radii of the cylindrical sweep area and the cylindrical bounding box, D1>R1+R2, then there is no intersection, otherwise, there is an intersection.
7. The collision detection method for underwater vehicles according to claim 1, characterized in that: In S4, based on the underwater vehicle three-dimensional collision avoidance model, an underwater vehicle ray set is constructed, and it is determined whether all rays in the underwater vehicle ray set have intersections with the cylindrical scanning area, including: The three-dimensional collision avoidance model of the underwater vehicle is divided into eight trigrams to obtain the result of the division of the trigrams: Based on the hexagram division result, identifying the hexagram with the smallest distance to the cylindrical sweeping area of the obstacle; In the hexagram with the smallest distance from the cylindrical sweeping area, starting from the current position of the spacecraft, a number of rays are set toward the hexagram boundary to construct a ray set; Calculate the minimum distance D2 between the endpoint of each ray in the ray set and the side of the cylindrical sweeping area; If the minimum distance is greater than the radius of the cylindrical sweeping area, D2>R1, then there is no intersection point; otherwise, there is an intersection point.
8. A collision detection system for underwater vehicles, characterized in that: include: Coordinate system construction module: used to construct a three-dimensional coordinate system with the geometric center of the underwater vehicle as the origin; In the three-dimensional coordinate system, the navigation direction of the underwater vehicle is the positive direction of the X-axis; Obstacle model and collision avoidance area generation module: used to perform spherical modeling of obstacles based on the three-dimensional coordinate system to obtain a cylindrical sweeping area, and to construct a three-dimensional collision avoidance model of the underwater vehicle to obtain a cylindrical bounding box of the underwater vehicle; Intersection detection and preliminary collision avoidance judgment module: used to judge whether there is an intersection between the cylindrical scanning area and the side of the cylindrical bounding box; If there is an intersection, then go to S4, otherwise, it is determined that there is no collision risk; A ray set construction and collision detection module is used to construct an underwater vehicle ray set based on the underwater vehicle three-dimensional collision avoidance model, and determine whether all rays in the underwater vehicle ray set have intersections with the cylindrical scanning area; If there is an intersection, it is determined that there is a collision risk; otherwise, it is determined that there is no collision risk.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the collision detection method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the collision detection method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Collision avoidance method for underwater vehicle in multi-task mode
CN116991172A
Construction method of three-dimensional collision avoidance model of underwater vehicle and safe distance calculation method
CN117195564A
Underwater vehicle, control method, and program
JP2021041866A
