A GPGPU-based factor graph fusion positioning method, system, device and medium
By performing parallel computing and data optimization of factor graph fusion positioning on GPGPU hardware, the computational load problem of the factor graph fusion positioning framework in complex scenarios is solved, and the real-time performance and accuracy of the positioning system are improved.
Patent Information
- Application Number
- CN202411154162.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-22
AI Technical Summary
The factor graph fusion positioning framework has a heavy computational load in complex scenarios, resulting in slow positioning solution speed and reducing the real-time performance and availability 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 the parallel computing architecture and storage structure of GPGPU are used to optimize the data access and iterative solution process.
It improves the real-time performance and accuracy of factor graph fusion positioning, reduces the computational complexity, and improves the performance and user experience of the positioning system.
Smart Images

Figure CN118671808B_ABST
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 continuous improvement and development of the Global Navigation Satellite Systems (GNSS), the types and number of satellites that can be used for positioning in outdoor environments are increasing. In order to improve the performance of the positioning system in complex scenarios, researchers 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 the edges connecting the state nodes and factor nodes through the relationship between the observation information and the position state, thereby forming a graph structure that can represent the entire fusion positioning system. Through limited iterative calculations, the final position solution result can be obtained.
[0003] However, although the factor graph fusion positioning framework can make better use of historical observation information to improve positioning accuracy compared to traditional positioning methods, it also brings a huge computational load to the positioning terminal hardware. The introduction of a large amount of historical observation information increases the complexity of real-time processing, resulting in a slow position solution speed, which reduces the real-time performance of the positioning results and seriously affects the availability 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 and performance of positioning in complex scenarios. Summary of the invention
[0005] The purpose of the present invention is to provide a GPGPU-based factor graph fusion positioning method, system, device and medium to meet the real-time positioning requirements in complex positioning scenarios with multiple observation information.
[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0007] A factor graph fusion positioning method based on GPGPU, comprising:
[0008] 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;
[0009] 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;
[0010] 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;
[0011] 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;
[0012] 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;
[0013] 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.
[0014] Preferably, the observation information of the satellite observation sensor is serialized using the pseudo-random code of the satellite 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.
[0015] Preferably, the specific manner of weighting, standardizing and normalizing the serialized data is as follows:
[0016] 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.
[0017] 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 storage space for storage.
[0018] Preferably, 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 solving result is solved after multiple iterations.
[0019] Preferably, the solution method includes the method of steepest descent, the Gauss-Newton method or the Levenberg-Marquardt method.
[0020] A factor graph fusion positioning system based on GPGPU, comprising:
[0021] The data collection module is configured to collect and process the observation information output by the satellite observation sensor and the motion observation sensor, and store the collected data into the global memory of the GPGPU after preprocessing; integrate the preprocessed data with the historical data, and transfer the integrated data to the shared memory of each streaming multiprocessor of the GPGPU in segments;
[0022] 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;
[0023] 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.
[0024] Preferably, the data collection module comprises:
[0025] 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;
[0026] A data preprocessing module is configured to weight, standardize and normalize the serialized data;
[0027] 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;
[0028] The factor graph creation module includes:
[0029] 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;
[0030] 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;
[0031] 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.
[0032] 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;
[0033] The position calculation module comprises:
[0034] 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;
[0035] 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;
[0036] 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.
[0037] 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.
[0038] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the GPGPU-based factor graph fusion positioning method.
[0039] The advantages of the present invention are: the present invention deeply combines the factor graph with the GPGPU hardware results based on the factor graph fusion positioning framework of GPGPU. In the data collection part, according to the life cycle and correlation of the variables in the factor graph fusion positioning framework, the pre-processed data is transferred to a suitable memory, which reduces the influence of the data access delay on the fusion positioning solution and optimizes the data access delay. In the factor graph creation part, according to the relationship equation of the observation sensor, the corresponding target equation and factor node are constructed, and the current positioning result is corrected by redundant historical observation data, which improves the stability and availability of the positioning framework. In the position solution part, the efficient storage structure and parallel computing architecture of GPGPU are used to parallel decompose the factor graph, realize data reuse in the solution process, reduce the number of iterative solutions, and improve 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 method enables the large number of data involved in the positioning solution to be processed simultaneously, effectively improves the efficiency of the position solution on the premise of improving the fusion positioning accuracy, and improves the effectiveness and real-time performance of the positioning method. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] 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.
[0041] Figure 1 It is a schematic diagram of the process of the present invention.
[0042] Figure 2 Factor graph for the fusion positioning of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] Example 1
[0045] A factor graph fusion positioning method based on GPGPU, 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. Figure 1 Shown include:
[0046] S1: 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.
[0047] 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.
[0048] S3: 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] The specific methods of weighting, standardizing and normalizing the serialized data are as follows:
[0054] 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.
[0055] 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.
[0056] 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.
[0057] As a refinement of the above embodiment, the solution method includes the steepest descent method, the Gauss-Newton method or the Levenberg-Marquardt method.
[0058] Example 2
[0059] 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 uses the powerful parallel computing capability of GPGPU to accelerate fusion positioning solution.
[0060] The data collection module is configured to collect and process the observation information output by the satellite observation sensor and the motion observation sensor, and store the collected data into the global memory of the GPGPU after preprocessing; integrate the preprocessed data with the historical data, and transfer the integrated data to the shared memory of each streaming multiprocessor of the GPGPU in segments;
[0061] 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 restriction conditions through the relationship between the factor node and the state node; use each observation information to build a thread, use the thread constructed by the 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 adding the observation information at the previous n moments to the factor graph can affect the positioning result at the current moment, it is determined to be relevant observation information; if the influence of the observation information at the previous n moments on the current positioning result is less than the specified threshold (determined by the fault tolerance rate), it is determined to be irrelevant observation information.
[0062] 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.
[0063] It should be noted that the core of this system lies in the parallel decomposition and solution of the data in the factor graph. This method allows a large number of data involved in positioning solution to be processed simultaneously. This design effectively improves the efficiency of position solution and reduces the operating time of the positioning framework while improving the accuracy of fusion positioning, thereby improving the effectiveness and real-time performance of the positioning method.
[0064] Example 3
[0065] 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.
[0066] 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 pseudo-random code of the satellite as the index, and serialize the observation information of the motion observation sensor using the three-dimensional direction as the index.
[0067] The data preprocessing module is configured to weight, standardize and normalize the serialized data.
[0068] 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 correlation with the current data, and transfer the integrated data to the shared memory of each GPGPU streaming multiprocessor in segments. Less correlation means that the impact of the historical data on the current positioning result is less than the specified threshold (determined by the fault tolerance rate), that is, the positioning result remains stable after the data is added to the factor graph.
[0069] The state node setting module is configured to set the position to be solved as the state node, and store it in the register in the stream processor of the GPGPU as a storage space according to the data structure of the position to be solved and the data length involved in the positioning solution.
[0070] 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.
[0071] 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.
[0072] The factor graph creation module is configured to build a complete graph structure based on the relationship between the state nodes and the factor nodes; 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.
[0073] 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.
[0074] The parallel solving module is configured to read data from registers, shared memory and global memory respectively according to the configuration of the kernel function, and solve the optimal estimate of the position through iteration.
[0075] 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.
[0076] 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 uses the pseudo-random code (Pseudo Random Noise Code, PRN) of each satellite as an index to serialize the data; extracts the acceleration, angular velocity, attitude and measurement error data from the motion observation information, and uses the three-dimensional direction as an index, and also serializes the data.
[0077] 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 according to the position distribution and signal-to-noise ratio of the satellite, and the corresponding covariance matrix is calculated. For motion observation information, the covariance matrix is calculated according to 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 and solving. 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 and solving. After completing the above steps, the host-side program stores the processed current time data in the global memory of the GPGPU.
[0078] As a refinement of the above embodiment, the historical data integration module integrates the current moment data with the historical data in the global memory of the GPGPU. Compared with the traditional fusion positioning framework (single-point positioning based on a single moment, filtering fusion positioning based on adjacent moments), the fusion positioning framework based on the factor graph adds historical data as redundant information to the current moment position solution. This method can effectively reduce the impact of sudden failures and continuous failures on the positioning results. The data integration module will trim the length of the historical data according to the specified parameters or typical values, eliminate historical data with less correlation with the current moment data, and reduce the computing load of the hardware. The integrated data will be transferred in segments to the shared memory of each GPGPU streaming multiprocessor (Streaming Multiprocessor, SM). Since the state nodes in the structure of the factor graph are only directly associated with the factor nodes at adjacent moments (the creation of the factor graph will be introduced in detail), this storage method can fully utilize the locality of the data and the performance advantages of the shared memory.
[0079] The above modules constitute the data collection part of the present invention, realizing the whole process from data collection to data filling in the GPGPU device-side memory. By utilizing the storage architecture suitable for parallel computing in GPGPU, the pre-processed data is transferred to a suitable memory according to the life cycle and correlation of variables in the factor graph fusion positioning framework, giving full play to the performance advantages of the hardware storage architecture, reducing the impact of data access delay on fusion positioning solution, and improving the real-time performance of the system.
[0080] As a refinement of the above embodiment, the state node setting module will open up storage space in each GPGPU SM according to 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 needs to be obtained after multiple iterations and how many memory access operations are required during the period, the registers in the streaming processor (Streaming Processor, SP) are selected as the storage location of such data.
[0081] As a refinement of the above embodiment, the factor node construction module constructs corresponding factor nodes according to the relationship equations of various information sensors. For satellite observation sensors, the objective function of satellite factor nodes is defined according to its observation equation. For motion observation sensors, the objective function of motion factor nodes is defined according to its motion equation.
[0082] As a refinement of the above embodiment, the factor graph creation module will construct a complete graph structure based on the relationship between the state node and each factor node. According to the satellite observation equation, the 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, the 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 according to the relationship equation is used as an "edge" to connect the state node and the factor node to form the final factor graph. According to this local correlation of data, a thread is constructed using each observation information, and a thread block is constructed using multiple pieces of related observation information, and the defined kernel function is transmitted to the GPGPU end for execution.
[0083] 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 2The circle in the middle represents the state node, the square represents the factor node, X1, X2, X3-Xm are the state nodes constructed based on the position, posture and speed to be solved at time m, z1-zn are the observation factor nodes constructed based on the n observation information received at a certain time, and g2, g3-gm are the motion factor nodes constructed based on the motion information between time m and time m-1. By constructing the factor nodes, the historical observation information and the real-time observation information are introduced into the graph structure, and the "edge" is constructed based on the relationship model of the sensor. The scope of the position solution is limited by the observation information, which improves the stability and availability of the fusion framework.
[0084] As a refinement of the above embodiment, the data reuse module will control the data reuse and synchronization in multiple position solution processes. In a single solution process, the multiplexing module updates the result of each iteration to the register of the SP, and controls the order of parallel calculation 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 iteration 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 for the global memory is further optimized.
[0085] As a refinement of the above embodiment, the parallel solution module will read data from registers, shared memory and global memory respectively according to the configuration of the kernel function, and solve the optimal estimate of the position after multiple iterations. Due to the optimization of data correlation in the data collection part and the graph construction part, except for the initial position solution, which requires multiple iterations to find valid results (or manually input the initial position as the reference position for solution), the subsequent positioning solutions all use the last positioning result as the initial value, which improves the solution efficiency and avoids the local optimal solution problem to a certain extent. Therefore, in the parallel solution module, the steepest descent method, Gauss-Newton method or Levenberg-Marquardt method (Levenberg-Marquardt, LM) can be flexibly selected as the core method of iterative solution according to the positioning scenario.
[0086] As a refinement of the above embodiment, the post-processing and storage module further processes and stores the solved data. Each solution of the factor graph will not only solve the current position result, but also make a secondary correction to the historical positioning result. The post-processing and storage module uses the corrected position to update the historical result and stores the current position result in the global memory for the next positioning solution.
[0087] The above modules constitute the position solution part of the present invention, realizing the whole process of data reuse, positioning solution and storage. By utilizing the efficient storage structure and parallel computing architecture of GPGPU, the factor graph is decomposed in parallel, data reuse in the solution process is realized, the number of iterative solutions is reduced, and the real-time performance of the fusion positioning framework is improved.
[0088] It should be noted that in the implementation of the factor graph fusion positioning system based on GPGPU, 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 computing unit of GPGPU, and the positioning solution results can be flexibly accessed through the storage unit.
[0089] Example 4
[0090] The embodiment of the present disclosure provides a GPGPU-based factor graph fusion positioning device, including a processor and a memory. Optionally, the device may also include a communication interface and a bus. Among them, the processor, the communication interface, and the memory can communicate with each other through the bus. The communication interface can be used for information transmission. The processor can call the logic instructions in the memory to execute the GPGPU-based factor graph fusion positioning method of the above embodiment.
[0091] 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.
[0092] The memory, as a computer-readable storage medium, can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor executes the function application and data processing by running the program instructions / modules stored in the memory, that is, the factor graph fusion positioning method based on GPGPU in the above embodiment is implemented.
[0093] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory may include a high-speed random access memory and may also include a non-volatile memory.
[0094] 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.
[0095] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0096] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is 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 can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A factor graph fusion positioning method based on GPGPU, 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 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 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, 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, 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, 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, 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 GPGPU-based factor graph fusion positioning system according to claim 7, characterized in that: The data collection module comprises: 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, 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, 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
