Factor graph fusion positioning method, system and device based on GPGPU (General Purpose Graphics Processing Unit) and medium
By performing parallel processing of factor graph fusion positioning on GPGPU hardware, the computational load problem of the factor graph fusion positioning framework in complex scenarios is solved, the real-time performance and performance of the positioning system are improved, and efficient position calculation is achieved.
Patent Information
- Application Number
- CN202411154162.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-08-22
AI Technical Summary
The factor graph fusion positioning framework leads to increased computing load and real-time processing complexity in complex scenarios, affecting the usability and user experience of the positioning system.
The factor graph fusion positioning method based on GPGPU is used to perform data preprocessing, parallel decomposition and parallel solution on GPGPU hardware, and utilizes parallel computing architecture and efficient storage structure to reduce data access delay and the number of iterative solutions.
It improves the real-time performance and performance of the positioning system, improves the efficiency and accuracy of position calculation, and enhances the stability and usability of the positioning framework.
Smart Images

Figure CN118671808A
Abstract
Description
Technical Field
[0001] The present invention relates to a GPGPU-based factor graph fusion positioning method, system, device and medium, and belongs to the technical field of parallel computing and fusion positioning solution. Background Art
[0002] With the increasing sophistication and development of Global Navigation Satellite Systems (GNSS), the types and number of satellites available for positioning in outdoor environments are constantly increasing. To improve the performance of positioning systems in complex scenarios, researchers have introduced factor graph technology, implemented a graph-based nonlinear solution method, and constructed a fusion positioning framework. This method sets the position state to be solved as a state node, constructs the observation information of various sensors as factor nodes, and constructs edges connecting state nodes and factor nodes based on the relationship between the observation information and the position state, thus forming a graph structure that represents the entire fusion positioning system. Through a limited number of iterative calculations, the final position solution can be obtained.
[0003] However, while the factor graph fusion positioning framework can better leverage historical observations to improve positioning accuracy compared to traditional positioning methods, it also places a significant computational burden on the positioning terminal hardware. The inclusion of a large amount of historical observations increases the complexity of real-time processing, resulting in slower position calculations and reduced real-time performance, severely impacting the usability and user experience of the positioning system.
[0004] To overcome the above problems, an efficient solution is urgently needed to accelerate the factor graph fusion positioning solution process to improve the real-time performance and positioning in complex scenarios. Summary of the Invention
[0005] The present invention aims to provide a GPGPU-based factor graph fusion positioning method, system, device and medium for meeting the real-time positioning requirements in complex positioning scenarios with multiple observation information.
[0006] To achieve the above-mentioned purpose, the present invention is implemented through the following technical solutions: A GPGPU-based factor graph fusion positioning method, comprising: Collect observation information output by satellite observation sensors and motion observation sensors, pre-process the collected data and store it in the global memory of GPGPU; The pre-processed data is integrated with the historical data, and the integrated data is transferred to the shared memory of each GPGPU streaming multiprocessor in segments; Construct factor nodes based on the relationship equation of the sensor, define the objective function of the factor node, set the position to be solved as the state node, establish constraints through the relationship between the factor node and the state node, and create a factor graph; Use each observation information to build a thread, treat the threads built with related observation information as a thread block, and transmit the defined kernel function to the GPGPU end for execution; Decompose observation information in parallel based on data correlation in factor graph, and complete loading of solution data through memory allocation; After the data is loaded, the kernel function is called to start parallel solution, and the optimal position solution is iteratively solved as the positioning result. The result of the positioning solution is stored after post-optimization and positioning result.
[0007] Preferably, the observation information of the satellite observation sensor is serialized using the satellite's pseudo-random code as an index, and the observation information of the motion observation sensor is serialized using the three-dimensional direction as an index, and the serialized data is weighted, standardized and normalized.
[0008] Preferably, the serialized data is weighted, standardized and normalized in the following manner: The observation information of satellite observation sensors is constructed based on the satellite position distribution and signal-to-noise ratio to construct an observation matrix and calculate the covariance matrix. The observation information of motion observation sensors is calculated based on the measurement error to calculate the covariance matrix. The two types of observation information are weighted according to the covariance matrix, and the weighted data size is scaled.
[0009] Preferably, the state node is set as follows: according to the position data structure to be solved and the length of data involved in positioning solution, the register in the stream processor of the GPGPU is used as a storage space for storage.
[0010] Preferably, parallel solving is performed through the parallel computing architecture of GPGPU, the solving task is decomposed according to the data correlation in the factor graph, and the optimal position solution result is solved after multiple iterations.
[0011] Preferably, the solution method includes the steepest descent method, the Gauss-Newton method or the Levenberg-Marquardt method.
[0012] A GPGPU-based factor graph fusion positioning system, comprising: The data collection module is configured to collect and process observation information output by satellite observation sensors and motion observation sensors, pre-process the collected data and store it in the global memory of the GPGPU; integrate the pre-processed data with historical data, and transfer the integrated data in segments to the shared memory of each GPGPU streaming multiprocessor; The factor graph creation module is configured to construct factor nodes based on the relationship equations of the sensors, define the objective functions of the factor nodes, set the locations to be solved as state nodes, and create the factor graph by establishing constraints based on the relationships between the factor nodes and the state nodes. It also constructs a thread using each observation information, treats the threads constructed with the related observation information as a thread block, and transmits the defined kernel function to the GPGPU for execution. Position solution module: The observation information is decomposed in parallel according to the data correlation in the factor graph, and the loading of the solution data is completed through memory allocation. After the data loading is completed, the kernel function is called to start parallel solution, and the optimal position solution is iteratively solved as the positioning result. The positioning solution result is stored after post-optimization and positioning result.
[0013] Preferably, the data collection module includes: An observation information collection module is configured to collect and process observation information output by satellite observation sensors and motion observation sensors, serialize the observation information of satellite observation sensors using the satellite's pseudo-random code as an index, and serialize the observation information of motion observation sensors using the three-dimensional direction as an index; A data preprocessing module is configured to weight, standardize and normalize the serialized data; The historical data integration module is configured to integrate the data preprocessed by the data preprocessing module with the historical data, trim the length of the historical data, remove the historical data with little relevance to the current data, and transfer the integrated data in segments to the shared memory of each GPGPU streaming multiprocessor; The factor graph creation module includes: A state node setting module is configured to set the position to be solved as a state node, and store the position as a state node in a register in a stream processor of a GPGPU as a storage space according to the data structure of the position to be solved and the length of the data involved in the positioning solution; A factor node construction module is configured to construct corresponding factor nodes according to the relationship equations of various information sensors, define the objective function of the factor node, and set the position to be solved as the state node; For satellite observation sensors, the objective function of the satellite factor node is defined based on its observation equation. For motion observation sensors, the objective function of the motion factor node is defined based on its motion equation. The factor graph creation module is configured to construct a complete graph structure based on the relationship between state nodes and factor nodes. It uses each observation information to build a thread, treats the threads built with related observation information as a thread block, and transmits the defined kernel function to the GPGPU for execution. The position calculation module includes: The data multiplexing module is configured to control data multiplexing and synchronization during the position solution process. During a single solution, the result of each iteration is updated to the register of the stream processor, and the order of parallel calculation is controlled to achieve data synchronization. The result of the previous solution is used as the initial value of the current solution to load the register of the SP and achieve data synchronization. The parallel solution module is configured to read data from registers, shared memory, and global memory according to the configuration of the kernel function, and iteratively solves the optimal estimate of the position; The post-processing and storage module is configured to perform a secondary correction on the historical positioning results, update the historical results with the corrected positions, and store the current position results in the global memory.
[0014] A GPGPU-based factor graph fusion positioning device comprises a processor and a memory storing program instructions, wherein the processor is configured to execute the GPGPU-based factor graph fusion positioning method when running the program instructions.
[0015] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the GPGPU-based factor graph fusion positioning method.
[0016] The advantages of the present invention lie in: the present invention's GPGPU-based factor graph fusion positioning framework deeply integrates factor graphs with GPGPU hardware results. In the data collection phase, preprocessed data is transferred to appropriate memory based on the lifecycle and correlation of variables in the factor graph fusion positioning framework, reducing the impact of data access latency on the fusion positioning solution and optimizing data access latency. In the factor graph creation phase, corresponding target equations and factor nodes are constructed based on the relationship equations of the observed sensors. The current positioning results are corrected using redundant historical observation data, improving the stability and usability of the positioning framework. In the position solution phase, the efficient storage structure and parallel computing architecture of the GPGPU are utilized to perform parallel decomposition of the factor graph, enabling data reuse during the solution process, reducing the number of iterative solutions, and improving the real-time performance of the fusion positioning framework. The core of the design lies in the parallel decomposition and solution of the data in the factor graph. This approach enables the simultaneous processing of the numerous data involved in the positioning solution, effectively improving the efficiency of the position solution while improving the accuracy of the fusion positioning, and enhancing the effectiveness and real-time performance of the positioning method. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0018] Figure 1 Schematic diagram of the process of the present invention.
[0019] Figure 2 Factor graph for the fusion positioning of the present invention. DETAILED DESCRIPTION
[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0021] Example 1 A GPGPU-based factor graph fusion positioning method, the overall structure includes three parts: data collection, factor graph creation and position solution, using the powerful parallel computing capability of GPGPU to accelerate the fusion positioning solution, specifically Figure 1 Shown include: S1: Collect observation information output by satellite observation sensors and motion observation sensors, pre-process the collected data and store it in the global memory of GPGPU.
[0022] S2: Integrate the preprocessed data with the historical data, and the integrated data will be transferred to the shared memory of each GPGPU streaming multiprocessor in segments.
[0023] S3: Construct factor nodes based on the relationship equations of the sensors, define the objective functions of the factor nodes, set the positions to be solved as state nodes, establish constraints through the relationships between factor nodes and state nodes, and create a factor graph.
[0024] S4: Use each observation information to build a thread, use the threads built with related observation information as a thread block, and transmit the defined kernel function to the GPGPU end for execution.
[0025] S5: Decompose the observation information in parallel according to the data correlation in the factor graph, and complete the loading of the solution data through memory allocation.
[0026] S6: After the data is loaded, the kernel function is called to start parallel solution, and the optimal position solution is iteratively solved as the positioning result. The result of the positioning solution is stored after post-optimization and positioning result.
[0027] As a refinement of the above embodiment, the observation information of the satellite observation sensor is serialized using the satellite's pseudo-random code as an index, and the observation information of the motion observation sensor is serialized using the three-dimensional direction as an index, and the serialized data is weighted, standardized and normalized.
[0028] The specific methods of weighting, standardizing and normalizing the serialized data are as follows: The observation information of satellite observation sensors is constructed based on the satellite position distribution and signal-to-noise ratio to construct an observation matrix and calculate the covariance matrix. The observation information of motion observation sensors is calculated based on the measurement error to calculate the covariance matrix. The two types of observation information are weighted according to the covariance matrix, and the weighted data size is scaled.
[0029] As a refinement of the above embodiment, the state node is set as follows: according to the position data structure to be solved and the length of the data involved in the positioning solution, the registers in the stream processor of the GPGPU are used as storage space for storage.
[0030] As a refinement of the above embodiment, parallel solving is performed through the parallel computing architecture of GPGPU, the solving task is decomposed according to the data correlation in the factor graph, and the optimal position solving result is solved after multiple iterations.
[0031] As a refinement of the above embodiment, the solution method includes the steepest descent method, the Gauss-Newton method or the Levenberg-Marquardt method.
[0032] Example 2 A GPGPU-based factor graph fusion positioning system includes a data collection module, a factor graph creation module, and a position solution module. The system utilizes the powerful parallel computing capability of GPGPU to accelerate the fusion positioning solution.
[0033] The data collection module is configured to collect and process observation information output by satellite observation sensors and motion observation sensors, pre-process the collected data and store it in the global memory of the GPGPU; integrate the pre-processed data with historical data, and transfer the integrated data in segments to the shared memory of each GPGPU streaming multiprocessor; The factor graph creation module is configured to construct factor nodes based on the sensor's relationship equation, define the objective function of the factor node, set the position to be solved as the state node, and create a factor graph by establishing constraints through the relationship between the factor node and the state node; use each observation information to build a thread, use the thread constructed with relevant observation information as a thread block, and transmit the defined kernel function to the GPGPU end for execution; the observation information at the historical moment will indirectly affect the positioning result at the current moment. If the addition of the observation information of the previous n moments to the factor graph can affect the positioning result at the current moment, it is judged as relevant observation information; if the impact of the observation information of the previous n moments on the current positioning result is less than a specified threshold (determined by the fault tolerance rate), it is judged as irrelevant observation information.
[0034] Position solution module: The observation information is decomposed in parallel according to the data correlation in the factor graph, and the loading of the solution data is completed through memory allocation. After the data loading is completed, the kernel function is called to start parallel solution, and the optimal position solution is iteratively solved as the positioning result. The positioning solution result is stored after post-optimization and positioning result.
[0035] It should be noted that the core of this system lies in the parallel decomposition and solution of data in the factor graph. This method allows a large amount of data involved in positioning solution to be processed simultaneously. This design effectively improves the efficiency of position solution while improving the accuracy of fusion positioning, reduces the running time of the positioning framework, and improves the effectiveness and real-time performance of the positioning method.
[0036] Example 3 A GPGPU-based factor graph fusion positioning system includes: an observation information collection module, a data preprocessing module, a historical data integration module, a factor node construction module, a factor graph creation module, a data reuse module, a parallel solution module, a post-processing module and a storage module.
[0037] The observation information collection module is configured to collect and process the observation information output by the satellite observation sensor and the motion observation sensor, serialize the observation information of the satellite observation sensor using the satellite's pseudo-random code as an index, and serialize the observation information of the motion observation sensor using the three-dimensional direction as an index.
[0038] The data preprocessing module is configured to weight, standardize and normalize the serialized data.
[0039] The historical data integration module is configured to integrate the data preprocessed by the data preprocessing module with the historical data, trim the historical data length, remove historical data with little relevance to the current data, and then transfer the integrated data in segments to the shared memory of each GPGPU streaming multiprocessor. Low relevance means that the impact of the historical data on the current positioning result is less than a specified threshold (determined by the fault tolerance rate), that is, after adding this data to the factor graph, the positioning result remains stable.
[0040] The state node setting module is configured to set the position to be solved as the state node, and store it in the register of the GPGPU stream processor as a storage space according to the position data structure to be solved and the data length involved in positioning solution.
[0041] The factor node construction module is configured to construct corresponding factor nodes according to the relationship equations of various information sensors, define the objective function of the factor node, and set the position to be solved as the state node.
[0042] For satellite observation sensors, the objective function of the satellite factor node is defined according to its observation equation. For motion observation sensors, the objective function of the motion factor node is defined according to its motion equation.
[0043] The factor graph creation module is configured to construct a complete graph structure based on the relationship between state nodes and factor nodes; use each observation information to build a thread, treat the threads built with related observation information as a thread block, and transmit the defined kernel function to the GPGPU end for execution.
[0044] The data multiplexing module is configured to control data multiplexing and synchronization during the position solution process. During a single solution, the result of each iteration is updated to the register of the stream processor, and the order of parallel calculation is controlled to achieve data synchronization; the result of the previous solution is loaded into the register of the SP as the initial value of this solution, and data synchronization is achieved.
[0045] The parallel solving module is configured to read data from registers, shared memory and global memory according to the configuration of the kernel function, and iteratively solves the optimal estimate of the position.
[0046] The post-processing and storage module is configured to perform a secondary correction on the historical positioning results, update the historical results with the corrected positions, and store the current position results in the global memory. As a refinement of the above embodiment, the observation information collection module transfers the observation information output by the satellite receiving terminal and the motion sensor device: extracts the satellite position, satellite pseudorange, and signal-to-noise ratio data from the satellite observation information, and serializes the data using the pseudo-random code (PRN) of each satellite as an index; extracts the acceleration, angular velocity, attitude, and measurement error data from the motion observation information, and indexes them in three-dimensional directions and also serializes them.
[0047] As a refinement of the above embodiment, the data preprocessing module weights, standardizes and normalizes the serialized data as follows: First, for satellite observation information, an observation matrix is constructed based on the satellite's position distribution and signal-to-noise ratio, and the corresponding covariance matrix is calculated. For motion observation information, the covariance matrix is calculated based on the measurement error. Then, the two types of observation information are weighted according to their respective covariance matrices, with the aim of reducing the impact of data with poor measurement accuracy on positioning solutions. Finally, due to the large size gap between the pseudorange in the satellite observation information and the velocity data in the motion observation information, data size scaling of different proportions is required to ensure that each type of data has an approximate weight in the subsequent positioning solution. After completing the above steps, the host-side program stores the processed current moment data into the global memory of the GPGPU.
[0048] As a refinement of the above-mentioned embodiment, the historical data integration module integrates the current moment data with historical data in the GPGPU's global memory. Compared to traditional fusion positioning frameworks (single-point positioning based on a single moment, filtered fusion positioning based on adjacent moments), the factor graph-based fusion positioning framework incorporates historical data as redundant information into the current moment's position solution. This approach can effectively reduce the impact of sudden and continuous failures on positioning results. The data integration module trims the length of historical data according to specified parameters or typical values, eliminating historical data with little relevance to the current moment's data, thereby reducing the hardware's computational load. The integrated data is then transferred in segments to the shared memory of each GPGPU streaming multiprocessor (SM). Because the state nodes in the factor graph structure are only directly associated with the factor nodes at adjacent moments (the factor graph creation section will be described in detail), this storage method fully utilizes the data locality and the performance advantages of shared memory.
[0049] The above modules constitute the data collection portion of the present invention, implementing the entire process from data acquisition to data filling in the GPGPU device's memory. By leveraging the GPGPU's storage architecture suitable for parallel computing and transferring preprocessed data to appropriate memory based on the lifecycle and correlation of variables in the factor graph fusion positioning framework, the system fully leverages the performance advantages of the hardware storage architecture, reduces the impact of data access latency on the fusion positioning solution, and improves the system's real-time performance.
[0050] As a refinement of the above embodiment, the state node setting module will allocate storage space in each GPGPU SM based on the position data structure to be solved and the length of the data involved in the positioning solution (historical data and current time data). Considering that the final result requires multiple iterations to obtain and how long memory access operations are required during the period, the registers in the streaming processor (SP) are selected as the storage location for such data.
[0051] As a refinement of the above embodiment, the factor node construction module constructs corresponding factor nodes based on the relationship equations of various information sensors. For satellite observation sensors, the objective function of the satellite factor node is defined based on its observation equation. For motion observation sensors, the objective function of the motion factor node is defined based on its motion equation.
[0052] As a refinement of the above embodiment, the factor graph creation module constructs a complete graph structure based on the relationship between state nodes and factor nodes. According to the satellite observation equation, satellite observation information is only related to the position at a single moment, so the constructed satellite factor node has only one state node connected to it. In the motion equation, motion observation information is related to the position at adjacent moments, so the constructed motion factor node is connected to two adjacent state nodes. The objective function constructed based on the relationship equation serves as an "edge" to connect the state nodes and factor nodes, forming the final factor graph. Based on this local data correlation, a thread is constructed using each observation information, and a thread block is constructed using multiple related observation information. The defined kernel function is then transmitted to the GPGPU end for execution.
[0053] The above modules constitute the creation part of the factor graph of the present invention, realizing the whole process from node construction to kernel function definition. Figure 2 As shown, Figure 2 The circles in the middle represent state nodes, and the squares represent factor nodes. X1, X2, X3-Xm are state nodes constructed based on the position, attitude, and velocity states to be solved at time m. z1-zn are observation factor nodes constructed based on n observations received at a certain time. g2, g3-gm are motion factor nodes constructed based on the motion information between time m and time m-1. By constructing factor nodes, historical and real-time observation information is introduced into the graph structure. "Edges" are constructed based on the sensor relationship model, and the scope of the position solution is restricted by observation information, improving the stability and usability of the fusion framework.
[0054] As a refinement of the above embodiment, the data multiplexing module will control the data multiplexing and synchronization during multiple position solutions. During a single solution, the multiplexing module updates the result of each iteration to the register of the SP, and controls the order of parallel calculations to achieve data synchronization. During the entire program running process, the multiplexing module loads the result of the last solution into the register of the SP as the initial value of this solution, and achieves data synchronization. Since adjacent solutions or adjacent iterative processes are correlated, using the last result as the current initial value can effectively reduce the number of iterations of the factor graph solution. In addition, since the L1 cache will cache the data stored in the global memory, the data access latency of the global memory is further optimized.
[0055] As a refinement of the above embodiment, the parallel solution module reads data from registers, shared memory, and global memory, respectively, based on the kernel function configuration, and solves for the optimal position estimate through multiple iterations. Due to data correlation optimization in the data collection and graph construction parts, except for the initial position solution, which requires multiple iterations to find a valid result (or manually enter the initial position as the reference position for the solution), subsequent positioning solutions use the previous positioning result as the initial value. This improves solution efficiency while avoiding the problem of local optimal solutions to a certain extent. Therefore, the parallel solution module can flexibly select the steepest descent method, Gauss-Newton method, or Levenberg-Marquardt method (LM) as the core method for iterative solution based on the positioning scenario.
[0056] As a refinement of the above embodiment, the post-processing and storage module further processes and stores the solved data. Each factor graph solution not only calculates the current position result but also performs a secondary correction on the historical positioning results. The post-processing and storage module uses the corrected position to update the historical results and stores the current position result in global memory for the next positioning solution.
[0057] The above modules constitute the position solution portion of the present invention, implementing the entire process of data reuse, positioning solution, and storage. By leveraging the efficient storage structure and parallel computing architecture of GPGPU, the factor graph is decomposed in parallel, enabling data reuse during the solution process, reducing the number of iterative solutions and improving the real-time performance of the fused positioning framework.
[0058] It should be noted that in the implementation of the GPGPU-based factor graph fusion positioning system, the present invention effectively combines the factor graph-based fusion positioning framework and GPGPU hardware. A large amount of observation data in the framework can be processed in parallel by the GPGPU computing unit, and the positioning solution results can be flexibly accessed through the storage unit.
[0059] Example 4 The present disclosure provides a GPGPU-based factor graph fusion localization device, comprising a processor and memory. Optionally, the device may also include a communication interface and a bus. The processor, communication interface, and memory may communicate with each other via the bus. The communication interface may be used for information transmission. The processor may invoke logic instructions in the memory to execute the GPGPU-based factor graph fusion localization method of the above embodiment.
[0060] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0061] The memory, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as the program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor executes the program instructions / modules stored in the memory to perform functional applications and data processing, thereby implementing the GPGPU-based factor graph fusion localization method in the above-mentioned embodiments.
[0062] The memory may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal device. Furthermore, the memory may include high-speed random access memory and non-volatile memory.
[0063] The embodiment of the present disclosure further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned GPGPU-based factor graph fusion positioning method.
[0064] The aforementioned computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0065] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art will be able to modify the technical solutions described in the aforementioned embodiments or substitute equivalents for some of the technical features. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A factor graph fusion positioning method based on GPGPU, It is characterized in that include: Collect observation information output by satellite observation sensors and motion observation sensors, and store the collected data into the global memory of GPGPU after preprocessing; The preprocessed data is integrated with the historical data, and the integrated data is transferred to the shared memory of each GPGPU streaming multiprocessor in segments; Construct factor nodes according to the relationship equation of the sensor, define the objective function of the factor node, set the position to be solved as the state node, establish restriction conditions through the relationship between the factor node and the state node, and create a factor graph; Use each observation information to build a thread, use the threads built with related observation information as a thread block, and send the defined kernel function to the GPGPU end to wait for execution; The observation information is decomposed in parallel according to the data correlation in the factor graph, and the loading of the solution data is completed through memory allocation; After the data is loaded, the kernel function is called to start parallel solution, and the optimal position solution is iteratively solved as the positioning result. The result of the positioning solution is stored after post-optimization and positioning result.
2. The factor graph fusion positioning method based on GPGPU according to claim 1, It is characterized in that The observation information of satellite observation sensors is serialized using the satellite's pseudo-random code as an index, and the observation information of motion observation sensors is serialized using the three-dimensional direction as an index. The serialized data is weighted, standardized, and normalized.
3. The factor graph fusion positioning method based on GPGPU according to claim 2, It is characterized in that The specific methods of weighting, standardizing and normalizing the serialized data are as follows: The observation information of the satellite observation sensor constructs an observation matrix according to the satellite's position distribution and signal-to-noise ratio, and calculates the covariance matrix. The observation information of the motion observation sensor calculates the covariance matrix according to the measurement error. The two types of observation information are weighted according to the covariance matrix; and the weighted data size is scaled.
4. The factor graph fusion positioning method based on GPGPU according to claim 1, It is characterized in that The state node is set as follows: according to the position data structure to be solved and the length of the data involved in the positioning solution, the register in the stream processor of the GPGPU is used as a storage space for storage.
5. The factor graph fusion positioning method based on GPGPU according to claim 1, It is characterized in that Parallel solving is performed through the parallel computing architecture of GPGPU, the solving tasks are decomposed according to the data correlation in the factor graph, and the optimal position solution result is solved through iteration.
6. The factor graph fusion positioning method based on GPGPU according to claim 1, It is characterized in that Solution methods include the method of steepest descent, Gauss-Newton method, or Levenberg-Marquardt method.
7. A GPGPU-based factor graph fusion positioning system for executing any of the methods of claims 1-6, It is characterized in that include: A data collection module is configured to collect and process observation information output by satellite observation sensors and motion observation sensors, and store the collected data into the global memory of the GPGPU after preprocessing; The preprocessed data is integrated with the historical data, and the integrated data is transferred to the shared memory of each GPGPU streaming multiprocessor in segments; The factor graph creation module is configured to construct factor nodes according to the relationship equation of the sensor, define the objective function of the factor node, set the position to be solved as the state node, and create the factor graph by establishing the constraint conditions through the relationship between the factor node and the state node; use each observation information to construct a thread, use the thread constructed by the related observation information as a thread block, and transmit the defined kernel function to the GPGPU end for execution; Position solution module: The observation information is decomposed in parallel according to the data correlation in the factor graph, and the loading of the solution data is completed through memory allocation; after the data loading is completed, the kernel function is called to start parallel solution, and the optimal position solution is iteratively solved as the positioning result, and the positioning solution result is stored after post-optimization and positioning result.
8. The factor graph fusion positioning system based on GPGPU according to claim 7, It is characterized in that The data collection module includes: An observation information collection module is configured to collect and process observation information output by satellite observation sensors and motion observation sensors, and to serialize the observation information of satellite observation sensors using pseudo-random codes of satellites as indexes, and to serialize the observation information of motion observation sensors using three-dimensional directions as indexes; A data preprocessing module is configured to weight, standardize and normalize the serialized data; The historical data integration module is configured to integrate the data preprocessed by the data preprocessing module with the historical data, trim the length of the historical data, remove the historical data with less relevance to the current moment data, and transfer the integrated data to the shared memory of each GPGPU streaming multiprocessor in segments; The factor graph creation module includes: A state node setting module is configured to set the position to be solved as a state node, and store the position as a storage space in a register in a stream processor of a GPGPU according to a data structure of the position to be solved and a length of data involved in positioning and solving; A factor node construction module is configured to construct corresponding factor nodes according to the relationship equations of various information sensors, define the objective function of the factor node, and set the position to be solved as a state node; For satellite observation sensors, the objective function of the satellite factor node is defined according to its observation equation. For motion observation sensors, the objective function of the motion factor node is defined according to its motion equation. The factor graph creation module is configured to build a complete graph structure based on the relationship between the state nodes and each factor node; use each observation information to build a thread, use the threads built by the related observation information as a thread block, and transmit the defined kernel function to the GPGPU end for execution; The position calculation module comprises: The data multiplexing module is configured to control data multiplexing and synchronization in the position solution process. In a single solution process, the result of each iteration is updated to the register of the stream processor, and the order of parallel calculation is controlled to achieve data synchronization; the result of the previous solution is loaded into the register of the SP as the initial value of this solution, and data synchronization is achieved; The parallel solution module is configured to read data from registers, shared memory and global memory respectively according to the configuration of the kernel function, and iteratively solve the optimal estimate of the position; The post-processing and storage module is configured to perform secondary correction on the historical positioning results, update the historical results with the corrected positions, and store the current position results in the global memory.
9. A GPGPU-based factor graph fusion positioning device, comprising a processor and a memory storing program instructions, It is characterized in that The processor is configured to execute the GPGPU-based factor graph fusion positioning method according to any one of claims 1 to 6 when running the program instructions.
10. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the program is executed by a processor, the method described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Video decoding macro-block-grade parallel scheduling method for perceiving calculation complexity
CN105491377A
5G communication system receiving terminal baseband signal combined processing method
CN107425889A
Underwater vehicle cooperative localization method based on topological information
CN108332756A
Pose information acquisition method and device, equipment, medium and product
CN114840703A
Multi-sensor fusion intelligent iron shoe positioning system and algorithm based on factor graph elimination optimization
CN116106956A
