UWB base station calibration method, device, electronic equipment and medium
By calculating multiple ranging and positioning frames of the UWB base station, using the preset ranging range and positioning point characteristics to determine the target frame, and calculating the 3D coordinates of the UWB base station, the problems of low calibration accuracy and low efficiency of UWB base stations in the existing technology are solved. , realizing efficient and automatic base station coordinate calibration.
Patent Information
- Application Number
- CN202210805011.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-07-08
AI Technical Summary
The existing three-dimensional coordinate calibration of UWB base stations relies on manual measurement, which has low accuracy, high labor intensity, and low efficiency.
By obtaining multiple ranging and positioning frames from the UWB base station, the target ranging and positioning frame is determined based on the preset ranging range and preset positioning point distribution characteristics, and the plane coordinate mean and minimum ranging value are calculated, using the triangulation positioning algorithm or the least squares method. The final 3D coordinates of the UWB base station are calculated.
It improves the efficiency of UWB base station calibration, reduces labor costs, and makes the base station coordinate system consistent with the scene map coordinate system to facilitate subsequent fusion positioning.
Smart Images

Figure CN115022805B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless positioning technology, and in particular to a calibration method, device, electronic equipment and medium for a UWB base station. Background Art
[0002] Existing ultra-wideband (UWB) positioning technologies include time of flight (TOF) positioning solution, time difference of arrival (TDOA) positioning solution, angle of arrival (AOA) positioning solution calculated based on phase difference, etc., but the prerequisite is to know the three-dimensional coordinates of the UWB base station deployed in the scene.
[0003] The existing calibration scheme for UWB base station coordinates can be measured manually using total stations, tape measures or laser rangefinders. All of them require manual operation of related measuring equipment to calibrate the base stations one by one, relying on the technical experience of personnel. The accuracy of the calibrated UWB base station coordinates is relatively low, and the manual labor intensity is high. Summary of the invention
[0004] In order to solve the above technical problems, the embodiments of the present application provide a calibration method, device, electronic device and medium for a UWB base station.
[0005] In a first aspect, an embodiment of the present application provides a calibration method for a UWB base station, the method comprising:
[0006] Acquire multiple ranging and positioning frames of the UWB base station, each ranging and positioning frame including a ranging value and a map positioning value;
[0007] Determine a first target ranging and positioning frame from the plurality of ranging and positioning frames according to a preset ranging range and a preset positioning point distribution feature;
[0008] Determine whether the number of the first target ranging and positioning frames is greater than or equal to a preset number;
[0009] When the number of the first target ranging and positioning frames is greater than or equal to a preset number, obtaining a mean value of the plane coordinates of the UWB base station according to the first target ranging and positioning frames;
[0010] A target map positioning value corresponding to a minimum ranging value is determined from the first target ranging positioning frame, and a final 3D coordinate of the UWB base station is obtained according to the plane coordinate mean, the minimum ranging value and the target map positioning value.
[0011] In one implementation, the step of acquiring the plane coordinate mean of the UWB base station according to the first target ranging and positioning frame includes:
[0012] Calculating a plurality of initial 3D coordinates of the UWB base station according to the first target ranging and positioning frame;
[0013] The average value of the plane coordinates of the UWB base station is calculated according to the multiple initial 3D coordinates.
[0014] In one embodiment, the step of obtaining the final 3D coordinates of the UWB base station according to the plane coordinate mean, the minimum distance measurement value and the target map positioning value includes:
[0015] Calculate the height of the UWB base station according to the plane coordinate mean, the minimum distance measurement value and the target map positioning value;
[0016] The final 3D coordinates are calculated according to the plane coordinate mean and the height.
[0017] In one embodiment, the step of obtaining the final 3D coordinates of the UWB base station according to the plane coordinate mean and the height includes:
[0018] Generate a corrected 3D coordinate according to the plane coordinate mean and the height;
[0019] respectively calculating error distances between the corrected 3D coordinates and the map positioning values of each of the first target ranging and positioning frames;
[0020] Determine a target error distance that is less than or equal to a preset error threshold from the plurality of error distances;
[0021] Determine a second target ranging positioning frame corresponding to the target error distance from the first target ranging positioning frame, and use a triangulation positioning algorithm or a least squares method to perform coordinate calculation on the second target ranging positioning frame to obtain a calibrated 3D coordinate of the UWB base station;
[0022] The final 3D coordinate is generated according to the horizontal coordinate and the height of the calibrated 3D coordinate.
[0023] In one embodiment, the step of determining a first target ranging positioning frame from a plurality of ranging positioning frames according to a preset ranging range and a preset positioning point distribution feature comprises:
[0024] Determine, from the plurality of ranging and positioning frames, a candidate ranging and positioning frame whose ranging value belongs to the preset ranging range;
[0025] The first target ranging positioning frame is determined from the candidate ranging positioning frames according to the preset positioning point distribution characteristics.
[0026] In one implementation, the step of acquiring multiple ranging and positioning frames of a UWB base station includes:
[0027] Collecting multiple UWB data frames through a UWB tag set by a positioning device, each of the UWB data frames includes a distance measurement value between the UWB tag and multiple UWB base stations, and a map positioning value of the UWB tag on the scene map when collecting the UWB data frames;
[0028] A plurality of the ranging and positioning frames of each of the UWB base stations are generated according to the plurality of the UWB data frames.
[0029] In one embodiment, the step of acquiring the scene map includes:
[0030] The scene map is constructed based on the UWB scene data collected by the sensor.
[0031] In a second aspect, an embodiment of the present application provides a calibration device for a UWB base station, the device comprising:
[0032] A first acquisition module is used to acquire multiple ranging and positioning frames of the UWB base station, each ranging and positioning frame including a ranging value and a map positioning value;
[0033] A determination module, configured to determine a first target ranging and positioning frame from a plurality of ranging and positioning frames according to a preset ranging range and a preset positioning point distribution feature;
[0034] A judging module, used to judge whether the number of the first target ranging and positioning frames is greater than or equal to a preset number;
[0035] A second acquisition module, configured to acquire a plane coordinate mean of the UWB base station according to the first target ranging and positioning frames when the number of the first target ranging and positioning frames is greater than or equal to a preset number;
[0036] The third acquisition module is used to determine the target map positioning value corresponding to the minimum ranging value from the first target ranging positioning frame, and obtain the final 3D coordinates of the UWB base station according to the plane coordinate mean, the minimum ranging value and the target map positioning value.
[0037] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is run by the processor, the calibration method of the UWB base station provided in the first aspect is executed.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed on a processor, executes the calibration method for a UWB base station provided in the first aspect.
[0039] The calibration method, device, electronic device and medium of the UWB base station provided in the present application above obtain multiple ranging and positioning frames of the UWB base station; determine the first target ranging and positioning frame from the multiple ranging and positioning frames according to the preset ranging range and the preset positioning point distribution characteristics; determine whether the number of the first target ranging and positioning frames is greater than or equal to the preset number; when the number of the first target ranging and positioning frames is greater than or equal to the preset number, obtain the plane coordinate mean of the UWB base station according to the first target ranging and positioning frame; determine the target map positioning value corresponding to the minimum ranging value from the first target ranging and positioning frame, and obtain the final 3D coordinates of the UWB base station according to the plane coordinate mean, the minimum ranging value and the target map positioning value. Through the calibration scheme of the UWB base station provided in this embodiment, the final 3D coordinates of the UWB base station can be calculated based on the multiple ranging and positioning frames of the UWB base station, thereby improving the efficiency of the UWB base station calibration, reducing labor costs, and making the calibrated base station coordinate system the same as the scene map coordinate system, which is convenient for subsequent fusion positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.
[0041] Figure 1 A schematic diagram of a process of calibrating a UWB base station provided in an embodiment of the present application is shown;
[0042] Figure 2 A structural schematic diagram of a calibration device for a UWB base station provided in an embodiment of the present application is shown.
[0043] Icons: 200 - calibration device of UWB base station; 201 - first acquisition module; 202 - determination module; 203 - judgment module; 204 - second acquisition module; 205 - third acquisition module. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0045] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0046] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.
[0047] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0048] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0049] Example 1
[0050] An embodiment of the present disclosure provides a calibration method for a UWB base station.
[0051] For details, see Figure 1 , the calibration method of UWB base station includes:
[0052] Step S101, obtaining multiple ranging and positioning frames of a UWB base station.
[0053] In this embodiment, each of the ranging and positioning frames includes a ranging value and a map positioning value. Specifically, the ranging value of each of the ranging and positioning frames is the ranging value between the UWB base station and the UWB tag, and the map positioning value of each of the ranging and positioning frames is the positioning position of the UWB tag in the scene map when the UWB base station collects the ranging value.
[0054] In one embodiment, the scene map is a map corresponding to the scene where the UWB base station is located, which can be constructed using scene data collected by sensors. The UWB base station can then be located based on the scene map.
[0055] In one embodiment, the step of acquiring the scene map includes:
[0056] The scene map is constructed based on the UWB scene data collected by the sensor.
[0057] Specifically, the sensor may include single-line laser radar, multi-line laser radar, monocular camera, multi-camera, depth camera and other devices. The map format of the scene map may include plane grid map format and point cloud map format. Generally, the scene data collected by single-line laser radar can be used to construct a plane grid map, and the scene data collected by multi-line laser, RGBD, monocular and multi-camera can be used to construct a point cloud map.
[0058] In one embodiment, step S101 includes:
[0059] Collecting multiple UWB data frames through a UWB tag set by a positioning device, each of the UWB data frames includes a distance measurement value between the UWB tag and multiple UWB base stations, and a map positioning value of the UWB tag on the scene map when collecting the UWB data frames;
[0060] A plurality of the ranging and positioning frames of each of the UWB base stations are generated according to the plurality of the UWB data frames.
[0061] It should be noted that, compared with the prior art which requires manual operation to realize UWB base station calibration, in this embodiment, by installing the UWB tag on the positioning device, the positioning device carries the UWB tag and moves in the UWB scene to collect UWB data frames, which can reduce the intensity of manual labor and reduce labor costs. In this embodiment, the positioning device can be a complex mobile robot, or a simple positioning device composed of a handheld or backpack laser radar and a computing unit, which is not limited here. The UWB tag can be installed on a movable person, vehicle or robot, and the UWB base station can be installed on a wall. The UWB tag performs wireless ranging or communication with a nearby UWB base station.
[0062] It can be understood that when the positioning device carries a UWB tag and moves in a UWB scene, it can move along a preset path. Multiple ranging points are set on the preset path. When reaching the corresponding ranging point, the UWB tag collects the ranging value between it and several nearby UWB base stations, and collects the map positioning value of the UWB tag in the scene map at this time.
[0063] For example, there are base stations A and B near the current ranging point of the UWB tag. The ranging value between the UWB tag and base station A is collected, the ranging value between the UWB tag and base station B is collected, and the map positioning value of the UWB tag at this time is collected. The ranging value between the UWB tag and base station A, the ranging value between the UWB tag and base station B, and the current map positioning value are used to generate a UWB data frame for the current ranging point. When the UWB tag moves to a ranging point, it repeatedly collects the corresponding UWB data frame, and multiple UWB data frames can be obtained. The UWB ranging results can be transmitted to the calculation unit of the positioning device via a serial cable, a network cable or a wireless connection.
[0064] In this embodiment, each UWB data frame includes the ranging values collected at the ranging point with each nearby UWB base station and the map positioning value of the ranging point in the scene map. For example, one UWB data frame includes the ranging value L1 of base station A, the ranging value L2 of base station B and the map positioning value X. The ranging value L1 of base station A and the map positioning value X are stored in the base station A node as a positioning ranging frame, and the ranging value L2 of base station B and the map positioning value X are stored in the base station B node as a positioning ranging frame. Another UWB data frame includes the ranging value L3 of base station A, the ranging value L4 of base station C and the map positioning value Y. The ranging value L3 of base station A and the map positioning value X are stored in the base station A node as a positioning ranging frame, and the ranging value L4 of base station C and the map positioning value Y are stored in the base station C node as a positioning ranging frame. By analogy, the positioning ranging frames collected at all ranging points of each UWB base station can be obtained.
[0065] It should be supplemented that when holding or controlling the positioning device to move in the scene and passing near each UWB base station, multiple ranging points can be set near each UWB base station. Specifically, for each UWB base station, it is necessary to set ranging points in circles in all directions around each UWB base station as much as possible. At the same time, it is necessary to ensure that ranging points are set in the short-range and long-range ranges near each UWB base station. The distance between the UWB tag and the UWB base station has little effect on the UWB ranging accuracy. The ranging points in the short-range range are conducive to improving the accuracy of the base station height calculation. To calibrate the planar position of a UWB base station, the UWB tag needs to measure the distance at 3 or more ranging points around the UWB base station. If 3 or more ranging points are near the same position or near a line, the calculated UWB base station positioning accuracy is very low or completely wrong.
[0066] Due to scene restrictions, since UWB base stations are generally installed on walls, not much usable data may be collected when measuring the distance of UWB base stations on walls in narrow locations. If only the ranging points in the short-range range are used, the number of ranging points may be insufficient or poorly distributed, all in one line, affecting the positioning accuracy. The ranging points in the long-range range can be distributed more dispersedly to ensure the accuracy of the plane position calculation of the UWB base station. In actual use, the short-range range and long-range range need to be adjusted according to the scene. For example, in an office, 2 meters is generally considered close, and 5 meters is considered far. In a high-speed rail station, 4 meters may be considered close, and 20 meters may be considered far.
[0067] It should be noted that when collecting UWB data, it is necessary to ensure that the height of the positioning device is lower than the installation height of any UWB base station set in the UWB scene. Because the height of the UWB base station is unknown, but the installation position of the UWB base station is generally relatively high. In actual application, when the UWB base station is installed too low, the wireless signal is easily blocked by people or objects. According to the algorithm for inverse calculation of the UWB base station coordinates, the height difference between the UWB tag and the UWB base station can be calculated. In order to avoid the situation where it is unknown whether the UWB base station is higher or lower than the UWB tag, the UWB tag is uniformly arranged to be lower than the UWB base station.
[0068] It should be noted that the UWB tag can obtain the wireless signals of nearby base stations. According to the signal strength sorting, several base stations with the strongest signals are selected for ranging. Generally, the stronger the signal, the closer the distance. When the ranging values between the UWB tag and multiple nearby UWB base stations are collected at the ranging point, the UWB tag can receive the wireless signals of each UWB base station, and can obtain information such as signal quality, signal strength, and first path strength based on the received wireless signals. Based on the obtained information, it can be estimated that the wireless signals of one or more corresponding UWB base stations may be blocked and of poor quality. It is estimated that the ranging of the blocked UWB base station is inaccurate, and the ranging value of the blocked UWB base station needs to be removed.
[0069] Step S102: determining a first target ranging and positioning frame from a plurality of ranging and positioning frames according to a preset ranging range and preset positioning point distribution characteristics.
[0070] In this embodiment, effective candidate ranging positioning frames can be screened from multiple ranging positioning frames of each UWB base station by presetting the ranging range. Selecting a ranging positioning frame that meets the preset positioning point distribution characteristics from the candidate ranging positioning frames as the first target ranging positioning frame can improve the subsequent UWB positioning accuracy.
[0071] The same UWB base station may collect ranging positioning frames corresponding to hundreds or thousands of ranging points, and there are still dozens of ranging positioning frames after filtering by time and distance. Calculating and positioning more than 5 ranging positioning frames is not helpful for positioning accuracy, and has a counter-effect on positioning accuracy. Therefore, it is necessary to filter the ranging positioning frames collected by some ranging points that are not very useful. Considering that the installation height of the UWB base station is higher than the height of the UWB tag, the antenna is generally placed vertically, which is better for the signal around the horizontal plane. The upper and lower ends are blind areas.
[0072] If the ranging value in the ranging positioning frame is small, it means that the ranging point where the UWB tag is located is in the antenna blind area, and the ranging accuracy is low. If the ranging value in the ranging positioning frame is large, it means that there may be an obstruction between the UWB tag and the UWB base station, resulting in low accuracy. Therefore, by removing the ranging positioning frames outside the preset ranging range, the ranging positioning frames less than the preset minimum distance can be removed, and the ranging positioning frames greater than the preset maximum distance can also be removed. Among them, the preset ranging range can be set accordingly according to the actual application scenario. For example, the preset minimum distance can be 2 meters, the preset maximum distance can be 5 meters, and the corresponding preset ranging range is between (2 meters, 5 meters), or it can be other ranging ranges, which are not limited here.
[0073] Specifically, step S102 includes:
[0074] Determine, from the plurality of ranging and positioning frames, a candidate ranging and positioning frame whose ranging value belongs to the preset ranging range;
[0075] The first target ranging positioning frame is determined from the candidate ranging positioning frames according to the preset positioning point distribution characteristics.
[0076] For example, if the preset minimum distance can be 2 meters and the preset maximum distance can be 5 meters, the ranging positioning frames with ranging values less than 2 meters are removed from the multiple ranging positioning frames, and the ranging positioning frames with ranging values greater than 5 meters are removed, and the remaining ranging positioning frames are used as candidate ranging positioning frames. The ranging positioning frame F1 corresponding to the minimum ranging value is determined from the candidate ranging positioning frames. The ranging positioning frame F2 corresponding to the maximum ranging value is determined from the candidate ranging positioning frames.
[0077] At least one first ranging value less than a preset intermediate threshold is determined from the ranging values of the candidate ranging positioning frames, and the ranging positioning frame corresponding to the maximum ranging value of the at least one first ranging value is determined as the ranging positioning frame F3. The preset intermediate threshold can be set to 2 meters or 3 meters, which is not limited here.
[0078] If the number of first ranging values is two or more, the first distance between the ranging point corresponding to each first ranging value and the ranging point of ranging positioning frame F1 is calculated, and the second distance between the ranging point corresponding to each first ranging value and the ranging point of ranging positioning frame F3 is calculated, so that each first ranging value corresponds to the first distance and the second distance. The sum of the first distance and the second distance of each first ranging value is calculated respectively, and the second ranging value corresponding to the maximum sum is determined from each first ranging value, and the ranging positioning frame corresponding to the second ranging value is determined to be ranging positioning frame F4.
[0079] Search for the ranging positioning frame F5 with the longest distance from the ranging point of ranging positioning frame F1 from the candidate ranging positioning frames. Search for the ranging positioning frame F6 with the longest distance from the ranging point of ranging positioning frame F5 from the candidate ranging positioning frames. Search for the ranging positioning frame F7 with the longest distance between the line connecting the ranging point of ranging positioning frame F5 and the ranging point of ranging positioning frame F6 from the candidate ranging positioning frames. Search for the ranging positioning frame F8 with the maximum sum of distances between the ranging points of ranging positioning frame F5, ranging positioning frame F6, and ranging positioning frame F7 from the candidate ranging positioning frames. Search for the ranging positioning frame F9 with the minimum sum of distances between the ranging points of ranging positioning frame F5, ranging positioning frame F6, and ranging positioning frame F7 from the candidate ranging positioning frames.
[0080] Determine whether the above-mentioned ranging and positioning frames F1-F9 are repeated. If there are repeated, remove the repeated ranging and positioning frames, and finally obtain the first target ranging and positioning frame. The order of searching the ranging and positioning frames F1-F9 can be adjusted, and there is no limitation here. The order of searching the ranging and positioning frames F1-F9 can be understood as an example of the preset positioning point distribution feature, and the preset positioning point distribution feature can also be in other forms, and there is no limitation here.
[0081] In this way, based on the screening and searching process of the preset ranging range and the preset positioning point distribution characteristics, the ranging and positioning frames at a closer location are retained to improve the calculation accuracy of the base station height. The selected ranging and positioning frames are scattered around the UWB base station as much as possible to improve the calculation accuracy of the base station plane position.
[0082] Step S103: determine whether the number of the first target ranging and positioning frames is greater than or equal to a preset number.
[0083] Specifically, if the number of the first target ranging positioning frames is greater than or equal to the preset number, it indicates that the data collection of the UWB base station is valid, and step S104 is executed. If the number of the first target ranging positioning frames is less than the preset number, it indicates that the data collection of the UWB base station is invalid, and it is necessary to repeat the data collection of the UWB base station and re-calibrate the coordinates.
[0084] It should be noted that the preset number is a custom value. For example, the preset number is 4. If the number of the first target ranging positioning frames is less than 4, it means that the coordinate calculation device of the UWB base station should re-collect data for the UWB base station and perform calibration calculation again.
[0085] Step S104: when the number of the first target ranging and positioning frames is greater than or equal to a preset number, obtaining a mean value of the plane coordinates of the UWB base station according to the first target ranging and positioning frames.
[0086] In this embodiment, the first target ranging and positioning frame correspondingly includes a ranging value between the UWB base station and the UWB tag, and a map positioning value of the UWB tag in the scene map when the ranging value is collected.
[0087] In one implementation, the step of acquiring the plane coordinate mean of the UWB base station according to the first target ranging and positioning frame in step S104 may include:
[0088] Calculating a plurality of initial 3D coordinates of the UWB base station according to the first target ranging and positioning frame;
[0089] The average value of the plane coordinates of the UWB base station is calculated according to the multiple initial 3D coordinates.
[0090] It should be noted that if the ground of the UWB scene is flat and all ranging points are at the same height, according to the triangulation positioning method, the initial 3D coordinates of the UWB base station are calculated for every 3 first target ranging positioning frames selected in the first target ranging positioning frame. If the ground of the scene is not flat and not all ranging points are at the same height, the minimum two-layer method is used to calculate the initial 3D coordinates of a UWB base station for every 4 first target ranging positioning frames in the first target ranging positioning frame selection. Based on the calculated multiple initial 3D coordinates, the average value of the plane coordinates of all initial 3D coordinates is calculated, that is, the mean value of the plane coordinates of the UWB base station is calculated based on multiple initial 3D coordinates. It should be noted that 3d coordinates are {x, y, z} spatial coordinates, the plane coordinates are {x, y}, and z is the height.
[0091] Specifically, the step of calculating the mean of the plane coordinates of the UWB base station based on multiple initial 3D coordinates includes:
[0092] First, the plane coordinate mean of the UWB base station is calculated based on all the initial 3D coordinates, and the distance of all plane coordinates relative to the plane coordinate mean is calculated. After removing the plane coordinate with the largest distance, the average value of the remaining plane coordinates is calculated again. The plane coordinate mean can be calculated again after removing the plane coordinate with the largest error, and iterated multiple times as needed to obtain the final plane coordinate mean.
[0093] Specifically, if the plane coordinates are (X1, Y1), and the plane coordinate mean is (X2, Y2), the distance d1 of the plane coordinate relative to the plane coordinate mean can be calculated according to the following formula 1:
[0094] Formula 1:
[0095] Step S105, determining a target map positioning value corresponding to a minimum ranging value from the first target ranging positioning frame, and acquiring a final 3D coordinate of the UWB base station according to the plane coordinate mean, the minimum ranging value and the target map positioning value.
[0096] Specifically, when the number of the first target ranging and positioning frames is multiple, the target map positioning value of a ranging and positioning frame with the minimum ranging value is selected, and the height of the UWB base station is calculated according to the plane coordinate mean, the minimum ranging value, and the target map positioning value corresponding to the minimum ranging value.
[0097] In one implementation, step S106 may include:
[0098] Calculate the height of the UWB base station according to the plane coordinate mean, the minimum distance measurement value and the target map positioning value;
[0099] The final 3D coordinates are calculated according to the plane coordinate mean and the height.
[0100] Specifically, the height h of the UWB base station can be calculated according to Formula 2 and Formula 3.
[0101] If the plane coordinates of the target map positioning value are (X3, Y3), and the plane coordinate mean of the UWB base station is (X4, Y4), then the horizontal distance d2 between the plane coordinates of the target map positioning value and the plane coordinate mean of the UWB base station can be calculated according to Formula 2.
[0102] Formula 2:
[0103] Formula 3:
[0104] Wherein, h represents the height of the UWB base station, h1 represents the height of the UWB tag, Rmin represents the minimum ranging value determined in the first target ranging positioning frame, and d2 represents the horizontal distance between the plane coordinates of the target map positioning value and the average plane coordinates of the UWB base station.
[0105] In one embodiment, the step of calculating the final 3D coordinates according to the plane coordinate mean and the height comprises:
[0106] Generate a corrected 3D coordinate according to the plane coordinate mean and the height;
[0107] respectively calculating error distances between the corrected 3D coordinates and the map positioning values of each of the first target ranging and positioning frames;
[0108] Determine a target error distance that is less than or equal to a preset error threshold from the plurality of error distances;
[0109] Determine a second target ranging positioning frame corresponding to the target error distance from the first target ranging positioning frame, and use a triangulation positioning algorithm or a least squares method to perform coordinate calculation on the second target ranging positioning frame to obtain a calibrated 3D coordinate of the UWB base station;
[0110] The final 3D coordinate is generated according to the horizontal coordinate and the height of the calibrated 3D coordinate.
[0111] Specifically, the first target ranging and positioning frame participating in the UWB base station coordinate calculation is verified by the plane coordinate mean, and the first target ranging and positioning frame can be, for example, the ranging and positioning frames F1-F9 exemplified in the above text. The specific verification process is as follows: the plane coordinate mean and the height of the UWB base station generate corrected 3D coordinates, calculate the error distance between the corrected 3D coordinates and the map positioning values of the ranging and positioning frames F1-F9, and remove the ranging and positioning frames whose error distance exceeds the preset error threshold. The preset error threshold can be selected as 0.5 meters.
[0112] For example, if the error distance of the ranging positioning frame F2 exceeds 0.5 meters, the ranging positioning frame F2 is removed, and the coordinates of the UWB base station are calculated using the remaining ranging positioning frames F1, F3-F9, and the calibrated 3D coordinates of the base station are recalculated using triangulation or least squares. The height value of the calibrated 3D coordinates is replaced with the calculated height of the UWB base station to obtain the final 3D coordinates. Because the base station height calculated based on the minimum ranging value is more accurate than the height value in the 3d coordinates calculated by all ranging values together, the final 3D coordinates are more accurate.
[0113] The calibration method of the UWB base station provided in this embodiment obtains multiple ranging and positioning frames of the UWB base station; determines the first target ranging and positioning frame from the multiple ranging and positioning frames according to the preset ranging range and the preset positioning point distribution characteristics; determines whether the number of the first target ranging and positioning frames is greater than or equal to the preset number; when the number of the first target ranging and positioning frames is greater than or equal to the preset number, obtains the plane coordinate mean of the UWB base station according to the first target ranging and positioning frame; determines the target map positioning value corresponding to the minimum ranging value from the first target ranging and positioning frame, and obtains the final 3D coordinates of the UWB base station according to the plane coordinate mean, the minimum ranging value and the target map positioning value. Through the calibration scheme of the UWB base station provided in this embodiment, the final 3D coordinates of the UWB base station can be calculated based on the multiple ranging and positioning frames of the UWB base station, thereby improving the efficiency of the UWB base station calibration, reducing labor costs, and making the calibrated base station coordinate system the same as the scene map coordinate system, which is convenient for subsequent fusion positioning.
[0114] Example 2
[0115] In addition, an embodiment of the present disclosure provides a calibration device for a UWB base station.
[0116] Specifically, Figure 2 As shown, the calibration device 200 of the UWB base station includes:
[0117] A first acquisition module 201 is used to acquire multiple ranging and positioning frames of a UWB base station, each ranging and positioning frame including a ranging value and a map positioning value;
[0118] A determination module 202 is used to determine a first target ranging positioning frame from a plurality of ranging positioning frames according to a preset ranging range and a preset positioning point distribution feature;
[0119] A judging module 203 is used to judge whether the number of the first target ranging and positioning frames is greater than or equal to a preset number;
[0120] A second acquisition module 204 is configured to acquire a plane coordinate mean of the UWB base station according to the first target ranging and positioning frames when the number of the first target ranging and positioning frames is greater than or equal to a preset number;
[0121] The third acquisition module 205 is used to determine the target map positioning value corresponding to the minimum ranging value from the first target ranging positioning frame, and obtain the final 3D coordinates of the UWB base station according to the plane coordinate mean, the minimum ranging value and the target map positioning value.
[0122] In one embodiment, the second acquisition module 204 is further configured to calculate a plurality of initial 3D coordinates of the UWB base station according to the first target ranging and positioning frame;
[0123] The average value of the plane coordinates of the UWB base station is calculated according to the multiple initial 3D coordinates.
[0124] In one implementation, the third acquisition module 205 is further configured to calculate the height of the UWB base station according to the plane coordinate mean, the minimum distance measurement value, and the target map positioning value;
[0125] The final 3D coordinates are calculated according to the plane coordinate mean and the height.
[0126] In one embodiment, the third acquisition module 205 is further used to generate a modified 3D coordinate according to the plane coordinate mean and the height;
[0127] respectively calculating error distances between the corrected 3D coordinates and the map positioning values of each of the first target ranging and positioning frames;
[0128] Determine a target error distance that is less than or equal to a preset error threshold from the plurality of error distances;
[0129] Determine a second target ranging positioning frame corresponding to the target error distance from the first target ranging positioning frame, and use a triangulation positioning algorithm or a least squares method to perform coordinate calculation on the second target ranging positioning frame to obtain a calibrated 3D coordinate of the UWB base station;
[0130] The final 3D coordinate is generated according to the horizontal coordinate and the height of the calibrated 3D coordinate.
[0131] In one implementation, the determination module 202 is further configured to determine, from the plurality of ranging and positioning frames, a candidate ranging and positioning frame whose ranging value belongs to the preset ranging range;
[0132] The first target ranging positioning frame is determined from the candidate ranging positioning frames according to the preset positioning point distribution characteristics.
[0133] In one embodiment, the first acquisition module 201 is further used to collect multiple UWB data frames through the UWB tag set by the positioning device, each of the UWB data frames includes the ranging value between the UWB tag and multiple UWB base stations respectively, and the map positioning value of the UWB tag in the scene map when collecting the UWB data frame;
[0134] A plurality of the ranging and positioning frames of each of the UWB base stations are generated according to the plurality of the UWB data frames.
[0135] In one implementation, the first acquisition module 201 is further configured to construct the scene map according to the UWB scene data collected by the sensor.
[0136] The UWB base station calibration device 200 provided in this embodiment can implement the UWB base station calibration method provided in Example 1, which will not be described again to avoid repetition.
[0137] The calibration device of the UWB base station provided in this embodiment obtains multiple ranging and positioning frames of the UWB base station; determines the first target ranging and positioning frame from the multiple ranging and positioning frames according to the preset ranging range and the preset positioning point distribution characteristics; determines whether the number of the first target ranging and positioning frames is greater than or equal to the preset number; when the number of the first target ranging and positioning frames is greater than or equal to the preset number, obtains the plane coordinate mean of the UWB base station according to the first target ranging and positioning frame; determines the target map positioning value corresponding to the minimum ranging value from the first target ranging and positioning frame, and obtains the final 3D coordinates of the UWB base station according to the plane coordinate mean, the minimum ranging value and the target map positioning value. Through the calibration scheme of the UWB base station provided in this embodiment, the final 3D coordinates of the UWB base station can be calculated based on the multiple ranging and positioning frames of the UWB base station, thereby improving the efficiency of the UWB base station calibration, reducing labor costs, and making the calibrated base station coordinate system the same as the scene map coordinate system, which is convenient for subsequent fusion positioning.
[0138] Example 3
[0139] In addition, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the calibration method of the UWB base station provided in Example 1 is executed.
[0140] The electronic device provided in this embodiment can implement the calibration method of the UWB base station provided in Embodiment 1, and will not be described again here to avoid repetition.
[0141] Example 4
[0142] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the calibration method for the UWB base station provided in Example 1 is implemented.
[0143] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0144] The computer-readable storage medium provided in this embodiment can implement the calibration method of the UWB base station provided in Embodiment 1, and will not be described again here to avoid repetition.
[0145] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0147] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A calibration method for a UWB base station, It is characterized in that The method comprises: Acquire multiple ranging and positioning frames of the UWB base station, each ranging and positioning frame including a ranging value and a map positioning value; the ranging value of each ranging and positioning frame is a ranging value between the UWB base station and the UWB tag, and the map positioning value of each ranging and positioning frame is a positioning position of the UWB tag in the scene map when the UWB base station collects the ranging value; Determine a first target ranging and positioning frame from the plurality of ranging and positioning frames according to a preset ranging range and a preset positioning point distribution feature; Determine whether the number of the first target ranging and positioning frames is greater than or equal to a preset number; When the number of the first target ranging and positioning frames is greater than or equal to a preset number, obtaining a mean value of the plane coordinates of the UWB base station according to the first target ranging and positioning frames; Determine a target map positioning value corresponding to a minimum ranging value from the first target ranging positioning frame; Calculate the height of the UWB base station according to the plane coordinate mean, the minimum distance measurement value and the target map positioning value; Generate a corrected 3D coordinate according to the plane coordinate mean and the height; respectively calculating error distances between the corrected 3D coordinates and the map positioning values of each of the first target ranging and positioning frames; Determine a target error distance that is less than or equal to a preset error threshold from the plurality of error distances; Determine a second target ranging positioning frame corresponding to the target error distance from the first target ranging positioning frame, and use a triangulation positioning algorithm or a least squares method to perform coordinate calculation on the second target ranging positioning frame to obtain a calibrated 3D coordinate of the UWB base station; A final 3D coordinate is generated according to the horizontal coordinate of the calibrated 3D coordinate and the height.
2. The method according to claim 1, It is characterized in that The obtaining the plane coordinate mean of the UWB base station according to the first target ranging and positioning frame includes: Calculating a plurality of initial 3D coordinates of the UWB base station according to the first target ranging and positioning frame; The average value of the plane coordinates of the UWB base station is calculated according to the multiple initial 3D coordinates.
3. The method according to claim 1, It is characterized in that The step of determining a first target ranging and positioning frame from a plurality of ranging and positioning frames according to a preset ranging range and a preset positioning point distribution feature comprises: Determine, from the plurality of ranging and positioning frames, a candidate ranging and positioning frame whose ranging value belongs to the preset ranging range; The first target ranging positioning frame is determined from the candidate ranging positioning frames according to the preset positioning point distribution characteristics.
4. The method according to claim 1, It is characterized in that The obtaining of multiple ranging and positioning frames of the UWB base station includes: Collecting multiple UWB data frames through a UWB tag set by a positioning device, each of the UWB data frames includes a distance measurement value between the UWB tag and multiple UWB base stations, and a map positioning value of the UWB tag on the scene map when collecting the UWB data frames; A plurality of the ranging and positioning frames of each of the UWB base stations are generated according to the plurality of the UWB data frames.
5. The calibration method of the UWB base station according to claim 4, It is characterized in that The acquisition of the scene map includes: The scene map is constructed based on the UWB scene data collected by the sensor.
6. A calibration device for a UWB base station, It is characterized in that The device comprises: A first acquisition module is used to acquire multiple ranging and positioning frames of the UWB base station, each ranging and positioning frame includes a ranging value and a map positioning value; the ranging value of each ranging and positioning frame is the ranging value between the UWB base station and the UWB tag, and the map positioning value of each ranging and positioning frame is the positioning position of the UWB tag in the scene map when the UWB base station collects the ranging value; A determination module, configured to determine a first target ranging and positioning frame from a plurality of ranging and positioning frames according to a preset ranging range and a preset positioning point distribution feature; A judging module, used to judge whether the number of the first target ranging and positioning frames is greater than or equal to a preset number; A second acquisition module, configured to acquire a plane coordinate mean of the UWB base station according to the first target ranging and positioning frames when the number of the first target ranging and positioning frames is greater than or equal to a preset number; A third acquisition module is used to determine the target map positioning value corresponding to the minimum ranging value from the first target ranging positioning frame; and calculate the height of the UWB base station according to the plane coordinate mean, the minimum ranging value and the target map positioning value; Generate a corrected 3D coordinate according to the plane coordinate mean and the height; respectively calculating error distances between the corrected 3D coordinates and the map positioning values of each of the first target ranging and positioning frames; Determine a target error distance that is less than or equal to a preset error threshold from the plurality of error distances; Determine a second target ranging positioning frame corresponding to the target error distance from the first target ranging positioning frame, and use a triangulation positioning algorithm or a least squares method to perform coordinate calculation on the second target ranging positioning frame to obtain a calibrated 3D coordinate of the UWB base station; A final 3D coordinate is generated according to the horizontal coordinate of the calibrated 3D coordinate and the height.
7. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run by the processor, the calibration method of the UWB base station according to any one of claims 1 to 5 is executed.
8. A computer-readable storage medium, It is characterized in that A computer program is stored therein, and when the computer program is run on a processor, the calibration method of the UWB base station according to any one of claims 1 to 5 is executed.
