Marine operation helicopter pose measurement method and system based on binocular vision

Through the maritime operation helicopter position and attitude measurement system based on binocular vision, the real-time and accuracy problems of helicopter automatic towing and position and attitude measurement under harsh sea conditions are solved, and the helicopter's efficient, safe entry and exit and high-precision positioning in complex environments are realized. posture measurement.

CN118710718APending Publication Date: 2024-09-27INST OF OPTICS & ELECTRONICS CHINESE ACAD OF SCI
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410781304.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve automatic towing of helicopters in harsh sea conditions, and existing methods have real-time and accuracy problems in helicopter tail wheel position and attitude measurement, making it difficult to meet the efficiency and safety requirements of offshore operations.

Method used

A maritime helicopter position and attitude measurement system based on binocular vision is used to collect real-time images of the tail wheel movement area through the binocular vision sensor module, and combined with the data processing module to calculate the position of the tail wheel rotation axis and the fuselage deflection angle, providing high-precision position and attitude Information, using near-infrared light sources and filters to improve the system's ability to work under complex lighting conditions.

Benefits of technology

It realizes efficient and safe automatic towing of helicopters in and out of the warehouse in harsh environments, improves operational efficiency, ensures the safety of ship personnel and equipment, and provides high-precision position and attitude measurement results, which is suitable for complex lighting and harsh working environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710718A
    Figure CN118710718A
Patent Text Reader

Abstract

The invention discloses an offshore operation helicopter pose measurement method and system based on binocular vision. The method comprises the steps that a rapid mooring device coordinate system and a deck coordinate system are established; calibrating internal and external parameters of the camera; the camera collects a current image of a helicopter tail wheel motion area in real time and transmits the current image to the data processing module; calculating position coordinates of a tail wheel rotating shaft in the helicopter in the coordinate system of the rapid mooring device; calculating the tangent vector of the tail wheel of the helicopter in the rapid mooring device coordinate system along the ship bow direction; calculating the direction vector of the axis of the helicopter fuselage in the rapid mooring device coordinate system along the ship bow direction; calculating a position coordinate of a helicopter mooring rod in the deck coordinate system, and a fuselage deflection angle and a tail wheel deflection angle of the helicopter in the deck coordinate system; and repeatedly executing the steps, and outputting the helicopter pose information in real time until the helicopter is automatically pulled into and out of a warehouse. According to the technical scheme, the helicopter pose measurement information can be output in real time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of comprehensive safety assurance for offshore helicopter operations, and in particular relates to a method and system for measuring the position and posture of offshore helicopter operations based on binocular vision. Background Art

[0002] Offshore helicopters often perform their missions in harsh sea conditions. How to ensure that helicopters can enter and exit the hangar safely and quickly is of great significance to further improve the attendance rate and safety of helicopters. At present, commonly used helicopter safety assurance systems include harpoon-grid devices, E systems, RAST systems, ASIST systems, and a safe and rapid recovery and release system for offshore helicopters proposed by the Systems Engineering Research Institute of China Shipbuilding Industry Corporation. However, none of the above systems can fully realize automatic towing in and out of the hangar. They mostly use manual or towing vehicle-guided towing methods, and the implementation process requires the cooperation of multiple deck personnel. If the mission is to be performed in harsh sea conditions, the towing operation on the deck is highly dangerous, and it is impossible to reliably ensure that the helicopter can enter and exit the hangar quickly, efficiently, and safely. In order to improve towing efficiency and ensure operational safety, automatic towing has become a research focus.

[0003] In order to realize automatic towing, it is necessary to obtain the position and attitude information of the helicopter on the deck in real time. When the helicopter is in and out of the warehouse, the towing device tows the helicopter mooring rod to move on the deck, and the position information of the helicopter mooring rod can be obtained in real time through the encoder. Therefore, in order to obtain the attitude information of the helicopter on the deck, it is necessary to measure the position of the helicopter tail wheel rotation axis in real time, and then determine the fuselage deflection angle of the helicopter in the deck coordinate system. In addition, the deflection angle of the helicopter tail wheel needs to be measured to provide necessary information for the automatic towing system.

[0004] The working environment on board is complex and changeable, and the tail wheel of the helicopter is close to the traction device and has a wide range of motion, which brings great challenges to the measurement work. In addition, under the premise that it is impossible to install cooperative targets and attitude sensors on the helicopter, it is necessary to achieve helicopter attitude measurement through non-cooperative target non-contact measurement methods. LiDAR scanning requires processing a large amount of 3D point cloud data, which is difficult to meet the real-time requirements of automatic traction, and radar is easily affected by electromagnetic interference. As part of computer vision, visual measurement is a more practical method, and images can convey richer information than radar and other methods. Therefore, it is urgent to develop a vision-based helicopter attitude measurement system.

[0005] The theory of binocular vision measurement is relatively mature and widely used in various industries, but it is less used in the field of helicopter attitude measurement. In the visual measurement of cylindrical targets: Jia Shuai et al. proposed a method based on binocular vision and structured light to measure the diameter of shaft parts. This method is suitable for the measurement of shaft parts under close distance, fixed field of view and good lighting conditions in the field of visual inspection; Duan Guifang et al. proposed a method for measuring the center axis of shaft parts based on binocular vision and minimum circumscribed rectangle, which provides an idea for measuring the center axis position of the cylinder from a geometric principle. However, due to the use of template matching in the image processing process, the background is required to be as simple as possible and the axis direction of the shaft parts needs to be as parallel as possible to the line connecting the origins of the left and right camera coordinate systems. As a result, when the target moves over a large range, the template matching method in this method will bring large errors; Li Fang et al. proposed to use two points on the surface of the cylinder with different normal vectors and the calculation method of the common perpendicular line of skew lines to obtain the center axis position of the cylinder. However, this method requires the Kinect camera to obtain the 3D point cloud image of the scene where the object is located, and the device is difficult to use in the harsh working environment of offshore helicopters. In addition, the processing of point cloud data is time-consuming in practice and it is difficult to meet real-time requirements. Some scholars have also proposed other methods for positioning spatial cylinders, but most of the existing methods are concentrated in the field of industrial inspection. The image background is single and the object is often in a fixed position and will not move in a large range. Therefore, these methods are difficult to apply to the scene of measuring the position of the tail wheel rotation axis. In terms of tail wheel posture measurement: Zhou Fuqiang et al. proposed a non-contact measurement method of spatial circle geometric parameters based on stereo vision, Chen Xu et al. proposed a high-precision measurement method of wheel center based on stereo vision, Zhang Zimiao et al. proposed a monocular vision posture measurement method based on a 5-point perspective projection mathematical model, and some scholars have proposed some other monocular vision measurement methods that require the assistance of line structured light. Most of the existing methods remain in the field of theoretical research or static measurement, or require the assistance of third-party tools, and are difficult to apply in the scene of real-time measurement of helicopter posture. Since the helicopter tail wheel is a double wheel with a wide range of motion, it is impossible to ensure that two cameras always shoot the wheel hub of the same tire at the same time, so the method of using stereo vision to measure the tail wheel posture is not feasible. In addition, monocular vision cannot guarantee that the same wheel hub in the two tires is always captured, so the method of purely using a single camera also has limitations, which makes the existing method difficult to apply in the measurement of helicopter tail wheel posture. Summary of the invention

[0006] In view of the problem of position and attitude measurement of an offshore operating helicopter in the above-mentioned automatic towing, the present invention proposes a system and method for measuring the position and attitude of an offshore operating helicopter based on binocular vision.

[0007] According to a first aspect of the present invention, a method for measuring the position and attitude of an offshore helicopter based on binocular vision is provided, comprising: S510, establishing a rapid mooring device coordinate system and a deck coordinate system, wherein the deck coordinate system takes the starting point of the ship deck traction track as the coordinate origin, takes the central axis of the starting part of the traction track as the y-axis, points to the bow as the positive direction of the y-axis, is perpendicular to the y-axis ray as the x-axis, and points to the starboard side of the hull as the positive direction of the x-axis, and establishes a mathematical equation and a trajectory equation of the traction track in the deck coordinate system; the rapid mooring device coordinate system takes the geometric center of the upper cover plate of the rapid mooring device as the coordinate origin, is perpendicular to the edge of the rear wall of the rapid mooring device as the y-axis, points to the bow as the positive direction of the y-axis, is perpendicular to the y-axis ray as the x-axis, and points to the starboard side of the hull as the positive direction of the x-axis; S520, calibrating the internal and external parameters of the cameras in the two visual sensor modules, wherein the two visual sensor modules are symmetrically distributed and installed on both sides of the rear wall of the rapid mooring device in the helicopter automatic traction system, and follow the movement of the rapid mooring device, wherein the external parameters refer to the translation vector of the rapid mooring device coordinate system transformed to the camera coordinate system and the rotation matrix , the translation vector Determines the position of the origin of the rapid tethering device coordinate system in the camera coordinate system, the rotation matrix Determines the angle of rotation around the XYZ axis required to transform the rapid mooring device coordinate system into the camera coordinate system; the internal parameters refer to the focal length of the camera imaging, the image principal point, the pixel size and the distortion coefficient, and the internal parameters determine the projection relationship of the spatial point on the camera imaging target surface; S530, the helicopter posture measurement system enters the working mode, automatically turns on the left and right lighting sources, illuminates the camera field of view area, and the camera collects the current image of the helicopter tail wheel movement area in real time, and transmits the current image to the data processing module; S540, according to the current image collected in the above steps, calculates the position coordinates of the tail wheel rotation axis in the helicopter in the rapid mooring device coordinate system: using step S530 Detect the edges of the tail wheel rotation axis on both sides of the current image collected in step S530; calculate the pixel coordinates of the starting point and the end point of the central axis of the tail wheel rotation axis in the current image; solve the straight line equation of the central axis of the tail wheel rotation axis in the rapid mooring device coordinate system based on the binocular vision measurement principle; project the straight line equation of the central axis of the tail wheel rotation axis onto the horizontal plane, so as to obtain the position coordinates of the tail wheel rotation axis in the rapid mooring device coordinate system; S550, according to the current image collected in step S530, calculate the tangent vector of the tail wheel of the helicopter in the bow direction in the rapid mooring device coordinate system, including: detecting the tail wheel hub contour; fitting the hub contour ellipse and solving the spatial circular pose; eliminating the pose The singular solution in the state angle is used to obtain the true solution of the space circle posture, wherein the space circle refers to: the tail wheel hub is a space circle with a fixed radius; S560, calculating the direction vector of the helicopter fuselage axis in the rapid mooring device coordinate system along the bow direction, including: the data processing module calculates the position coordinates of the helicopter mooring rod in the rapid mooring device coordinate system according to the lateral position information of the mechanical claw received in real time from the automatic traction system, and further calculates the direction vector of the helicopter fuselage axis in the rapid mooring device coordinate system along the bow direction using the position coordinates of the tail wheel rotation axis; S570, using the tangent vector calculated in step S550 and the direction vector calculated in step S560, calculate Calculate the position coordinates of the helicopter mooring rod in the deck coordinate system, the fuselage deflection angle and the tail wheel deflection angle of the helicopter in the deck coordinate system, including: calculating the coordinate conversion relationship between the rapid mooring device coordinate system and the deck coordinate system; using the coordinate conversion relationship to transform the position coordinates of the helicopter mooring rod, the direction vector of the helicopter fuselage axis along the bow direction, and the tangent vector of the tail wheel along the bow direction in the rapid mooring device coordinate system to the deck coordinate system; calculate the helicopter fuselage deflection angle and the tail wheel deflection angle in the deck coordinate system; S580, repeat steps S530 to S570, and output the helicopter posture information to the automatic towing system in real time until the automatic towing of the helicopter in and out of the warehouse is completed.

[0008] According to a second aspect of the present invention, there is provided a position and attitude measurement system for an offshore operation helicopter based on binocular vision, comprising: two visual sensor modules, responsible for collecting image information of the tail wheel movement area of ​​the helicopter, symmetrically installed on both sides of the rear wall of a rapid mooring device of an automatic traction system of the helicopter; a data processing module, installed on the rear wall of the rapid mooring device by bolts, moving with the rapid mooring device, the data processing module comprising three image processors and a structural member housing, for executing the position and attitude measurement method for an offshore operation helicopter based on binocular vision according to any one of the above items, completing the helicopter position and attitude measurement, and transmitting the measurement information to the automatic traction system of the helicopter.

[0009] Compared with the prior art, the present invention has the following beneficial effects: Based on the existing helicopter rapid recovery system, only the helicopter posture measurement equipment based on binocular vision is installed on the rapid mooring device, which is highly compatible with the existing system. The implementation process does not require human intervention, which reduces the operational difficulty of the existing offshore helicopter transfer, improves the operational efficiency of the helicopter in and out of the warehouse, and ensures the safety of the ship's auxiliary personnel and equipment.

[0010] Furthermore, it is proposed to use near-infrared light sources for active illumination, use cameras covering the near-infrared band to collect image data, and use filters to filter out stray light that is not related to the near-infrared light source band, so that the system can work under complex lighting conditions around the clock.

[0011] Furthermore, an original method for detecting the edges on both sides of the tail wheel rotating shaft based on straight line features under near-infrared light source is proposed, which improves the stability of edge detection and ensures the measurement accuracy of the position coordinates of the tail wheel rotating shaft.

[0012] Furthermore, a binocular camera is used to shoot the tail wheel to prevent the tail wheel from being unable to be observed by a single camera when the tail wheel is facing a certain camera during the automatic traction process. At this time, the tail wheel hub can be observed by another camera, solving the problem of discontinuous tail wheel angle measurement results. In addition, an original proposal is made to use the tail wheel rotation axis position coordinates obtained by binocular vision measurement as prior information, and to establish a reference vector in combination with the circle center coordinates obtained by monocular vision measurement. The singular solution of the monocular vision measurement result is eliminated by the reference vector to obtain the true solution, effectively solving the ambiguity problem of monocular vision measurement of spatial circular pose.

[0013] In addition, the high-precision measurement of helicopter posture can be achieved under all-weather complex lighting conditions, harsh working environments, and large-range tail wheel movement. This method is particularly suitable for the automatic traction system of curved track helicopters with high operating difficulty. It can solve the problems of high difficulty and poor safety of manual traction, improve the efficiency of helicopter entry and exit, and ensure the safety of auxiliary personnel and equipment on the ship. It has important practical value in the fields of shipbuilding and military industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 The main components of the automatic traction system for offshore helicopters in a specific application scenario according to an embodiment of the present invention are shown. In the figure: 101 - helicopter; 102 - first wheel; 103 - second wheel; 104 - helicopter mooring rod; 105 - tail wheel; 106 - tail wheel rotation axis; 107 - fast mooring device; 108 - mechanical claw; 109 - visual sensor module; 110 - data processing module.

[0015] Figure 2 The internal structure diagram of the visual sensor module 109 according to the embodiment of the present invention is shown. In the figure: 201-front cover; 202-sealing pad; 203-protective glass; 204-pressing plate; 205-lens; 206-camera; 207-camera base; 208-light source; 209-heat dissipation pad; 210-box cover; 211-aviation plug.

[0016] Figure 3 The external view of the visual sensor module 109 according to the embodiment of the present invention is shown. In the figure: 301 - side view; 302 - front view; 303 - rear view; 304 - left view.

[0017] Figure 4 The external view of the data processing module 110 according to the embodiment of the present invention is shown. In the figure: 401 - side view; 402 - rear view; 403 - left view; 404 - top view.

[0018] Figure 5 A schematic flow chart of a method for measuring the position and posture of an offshore helicopter based on binocular vision according to an embodiment of the present invention is shown.

[0019] Figure 6 The coordinate systems involved in the helicopter attitude measurement system according to the embodiment of the present invention are shown in the figure: 601 - deck coordinate system; 602 - fast mooring device coordinate system; 603 - mechanical claw coordinate system.

[0020] Figure 7 The principle of edge detection on both sides of the tail wheel rotating shaft 106 according to the embodiment of the present invention is shown.

[0021] Figure 8 The positioning principle of the tail wheel rotation axis 106 according to an embodiment of the present invention is shown. In the figure: 801 - the first left edge straight line of the tail wheel rotation axis 106; 802 - the first right edge straight line of the tail wheel rotation axis 106; 803 - the second left edge straight line of the tail wheel rotation axis 106; 804 - the second right edge straight line of the tail wheel rotation axis 106; 805 - the central axis of the rotation axis.

[0022] Fig. 9A schematic diagram showing the ambiguity of the spatial circular pose measurement result based on monocular vision according to an embodiment of the present invention is shown.

[0023] Fig.10 A schematic diagram of a method for eliminating ambiguity in a spatial circular pose measurement result in a helicopter pose measurement method according to an embodiment of the present invention is shown.

[0024] Fig.11 The track line type of the traction track according to the embodiment of the present invention is shown. In the figure: 1101-traction track; 1102-the first straight line of the traction track; 1103-the second arc of the traction track; 1104-the third oblique straight line of the traction track; 1105-the fourth arc of the traction track; 1106-the fifth straight line of the traction track; 1107-the bow direction; 1108-the longitudinal traction device; 1109-the encoder; 1110-the left traction indicator line; 1111-the right traction indicator line.

[0025] Fig.12 A comparison curve of the X-coordinate measurement result of the helicopter mooring rod according to an embodiment of the present invention and the laser radar measurement result under dynamic automatic towing conditions is shown.

[0026] Fig.13 A comparison curve of the Y coordinate measurement result of the helicopter mooring rod according to an embodiment of the present invention and the laser radar measurement result under dynamic automatic towing conditions is shown.

[0027] Fig.14 A comparison curve between the helicopter fuselage angle measurement result and the laser radar measurement result under dynamic automatic traction conditions is shown.

[0028] Fig.15 A comparison curve between the tail wheel angle measurement result and the gyroscope measurement result under dynamic automatic traction conditions according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0029] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms, and the present disclosure should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0030] Figure 1 The main components of the automatic traction system for offshore helicopters according to an embodiment of the present invention in a specific application scenario are shown. Figure 1As shown, the automatic towing system for offshore helicopters mainly includes: a helicopter 101 and a helicopter mooring rod 104, a quick mooring device 107 for lateral correction of helicopter movement, a longitudinal towing device for longitudinal towing of the helicopter movement, and a helicopter posture measurement system based on binocular vision.

[0031] The helicopter comprises a helicopter 101, a first wheel 102, a second wheel 103, a helicopter mooring rod 104, a tail wheel 105, and a tail wheel rotating shaft 106. The tail wheel 105 is installed at the tail of the helicopter and is a universal wheel with a large eccentricity. The tail wheel can rotate around a fixed rotating shaft, which is referred to as the tail wheel rotating shaft. The helicopter mooring rod 104 is installed on the belly of the helicopter 101 and is rigidly connected to the belly of the helicopter 101, and is used to tow the helicopter 101 in and out of the warehouse and to moor it on the deck.

[0032] A mechanical claw 108 is installed on the rapid mooring device 107, and the mechanical claw 108 is connected to the helicopter mooring rod 104 installed on the belly of the helicopter 101 by a cylindrical pair. When the rapid mooring device 107 corrects the movement of the helicopter 101 laterally, the mechanical claw 108 always moves perpendicular to the traction track 1101 and follows the movement of the helicopter 101, and the lateral displacement of the center of the mechanical claw 108 relative to the rapid mooring device 107, that is, the lateral position information of the helicopter mooring rod 104, can be obtained through the encoder 1109.

[0033] The longitudinal traction device 1108 ensures that during the process of towing the helicopter 101, the quick mooring device 107 always follows the movement of the helicopter 101 along the towing track 1101. The left traction indicator line 1110 and the right traction indicator line 1111 can ensure that the slider at the bottom of the quick mooring device 107 always moves on the traction track 1101. The longitudinal traction device 1108 includes an encoder 1109 for recording the position of the quick mooring device on the track.

[0034] like Fig.11 As shown, the traction track 1101 is divided into five sections, including a first traction track section 1102, a second traction track section arc 1103, a third traction track section oblique straight line 1104, a fourth traction track section arc 1105 and a fifth traction track section straight line 1106.

[0035] According to an embodiment of the present invention, a position and posture measurement system for an offshore helicopter based on binocular vision is a part of an automatic traction system for an offshore helicopter, and the position and posture measurement system for an offshore helicopter based on binocular vision includes: two visual sensor modules 109, which are responsible for collecting image information in the tail wheel movement area; and a data processing module 110, which is installed on the rear wall of the rapid mooring device 107 by bolts and moves with the rapid mooring device 107. The two visual sensor modules 109 are symmetrically installed on both sides of the rear wall of the rapid mooring device 107, and the distance between them can be determined based on the threaded mounting holes on the surface of the rapid mooring device 107. The rear wall of the rapid mooring device 107 refers to the edge of the rapid mooring device 107 opposite to the mechanical claw 108, and the two sides refer to the edges along the rapid mooring device coordinate system 602. When observing the tail wheel in the negative direction of the axis, the left and right sides of the rear wall of the quick mooring device 107. The visual sensor module 109 and the data processing module 110 together constitute a helicopter posture measurement system, which is responsible for outputting the helicopter 101 posture information in real time.

[0036] The visual sensor module 109 is responsible for collecting images of the tail wheel movement area. Figure 2 FIG. 1 shows an internal structure diagram of the visual sensor module 109 according to an embodiment of the present invention. Figure 2 As shown, the visual sensor module 109 includes a front cover 201 for dust, salt spray and mold prevention; a sealing gasket 202 for waterproofing; a protective glass 203 for explosion prevention; a pressure plate 204 for fixing the protective glass 203; a lens 205 for collecting images; a camera 206 for collecting images; a camera base 207 for fixing the camera 206 and the box; a light source 208 for supplementing near-infrared band light during the day and at night; a heat dissipation pad 209 for guiding the heat of the light source to the box cover; a box cover 210 for heat dissipation, dust prevention, salt spray and mold prevention; and an air plug 211 for power supply and communication. The light source 208 and the camera 206 are coaxially installed up and down to ensure that the two have the same field of view. In the process of the rapid mooring device 107 and the longitudinal traction device 1108 towing the helicopter 101, the camera 206 can always take real-time images of the helicopter tail wheel 105 and its tail wheel rotation axis 106 area.

[0037] Figure 3 A side view 301 , a front view 302 , a rear view 303 , and a left view 304 of the vision sensor module 109 are shown.

[0038] In one embodiment, the light source 208 uses a near-infrared light source so that the system can work under complex lighting conditions around the clock. The camera 206 uses a high-resolution visible light camera compatible with the near-infrared band to ensure the measurement accuracy of the system. The lens 305 uses a low-distortion wide-angle lens so that the camera field of view can fully cover the entire working area of ​​the tail wheel 105 during the automatic traction process. A filter can be set between the lens and the camera, and the filter can use a near-infrared narrow-band filter to filter out stray light that is not related to the near-infrared light source band, especially strong sunlight under daytime working conditions.

[0039] The data processing module 110 includes three image processors and a structural component housing, which is responsible for processing the image information collected by the visual sensor module 109, calculating the tail wheel rotation axis position, fuselage deflection angle and tail wheel deflection angle, completing the helicopter 101 posture measurement, and transmitting the measurement information to the automatic traction system. Figure 4 A side view 401 , a rear view 402 , a left view 403 , and a top view 404 of the data processing module 110 are shown.

[0040] The image processor uses a high-performance and high-computing-power GPU chip to meet the real-time requirements of data processing.

[0041] Figure 5 The present invention shows the method for measuring the position and posture of an offshore helicopter based on binocular vision. Figure 6 The coordinate system involved in the helicopter attitude measurement system according to the embodiment of the present invention is shown. Figure 5 and Figure 6 Describe the method. Figure 5 As shown, the method specifically comprises the following steps: S510, establish the rapid mooring device coordinate system and the deck coordinate system. Figure 6 In the example, the rapid mooring device coordinate system is shown as 602. The deck coordinate system is shown as 601. The deck coordinate system 601 takes the starting point of the ship deck traction track 1101 as the coordinate origin, the central axis of the starting part of the traction track 1101 as the y-axis, the direction pointing to the bow direction 1107 as the positive direction of the y-axis, the ray perpendicular to the y-axis as the x-axis, and the direction pointing to the starboard side of the hull as the positive direction of the x-axis, and the mathematical equation and trajectory equation of the traction track 1101 are established under the deck coordinate system 601; the fast mooring device coordinate system 602 takes the geometric center of the upper cover plate of the fast mooring device 107 as the coordinate origin, the edge of the rear wall of the fast mooring device 107 as the y-axis, the direction pointing to the bow direction 1107 as the positive direction of the y-axis, the ray perpendicular to the y-axis as the x-axis, and the direction pointing to the starboard side of the hull as the positive direction of the x-axis. During the entire automatic traction process, since the fast mooring device 107 is moving, the relative position relationship between the fast mooring device coordinate system 602 and the deck coordinate system 601 changes in real time with the motion trajectory. Figure 6 Also shown is a mechanical claw coordinate system 603, which is based on the right side of the groove where the mechanical claw is located (along the deck coordinate system 601). The starting point is the origin of coordinates, the y-axis is perpendicular to the edge of the rear wall of the quick mooring device 107, the direction pointing to the bow 1107 is the positive direction of the y-axis, the x-axis is perpendicular to the y-axis ray, and the direction pointing to the starboard side of the hull is the positive direction of the x-axis.

[0042] S520, calibrate the intrinsic parameters and extrinsic parameters of the camera 206 in the two visual sensor modules 109, wherein the two visual sensor modules 109 are symmetrically installed on both sides of the rear wall of the fast tethering device 107 in the helicopter automatic traction system and move with the fast tethering device 107. The extrinsic parameter refers to the translation vector of the fast tethering device coordinate system transformed to the camera coordinate system and the rotation matrix , the translation vector Determines the position of the origin of the rapid tethering device coordinate system in the camera coordinate system, the rotation matrix It determines the angle of rotation around the XYZ axis required to transform the rapid tethering device coordinate system into the camera coordinate system; the internal parameters refer to the focal length, image principal point, pixel size and distortion coefficient of the camera imaging, and the internal parameters determine the projection relationship of the space point on the camera imaging target surface. This step is performed because before using the helicopter posture measurement system, it is necessary to calibrate the internal and external parameters of the camera 206 imaging, where the calibration results of the camera external parameters are unified to the rapid tethering device coordinate system 602. The camera 206 can also be called a left and right camera, where the left and right cameras refer to the cameras in the two visual sensor modules 109 installed on the left and right sides of the rear wall of the rapid tethering device 107, respectively.

[0043] S530, the helicopter posture measurement system enters the working mode, automatically turns on the left and right lighting sources 208, illuminates the camera field of view area, and the camera 206 collects the current image of the helicopter tail wheel 105 movement area in real time and transmits the current image to the data processing module 110.

[0044] S540, based on the current image acquired in the above steps, calculate the position coordinates of the tail wheel rotation axis 106 in the helicopter in the rapid mooring device coordinate system 602: the data processing module 110 uses the current image acquired in step S530 to detect the edges on both sides of the tail wheel rotation axis 106; calculate the pixel coordinates of the starting point and the end point of the central axis 805 of the tail wheel rotation axis in the above current image; solve the straight line equation of the central axis 805 of the tail wheel rotation axis in the rapid mooring device coordinate system 602 based on the binocular vision measurement principle; project the straight line equation of the central axis 805 of the tail wheel rotation axis onto the horizontal plane, thereby obtaining the position coordinates of the tail wheel rotation axis 106 in the rapid mooring device coordinate system 602.

[0045] Reference below Figure 7 Describe step S540 in which “the data processing module 110 detects the edges on both sides of the tail wheel rotation axis 106 using the current image collected in step S530 ”.

[0046] Accurately detecting the edges on both sides of the tail wheel rotating shaft 106 is a prerequisite for realizing the position measurement of the tail wheel rotating shaft 106. Under the illumination of the light source, the central area of ​​the tail wheel rotating shaft 106 is brighter and the two sides are darker. The contrast between the edges on both sides of the tail wheel rotating shaft 106 and the background is not obvious. The edges on both sides of the tail wheel rotating shaft 106 can be detected by the image difference method.

[0047] First, perform left and right difference: Let the original input image be , the output image is , for a resolution The original image, defined The gray value of the i-th row and j-th column is equal to The grayscale value of the two columns to the right of the i-th row and j-th column minus the sum of the grayscale values ​​of the two columns to the left can be expressed mathematically as: g ( i , j ) = abs { [ f ( i , j + 1 ) − f ( i , j − 1 )] + [ f ( i , j + 2 ) − f ( i , j − 2 )] } (1) Then perform grayscale threshold segmentation: The grayscale mean is taken as the grayscale threshold ,right Perform threshold segmentation to obtain the image , which can be expressed mathematically as: (2) Then perform counting threshold segmentation: the image The average number of 1s in each column is used as the number threshold , if the binary image The total number of 1s in each column is greater than the threshold , then all pixels in this column are set to 1, and the result image is obtained ,Right now: (3) Finally, find the left and right edges: In the example, search from left to right, and use the first non-zero column found as the left edge. Then search from right to left, and use the first non-zero column found as the right edge.

[0048] Reference below Figure 8 Describe the step S540 of "calculating the pixel coordinates of the starting point and the end point of the central axis 805 of the tail wheel rotation shaft in the current image".

[0049] like Figure 8 As shown, the pixel coordinates of the starting point and the end point of the central axis 805 of the tail wheel rotation shaft in the image are calculated: if the pixel coordinates of the starting point and the end point of the left edge straight line of the tail wheel rotation shaft 106 in the image captured by the left camera are respectively , , the pixel coordinates of the starting point and end point of the right edge line are , , the pixel coordinates of the central axis 805 of the rotation axis are taken as half of the pixel coordinates of the edge lines on both sides, that is: { ( u E L , v E L ) = 1 2 [ ( u A L , v A L ) + ( u C L , v C L ) ] ( u F L , v F L ) = 1 2 [ ( u B L , v B L ) + ( u D L , v D L ) ] (4) Similarly, if the pixel coordinates of the starting point and the end point of the straight line on the left side of the tail wheel rotation axis 106 in the image captured by the right camera are , , the pixel coordinates of the starting point and end point of the right edge line are , , take the pixel coordinate of the central axis 805 of the rotation axis as half of the pixel coordinate of the edge lines on both sides, that is, in the right camera, we have: { ( u E R , v E R ) = 1 2 [ ( u A R , v A R ) + ( u C R , v C R ) ] ( u F R , v F R ) = 1 2 [ ( u B R , v B R ) + ( u D R , v D R ) ] (5) Reference below Figure 8 Describe the step S540 of "solving the linear equation of the tail wheel rotation axis 805 in the fast mooring device coordinate system 602 based on the binocular vision measurement principle". Figure 8 As shown, according to the mathematical model of camera imaging, the left camera uses the point and Point The pixel coordinates of the point is the midpoint between the starting point A of the left edge of the tail wheel rotation axis 106 and the starting point C of the right edge of the tail wheel rotation axis 106 in the image captured by the left camera. is the midpoint between the end point B of the left edge straight line and the end point D of the right edge straight line of the tail wheel rotation axis 106 in the image captured by the left camera, and Point The pixel coordinates are and , obtained from formula (4)) can determine the two straight lines passing through the optical center of the left camera respectively and , which are respectively: straight line : Z c L [ u E L v E L 1 ] = [ f d x 0 u 0 0 0 f d y v 0 0 0 0 1 0 ] [ R r c T r c 0 T 1 ] [ X r Y r Z r 1 ] = KM [ X r Y r Z r 1 ] = Q [ X r Y r Z r 1 ] (6) straight line : Z c L [ u F L v F L 1 ] = [ f d x 0 u 0 0 0 f d y v 0 0 0 0 1 0 ] [ R r c T r c 0 T 1 ] [ X r Y r Z r 1 ] = KM [ X r Y r Z r 1 ] = Q [ X r Y r Z r 1 ] (7) In formula (6) and (7) represents the coordinates of a point on the straight line passing through the optical center of the left camera in the fast tethering device coordinate system 602; is a spatial point (the spatial point is a straight line and The Z coordinate of any point on the left camera in the left camera coordinate system is a calculable constant; Q is the parameter matrix of the camera imaging and Q=K M, where K is the camera's intrinsic parameter matrix, which determines the projection relationship of the spatial point on the camera's imaging target surface, and M is the camera's extrinsic parameter matrix, which determines the camera's position and posture in the rapid tethering device's coordinate system.

[0050] Center the left camera in a straight line and The plane equation is determined as ,in represents the optical center of the left camera in the fast tethered device coordinate system 602 The coefficients of the plane equation determined by the central axis of the rotation axis 805. Similarly, the two straight lines in the right camera can be obtained and The plane equation is determined to be ,in represents the optical center of the right camera in the fast tethered device coordinate system 602 The coefficients of the plane equation determined by the central axis 805 of the rotation axis, then the plane and plane The intersection line is the central axis of the rotation axis ,straight line The equation of the space line in the rapid mooring device coordinate system 602 is: (8) in, Figure 8 middle is the rapid mooring device coordinate system; is the camera coordinate system of the left camera, is the image coordinate system of the left camera, and They are the starting point of the first left edge straight line 801 of the tail wheel rotation axis 106 and end point The imaging point on the target surface of the left camera, and They are the starting point of the first right edge straight line 802 of the tail wheel rotation axis 106 and end point The imaging point on the target surface of the left camera, and They are the starting point of the 805 straight line of the central axis of the rotation axis and end point The virtual imaging point on the target surface of the left camera, and Determine the optical center of the left camera Two straight lines and ,flat The left camera center line and Determined plane ; is the camera coordinate system of the right camera, is the image coordinate system of the right camera, and The starting point of the second left edge straight line 803 of the tail wheel rotation axis 106 is and end point The imaging point on the right camera target surface, and They are respectively the starting point of the second right edge straight line 804 of the tail wheel rotation axis 106 and end point The imaging point on the right camera target surface, and They are the starting point of the 805 straight line of the central axis of the rotation axis and end point The virtual imaging point on the right camera target surface, and Determine the optical center of the right camera Two straight lines and ,flat The center line of the right camera and Determined plane ; Then the plane equation shown in formula (8) and The intersection line is the straight line equation of the central axis 805 of the rotating shaft in the rapid mooring device coordinate system 602.

[0051] The following describes the step S540 of "projecting the straight line equation of the central axis 805 of the tail wheel rotating shaft onto the horizontal plane, thereby obtaining the position coordinates of the tail wheel rotating shaft 106 in the fast mooring device coordinate system 602".

[0052] During the traction process, the tail wheel 105 has its tail wheel rotation axis 106 always perpendicular to the ground, that is, perpendicular to the coordinate system 602 of the fast mooring device. plane, then the central axis of the rotation axis and Intersection of planes That is, the position coordinate of the tail wheel rotation axis 106 in the fast mooring device coordinate system 602 .

[0053] Next, refer to Figure 5 Describe the pose measurement method.

[0054] S550, based on the current image acquired in step S530, calculate the tangent vector of the tail wheel 105 of the helicopter in the fast mooring device coordinate system 602 along the bow direction 1107, including: detecting the hub profile of the tail wheel 105; fitting the hub profile ellipse and solving the spatial circular pose; eliminating the singular solution in the attitude angle to obtain the true solution of the spatial circular pose. The spatial circle refers to: the tail wheel hub is the radius Fixed space circle.

[0055] In step S550, the data processing module 110 detects the hub contour of the tail wheel 105 using the collected image. The detection means may include referencing the position of the tail wheel rotation axis detected in S540 in the image, intercepting a partial image area including the hub of the tail wheel 105 from the entire image, calculating the image grayscale mean in the partial area, and then using the mean as a threshold to perform threshold segmentation on the intercepted image area including the hub of the tail wheel 105 to obtain a binary image. The contour with the largest area is searched in the binary image to accurately detect the hub contour of the tail wheel 105.

[0056] The step S550 of "fitting the wheel hub contour ellipse and solving the spatial circle pose" includes: fitting an ellipse in the image plane using the pixel coordinates of the contour points on the detected wheel hub contour, obtaining the ellipse parameters of the wheel hub ellipse in the image, and further calculating the ellipse cone equation of the spatial circle in the camera coordinate system; solving the pose of the spatial circle in the rapid tethering device coordinate system based on the monocular vision measurement principle. The process of solving the spatial circle pose is described in detail below.

[0057] First, according to the ellipse equation in the image coordinate system of the image plane, the camera projection model back-projects the ellipse equation into the camera coordinate system to form a corresponding elliptical cone surface; The projection of the space circle on the image plane is an ellipse, and the equation of the ellipse can be obtained by image processing and expressed as: (9) in are the coefficients of the ellipse equation in the image coordinate system, is the pixel coordinate of the point on the tail wheel hub contour in the image coordinate system, which can be obtained by the pixel coordinate of the tail wheel hub contour in the image coordinate system Coefficients of the equation of the ellipse in the fitted image coordinate system , and then according to the projection model of camera imaging, that is: (10) In formula (10), , and are the focal length, pixel size and image principal point in the camera intrinsic parameter matrix, and are the three-dimensional coordinates of the spatial point in the camera coordinate system and the pixel coordinates in the image coordinate system, respectively. , , Substituting (10) into (9) yields the equation of the elliptical cone in the camera coordinate system: A ( f x ) 2 ( X c ) 2 + C ( f y ) 2 ( Y c ) 2 + [ A ( u 0 ) 2 + Bu 0 v 0 + C ( v 0 ) 2 + Du 0 + Ev 0 + F ] ( Z c ) 2 + Bf x f y X c Y c + [ 2 Au 0 f x + Bv 0 f x + Df x ] X c Z c + [ Bu 0 f y + 2 Cv 0 f y + E y ] Y c Z c = 0 (11) Next, transform the elliptical cone in the camera coordinate system to the standard coordinate system so that the elliptical cone is represented in standard form in this coordinate system (the standard form of the elliptical cone: the vertex of the elliptical cone and the coordinate origin of the standard coordinate system coincidence, the fixed straight line of the elliptical cone, i.e. the principal axis, and the standard coordinate system axes coincident).

[0058] Since the equation of the elliptical cone in the camera coordinate system expressed by equation (11) is relatively complex, it is not conducive to solving the equation of the plane where the space circle is located. Therefore, it is necessary to transform the elliptical cone in the camera coordinate system into a new standard coordinate system In this coordinate system, the elliptical cone surface is expressed as the standard form shown in equation (17). The definition of the standard coordinate system and the solution process of the elliptical cone surface equation are as follows: Standard coordinate system The origin of the camera coordinate system is the same as matrix Represents the transformation from the standard coordinate system to the camera coordinate system, and defines [ X c , Y c , Z c ] T = P s c [ X s , Y s , Z s ] T ,in are the coordinates of the point in the standard coordinate system, is a unit orthogonal matrix, then equation (11) can be expressed as: ( X c , Y c , Z c ) Q [ X c , Y c , Z c ] T (12) In formula (12), Q is a symmetric matrix, as shown in formula (13): Q = [ a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 ] (13) Substituting formula (13) into formula (12) and expanding it, we can obtain: a 11 ( X c ) 2 + a 22 ( Y c ) 2 + a 33 ( Z c ) 2 + [ a 12 + a 21 ] X c Y c + [ a 13 + a 31 ] X c Z c + [ a 23 + a 32 ] Y c Z c = 0 (14) By comparing the coefficients of equation (11) and equation (14), the parameters of the matrix Q can be solved: (15) Then [ X c , Y c , Z c ] T = P s c [ X s , Y s , Z s ] T Substituting into formula (12), we can get: [ X s , Y s , Z s ] ( P s c ) − 1 QP s c [ X s , Y s , Z s ] T (16) In order to represent the elliptical cone in standard form, it is necessary to solve ,in is the eigenvalue of the matrix Q, is a matrix composed of eigenvectors corresponding to the eigenvalues ​​of matrix Q. The solution is to perform eigenvalue decomposition on matrix Q to obtain and , then the equation of the elliptical cone after transformation in the standard coordinate system is: (17) Among them, in order to meet the subsequent calculation requirements, the matrix Adjust the order of the eigenvectors in The column vectors of are orthogonalized and normalized so that , and Satisfaction: ① , and Different sign;② .

[0059] Since the tail wheel hub is radius A fixed space circle, so the radius that intersects the elliptical cone is , find two planes that intersect the elliptical cone in the standard coordinate system so that the intersection line has a radius of If the circle is a circle, then one of the two planes is the correct solution (containing the position and attitude information of the space circle). According to the principle of monocular vision measurement, in the standard coordinate system, the coordinates of the center of the space circle are and the normal direction vector of the circular plane in space The two sets of solutions are shown in equations (18) and (19): Solution 1 is: (18) Solution 2 is: (19) in, is the known value of the tail wheel hub radius.

[0060] Then, according to the coordinate transformation relationship, the two sets of solutions of the center coordinates of the space circle and the plane normal vector of the space circle in the standard coordinate system are transformed back to the camera coordinate system using equation (20), where Represents the transformation matrix from the standard coordinate system to the camera coordinate system: (20) Finally, the position and attitude information of the space circle is transformed into the coordinate system of the rapid tethering device.

[0061] According to the coordinate transformation relationship, the two sets of solutions of the coordinates of the center of the space circle and the normal vector of the space circle plane in the camera coordinate system are transformed into the coordinate system of the rapid tethering device using equation (21), where The transformation matrix representing the camera coordinate system to the rapid tethering device coordinate system 602 can be obtained from the camera extrinsic parameter calibration result in step S520.

[0062] (twenty one) The step of "eliminating singular solutions in the attitude angle to obtain the true solution of the spatial circular posture" in step S550 is described below.

[0063] There is an ambiguity problem in measuring the circular pose in space using monocular vision, that is, the circular pose in space has two solutions, including a true solution and a singular solution. Fig. 9 As shown, for a circle on the image plane in the image coordinate system , exists in the spatial coordinate system and There are two circles corresponding to it, so it is impossible to determine and and By using the measured position coordinates of the tail wheel rotation axis 106 and the coordinates of the center of the space circle to establish a reference vector, the singular solution in the space circle attitude angle can be eliminated to obtain the true solution, thereby further solving the tangent vector of the tail wheel 105 along the bow direction 1107 in the fast mooring device coordinate system 602.

[0064] First, establish a reference vector: Fig.10 As shown, the two sets of solutions of the circle center coordinates in the rapid mooring device coordinate system 602 are projected onto the plane, using the position coordinates of the tail wheel rotation axis 106 obtained in step S540 The reference vector can be established as shown in formula (22): (twenty two) Then, the true solution is obtained by eliminating the singular solutions in the attitude angle: Assume that the angles between the two sets of solutions of the normal vector of the space circular plane in the fast tethered device coordinate system 602 and the reference vector are and , then: (twenty three) In formula (23), represents the vector product of two vectors, represents the product of two scalars, and They are respectively the solution 1 and solution 2 of the normal vector of the space circular plane in the coordinate system of the rapid tethered device Projection of a plane.

[0065] Since the angle between the true solution of the normal vector of the space circular plane and the reference vector should be the smallest in actual engineering, the true solution of the normal vector of the space circular plane in the rapid mooring device coordinate system 602 can be obtained as: (twenty four) In formula (24), and are the coordinates of solution 1 and solution 2 of the normal vector of the space circular plane in the rapid tethered device coordinate system.

[0066] Finally, solve the tangent vector of the tail wheel 105 along the bow direction 1107 in the fast mooring device coordinate system 602: Assume that The unit vector of the axis is , then the tangent vector of the circular plane in space is Equal to the normal vector of the space circle plane and The vector product of: (25) S560, calculating the direction vector of the helicopter 101 fuselage axis in the rapid mooring device coordinate system 602 along the bow direction 1107, including: the data processing module 110 calculates the position coordinates of the helicopter mooring rod 104 in the rapid mooring device coordinate system 602 according to the lateral position information X of the mechanical claw 108 received in real time from the automatic traction system, and further calculates the direction vector of the helicopter 101 fuselage axis in the rapid mooring device coordinate system 602 along the bow direction 1107 using the position coordinates of the tail wheel rotation axis 106.

[0067] First, according to the lateral position information X of the mechanical claw 108 received from the automatic traction system, the position coordinates of the helicopter mooring rod 104 in the quick mooring device coordinate system 602 can be obtained by using the spatial position relationship between the center of the mechanical claw 108 and the quick mooring device. for: (26) In formula (26), X is the lateral position information of the mechanical claw 108, is the distance that needs to be translated from the mechanical claw coordinate system 603 to the rapid tethering device coordinate system 602, such as Figure 6 shown.

[0068] Next, using the position coordinates of the tail wheel rotation axis 106 in the fast mooring device coordinate system 602, the direction vector of the fuselage axis of the helicopter 101 along the bow direction 1107 in the fast mooring device coordinate system 602 can be further obtained. for: (27) S570, using the tangent vector calculated in step S550 and the direction vector calculated in step S560, calculate the position coordinates of the helicopter mooring rod 104 in the deck coordinate system 601 and the fuselage deflection angle of the helicopter 101 in the deck coordinate system 601 and tail wheel angle , including: calculating the coordinate transformation relationship between the fast mooring device coordinate system 602 and the deck coordinate system 601; using the coordinate transformation relationship to transform the position coordinates of the helicopter mooring rod 104 under the fast mooring device coordinate system 602, the direction vector of the helicopter 101 fuselage axis along the bow direction 1107 , the tangent vector of the tail wheel 105 along the bow direction 1107 Convert to the deck coordinate system 601; calculate the fuselage deflection angle of the helicopter 101 in the deck coordinate system 601 and tail wheel angle .

[0069] An example of the above process is described in detail below. First, the coordinate transformation relationship between the fast mooring device coordinate system 602 and the deck coordinate system 601 is calculated: the data processing module 110 calculates the coordinate transformation relationship between the fast mooring device coordinate system 602 and the deck coordinate system 601 according to the longitudinal position information S of the fast mooring device 107 received in real time from the automatic traction system.

[0070] ① The first straight line of the traction track: (28) ② The second arc of the traction track: (29) ③The third oblique straight line of the traction track: (30) ④The fourth arc of the traction track: (31) ⑤The fifth straight line of the traction track: (32) in, is the radius of the circle corresponding to the second arc 1103 of the traction track or the fourth arc 1105 of the traction track; S is the longitudinal position information of the rapid mooring device received in real time by the data processing module from the automatic traction system; is the angle corresponding to the arc portion of the second arc 1103 of the traction track or the fourth arc 1105 of the traction track; is the coordinate of the origin of the quick mooring device coordinate system 602 in the deck coordinate system 601; The rapid mooring device coordinate system 602 to the deck coordinate system 601 needs to be along Angle of axis rotation; , They respectively represent the linear trajectories of the first straight line 1102 of the traction track and the fifth straight line 1106 of the traction track along the deck coordinate system 601. Length in the axial direction; The second arc 1103 of the traction track, the third oblique straight line 1104 of the traction track, and the fourth arc 1105 of the traction track are shown along the deck coordinate system 601. Length in the axial direction; The first straight line 1102 of the traction track and the fifth straight line 1106 of the traction track along the deck coordinate system 601 are shown in FIG. Distance in the axial direction; The length of the third oblique straight line 1104 of the traction track is: l 5 = [ l 2 − R a × sin φ × 2 ] 2 + [ l 4 − ( R a − R a × cos φ ) × 2 ] 2 (33) Among them, the shipyard has the track line type CAD drawing of the traction track in the deck coordinate system, from which the - .

[0071] Next, the direction vector of the center axis of the helicopter 101 fuselage in the deck coordinate system 601 is calculated. and the tangent vector of the tail wheel 105 hub along the bow direction 1107 : According to the Rodriguez space vector rotation formula, we can get formula (34): R b r = [ cos ( − θ ) sin ( − θ ) 0 − sin ( − θ ) cos ( − θ ) 0 0 0 1 ] ; { w b ⃗ = ( R b r ) − 1 * w r ⃗ t b ⃗ = ( R b r ) − 1 * t r ⃗ (34) in, represents the rotation matrix from the deck coordinate system 601 to the fast mooring device coordinate system 602, which can be obtained by moving from the fast mooring device coordinate system 602 to the deck coordinate system 601 along Angle of axis rotation Solution; is the direction vector of the helicopter fuselage axis along the bow direction 1107 in the fast mooring device coordinate system 602; It is the tangent vector of the tail wheel 105 along the bow direction 1107 in the fast mooring device coordinate system 602.

[0072] Finally, the position coordinates of the helicopter mooring rod 104 in the deck coordinate system 601 and the fuselage deflection angle of the helicopter 101 in the deck coordinate system 601 are calculated. and tail wheel angle According to the above coordinate conversion relationship, the position coordinates of the helicopter mooring rod 104 in the deck coordinate system 601 can be obtained: for: (35) in, is the position coordinate of the helicopter mooring rod 104 in the fast mooring device coordinate system 602, The rapid mooring device coordinate system 602 to the deck coordinate system 601 needs to be along The angle of rotation of the axis, It is the coordinate of the origin of the rapid mooring device coordinate system 602 in the deck coordinate system 601.

[0073] The direction vector of the center axis of the helicopter 101 fuselage in the deck coordinate system 601 and the tangent vector of the tail wheel 105 hub along the bow direction 1107 Projected to the deck coordinate system Plane, available , . Assume that the deck coordinate system 601 Axis The unit vector of the plane projection is , then the fuselage deflection angle of the helicopter 101 in the deck coordinate system 601 is and tail wheel angle They are: (36) Therefore, the position coordinates of the helicopter 101 in the deck coordinate system 601 at each moment are , the attitude angle is .

[0074] S580, repeating steps S530 to S570, the helicopter attitude measurement system outputs the helicopter attitude information to the automatic traction system in real time until the automatic traction of the helicopter 101 in and out of the warehouse is completed.

[0075] The following describes the experimental results and conclusions obtained by the method according to the embodiment of the present invention.

[0076] The offshore helicopter posture measurement system based on binocular vision described in the embodiment of the present invention (mainly including a visual sensor module 109 and a data processing module 110) is installed on the rapid mooring device 107 of the automatic traction system, and an actual dynamic automatic traction test is carried out. It is verified that the helicopter posture measurement result can meet the requirements of automatic traction in and out of storage.

[0077] To verify the dynamic measurement accuracy of the offshore helicopter posture measurement system based on binocular vision described in the embodiment of the present invention: ① Use laser radar to obtain the helicopter's three-dimensional point cloud data in real time, and calculate the helicopter mooring rod position coordinates and fuselage deflection angle in real time through the three-dimensional point cloud data. The comparison curves of the helicopter mooring rod position X, Y coordinate measurement results and laser radar measurement results are shown in Figure 1. Fig.12 , Fig.13 As shown, the comparison curve between the fuselage deflection angle measurement result of the present invention and the laser radar measurement result is shown in Fig.14 ② A gyroscope (measuring accuracy 0.01°) is installed on the tail wheel rotation axis to measure the tail wheel deflection angle of the helicopter. The comparison curve of the tail wheel deflection angle measurement result of the present invention and the gyroscope measurement result is as shown Fig.15 shown.

[0078] from Figure 12~Figure 15 It can be seen that under the dynamic automatic towing condition: the coordinate measurement error of the helicopter mooring rod position of the present invention is ≤1cm; the measurement error of the fuselage deflection angle is ≤3°; the tail wheel deflection angle measurement result of the present invention is basically consistent with the gyroscope output value in trend. Since the gyroscope data itself has drift, dynamic quantitative analysis is not performed.

[0079] In order to quantitatively evaluate the measurement accuracy of the tail wheel rotation axis position of the present invention, under static conditions, the helicopter tail wheel rotation axis is located at about 11 different positions within the common field of view of two cameras. The true position of the tail wheel rotation axis is measured using a total station (measurement accuracy 0.1 mm), and the measurement error between the measurement result of the tail wheel rotation axis position of the present invention and the true value is shown in Table 1. As can be seen from Table 1, the measurement error of the tail wheel rotation axis position of the present invention is ≤1 cm.

[0080] Table 1

[0081] In order to quantitatively evaluate the measurement accuracy of the tail wheel deflection of the present invention, under static conditions, the helicopter tail wheel is located at about 10 different positions within the common field of view of the two cameras, and the tail wheel is gradually rotated at each position so that the angle between it and the helicopter fuselage axis is about 0°, 5°, 10°, 20°, 25°, 30°, and 45°. The true deflection of the tail wheel is measured using a total station (measurement accuracy 0.1 mm), and the measurement error between the measurement result of the tail wheel deflection of the present invention and the true value is shown in Table 2. As can be seen from Table 2, the measurement error of the tail wheel deflection of the present invention is ≤2.1°.

[0082] Table 2

[0083] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0084] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is primarily selected for readability and instructional purposes, rather than for the purpose of explaining or limiting the subject matter of the present invention.

Claims

1. A method for measuring the position and posture of an offshore helicopter based on binocular vision, characterized in that: include: S510, establish a quick mooring device coordinate system and a deck coordinate system, wherein the deck coordinate system takes the starting point of the ship deck traction track as the coordinate origin, takes the central axis of the starting part of the traction track as the y-axis, points to the bow as the positive direction of the y-axis, is perpendicular to the y-axis ray as the x-axis, and points to the starboard side of the hull as the positive direction of the x-axis, and establishes a mathematical equation and a trajectory equation of the traction track in the deck coordinate system; the quick mooring device coordinate system takes the geometric center of the quick mooring device upper cover plate as the coordinate origin, is perpendicular to the edge of the rear wall of the quick mooring device as the y-axis, points to the bow as the positive direction of the y-axis, is perpendicular to the y-axis ray as the x-axis, and points to the starboard side of the hull as the positive direction of the x-axis; S520, calibrating the intrinsic parameters and extrinsic parameters of the cameras in the two visual sensor modules, wherein the two visual sensor modules are symmetrically installed on both sides of the rear wall of the fast tethering device in the helicopter automatic traction system and move with the fast tethering device, wherein the extrinsic parameter refers to the translation vector of the fast tethering device coordinate system transformed to the camera coordinate system and the rotation matrix , the translation vector Determines the position of the origin of the rapid tethering device coordinate system in the camera coordinate system, the rotation matrix It determines the angle of rotation around the XYZ axis when the coordinate system of the rapid tethering device is transformed into the camera coordinate system; the intrinsic parameters refer to the focal length, image principal point, pixel size and distortion coefficient of the camera imaging, and the intrinsic parameters determine the projection relationship of the space point on the camera imaging target surface; S530, the helicopter posture measurement system enters the working mode, automatically turns on the left and right lighting sources to illuminate the camera field of view, and the camera collects the current image of the helicopter tail wheel movement area in real time and transmits the current image to the data processing module; S540, calculating the position coordinates of the tail wheel rotation axis in the helicopter in the rapid mooring device coordinate system according to the current image acquired in the above steps: using the current image acquired in step S530 to detect the edges on both sides of the tail wheel rotation axis; calculating the pixel coordinates of the starting point and the end point of the central axis of the tail wheel rotation axis in the above current image; solving the straight line equation of the central axis of the tail wheel rotation axis in the rapid mooring device coordinate system based on the binocular vision measurement principle; projecting the straight line equation of the central axis of the tail wheel rotation axis onto the horizontal plane, thereby obtaining the position coordinates of the tail wheel rotation axis in the rapid mooring device coordinate system; S550, according to the current image acquired in step S530, calculating the tangent vector of the tail wheel of the helicopter along the bow direction in the coordinate system of the rapid mooring device, including: detecting the tail wheel hub profile; fitting the tail wheel hub profile ellipse and solving the spatial circular pose; eliminating the singular solution in the attitude angle to obtain the true solution of the spatial circular pose, wherein the spatial circle refers to: the tail wheel hub is a spatial circle with a fixed radius; S560, calculating the direction vector of the helicopter fuselage axis in the rapid mooring device coordinate system along the bow direction, including: the data processing module calculates the position coordinates of the helicopter mooring rod in the rapid mooring device coordinate system according to the lateral position information of the mechanical claw received in real time from the automatic traction system, and further calculates the direction vector of the helicopter fuselage axis in the rapid mooring device coordinate system along the bow direction by using the position coordinates of the tail wheel rotation axis; S570, using the tangent vector calculated in step S550 and the direction vector calculated in step S560, calculating the position coordinates of the helicopter mooring rod in the deck coordinate system, the fuselage deflection angle and the tail wheel deflection angle of the helicopter in the deck coordinate system, including: calculating the coordinate conversion relationship between the rapid mooring device coordinate system and the deck coordinate system; using the coordinate conversion relationship to convert the position coordinates of the helicopter mooring rod, the direction vector of the helicopter fuselage axis along the bow direction, and the tangent vector of the tail wheel along the bow direction in the rapid mooring device coordinate system to the deck coordinate system; calculating the helicopter fuselage deflection angle and the tail wheel deflection angle in the deck coordinate system; S580, repeating steps S530 to S570, outputting the helicopter position information to the automatic traction system in real time until the automatic traction of the helicopter in and out of the warehouse is completed.

2. The method for measuring the position and posture of an offshore helicopter based on binocular vision according to claim 1 is characterized in that: The step S540 of "the data processing module uses the current image collected in step S530 to detect the edges on both sides of the tail wheel rotation axis" includes: First, perform left and right difference: Let the original input image be , the output image is , for a resolution The original image, defined The gray value of the i-th row and j-th column is equal to The grayscale value of the two columns to the right of the i-th row and j-th column minus the sum of the grayscale values ​​of the two columns to the left is mathematically expressed as: (1) Then perform grayscale threshold segmentation: The grayscale mean is taken as the grayscale threshold ,right Perform threshold segmentation to obtain the image , which is expressed mathematically as: (2) Then perform counting threshold segmentation: the image The average number of 1s in each column is used as the number threshold , if the binary image The total number of 1s in each column is greater than the threshold , then all pixels in this column are set to 1, and the result image is obtained ,Right now: (3) Finally, find the left and right edges: In the example, search from left to right, and use the first non-zero column found as the left edge. Then search from right to left, and use the first non-zero column found as the right edge. The step S540 of "calculating the pixel coordinates of the starting point and the end point of the central axis of the tail wheel rotation shaft in the current image" includes: Assume that the pixel coordinates of the starting point and end point of the straight line on the left edge of the rotation axis in the image captured by the left camera are , , the pixel coordinates of the starting point and end point of the right edge line are , , take the pixel coordinates of the central axis of the rotation axis as half of the pixel coordinates of the edge lines on both sides, that is: (4) Similarly, in the right camera, we have: (5) The step S540 of "solving the linear equation of the central axis of the tail wheel rotation axis in the rapid mooring device coordinate system based on the binocular vision measurement principle" includes: According to the mathematical model of camera imaging, the left camera uses the point and Point The pixel coordinates of the two straight lines passing through the optical center of the left camera are determined and , which are respectively in the equations of the rapid mooring device coordinate system: straight line : (6) straight line : (7) In formula (6) and (7), represents the coordinates of the point on the straight line passing through the optical center of the left camera in the rapid tethering device coordinate system; is the Z coordinate of the space point in the left camera coordinate system, which is a calculable constant; Q is the parameter matrix of the camera imaging and Q=K M, where K is the camera's intrinsic parameter matrix, which determines the projection relationship of the spatial point on the camera's imaging target surface, and M is the camera's extrinsic parameter matrix, which determines the camera's position and posture in the fast tethered device coordinate system. , and are the focal length, pixel size and image principal point in the camera intrinsic parameter matrix, and is the translation vector and rotation matrix of the fast tethered device coordinate system transformed to the camera coordinate system. The translation vector Determines the position of the origin of the rapid tethering device coordinate system in the camera coordinate system, the rotation matrix Determines the angle of rotation around the XYZ axis required to transform the rapid tethering device coordinate system into the camera coordinate system; Center the left camera in a straight line and The plane equation is determined as ,in Indicates the optical center of the left camera in the rapid tethered device coordinate system The coefficients of the plane equation determined by the central axis of the rotation axis; the two straight lines in the right camera and The plane equation is determined as , then the plane and plane The intersection line is the central axis of the rotation axis ,straight line The equation of the space line in the rapid mooring device coordinate system is: (8) The step S540 of "projecting the linear equation of the central axis of the tail wheel rotation shaft onto the horizontal plane to obtain the position coordinates of the tail wheel rotation shaft in the fast mooring device coordinate system" includes: During the traction process, the rotation axis of the tail wheel is always perpendicular to the ground, that is, perpendicular to the coordinate system of the fast mooring device. plane, then the central axis of the rotation axis and Intersection of planes That is, the position coordinate of the tail wheel rotation axis in the rapid mooring device coordinate system.

3. The method for measuring the position and posture of an offshore helicopter based on binocular vision according to claim 2 is characterized in that: The "fitting the wheel hub contour ellipse and solving the spatial circle pose" in step S550 includes: fitting an ellipse in the image plane using the pixel coordinates of the contour points on the detected wheel hub contour to obtain the ellipse parameters of the wheel hub ellipse in the image plane, and further calculating the ellipse cone equation of the spatial circle in the camera coordinate system; solving the pose of the spatial circle in the rapid tethering device coordinate system based on the monocular vision measurement principle, including: First, according to the ellipse equation in the image coordinate system of the image plane, the camera projection model back-projects the ellipse equation into the camera coordinate system to form a corresponding elliptical cone surface; The projection of the space circle on the image plane is an ellipse, and the equation of the ellipse is obtained by image processing and is expressed as: (9) in, are the coefficients of the ellipse equation in the image coordinate system, is the pixel coordinate of the point on the tail wheel hub contour in the image coordinate system, According to the projection model of camera imaging, that is: (10) In formula (10), , and are the focal length, pixel size and image principal point in the camera intrinsic parameter matrix, and are the three-dimensional coordinates of the spatial point in the camera coordinate system and the pixel coordinates in the image coordinate system, respectively. , , Substituting (10) into (9) we get the equation of the elliptical cone in the camera coordinate system: (11) The elliptical cone surface in the camera coordinate system is transformed into the standard coordinate system so that the elliptical cone surface is expressed in a standard form in this coordinate system. The definition of the standard coordinate system and the solution process of the elliptical cone surface equation are as follows: Standard coordinate system The origin of the camera coordinate system is the same as matrix Represents the transformation from the standard coordinate system to the camera coordinate system, and defines ,in are the coordinates of the point in the standard coordinate system, is a unit orthogonal matrix, then equation (11) is expressed as: (12) In formula (12), Q is a symmetric matrix, as shown in formula (13): (13) in, are the parameters of the symmetric matrix Q, Substituting equation (13) into equation (12) and expanding it, we get: (14) Compare the coefficients of equation (11) and equation (14) to solve the parameters of the symmetric matrix Q: (15) Then Substituting into formula (12), we get: (16) In order to represent the elliptical cone in standard form, it is necessary to solve ,in is the eigenvalue of the matrix Q, It is a matrix composed of eigenvectors corresponding to the eigenvalues ​​of matrix Q. The solution is to perform eigenvalue decomposition on matrix Q, that is, and , then the equation of the elliptical cone after transformation in the standard coordinate system is: (17) In the standard coordinate system, the coordinates of the center of the space circle are and the normal direction vector of the circular plane in space The two sets of solutions are shown in equations (18) and (19): Solution 1 is: (18) Solution 2 is: (19) in, is the known value of the tail wheel hub radius, Then, according to the coordinate transformation relationship, the two sets of solutions of the center coordinates of the space circle and the plane normal vector of the space circle in the standard coordinate system are transformed back to the camera coordinate system using equation (20), where Represents the transformation matrix from the standard coordinate system to the camera coordinate system: (20) Finally, the position and attitude information of the space circle is transformed into the fast tethered device coordinate system: According to the coordinate transformation relationship, the two sets of solutions of the center coordinates of the space circle and the plane normal vector of the space circle in the camera coordinate system are transformed into the fast tethered device coordinate system using equation (21), where The transformation matrix from the camera coordinate system to the fast tethering device coordinate system is obtained in the camera extrinsic parameter calibration result of step S520: (21) The step of "eliminating singular solutions in the attitude angle to obtain a true solution of the spatial circular posture" in step S550 includes: First, establish the reference vector: project the two sets of solutions of the center coordinates in the rapid tethered device coordinate system to the plane, using the tail wheel rotation axis position coordinates obtained in step S540 The reference vector is established as shown in formula (22): (22) Then, the true solution is obtained by eliminating the singular solutions in the attitude angle: Assume that the two sets of solutions of the normal vectors of the space circular plane in the coordinate system of the rapid tethered device are The angles between the projection of the plane and the reference vector are and , then: (23) In formula (23), and They are respectively the solution 1 and solution 2 of the normal vector of the space circular plane in the coordinate system of the rapid tethered device Projection of a plane; The true solution of the normal vector of the space circular plane in the rapid tethered device coordinate system is: (24) In formula (24), and are the coordinates of solution 1 and solution 2 of the normal vector of the space circular plane in the rapid tethering device coordinate system; Finally, solve the tangent vector of the tail wheel along the bow direction in the fast mooring device coordinate system: Assume that The unit vector of the axis is , then the tangent vector of the circular plane in space is Equal to the space circle plane normal vector and The vector product of: (25)。 4. The method for measuring the position and posture of an offshore helicopter based on binocular vision according to claim 3 is characterized in that: Step "S560, calculating the direction vector of the helicopter fuselage axis along the bow direction in the fast mooring device coordinate system" includes: First, according to the lateral position information X of the mechanical claw received from the automatic traction system, the spatial position relationship between the center of the mechanical claw and the rapid mooring device is used to obtain the position coordinates of the helicopter mooring rod in the rapid mooring device coordinate system. for: (26) In formula (26), X is the lateral position information of the mechanical claw, The distance that needs to be translated from the mechanical claw coordinate system to the rapid tethering device coordinate system; Next, the position coordinates of the tail wheel rotation axis in the fast mooring device coordinate system are used to further obtain the direction vector of the helicopter fuselage axis along the bow direction in the fast mooring device coordinate system: for: (27)。 5. The method for measuring the position and posture of an offshore helicopter based on binocular vision according to claim 4 is characterized in that: The step of "calculating the position coordinates of the helicopter mooring rod in the deck coordinate system, the fuselage deflection angle and the tail wheel deflection angle of the helicopter in the deck coordinate system using the tangent vector calculated in step S550 and the direction vector calculated in step S560" includes: First, the coordinate conversion relationship between the quick mooring device coordinate system and the deck coordinate system is calculated: the data processing module calculates the coordinate conversion relationship between the quick mooring device coordinate system and the deck coordinate system according to the quick mooring device longitudinal position information S received in real time from the automatic traction system; ① The first straight line of the traction track: (28) ② The second arc of the traction track: (29) ③The third oblique straight line of the traction track: (30) ④The fourth arc of the traction track: (31) ⑤The fifth straight line of the traction track: (32) in, is the radius of the circle corresponding to the second arc line of the traction track or the fourth arc line of the traction track; S is the longitudinal position information of the rapid mooring device received in real time by the data processing module from the automatic traction system; It is the angle corresponding to the arc portion of the second arc section of the traction track or the fourth arc section of the traction track; is the coordinate of the origin of the quick mooring device coordinate system in the deck coordinate system; The coordinate system of the fast mooring device needs to be connected to the deck coordinate system along Angle of axis rotation; , They represent the first and fifth straight line tracks of the traction track along the deck coordinate system. Length in the axial direction; Indicates the second, third, and fourth segments of the traction track along the deck coordinate system Length in the axial direction; Indicates the first and fifth straight lines of the traction track along the deck coordinate system Distance in the axial direction; The length of the third straight line of the traction track: (33) Next, calculate the direction vector of the helicopter fuselage centerline in the deck coordinate system and the tangent vector of the tail wheel hub along the bow direction : According to the Rodriguez space vector rotation formula, we get formula (34): (34) in, It represents the rotation matrix from the deck coordinate system to the fast mooring device coordinate system. Angle of axis rotation Solution; is the direction vector of the helicopter fuselage axis along the bow direction in the fast mooring device coordinate system; is the tangent vector of the tail wheel along the bow direction in the fast mooring device coordinate system; Finally, calculate the position coordinates of the helicopter mooring rod in the deck coordinate system and the fuselage deflection angle of the helicopter in the deck coordinate system. and tail wheel angle According to the coordinate transformation relationship of formula (35), the position coordinates of the helicopter mooring rod in the deck coordinate system are obtained: for: (35) in, is the position coordinate of the helicopter mooring rod in the quick mooring device coordinate system, The coordinate system of the fast mooring device needs to be connected to the deck coordinate system along The angle of rotation of the axis, is the coordinate of the origin of the quick mooring device coordinate system in the deck coordinate system; The direction vector of the helicopter fuselage centerline in the deck coordinate system and the tangent vector of the tail wheel hub along the bow direction Projected to the deck coordinate system Plane, get , , assuming that the deck coordinate system Axis The unit vector of the plane projection is , then the helicopter fuselage deflection angle in the deck coordinate system is and tail wheel angle They are: (36) and They are the fuselage deflection angle and tail wheel deflection angle of the helicopter in the deck coordinate system.

6. A binocular vision-based offshore helicopter position and attitude measurement system, characterized in that: include: Two visual sensor modules are responsible for collecting image information of the tail wheel movement area of ​​the helicopter, and are symmetrically installed on both sides of the rear wall of the rapid mooring device of the helicopter automatic traction system; the data processing module is installed on the rear wall of the rapid mooring device by bolts, and moves with the rapid mooring device. The data processing module includes three image processors and a structural component shell, which is used to execute the offshore operation helicopter posture measurement method based on binocular vision according to any one of claims 1 to 5 above, complete the helicopter posture measurement, and transmit the measurement information to the helicopter automatic traction system.

7. The binocular vision-based offshore helicopter position and attitude measurement system according to claim 6, characterized in that: The visual sensor module includes: a front cover for preventing dust, salt spray and mildew; a sealing gasket for waterproofing; a protective glass for explosion-proofing; a pressure plate for fixing the protective glass; a lens for collecting images; a camera for collecting images; a camera base for fixing the camera and the box; a light source for supplementing near-infrared band light during the day and at night; a heat dissipation pad for guiding the heat of the light source to the box cover; a box cover for heat dissipation, dust prevention, salt spray and mildew prevention; an aerial plug for power supply and communication, wherein the light source and the camera are coaxially installed up and down.

8. The binocular vision-based offshore helicopter position and attitude measurement system according to claim 7, characterized in that: The light source includes a near-infrared band light source, the camera includes a high-resolution visible light camera compatible with the near-infrared band, and the lens includes a low-distortion wide-angle lens.

Citation Information

Cited By

  • Simulation opening and closing control method, device and equipment for vehicle front cover model and medium

    CN121115555A

  • A method, device, and flight control system for helicopter flight attitude detection based on visible light image deep learning.

    CN123071444A