CN118191891A - Vehicle positioning method, device, electronic device and readable storage medium - Google Patents
Vehicle positioning method, device, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN118191891A CN118191891A CN202410362990.7A CN202410362990A CN118191891A CN 118191891 A CN118191891 A CN 118191891A CN 202410362990 A CN202410362990 A CN 202410362990A CN 118191891 A CN118191891 A CN 118191891A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- position information
- state
- current moment
- moment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
- G01S19/48—Determining position by combining or switching between position solutions derived from the satellite radio beacon positioning system and position solutions derived from a further system
- G01S19/49—Determining position by combining or switching between position solutions derived from the satellite radio beacon positioning system and position solutions derived from a further system whereby the further system is an inertial position system, e.g. loosely-coupled
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
- G01C21/165—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation combined with non-inertial navigation instruments
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S5/00—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
- G01S5/02—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
- G01S5/0257—Hybrid positioning
- G01S5/0268—Hybrid positioning by deriving positions from different combinations of signals or of estimated positions in a single positioning system
- G01S5/02685—Hybrid positioning by deriving positions from different combinations of signals or of estimated positions in a single positioning system involving dead reckoning based on radio wave measurements
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Navigation (AREA)
Abstract
本申请涉及定位技术领域,提供了一种车辆定位方法、装置、电子设备及可读存储介质。该方法包括:获取车辆在当前时刻的第一测量数据和第二测量数据;根据当前时刻的车辆上惯性测量单元测量的车辆速度信息,确定车辆在当前时刻对应的第一位置信息,以及根据当前时刻的多个超宽带基站的位置信息以及各个超宽带基站与车辆对应的各个距离信息,确定车辆在当前时刻对应的第二位置信息;基于车辆在当前时刻的第一位置信息和车辆在当前时刻的第二位置信息,通过因子图模型对车辆在当前时刻的位置信息进行预测,得到车辆在当前时刻的目标位置信息。解决现有技术中在卫星拒止环境中其他定位技术定位不准确的问题,提高车辆在卫星拒止环境下的定位精度。
The present application relates to the field of positioning technology, and provides a vehicle positioning method, device, electronic device and readable storage medium. The method includes: obtaining the first measurement data and the second measurement data of the vehicle at the current moment; determining the first position information corresponding to the vehicle at the current moment according to the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, and determining the second position information corresponding to the vehicle at the current moment according to the position information of multiple ultra-wideband base stations at the current moment and the distance information corresponding to each ultra-wideband base station and the vehicle; based on the first position information of the vehicle at the current moment and the second position information of the vehicle at the current moment, predicting the position information of the vehicle at the current moment through a factor graph model, and obtaining the target position information of the vehicle at the current moment. Solve the problem of inaccurate positioning of other positioning technologies in satellite-denied environments in the prior art, and improve the positioning accuracy of vehicles in satellite-denied environments.
Description
技术领域Technical Field
本申请涉及定位技术领域,尤其涉及一种车辆定位方法、装置、电子设备及可读存储介质。The present application relates to the field of positioning technology, and in particular to a vehicle positioning method, device, electronic device and readable storage medium.
背景技术Background technique
目前,全球定位导航系统(Global Navigation Satellite System,GNSS)广泛应用于车辆的定位,但在隧道、地下车库和建筑物遮蔽严重的卫星拒止环境中,车辆与卫星的通信中断,导致GNSS定位功能失效。在卫星拒止环境中,常用的定位技术有:惯性测量单元(Inertial Measurement Unit,IMU)、超宽带(Ultra Wideband Band,UWB)、激光雷达、超声波、地磁和蓝牙等。依靠IMU得到的定位信息并不是绝对的位置信息,并且IMU的定位误差会随时间发散,无法持续提供可靠的位置信息。以UWB为代表的无线传感定位方法,在复杂定位环境中,UWB的非视距误差较大。在GNSS信号失效的情况下,其他定位技术都有一定的局限性,不能准确的对车辆位置进行定位。At present, the Global Navigation Satellite System (GNSS) is widely used for vehicle positioning. However, in satellite-denied environments such as tunnels, underground garages, and buildings with severe shielding, the communication between the vehicle and the satellite is interrupted, resulting in the failure of the GNSS positioning function. In satellite-denied environments, commonly used positioning technologies include: Inertial Measurement Unit (IMU), Ultra Wideband Band (UWB), LiDAR, ultrasound, geomagnetism, and Bluetooth. The positioning information obtained by relying on IMU is not absolute position information, and the positioning error of IMU will diverge over time and cannot continuously provide reliable position information. For wireless sensor positioning methods represented by UWB, the non-line-of-sight error of UWB is large in complex positioning environments. In the case of GNSS signal failure, other positioning technologies have certain limitations and cannot accurately locate the vehicle position.
发明内容Summary of the invention
有鉴于此,本申请实施例提供了一种车辆定位方法、装置、电子设备及可读存储介质,以解决现有技术中在GNSS信号失效的情况下其他定位技术定位不准确的问题。In view of this, the embodiments of the present application provide a vehicle positioning method, device, electronic device and readable storage medium to solve the problem of inaccurate positioning of other positioning technologies when the GNSS signal fails in the prior art.
本申请实施例的第一方面,提供了一种车辆定位方法,包括:获取车辆在当前时刻的第一测量数据和第二测量数据,第一测量数据为车辆上惯性测量单元测量的车辆速度信息,第二测量数据为多个超宽带基站的位置信息以及各个超宽带基站分别与车辆对应的各个距离信息;根据当前时刻的车辆上惯性测量单元测量的车辆速度信息,确定车辆在当前时刻对应的第一位置信息,以及根据当前时刻的多个超宽带基站的位置信息以及各个超宽带基站分别与车辆对应的各个距离信息,确定车辆在当前时刻对应的第二位置信息;基于车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息,通过因子图模型对车辆在当前时刻的位置信息进行预测,得到车辆在当前时刻的目标位置信息,因子图模型是基于历史车辆速度信息和多个超宽带基站的历史位置信息以及各个超宽带基站分别与历史车辆对应的各个距离信息构建的。According to a first aspect of an embodiment of the present application, a vehicle positioning method is provided, comprising: obtaining first measurement data and second measurement data of the vehicle at a current moment, the first measurement data being vehicle speed information measured by an inertial measurement unit on the vehicle, and the second measurement data being position information of a plurality of ultra-wideband base stations and respective distance information corresponding to each ultra-wideband base station and the vehicle; determining first position information corresponding to the vehicle at the current moment according to the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, and determining second position information corresponding to the vehicle at the current moment according to the position information of a plurality of ultra-wideband base stations at the current moment and respective distance information corresponding to each ultra-wideband base station and the vehicle; predicting the position information of the vehicle at the current moment based on the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment by using a factor graph model to obtain target position information of the vehicle at the current moment, the factor graph model being constructed based on historical vehicle speed information and historical position information of a plurality of ultra-wideband base stations and respective distance information corresponding to each ultra-wideband base station and historical vehicles.
本申请实施例的第二方面,提供了一种车辆定位装置,包括:获取模块,用于获取车辆在当前时刻的第一测量数据和第二测量数据,第一测量数据为车辆上惯性测量单元测量的车辆速度信息,第二测量数据为多个超宽带基站的位置信息以及各个超宽带基站分别与车辆对应的各个距离信息;计算模块,用于根据当前时刻的车辆上惯性测量单元测量的车辆速度信息,确定车辆在当前时刻对应的第一位置信息,以及根据当前时刻的多个超宽带基站的位置信息以及各个超宽带基站分别与车辆对应的各个距离信息,确定车辆在当前时刻对应的第二位置信息;预测模块,用于基于车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息,通过因子图模型对车辆在当前时刻的位置信息进行预测,得到车辆在当前时刻的目标位置信息,因子图模型是基于历史车辆速度信息和多个超宽带基站的历史位置信息以及各个超宽带基站分别与历史车辆对应的各个距离信息构建的。According to a second aspect of an embodiment of the present application, a vehicle positioning device is provided, comprising: an acquisition module, configured to acquire first measurement data and second measurement data of the vehicle at a current moment, wherein the first measurement data is vehicle speed information measured by an inertial measurement unit on the vehicle, and the second measurement data is position information of multiple ultra-wideband base stations and respective distance information corresponding to each ultra-wideband base station and the vehicle; a calculation module, configured to determine the first position information corresponding to the vehicle at the current moment according to the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, and to determine the second position information corresponding to the vehicle at the current moment according to the position information of multiple ultra-wideband base stations at the current moment and respective distance information corresponding to each ultra-wideband base station and the vehicle; a prediction module, configured to predict the position information of the vehicle at the current moment through a factor graph model based on the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment, so as to obtain the target position information of the vehicle at the current moment, wherein the factor graph model is constructed based on historical vehicle speed information and historical position information of multiple ultra-wideband base stations and respective distance information corresponding to each ultra-wideband base station and historical vehicles.
本申请实施例的第三方面,提供了一种电子设备,包括存储器、处理器以及存储在存储器中并且可在处理器上运行的计算机程序,该处理器执行计算机程序时实现上述方法的步骤。According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
本申请实施例的第四方面,提供了一种可读存储介质,该可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述方法的步骤。According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
本申请实施例与现有技术相比存在的有益效果是:通过获取车辆在当前时刻的第一测量数据和第二测量数据,第一测量数据为车辆上惯性测量单元测量的车辆速度信息,基于当前时刻的所述车辆上惯性测量单元测量的车辆速度信息可计算出车辆在当前时刻的一个初步的位置估计,即车辆在当前时刻对应的第一位置信息。第二测量数据为通过超宽带的无线定位方法获取到的当前时刻的多个超宽带基站的位置信息以及各个超宽带基站分别与所述车辆对应的各个距离信息,可以利用多边定位原理,结合已知的多个超宽带基站的坐标和车辆到各个基站的距离,可以确定车辆在当前时刻对应的第二位置信息。基于车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息,通过因子图模型对车辆在所述当前时刻的位置信息进行预测,整合惯性测量单元和超宽带两个不同来源的定位数据,利用因子图模型将车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息关联,并根据最大后验概率原则进行融合,对车辆当前时刻的位置进行预估,得到车辆在当前时刻的目标位置信息。在车辆行驶过程中,实时收集第一测量数据和第二测量数据,并计算得到对应的各个时刻的第一位置信息和第二位置信息,将第一位置信息和第二位置信息输入因子图模型中,不断地迭代计算,更新车辆在各个时刻的目标位置信息,从而实现对车辆的实时定位。通过上述步骤,可以利用惯性测量单元定位连续跟踪的能力和超宽带定位高精度的特点,并基于因子图模型有效地整合惯性测量单元和超宽带的不同定位数据源进行数据融合,利用两者之间的相互依赖关系和不确定性信息,克服单一传感器的局限性,提高定位整体稳定性和准确性,解决现有技术中在GNSS信号失效的情况下其他定位技术定位不准确的问题,提高了车辆在卫星拒止环境下的定位精度。Compared with the prior art, the embodiments of the present application have the following beneficial effects: by obtaining the first measurement data and the second measurement data of the vehicle at the current moment, the first measurement data is the vehicle speed information measured by the inertial measurement unit on the vehicle, and based on the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, a preliminary position estimate of the vehicle at the current moment can be calculated, that is, the first position information corresponding to the vehicle at the current moment. The second measurement data is the position information of multiple ultra-wideband base stations at the current moment obtained by the ultra-wideband wireless positioning method and the distance information corresponding to each ultra-wideband base station and the vehicle, respectively. The principle of multilateral positioning can be used to combine the known coordinates of multiple ultra-wideband base stations and the distance from the vehicle to each base station to determine the second position information corresponding to the vehicle at the current moment. Based on the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment, the position information of the vehicle at the current moment is predicted by a factor graph model, the positioning data from two different sources of the inertial measurement unit and the ultra-wideband are integrated, and the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment are associated by using a factor graph model, and fused according to the maximum a posteriori probability principle, and the position of the vehicle at the current moment is estimated to obtain the target position information of the vehicle at the current moment. During the driving process of the vehicle, the first measurement data and the second measurement data are collected in real time, and the first position information and the second position information at each corresponding moment are calculated, and the first position information and the second position information are input into the factor graph model, and the calculation is continuously iterated to update the target position information of the vehicle at each moment, thereby realizing the real-time positioning of the vehicle. Through the above steps, the continuous tracking capability of the inertial measurement unit positioning and the high-precision characteristics of ultra-wideband positioning can be utilized, and the different positioning data sources of the inertial measurement unit and the ultra-wideband can be effectively integrated based on the factor graph model for data fusion, and the mutual dependence and uncertainty information between the two can be utilized to overcome the limitations of a single sensor, improve the overall stability and accuracy of positioning, solve the problem of inaccurate positioning of other positioning technologies in the case of failure of GNSS signals in the prior art, and improve the positioning accuracy of the vehicle in a satellite-denied environment.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
图1是本申请实施例的应用场景的场景示意图;FIG1 is a schematic diagram of an application scenario of an embodiment of the present application;
图2是本申请实施例提供的一种车辆定位方法的流程示意图;FIG2 is a flow chart of a vehicle positioning method provided in an embodiment of the present application;
图3是本申请实施例提供的另一种车辆定位方法的流程示意图;FIG3 is a flow chart of another vehicle positioning method provided in an embodiment of the present application;
图4是本申请实施例提供的再一种车辆定位方法的流程示意图;FIG4 is a schematic diagram of a flow chart of another vehicle positioning method provided in an embodiment of the present application;
图5是本申请实施例提供的一种车辆定位方法的仿真分析示意图;FIG5 is a schematic diagram of a simulation analysis of a vehicle positioning method provided in an embodiment of the present application;
图6是本申请实施例提供的一种车辆定位装置的结构示意图;FIG6 is a schematic structural diagram of a vehicle positioning device provided in an embodiment of the present application;
图7是本申请实施例提供的一种电子设备的结构示意图。FIG. 7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
下面将结合附图详细说明根据本申请实施例的一种车辆定位方法和装置。A vehicle positioning method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
图1是本申请实施例的应用场景的场景示意图。该方法应用于因子图模型,包括:第一量测因子节点、第二量测因子节点、第一状态转移因子节点、第二状态转移因子节点、第一变量节点、第二变量节点以及融合变量节点。Fig. 1 is a schematic diagram of an application scenario of an embodiment of the present application. The method is applied to a factor graph model, including: a first measurement factor node, a second measurement factor node, a first state transfer factor node, a second state transfer factor node, a first variable node, a second variable node and a fusion variable node.
如图1所示,图像中f(Zi|Xi)为第一量测因子节点,第一量测因子节点可以用于表征从惯性测量单元获取的车辆在各个时刻对应的第一位置信息对车辆状态的影响,定义了量测数据(即第一位置信息)与状态变量(即第一状态预测量)之间的概率依赖关系。第一量测因子节点f(Zi|Xi)是一个概率密度函数,服从高斯分布。通过第一量测因子节点,可以将实际的观测数据(即第一位置信息)与预测值(即第一状态预测量)进行比较和校正,从而更新系统对车辆位置的估计。As shown in Figure 1, f(Zi|Xi) in the image is the first measurement factor node, which can be used to characterize the impact of the first position information corresponding to the vehicle at each moment obtained from the inertial measurement unit on the vehicle state, and defines the probability dependency relationship between the measurement data (i.e., the first position information) and the state variable (i.e., the first state prediction amount). The first measurement factor node f(Zi|Xi) is a probability density function that obeys a Gaussian distribution. Through the first measurement factor node, the actual observation data (i.e., the first position information) can be compared and corrected with the predicted value (i.e., the first state prediction amount), thereby updating the system's estimate of the vehicle position.
图像中f(Zi|Yi)为第二量测因子节点,第二量测因子节点可以用于表征从超宽带获取的车辆在各个时刻对应的第二位置信息对车辆状态的影响,定义了量测数据(即第二位置信息)与状态变量(即第二状态预测量)之间的概率依赖关系。第二量测因子节点f(Zi|Yi)是一个概率密度函数,服从高斯分布。通过第二量测因子节点,可以将实际的观测数据(即第二位置信息)与预测值(即第二状态预测量)进行比较和校正,从而更新系统对车辆位置的估计。In the image, f(Zi|Yi) is the second measurement factor node, which can be used to characterize the impact of the second position information corresponding to the vehicle at each moment obtained from the ultra-wideband on the vehicle state, and defines the probabilistic dependency between the measurement data (i.e., the second position information) and the state variable (i.e., the second state prediction amount). The second measurement factor node f(Zi|Yi) is a probability density function that obeys a Gaussian distribution. Through the second measurement factor node, the actual observation data (i.e., the second position information) can be compared and corrected with the predicted value (i.e., the second state prediction amount), thereby updating the system's estimate of the vehicle position.
图像中f(Xi|Xi-1)为第一状态转移因子节点,第一状态转移因子节点可以用于表征车辆状态在连续时间间隔内如何随时间演化,可以表示从一个时刻的状态(例如,X1)过渡到下一个时刻的状态(例如,X2),反映了车辆的第一状态预测量从一个时刻到下一个时刻的变化规律,考虑在状态变化的过程中噪声和不确定性。第一状态转移因子节点在因子图模型中连接的是不同时间步长的状态第一变量节点,可以表示状态转移的概率分布,预测车辆在下一个时刻的状态(位置)。第一状态转移因子节点是一个概率密度函数,服从高斯分布。In the image, f(Xi|Xi-1) is the first state transfer factor node. The first state transfer factor node can be used to characterize how the vehicle state evolves over time in a continuous time interval. It can represent the transition from the state at one moment (for example, X1) to the state at the next moment (for example, X2), reflecting the change law of the vehicle's first state prediction from one moment to the next, taking into account the noise and uncertainty in the process of state change. The first state transfer factor node connects the state first variable nodes of different time steps in the factor graph model, which can represent the probability distribution of state transition and predict the state (position) of the vehicle at the next moment. The first state transfer factor node is a probability density function that obeys Gaussian distribution.
图像中f(Yi|Yi-1)为第二状态转移因子节点,第二状态转移因子节点可以用于表征车辆状态在连续时间间隔内如何随时间演化,可以表示从一个时刻的状态(例如,Y1)过渡到下一个时刻的状态(例如,Y2),反映了车辆的第二状态预测量从一个时刻到下一个时刻的变化规律,考虑在状态变化的过程中噪声和不确定性。第二状态转移因子节点在因子图模型中连接的是不同时间步长的状态第二变量节点,可以表示状态转移的概率分布,预测车辆在下一个时刻的状态(位置)。第二状态转移因子节点是一个概率密度函数,服从高斯分布。In the image, f(Yi|Yi-1) is the second state transfer factor node. The second state transfer factor node can be used to characterize how the vehicle state evolves over time in a continuous time interval. It can represent the transition from the state at one moment (for example, Y1) to the state at the next moment (for example, Y2), reflecting the change law of the vehicle's second state prediction from one moment to the next, taking into account the noise and uncertainty in the process of state change. The second state transfer factor node connects the state second variable nodes of different time steps in the factor graph model, which can represent the probability distribution of state transition and predict the state (position) of the vehicle at the next moment. The second state transfer factor node is a probability density function that obeys Gaussian distribution.
图像中X1、X2……Xi均为第一变量节点,X0为初始时刻基于全球定位导航系统得到的车辆的GPS数据。第一变量节点用于代表车辆的未知变量(第一状态预测量),在本申请中是指车辆在不同时间点的位置坐标,第一变量节点是因子图模型中待估计的对象,通过与第一量测因子节点、第一状态转移因子节点相连,通过计算第一量测因子节点、第一状态转移因子节点对对应的第一变量节点的影响,可以得到第一变量节点的最佳估计值及其概率分布,确定基于惯性测量单元测量数据得到的车辆位置的最优估计值。In the image, X1, X2...Xi are all first variable nodes, and X0 is the GPS data of the vehicle obtained based on the global positioning navigation system at the initial moment. The first variable node is used to represent the unknown variable (first state prediction quantity) of the vehicle, which refers to the position coordinates of the vehicle at different time points in this application. The first variable node is the object to be estimated in the factor graph model. By connecting with the first measurement factor node and the first state transfer factor node, and calculating the influence of the first measurement factor node and the first state transfer factor node on the corresponding first variable node, the best estimate value of the first variable node and its probability distribution can be obtained, and the best estimate value of the vehicle position obtained based on the inertial measurement unit measurement data can be determined.
图像中Y1、Y2……Yi均为第二变量节点,Y0为初始时刻基于全球定位导航系统得到的车辆的GPS数据。第二变量节点用于代表车辆的未知变量(第二状态预测量),在本申请中是指车辆在不同时间点的位置坐标,第二变量节点是因子图模型中待估计的对象,通过与第二量测因子节点、第二状态转移因子节点相连,通过计算第二量测因子节点、第二状态转移因子节点对对应的第二变量节点的影响,可以得到第二变量节点的最佳估计值及其概率分布,确定基于超宽带测量数据得到车辆位置的最优估计值。In the image, Y1, Y2, ... Yi are all second variable nodes, and Y0 is the GPS data of the vehicle obtained based on the global positioning navigation system at the initial moment. The second variable node is used to represent the unknown variable (second state prediction quantity) of the vehicle, which refers to the position coordinates of the vehicle at different time points in this application. The second variable node is the object to be estimated in the factor graph model. By connecting with the second measurement factor node and the second state transfer factor node, and calculating the influence of the second measurement factor node and the second state transfer factor node on the corresponding second variable node, the best estimate value of the second variable node and its probability distribution can be obtained, and the best estimate value of the vehicle position based on the ultra-wideband measurement data can be determined.
图像中XY1、XY2……XYi均为融合变量节点,融合变量节点为融合了第一状态预测量和第二状态预测量得到的融合状态变量,融合变量节点表征通过因子图模型中第一变量节点和第二变量节点的交互和信息融合后得到的最优估计值。融合变量节点为因子图模型整合来自惯性测量单元和超宽带的信息的车辆位置的最优预估,可以消除误差、提高定位精度。In the image, XY1, XY2, ..., XYi are all fusion variable nodes, which are fusion state variables obtained by fusing the first state prediction quantity and the second state prediction quantity. The fusion variable node represents the optimal estimate obtained by the interaction and information fusion of the first variable node and the second variable node in the factor graph model. The fusion variable node is the optimal estimate of the vehicle position that integrates the information from the inertial measurement unit and ultra-wideband in the factor graph model, which can eliminate errors and improve positioning accuracy.
图2是本申请实施例提供的一种车辆定位方法的流程示意图。如图2所示,该车辆定位方法包括:FIG2 is a flow chart of a vehicle positioning method provided in an embodiment of the present application. As shown in FIG2 , the vehicle positioning method includes:
步骤201,获取车辆在当前时刻的第一测量数据和第二测量数据,第一测量数据为车辆上惯性测量单元测量的车辆速度信息,第二测量数据为多个超宽带基站的位置信息以及各个超宽带基站分别与车辆对应的各个距离信息。Step 201, obtaining first measurement data and second measurement data of the vehicle at the current moment, wherein the first measurement data is vehicle speed information measured by an inertial measurement unit on the vehicle, and the second measurement data is location information of multiple ultra-wideband base stations and respective distance information corresponding to each ultra-wideband base station and the vehicle.
在一些实施例中,惯性测量单元(Inertial Measurement Unit,IMU)在车辆实时定位中发挥着重要的作用,车辆上安装有IMU,基于IMU可以测量车辆的速度信息,测量的速度信息包括角速度和加速度。IMU的核心零部件包括陀螺仪和加速度计。通过IMU可以实时监测车辆的运动状态,获取当前车辆的加速度信息和角速度信息,并通过对加速度和角速度数据进行积分,获得车辆的位移和转向变化,得出车辆的当前时刻的第一位置信息。In some embodiments, an inertial measurement unit (IMU) plays an important role in real-time vehicle positioning. An IMU is installed on the vehicle, and the speed information of the vehicle can be measured based on the IMU. The measured speed information includes angular velocity and acceleration. The core components of the IMU include a gyroscope and an accelerometer. The IMU can monitor the motion state of the vehicle in real time, obtain the acceleration information and angular velocity information of the current vehicle, and integrate the acceleration and angular velocity data to obtain the displacement and steering changes of the vehicle, and obtain the first position information of the vehicle at the current moment.
在一些实施例中,在车辆行驶范围内部署着多个超宽带(Ultra-Wideband,UWB)基站,各个UWB基站具有已知的固定位置坐标,即上述超宽带基站的位置信息。在车辆上安装有车载UWB标签,通过车载UWB标签发射或接收超宽带脉冲信号,各个UWB基站接收到信号后,通过精确测量信号的往返飞行时间或到达时间差,可以计算出各个超宽带基站分别与车辆对应的各个距离信息。上述UWB基站的数量至少为3个。通过至少三个UWB基站接收到车载UWB标签的信号,通过几何算法可以计算出车辆的位置。随着车辆的移动,车载UWB标签持续与各个UWB基站交换信号,不断更新定位数据,从而实现对车辆的实时定位。后续可以综合当前时刻的第一测量数据和第二测量数据,可以在全球定位导航系统(GlobalNavigation Satellite System,GNSS)拒止环境下实现更高精度和更可靠的车辆定位。In some embodiments, multiple ultra-wideband (UWB) base stations are deployed within the driving range of the vehicle, and each UWB base station has a known fixed position coordinate, that is, the location information of the above ultra-wideband base station. A vehicle-mounted UWB tag is installed on the vehicle, and the vehicle-mounted UWB tag transmits or receives an ultra-wideband pulse signal. After each UWB base station receives the signal, it can calculate the distance information corresponding to each ultra-wideband base station and the vehicle by accurately measuring the round-trip flight time or arrival time difference of the signal. The number of the above-mentioned UWB base stations is at least 3. The signal of the vehicle-mounted UWB tag is received by at least three UWB base stations, and the position of the vehicle can be calculated by a geometric algorithm. As the vehicle moves, the vehicle-mounted UWB tag continues to exchange signals with each UWB base station, and continuously updates the positioning data, thereby realizing real-time positioning of the vehicle. Subsequently, the first measurement data and the second measurement data at the current moment can be integrated to achieve higher accuracy and more reliable vehicle positioning in a global positioning navigation system (GNSS) denied environment.
步骤202,根据当前时刻的车辆上惯性测量单元测量的车辆速度信息,确定车辆在当前时刻对应的第一位置信息,以及根据当前时刻的多个超宽带基站的位置信息以及各个超宽带基站分别与车辆对应的各个距离信息,确定车辆在当前时刻对应的第二位置信息。Step 202, based on the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, determine the first position information corresponding to the vehicle at the current moment, and based on the position information of multiple ultra-wideband base stations at the current moment and the distance information corresponding to each ultra-wideband base station and the vehicle, determine the second position information corresponding to the vehicle at the current moment.
在一些实施例中,IMU可以测量车辆的加速度和角速度,通过对加速度进行两次积分可以得到车辆沿直线的位移,通过对角速度积分可以得到车辆的转向信息。基于车辆起始时刻的位置和连续积分得到的位移信息,可以实时更新车辆的位置。根据当前时刻的车辆上惯性测量单元测量的车辆速度信息,可以计算得到车辆在当前时刻对应的第一位置信息。In some embodiments, the IMU can measure the acceleration and angular velocity of the vehicle. The displacement of the vehicle along a straight line can be obtained by integrating the acceleration twice, and the steering information of the vehicle can be obtained by integrating the angular velocity. The position of the vehicle can be updated in real time based on the position of the vehicle at the starting time and the displacement information obtained by continuous integration. According to the vehicle speed information measured by the inertial measurement unit on the vehicle at the current time, the first position information corresponding to the vehicle at the current time can be calculated.
在一些实施例中,UWB技术为通过发送和接收超宽带脉冲信号,精确测量各个基站与车辆上车载UWB标签之间的飞行时间或到达时间差,从而计算出各个基站到车辆的各个距离信息。若UWB基站数量为三,可以利用三边定位法,依据三个基站的位置信息和各个基站到车辆的对应的各个距离信息构建几何关系,解算出车辆在当前时刻的第二位置信息。具体地,如图3所示,在GNSS拒止环境中布设三个UWB基站,车辆自身搭载车载UWB标签。在已知基站a、基站b和基站c的二维位置坐标分别为(x0,y0)、(x1,y1)和(x2,y2),以及当前时刻各个基站与车载UWB标签的距离d0、d0和d2的情况下,可以通过以下公式,可以得到车辆在当前时刻对应的第二位置信息(x,y)。In some embodiments, UWB technology is to accurately measure the flight time or arrival time difference between each base station and the vehicle-mounted UWB tag on the vehicle by sending and receiving ultra-wideband pulse signals, thereby calculating the distance information from each base station to the vehicle. If the number of UWB base stations is three, the three-sided positioning method can be used to build a geometric relationship based on the position information of the three base stations and the corresponding distance information from each base station to the vehicle, and solve the second position information of the vehicle at the current moment. Specifically, as shown in Figure 3, three UWB base stations are deployed in a GNSS-denied environment, and the vehicle itself is equipped with a vehicle-mounted UWB tag. When the two-dimensional position coordinates of base station a, base station b and base station c are known to be (x 0 , y 0 ), (x 1 , y 1 ) and (x 2 , y 2 ), respectively, and the distances d 0 , d 0 and d 2 between each base station and the vehicle-mounted UWB tag at the current moment, the second position information (x, y) corresponding to the vehicle at the current moment can be obtained by the following formula.
后续可以将车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息通过因子图模型的技术进行结合,可以进一步提高车辆定位的准确度和鲁棒性,互补各自的优势,减小定位误差,提高车辆GNSS拒止环境中的定位准确性。Subsequently, the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment can be combined through the factor graph model technology, which can further improve the accuracy and robustness of vehicle positioning, complement their respective advantages, reduce positioning errors, and improve the positioning accuracy of vehicles in GNSS-denied environments.
步骤203,基于车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息,通过因子图模型对车辆在当前时刻的位置信息进行预测,得到车辆在当前时刻的目标位置信息,因子图模型是基于历史车辆速度信息和多个超宽带基站的历史位置信息以及各个超宽带基站分别与历史车辆对应的各个距离信息构建的。Step 203, based on the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment, the position information of the vehicle at the current moment is predicted through a factor graph model to obtain the target position information of the vehicle at the current moment. The factor graph model is constructed based on historical vehicle speed information and historical position information of multiple ultra-wideband base stations and each distance information corresponding to each ultra-wideband base station and the historical vehicle.
在一些实施例中,因子图模型为基于历史车辆速度信息和多个超宽带基站的历史位置信息以及各个超宽带基站分别与历史车辆对应的各个距离信息构建的。通过上述信息可以为因子图模型提供丰富的数据基础,使得因子图模型可以学习到车辆位置和车辆的第一位置信息、车辆的第二位置信息之间的潜在关系。因子图模型可以表达车辆位置和车辆的第一位置信息、车辆的第二位置信息之间的因果关系和概率分布,有助于整合不同信息源的数据。理论上,历史数据越多、越全面,因子图模型的学习能力就越强,预测精度也会相应提高。In some embodiments, the factor graph model is constructed based on historical vehicle speed information and historical position information of multiple ultra-wideband base stations and the distance information corresponding to each ultra-wideband base station and the historical vehicle. The above information can provide a rich data basis for the factor graph model, so that the factor graph model can learn the potential relationship between the vehicle position and the first position information of the vehicle and the second position information of the vehicle. The factor graph model can express the causal relationship and probability distribution between the vehicle position and the first position information of the vehicle and the second position information of the vehicle, which helps to integrate data from different information sources. In theory, the more and more comprehensive the historical data, the stronger the learning ability of the factor graph model, and the prediction accuracy will be improved accordingly.
在一些实施例中,因子图模型集成车辆在各个时刻对应的第一位置信息、车辆在各个时刻对应的第二位置信息以及车辆在各个时刻的变量状态,各个时刻的变量状态可以用于表征车辆各个时刻的最优位置估计,可以通过因子图模型捕捉各个变量状态间的关系,可以通过贝叶斯推理或最大后验概率等方法,对车辆在当前时刻对应的第一位置信息和车辆在所述当前时刻对应的第二位置信息进行融合,得到车辆当前时刻的位置的最佳估计值,即车辆在当前时刻的目标位置信息。通过因子图模型融合IMU和UWB两方面的定位数据,可以抑制IMU定位误差的发散,并结合两种定位技术的优点,实时更新并优化车辆的位置信息,适用于GNSS拒止环境中的车辆定位,提高车辆定位的精度和稳定性。In some embodiments, the factor graph model integrates the first position information corresponding to the vehicle at each moment, the second position information corresponding to the vehicle at each moment, and the variable state of the vehicle at each moment. The variable state at each moment can be used to characterize the optimal position estimate of the vehicle at each moment. The relationship between the variable states can be captured by the factor graph model. The first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment can be fused by methods such as Bayesian reasoning or maximum a posteriori probability to obtain the best estimate of the vehicle's current position, that is, the target position information of the vehicle at the current moment. By fusing the positioning data of IMU and UWB through the factor graph model, the divergence of IMU positioning errors can be suppressed, and the advantages of the two positioning technologies can be combined to update and optimize the vehicle's position information in real time. It is suitable for vehicle positioning in GNSS-denied environments and improves the accuracy and stability of vehicle positioning.
基于本申请提供的车辆定位方法,通过获取车辆在当前时刻的第一测量数据和第二测量数据,第一测量数据为车辆上惯性测量单元测量的车辆速度信息,惯性测量单元可以实时提供车辆的加速度和角速度,基于当前时刻的所述车辆上惯性测量单元测量的车辆速度信息可计算出车辆在当前时刻的一个初步的位置估计,即车辆在当前时刻对应的第一位置信息。第二测量数据为通过超宽带的无线定位方法获取到的当前时刻的多个超宽带基站的位置信息以及各个超宽带基站分别与所述车辆对应的各个距离信息,可以利用多边定位原理,结合已知的多个超宽带基站的坐标和车辆到各个基站的距离,可以确定车辆的位置,即车辆在当前时刻对应的第二位置信息。基于车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息,通过因子图模型对车辆在所述当前时刻的位置信息进行预测,整合惯性测量单元和超宽带两个不同来源的定位数据,利用因子图模型将车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息关联,并根据最大后验概率原则进行融合,对车辆当前时刻的位置进行预估,得到车辆在当前时刻的目标位置信息。在车辆行驶过程中,实时收集第一测量数据和第二测量数据,并计算得到对应的各个时刻的第一位置信息和第二位置信息,将第一位置信息和第二位置信息输入因子图模型中,不断地迭代计算,更新车辆在各个时刻的目标位置信息,从而实现对车辆的实时定位。因子图模型为基于历史车辆速度信息和多个超宽带基站的历史位置信息以及各个超宽带基站分别与历史车辆对应的各个距离信息进行构建并训练得到的。通过上述步骤,可以利用惯性测量单元定位连续跟踪的能力和超宽带定位高精度的特点,并基于因子图模型有效地整合惯性测量单元和超宽带的不同定位数据源进行数据融合,利用两者之间的相互依赖关系和不确定性信息,克服单一传感器的局限性,既抑制了惯性测量单元长期使用后的误差积累问题,又提高了定位整体稳定性和准确性,解决现有技术中在GNSS信号失效的情况下其他定位技术定位不准确的问题,提高了车辆在卫星拒止环境下的定位精度。Based on the vehicle positioning method provided by the present application, by obtaining the first measurement data and the second measurement data of the vehicle at the current moment, the first measurement data is the vehicle speed information measured by the inertial measurement unit on the vehicle, and the inertial measurement unit can provide the acceleration and angular velocity of the vehicle in real time. Based on the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, a preliminary position estimate of the vehicle at the current moment can be calculated, that is, the first position information corresponding to the vehicle at the current moment. The second measurement data is the position information of multiple ultra-wideband base stations at the current moment obtained by the ultra-wideband wireless positioning method and the respective distance information corresponding to each ultra-wideband base station and the vehicle. The principle of multilateral positioning can be used, combined with the known coordinates of multiple ultra-wideband base stations and the distance from the vehicle to each base station, to determine the position of the vehicle, that is, the second position information corresponding to the vehicle at the current moment. Based on the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment, the position information of the vehicle at the current moment is predicted by the factor graph model, and the positioning data from two different sources, the inertial measurement unit and the ultra-wideband, are integrated. The first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment are associated by the factor graph model, and are fused according to the maximum a posteriori probability principle, and the position of the vehicle at the current moment is estimated to obtain the target position information of the vehicle at the current moment. During the driving process of the vehicle, the first measurement data and the second measurement data are collected in real time, and the corresponding first position information and second position information at each moment are calculated, and the first position information and the second position information are input into the factor graph model, and the calculation is continuously iterated to update the target position information of the vehicle at each moment, so as to realize the real-time positioning of the vehicle. The factor graph model is constructed and trained based on the historical vehicle speed information and the historical position information of multiple ultra-wideband base stations, and the distance information corresponding to each ultra-wideband base station and the historical vehicle. Through the above steps, the continuous tracking capability of the inertial measurement unit and the high-precision characteristics of ultra-wideband positioning can be utilized, and the different positioning data sources of the inertial measurement unit and ultra-wideband can be effectively integrated for data fusion based on the factor graph model. The mutual dependence and uncertainty information between the two can be utilized to overcome the limitations of a single sensor, which not only suppresses the error accumulation problem after long-term use of the inertial measurement unit, but also improves the overall stability and accuracy of positioning, solves the problem of inaccurate positioning of other positioning technologies when the GNSS signal fails in the existing technology, and improves the positioning accuracy of vehicles in satellite denial environments.
在一些实施例中,通过因子图模型对车辆在当前时刻的位置信息进行预测之前,还包括:获取车辆在各个历史时刻的第一测量数据和各个历史时刻的第二测量数据;基于量测方程构建第一量测因子节点和第二量测因子节点,第一量测因子节点连接车辆在各个历史时刻的第一测量数据和对应的第一变量节点,第二量测因子节点连接车辆在各个历史时刻的第二测量数据和对应的第二变量节点;将车辆在各个历史时刻的位置信息作为融合变量节点,基于状态方程构建第一状态转移因子节点和第二状态转移因子节点,第一状态转移因子节点连接前后历史时刻的第一变量节点,第二状态转移因子节点连接前后历史时刻的第二变量节点,融合变量节点为对应的第一状态转移因子节点和第二状态转移因子节点进行融合得到;根据第一量测因子节点、第二量测因子节点、第一状态转移因子节点、第二状态转移因子节点、第一变量节点、第二变量节点以及融合变量节点构建因子图模型。In some embodiments, before predicting the position information of the vehicle at the current moment through the factor graph model, it also includes: obtaining the first measurement data of the vehicle at each historical moment and the second measurement data at each historical moment; constructing a first measurement factor node and a second measurement factor node based on the measurement equation, the first measurement factor node connects the first measurement data of the vehicle at each historical moment and the corresponding first variable node, and the second measurement factor node connects the second measurement data of the vehicle at each historical moment and the corresponding second variable node; using the position information of the vehicle at each historical moment as a fusion variable node, constructing a first state transfer factor node and a second state transfer factor node based on the state equation, the first state transfer factor node connects the first variable nodes of the previous and next historical moments, the second state transfer factor node connects the second variable nodes of the previous and next historical moments, and the fusion variable node is obtained by fusing the corresponding first state transfer factor node and the second state transfer factor node; constructing a factor graph model according to the first measurement factor node, the second measurement factor node, the first state transfer factor node, the second state transfer factor node, the first variable node, the second variable node and the fusion variable node.
在一些实施例中,获取车辆在各个历史时刻的第一测量数据和第二测量数据为构建因子图模型的基础步骤,车辆在各个历史时刻的第一测量数据为通过惯性测量单元测量得到,可以为车辆在各个历史时刻的加速度和角速度。车辆在各个历史时刻的第二测量数据为通过UWB测量得到,即车辆与多个UWB基站之间距离的测量值,结合各个基站的已知位置可以计算出车辆的位置。第一测量数据和第二测量数据提供了关于车辆位置和运动状态的关键信息。第一测量数据和第二测量数据具有不同的精度和特性,将其结合使用可以提高位置估计的准确性和鲁棒性。In some embodiments, obtaining the first measurement data and the second measurement data of the vehicle at each historical moment is a basic step in constructing a factor graph model. The first measurement data of the vehicle at each historical moment is obtained by measuring with an inertial measurement unit, which may be the acceleration and angular velocity of the vehicle at each historical moment. The second measurement data of the vehicle at each historical moment is obtained by UWB measurement, that is, the measured value of the distance between the vehicle and multiple UWB base stations. The position of the vehicle can be calculated in combination with the known positions of each base station. The first measurement data and the second measurement data provide key information about the position and motion state of the vehicle. The first measurement data and the second measurement data have different precision and characteristics, and using them in combination can improve the accuracy and robustness of position estimation.
在一些实施例中,基于量测方程构建第一量测因子节点和第二量测因子节点,量测方程包括惯性测量单元状态方程和超宽带状态方程。惯性测量单元状态方程为:ZIMU=HIMUX+KIMUVIMU,其中ZIMU为量测量,即第一测量数据,HIMU为量测矩阵,KIMU为基于惯性测量单元的噪声矩阵,VIMU为基于惯性测量单元的误差噪声,X表示当前时刻基于第一测量数据估计出的车辆状态。超宽带状态方程为:ZUWB=HUWBY+KUWBVUWB,其中ZUWB为量测量,即第二测量数据,HUWB为量测矩阵,KUWB为基于超宽带的噪声矩阵,VUWB为基于超宽带的误差噪声,Y表示当前时刻基于第二测量数据估计出的车辆状态。In some embodiments, a first measurement factor node and a second measurement factor node are constructed based on a measurement equation, and the measurement equation includes an inertial measurement unit state equation and an ultra-wideband state equation. The inertial measurement unit state equation is: Z IMU = H IMU X + K IMU V IMU , where Z IMU is a measurement, i.e., first measurement data, H IMU is a measurement matrix, K IMU is a noise matrix based on the inertial measurement unit, V IMU is an error noise based on the inertial measurement unit, and X represents the vehicle state estimated based on the first measurement data at the current moment. The ultra-wideband state equation is: Z UWB = H UWB Y + K UWB V UWB , where Z UWB is a measurement, i.e., second measurement data, H UWB is a measurement matrix, K UWB is a noise matrix based on ultra-wideband, V UWB is an error noise based on ultra-wideband, and Y represents the vehicle state estimated based on the second measurement data at the current moment.
在一些实施例中,通过惯性测量单元状态方程构建第一量测因子节点,将车辆在各个历史时刻的第一测量数据与因子图模型中对应的第一变量节点建立联系,第一量测因子节点可以表示车辆在各个历史时刻的第一测量数据与对应的第一变量节点之间的约束关系,通过因子图模型的结构将第一测量数据融入整个模型中。通过超宽带状态方程构建第二量测因子节点,将车辆在各个历史时刻的第二测量数据与因子图模型中对应的第二变量节点建立联系,第二量测因子节点可以表示车辆在各个历史时刻的第二测量数据与对应的第二变量节点之间的约束关系,通过因子图模型的结构将第二测量数据融入整个模型中。上述第一变量节点对应着基于第一测量数据估计出的车辆状态,以及第二变量节点对应着基于第二测量数据估计出的车辆状态。In some embodiments, a first measurement factor node is constructed through an inertial measurement unit state equation, and a connection is established between the first measurement data of the vehicle at each historical moment and the corresponding first variable node in the factor graph model. The first measurement factor node can represent the constraint relationship between the first measurement data of the vehicle at each historical moment and the corresponding first variable node, and the first measurement data is integrated into the entire model through the structure of the factor graph model. A second measurement factor node is constructed through an ultra-wideband state equation, and a connection is established between the second measurement data of the vehicle at each historical moment and the corresponding second variable node in the factor graph model. The second measurement factor node can represent the constraint relationship between the second measurement data of the vehicle at each historical moment and the corresponding second variable node, and the second measurement data is integrated into the entire model through the structure of the factor graph model. The above-mentioned first variable node corresponds to the vehicle state estimated based on the first measurement data, and the second variable node corresponds to the vehicle state estimated based on the second measurement data.
在一些实施例中,将车辆在各个历史时刻的位置信息作为融合变量节点,并基于状态方程构建第一状态转移因子节点和第二状态转移因子节点,可以在因子图模型中捕捉车辆状态的连续性和变化。第一状态转移因子节点可以用来表征在车辆在时间序列中根据第一测量数据推算出的状态转移过程,描述车辆状态随时间变化的规律,第一状态转移因子节点链接着相邻时刻基于第一测量数据的车辆的第一变量节点。第二状态转移因子节点可以用来表征在车辆在时间序列中根据第二测量数据推算出的状态转移过程,描述车辆状态随时间变化的规律,第二状态转移因子节点链接着相邻时刻基于第二测量数据的车辆的第二变量节点。融合变量节点为对应的第一变量节点和第二变量节点进行融合,可以通过最大后验概率估计的方法,综合考虑车辆运动状态的变化规律和多种来源的测量数据,对车辆当前时刻的全局最优位置进行估计,融合变量节点的解即预估的车辆的目标位置信息,有助于能够更全面地预测车辆的状态,提高位置估计的准确性。In some embodiments, the position information of the vehicle at each historical moment is used as a fusion variable node, and the first state transfer factor node and the second state transfer factor node are constructed based on the state equation, so that the continuity and change of the vehicle state can be captured in the factor graph model. The first state transfer factor node can be used to characterize the state transfer process calculated according to the first measurement data in the time series of the vehicle, and describe the law of the vehicle state changing over time. The first state transfer factor node links the first variable node of the vehicle based on the first measurement data at the adjacent moment. The second state transfer factor node can be used to characterize the state transfer process calculated according to the second measurement data in the time series of the vehicle, and describe the law of the vehicle state changing over time. The second state transfer factor node links the second variable node of the vehicle based on the second measurement data at the adjacent moment. The fusion variable node is a fusion of the corresponding first variable node and the second variable node. The global optimal position of the vehicle at the current moment can be estimated by the maximum a posteriori probability estimation method, taking into account the changing law of the vehicle motion state and the measurement data from multiple sources. The solution of the fusion variable node, that is, the estimated target position information of the vehicle, helps to more comprehensively predict the state of the vehicle and improve the accuracy of the position estimation.
在一些实施例中,根据上述第一量测因子节点、第二量测因子节点、第一状态转移因子节点、第二状态转移因子节点、第一变量节点、第二变量节点以及融合变量节点构建完整的因子图模型,可以通过因子图模型综合考虑测量数据、状态转移以及变量之间的依赖关系,实现对车辆位置信息的准确估计和预测。In some embodiments, a complete factor graph model is constructed based on the above-mentioned first measurement factor node, second measurement factor node, first state transfer factor node, second state transfer factor node, first variable node, second variable node and fusion variable node. The factor graph model can comprehensively consider the measurement data, state transition and the dependency between variables to achieve accurate estimation and prediction of vehicle position information.
在一些实施例中,基于车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息,通过因子图模型对车辆在当前时刻的位置信息进行预测,得到车辆在当前时刻的目标位置信息,包括:通过第一量测因子节点、第一状态转移因子节点以及前一时刻的车辆第一状态量对当前时刻对应的第一位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第一状态预测量;通过第二量测因子节点、第二状态转移因子节点以及前一时刻的车辆第二状态量对当前时刻对应的第二位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第二状态预测量;基于当前时刻对应的关于惯性测量单元的车辆第一状态预测量和当前时刻对应的关于超宽带的车辆第二状态预测量进行融合处理,得到车辆在当前时刻的目标位置信息。In some embodiments, based on the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment, the position information of the vehicle at the current moment is predicted through a factor graph model to obtain the target position information of the vehicle at the current moment, including: calculating and processing the first position information corresponding to the current moment through the first measurement factor node, the first state transfer factor node and the first state quantity of the vehicle at the previous moment to obtain the first state prediction quantity of the vehicle corresponding to the inertial measurement unit at the current moment; calculating and processing the second position information corresponding to the current moment through the second measurement factor node, the second state transfer factor node and the second state quantity of the vehicle at the previous moment to obtain the second state prediction quantity of the vehicle corresponding to the inertial measurement unit at the current moment; fusing the first state prediction quantity of the vehicle corresponding to the inertial measurement unit at the current moment and the second state prediction quantity of the vehicle corresponding to the ultra-wideband at the current moment to obtain the target position information of the vehicle at the current moment.
在一些实施例中,通过因子图模型中的第一量测因子节点、第一状态转移因子节点以及前一时刻的车辆第一状态量,对当前时刻对应的第一位置信息进行计算处理,第一量测因子节点反映了通过惯性测量单元测量计算得到的第一位置信息与车辆第一状态量之间的约束关系,第一状态转移因子节点则描述了车辆状态随时间的变化规律,通过历史数据(即前一时刻的车辆第一状态量)和当前量测信息(即第一位置信息),计算当前时刻对应的第一变量节点对应的均值和方差,当前时刻对应的第一变量节点对应的均值和方差可以表征对车辆当前时刻基于惯性测量单元量测量的状态的最优估计,得到当前时刻关于惯性测量单元的车辆第一状态预测量,从而实现车辆状态进行预测和更新。在已知车辆在各个时刻的第一位置信息时,对车辆在各个时刻的关于惯性测量单元的车辆第一状态预测量进行预测,可以通过下述公式: In some embodiments, the first position information corresponding to the current moment is calculated and processed through the first measurement factor node, the first state transfer factor node and the first state quantity of the vehicle at the previous moment in the factor graph model. The first measurement factor node reflects the constraint relationship between the first position information obtained by the inertial measurement unit and the first state quantity of the vehicle. The first state transfer factor node describes the change law of the vehicle state over time. The mean and variance corresponding to the first variable node corresponding to the current moment are calculated through historical data (i.e., the first state quantity of the vehicle at the previous moment) and the current measurement information (i.e., the first position information). The mean and variance corresponding to the first variable node corresponding to the current moment can represent the optimal estimate of the state of the vehicle at the current moment based on the inertial measurement unit measurement, and obtain the vehicle first state prediction quantity of the inertial measurement unit at the current moment, thereby realizing the prediction and update of the vehicle state. When the first position information of the vehicle at each moment is known, the vehicle first state prediction quantity of the inertial measurement unit at each moment is predicted, which can be predicted by the following formula:
其中X1,X2,…,Xn为车辆在各个时刻的关于惯性测量单元的车辆第一状态预测量,Z1,Z2,…,Zn为车辆在各个时刻的第一位置信息,f(Xi|Xi-1)为第一状态转移因子节点,f(Zi|Xi)为第一量测因子节点,上述f(Xi|Xi-1)服从高斯分布,其均值和方差分别为Mi-1Xi-1,f(Zi|Xi)服从高斯分布,其均值和方差分别为HiXi与/>上述M为矩阵,H为量测矩阵,K为基于惯性测量单元的噪声矩阵。Wherein X 1 , X 2 , …, X n are the first state predictions of the vehicle about the inertial measurement unit at each time, Z 1 , Z 2 , …, Z n are the first position information of the vehicle at each time, f(X i |X i-1 ) is the first state transfer factor node, f(Z i |X i ) is the first measurement factor node, and the above f(X i |X i-1 ) obeys Gaussian distribution, and its mean and variance are Mi -1 Xi -1 and f(Z i |X i ) obeys Gaussian distribution, and its mean and variance are H i X i and /> The above M is a matrix, H is a measurement matrix, and K is a noise matrix based on an inertial measurement unit.
通过第一量测因子节点、第一状态转移因子节点以及前一时刻的车辆第一状态量对所述当前时刻对应的第一位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第一状态预测量,可以用公式进行表征:The first position information corresponding to the current moment is calculated and processed through the first measurement factor node, the first state transfer factor node and the first state quantity of the vehicle at the previous moment, so as to obtain the first state prediction quantity of the vehicle corresponding to the current moment about the inertial measurement unit, which can be represented by the formula:
其中 in
上述Pi|i(Xi)为当前时刻对应的关于惯性测量单元的车辆第一状态预测量,Pi|i-1(Xi)为前一时刻的车辆第一状态量,f(Zi|Yi)为第一量测因子节点。The above Pi |i ( Xi ) is the predicted value of the first state of the vehicle corresponding to the inertial measurement unit at the current moment, Pi |i-1 ( Xi ) is the first state of the vehicle at the previous moment, and f( Zi | Yi ) is the first measurement factor node.
同理,通过第一量测因子节点、第一状态转移因子节点以及当前时刻的车辆第一状态量对所述下一时刻对应的第一位置信息进行计算处理,得到下一时刻对应的关于惯性测量单元的车辆第一状态预测量,可以用公式进行表征为: Similarly, the first position information corresponding to the next moment is calculated and processed through the first measurement factor node, the first state transfer factor node and the first state of the vehicle at the current moment, and the predicted value of the first state of the vehicle corresponding to the next moment about the inertial measurement unit is obtained, which can be represented by the formula:
在一些实施例中,通过因子图模型中的第二量测因子节点、第二状态转移因子节点以及前一时刻的车辆第二状态量,对当前时刻对应的第二位置信息进行计算处理,第二量测因子节点反映了通过超宽带测量计算得到的第二位置信息与车辆第二状态量之间的约束关系,第二状态转移因子节点则描述了车辆状态随时间的变化规律,通过历史数据(即前一时刻的车辆第二状态量)和当前量测信息(即第二位置信息),计算当前时刻对应的第二变量节点对应的均值和方差,当前时刻对应的第二变量节点对应的均值和方差可以表征对车辆当前时刻基于超宽带量测量的状态的最优估计,得到当前时刻关于超宽带的车辆第二状态预测量,从而实现车辆状态进行预测和更新。In some embodiments, the second position information corresponding to the current moment is calculated and processed through the second measurement factor node, the second state transfer factor node and the second state quantity of the vehicle at the previous moment in the factor graph model. The second measurement factor node reflects the constraint relationship between the second position information obtained by ultra-wideband measurement and the second state quantity of the vehicle. The second state transfer factor node describes the change law of the vehicle state over time. The mean and variance corresponding to the second variable node corresponding to the current moment are calculated through historical data (i.e., the second state quantity of the vehicle at the previous moment) and the current measurement information (i.e., the second position information). The mean and variance corresponding to the second variable node corresponding to the current moment can represent the optimal estimate of the state of the vehicle at the current moment based on the ultra-wideband measurement, and obtain the vehicle second state prediction quantity about the ultra-wideband at the current moment, thereby realizing the prediction and update of the vehicle state.
在一些实施例中,将当前时刻对应的关于惯性测量单元的车辆第一状态预测量(当前时刻第一变量节点对应的均值和方差)和当前时刻对应的关于超宽带的车辆第二状态预测量(当前时刻第二变量节点对应的均值和方差),利用因子图模型进行融合,考虑到不同信息源间的相关性和不确定性,可以最大化后验概率或其他融合算法,综合第一状态预测量和第二状态预测量,根据第一状态预测量和第二状态预测量的可靠性等因素,可以对第一状态预测量和第二状态预测量分别赋予不同的权重,预估车辆的最优位置,最优位置为车辆的目标预测位置。具体地,车辆在初始时刻的第一状态量可以为X0,车辆在初始时刻的第二状态量可以为Y0。车辆在初始时刻的第一状态量和车辆在初始时刻的第二状态量均为在初始时刻时刚进入GNSS拒止环境中GPS的定位数据。通过第一量测因子节点、第一状态转移因子节点以及车辆在初始时刻的第一状态量X0对第一时刻对应的第一位置信息进行计算处理,得到第一时刻对应的关于惯性测量单元的车辆第一状态预测量X1;通过第二量测因子节点、第二状态转移因子节点以及车辆在初始时刻的第二状态量Y0对第一时刻对应的第二位置信息进行计算处理,得到第一时刻对应的关于惯性测量单元的车辆第二状态预测量Y1;基于第一时刻对应的关于惯性测量单元的车辆第一状态预测量X1和第一时刻对应的关于惯性测量单元的车辆第二状态预测量Y1进行融合处理,得到车辆在第一时刻的目标位置信息XY1。在本申请的基于因子图模型的车辆定位方法中,既考虑惯性测量单元长期跟踪的连续性和稳定性,又整合超宽带实时且相对精确的位置信息,提高了车辆实时定位的精度和鲁棒性。In some embodiments, the first state prediction of the vehicle corresponding to the inertial measurement unit at the current moment (the mean and variance corresponding to the first variable node at the current moment) and the second state prediction of the vehicle corresponding to the ultra-wideband at the current moment (the mean and variance corresponding to the second variable node at the current moment) are fused using a factor graph model. Considering the correlation and uncertainty between different information sources, the posterior probability or other fusion algorithms can be maximized, and the first state prediction and the second state prediction are integrated. According to factors such as the reliability of the first state prediction and the second state prediction, different weights can be assigned to the first state prediction and the second state prediction, respectively, to estimate the optimal position of the vehicle, and the optimal position is the target predicted position of the vehicle. Specifically, the first state quantity of the vehicle at the initial moment can be X0, and the second state quantity of the vehicle at the initial moment can be Y0. The first state quantity of the vehicle at the initial moment and the second state quantity of the vehicle at the initial moment are both the positioning data of the GPS just entering the GNSS denied environment at the initial moment. The first position information corresponding to the first moment is calculated and processed through the first measurement factor node, the first state transfer factor node and the first state quantity X0 of the vehicle at the initial moment, and the first state prediction quantity X1 of the vehicle corresponding to the inertial measurement unit at the first moment is obtained; the second position information corresponding to the first moment is calculated and processed through the second measurement factor node, the second state transfer factor node and the second state quantity Y0 of the vehicle at the initial moment, and the second state prediction quantity Y1 of the vehicle corresponding to the inertial measurement unit at the first moment is obtained; the target position information XY1 of the vehicle at the first moment is obtained by fusing the first state prediction quantity X1 of the vehicle corresponding to the inertial measurement unit at the first moment and the second state prediction quantity Y1 of the vehicle corresponding to the inertial measurement unit at the first moment. In the vehicle positioning method based on the factor graph model of the present application, the continuity and stability of the long-term tracking of the inertial measurement unit are considered, and the real-time and relatively accurate position information of the ultra-wideband is integrated, so as to improve the accuracy and robustness of the real-time positioning of the vehicle.
在一些实施例中,还可以获取车辆当前时刻的来自多个传感器的测量的多个位置信息。车辆在当前时刻的来自多个传感器(车辆定位装置,例如惯性测量单元、超宽带、激光雷达、超声波等)的测量的多个位置信息为Y1,Y2,…,Yn,根据高斯分布,量测模型为:可以通过因子图模型对多个传感器的测量的多个位置信息进行融合,预测车辆在当前时刻的位置信息。基于因子图模型预测的车辆的位置信息从i-1时刻到i时刻的公式可以为:In some embodiments, multiple position information measured by multiple sensors at the current moment of the vehicle can also be obtained. The multiple position information measured by multiple sensors (vehicle positioning devices, such as inertial measurement units, ultra-wideband, laser radar, ultrasonic waves, etc.) at the current moment of the vehicle is Y 1 , Y 2 ,…, Y n . According to Gaussian distribution, the measurement model is: The factor graph model can be used to fuse multiple location information measured by multiple sensors to predict the location information of the vehicle at the current moment. The formula for predicting the location information of the vehicle from time i-1 to time i based on the factor graph model can be:
P(Xij|Yij)=P(Xij|Xi-1|j)P(Yij|Xi)P(X ij |Y ij )=P(X ij |X i-1|j )P(Y ij |X i )
基于因子图模型对当前时刻来自多个传感器的测量的多个位置信息进行融合,预测车辆当前时刻的位置信息可以表示为:上述/>为预测得到的当前时刻车辆的位置信息。通过整合多个传感器(车辆实时定位装置)的测量计算得到的位置信息,对车辆进行实时定位,提高了整体定位精度和鲁棒性。Based on the factor graph model, multiple position information measured by multiple sensors at the current moment is fused, and the predicted position information of the vehicle at the current moment can be expressed as: Above/> The vehicle's current position information is predicted. By integrating the position information measured and calculated by multiple sensors (vehicle real-time positioning devices), the vehicle is positioned in real time, improving the overall positioning accuracy and robustness.
在一些实施例中,通过第一量测因子节点、第一状态转移因子节点以及前一时刻的车辆第一状态量对当前时刻对应的第一位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第一状态预测量,包括:根据前一时刻的车辆第一状态量和第一状态转移因子节点进行当前时刻车辆第一状态量预测,得到当前时刻车辆的车辆第一初始状态预测量;基于当前时刻车辆的车辆第一初始状态预测量和当前时刻对应的第一位置信息进行误差计算,得到第一损失;根据第一损失对第一量测因子节点进行更新,得到更新后第一量测因子节点;基于前一时刻的车辆第一状态量和当前时刻对应的第一位置信息对第一状态转移因子节点进行更新,得到更新后第一状态转移因子节点;通过更新后第一量测因子节点对当前时刻对应的第一位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第一状态预测量。In some embodiments, the first position information corresponding to the current moment is calculated and processed through the first measurement factor node, the first state transfer factor node and the first state quantity of the vehicle at the previous moment to obtain the vehicle first state prediction quantity corresponding to the inertial measurement unit at the current moment, including: predicting the first state quantity of the vehicle at the current moment according to the first state quantity of the vehicle at the previous moment and the first state transfer factor node to obtain the vehicle first initial state prediction quantity of the vehicle at the current moment; performing error calculation based on the vehicle first initial state prediction quantity of the vehicle at the current moment and the first position information corresponding to the current moment to obtain the first loss; updating the first measurement factor node according to the first loss to obtain the updated first measurement factor node; updating the first state transfer factor node based on the first state quantity of the vehicle at the previous moment and the first position information corresponding to the current moment to obtain the updated first state transfer factor node; calculating and processing the first position information corresponding to the current moment through the updated first measurement factor node to obtain the vehicle first state prediction quantity corresponding to the inertial measurement unit at the current moment.
在一些实施例中,根据前一时刻的车辆第一状态量和第一状态转移因子节点进行当前时刻车辆第一状态量预测,利用已知第一状态转移因子节点和前一时刻的车辆第一状态量预测当前时刻的车辆状态,得到一个初步的、未经校正的车辆第一初始状态预测量。将基于状态转移预测得到的当前车辆第一初始状态预测量和当前时刻对应的第一位置信息(即实际IMU测量到的车辆位置)进行误差计算,计算两者之间的差异,得到第一损失。第一损失后续可以用于对第一量测因子节点的更新,以改善因子图模型预测的准确性。根据计算得到的第一损失,更新第一量测因子节点,第一量测因子节点可以表征IMU测量数据(第一位置信息)对车辆状态的影响程度。更新后第一量测因子节点将更准确地描述IMU测量数据(第一位置信息)与车辆状态之间的关系。基于前一时刻的车辆第一状态量和当前时刻对应的第一位置信息对第一状态转移因子节点进行更新,优化第一状态转移因子节点,使其更能反映车辆第一状态量随时间变化的真实情况。得到更新后第一量测因子节点和更新后第一状态转移因子节点之后,基于更新后第一量测因子节点对当前时刻对应的第一位置信息进行计算预估,得到更准确的当前时刻对应的关于惯性测量单元的车辆第一状态预测量。通过不断地循环上述步骤,因子图模型在实时定位过程中持续地根据新的第一位置信息进行更新,可以实时、准确地跟踪和估计各个时刻的车辆第一状态预测量。通过上述过程中因子图模型的不断迭代和不断更新,将第一位置信息与第一状态转移因子节点相结合,逐步减小定位误差,提高定位精度。In some embodiments, the first state quantity of the vehicle at the current moment is predicted based on the first state quantity of the vehicle at the previous moment and the first state transfer factor node, and the vehicle state at the current moment is predicted using the known first state transfer factor node and the first state quantity of the vehicle at the previous moment, to obtain a preliminary, uncorrected prediction of the first initial state of the vehicle. The error calculation is performed between the predicted value of the first initial state of the current vehicle obtained based on the state transfer prediction and the first position information corresponding to the current moment (i.e., the vehicle position measured by the actual IMU), and the difference between the two is calculated to obtain the first loss. The first loss can be used to update the first measurement factor node later to improve the accuracy of the factor graph model prediction. According to the calculated first loss, the first measurement factor node is updated, and the first measurement factor node can characterize the degree of influence of the IMU measurement data (first position information) on the vehicle state. After the update, the first measurement factor node will more accurately describe the relationship between the IMU measurement data (first position information) and the vehicle state. The first state transfer factor node is updated based on the first state quantity of the vehicle at the previous moment and the first position information corresponding to the current moment, and the first state transfer factor node is optimized to better reflect the actual situation of the change of the first state quantity of the vehicle over time. After obtaining the updated first measurement factor node and the updated first state transfer factor node, the first position information corresponding to the current moment is calculated and estimated based on the updated first measurement factor node to obtain a more accurate prediction of the vehicle's first state corresponding to the current moment regarding the inertial measurement unit. By continuously looping the above steps, the factor graph model is continuously updated according to the new first position information during the real-time positioning process, and can track and estimate the vehicle's first state prediction at each moment in real time and accurately. Through the continuous iteration and continuous updating of the factor graph model in the above process, the first position information is combined with the first state transfer factor node, the positioning error is gradually reduced, and the positioning accuracy is improved.
在一些实施例中,通过第二量测因子节点、第二状态转移因子节点以及前一时刻的车辆第二状态量对当前时刻对应的第二位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第二状态预测量,包括:根据前一时刻的车辆第二状态量和第二状态转移因子节点进行当前时刻车辆第二状态量预测,得到当前时刻车辆的车辆第二初始状态预测量;基于当前时刻车辆的车辆第二初始状态预测量和当前时刻对应的第二位置信息进行误差计算,得到第二损失;根据第二损失对第二量测因子节点进行更新,得到更新后第二量测因子节点;基于前一时刻的车辆第二状态量和当前时刻对应的第二位置信息对第二状态转移因子节点进行更新,得到更新后第二状态转移因子节点;通过更新后第二量测因子节点对当前时刻对应的第二位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第二状态预测量。In some embodiments, the second position information corresponding to the current moment is calculated and processed through the second measurement factor node, the second state transfer factor node and the second state of the vehicle at the previous moment to obtain the vehicle second state prediction quantity corresponding to the inertial measurement unit at the current moment, including: predicting the second state of the vehicle at the current moment according to the second state of the vehicle at the previous moment and the second state transfer factor node to obtain the vehicle second initial state prediction quantity of the vehicle at the current moment; performing error calculation based on the vehicle second initial state prediction quantity of the vehicle at the current moment and the second position information corresponding to the current moment to obtain the second loss; updating the second measurement factor node according to the second loss to obtain an updated second measurement factor node; updating the second state transfer factor node based on the second state of the vehicle at the previous moment and the second position information corresponding to the current moment to obtain an updated second state transfer factor node; calculating and processing the second position information corresponding to the current moment through the updated second measurement factor node to obtain the vehicle second state prediction quantity corresponding to the inertial measurement unit at the current moment.
在一些实施例中,根据前一时刻的车辆第二状态量和第二状态转移因子节点进行当前时刻车辆第二状态量预测,利用已知第二状态转移因子节点和前一时刻的车辆第二状态量预测当前时刻的车辆状态,得到一个初步的、未经校正的车辆第二初始状态预测量。将基于状态转移预测得到的当前车辆第二初始状态预测量和当前时刻对应的第二位置信息(即实际UWB测量到的车辆位置)进行误差计算,计算两者之间的差异,得到第二损失。第二损失后续可以用于对第二量测因子节点的更新,以改善因子图模型预测的准确性。根据计算得到的第二损失,更新第二量测因子节点,第二量测因子节点可以表征UWB测量数据(第二位置信息)对车辆状态的影响程度。更新后第二量测因子节点将更准确地描述UWB测量数据(第二位置信息)与车辆状态之间的关系。基于前一时刻的车辆第二状态量和当前时刻对应的第二位置信息对第二状态转移因子节点进行更新,优化第二状态转移因子节点,使其更能反映车辆第二状态量随时间变化的真实情况。得到更新后第二量测因子节点和更新后第二状态转移因子节点之后,基于更新后第二量测因子节点对当前时刻对应的第二位置信息进行计算预估,得到更准确的当前时刻对应的关于惯性测量单元的车辆第二状态预测量。通过不断地循环上述步骤,因子图模型在实时定位过程中持续地根据新的第二位置信息进行更新,可以实时、准确地跟踪和估计各个时刻的车辆第二状态预测量。通过上述过程中因子图模型的不断迭代和不断更新,将第二位置信息与第二状态转移因子节点相结合,逐步减小定位误差,提高定位精度。In some embodiments, the second state quantity of the vehicle at the current moment is predicted based on the second state quantity of the vehicle at the previous moment and the second state transfer factor node, and the vehicle state at the current moment is predicted using the known second state transfer factor node and the second state quantity of the vehicle at the previous moment, to obtain a preliminary, uncorrected prediction of the second initial state of the vehicle. The error calculation is performed on the predicted second initial state quantity of the current vehicle obtained based on the state transfer prediction and the second position information corresponding to the current moment (i.e., the actual vehicle position measured by UWB), and the difference between the two is calculated to obtain the second loss. The second loss can be used to update the second measurement factor node later to improve the accuracy of the factor graph model prediction. According to the calculated second loss, the second measurement factor node is updated, and the second measurement factor node can characterize the degree of influence of the UWB measurement data (second position information) on the vehicle state. After the update, the second measurement factor node will more accurately describe the relationship between the UWB measurement data (second position information) and the vehicle state. The second state transfer factor node is updated based on the second state quantity of the vehicle at the previous moment and the second position information corresponding to the current moment, and the second state transfer factor node is optimized to better reflect the actual situation of the second state quantity of the vehicle changing over time. After obtaining the updated second measurement factor node and the updated second state transfer factor node, the second position information corresponding to the current moment is calculated and estimated based on the updated second measurement factor node to obtain a more accurate prediction of the vehicle's second state corresponding to the current moment regarding the inertial measurement unit. By continuously looping the above steps, the factor graph model is continuously updated according to the new second position information during the real-time positioning process, and can track and estimate the vehicle's second state prediction at each moment in real time and accurately. Through the continuous iteration and continuous updating of the factor graph model in the above process, the second position information is combined with the second state transfer factor node, the positioning error is gradually reduced, and the positioning accuracy is improved.
在一些实施例中,车辆速度信息包括当前时刻的加速度和当前时刻的角速度,根据当前时刻的车辆上惯性测量单元测量的车辆速度信息,确定车辆在当前时刻对应的第一位置信息,包括:对当前时刻的加速度进行积分,得到车辆的位移;对当前时刻的角速度进行积分,得到车辆的转向信息;基于车辆的位移和车辆的转向信息,得到车辆在当前时刻对应的第一位置信息。In some embodiments, the vehicle speed information includes the acceleration at the current moment and the angular velocity at the current moment. According to the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, the first position information corresponding to the vehicle at the current moment is determined, including: integrating the acceleration at the current moment to obtain the displacement of the vehicle; integrating the angular velocity at the current moment to obtain the steering information of the vehicle; based on the displacement of the vehicle and the steering information of the vehicle, obtaining the first position information corresponding to the vehicle at the current moment.
在一些实施例中,车辆速度信息包括当前时刻的加速度和当前时刻的角速度,加速度和角速度均为描述车辆运动状态的关键参数。加速度可以反映车辆速度变化的快慢,角速度可以反映车辆旋转的快慢。通过惯性测量单元测量可以当前时刻的车辆的加速度和角速度。车辆上的惯性测量单元测量到当前时刻的加速度时,对当前时刻的加速度进行两次积分操作可以得到这段时间内车辆的直线位移。加速度是单位时间内速度的变化率,连续两次积分可以将加速度转换为速度,再转换为位移。通过对当前时刻的加速度进行两次积分操作,可以估算车辆某一时间段内沿某个方向的位移。车辆上的惯性测量单元测量到当前时刻的角速度时,对当前时刻的角速度积分可以得到车辆在该时间段内的转角变化量,即车辆的转向信息,转角信息用于确定车辆在直线行驶基础上的方向变化。获得车辆的直线位移和转向信息后,可以通过叠加或矢量合成的方式,将位移累加到前一时刻车辆的位置上,并根据转向信息调整车辆的朝向,可以计算出车辆在当前时刻相对于前一时刻位置的新位置信息,即车辆在所述当前时刻对应的第一位置信息。In some embodiments, the vehicle speed information includes the acceleration at the current moment and the angular velocity at the current moment, and both the acceleration and the angular velocity are key parameters for describing the vehicle's motion state. Acceleration can reflect the speed of the vehicle's speed change, and the angular velocity can reflect the speed of the vehicle's rotation. The acceleration and angular velocity of the vehicle at the current moment can be measured by the inertial measurement unit. When the inertial measurement unit on the vehicle measures the acceleration at the current moment, the acceleration at the current moment is integrated twice to obtain the linear displacement of the vehicle during this period. Acceleration is the rate of change of velocity per unit time. Two consecutive integrations can convert acceleration into velocity and then into displacement. By performing two integration operations on the acceleration at the current moment, the displacement of the vehicle in a certain direction within a certain period of time can be estimated. When the inertial measurement unit on the vehicle measures the angular velocity at the current moment, the angular velocity at the current moment is integrated to obtain the amount of change in the vehicle's angle within the time period, that is, the steering information of the vehicle, and the angle information is used to determine the direction change of the vehicle based on straight-line driving. After obtaining the vehicle's linear displacement and steering information, the displacement can be added to the position of the vehicle at the previous moment by superposition or vector synthesis, and the vehicle's orientation can be adjusted according to the steering information. The new position information of the vehicle at the current moment relative to the position at the previous moment, that is, the first position information of the vehicle corresponding to the current moment, can be calculated.
在一些实施例中,基于状态方程构建第一状态转移因子节点和第二状态转移因子节点,包括:对车辆的相邻时刻的第一状态量进行高斯分布,得到第一高斯分布结果;基于第一高斯分布结果和惯性测量单元状态方程构建第一状态转移因子节点,第一状态转移因子节点表示从一个时刻到下一个时刻状态转移的概率分布;对车辆的相邻时刻的第二状态量进行高斯分布,得到第二高斯分布结果;基于第二高斯分布结果和超宽带状态方程构建第二状态转移因子节点,第二状态转移因子节点表示从一个时刻到下一个时刻状态转移的概率分布。In some embodiments, a first state transfer factor node and a second state transfer factor node are constructed based on a state equation, including: performing Gaussian distribution on a first state quantity of the vehicle at adjacent moments to obtain a first Gaussian distribution result; constructing a first state transfer factor node based on the first Gaussian distribution result and the state equation of an inertial measurement unit, the first state transfer factor node representing a probability distribution of state transfer from one moment to the next; performing Gaussian distribution on a second state quantity of the vehicle at adjacent moments to obtain a second Gaussian distribution result; constructing a second state transfer factor node based on the second Gaussian distribution result and the ultra-wideband state equation, the second state transfer factor node representing a probability distribution of state transfer from one moment to the next.
在一些实施例中,状态方程包括惯性测量单元状态方程和超宽带状态方程。惯性测量单元状态方程为Xi=MIMUX(i-1)+NIMUWIMU,上述Xi为当前时刻的车辆第一状态量,为第i个时刻(当前时刻)车辆第一状态量的最优估计,上述X(i-1)为前一时刻的车辆第一状态量,即第i-1个时刻的车辆第一状态量,MIMU为矩阵,反映车辆的第一状态随时间的演化规律,NIMU为IMU噪声矩阵,用于表示IMU噪声对车辆的第一状态转移的影响,WIMU为IMU噪声,可以表示车辆的第一状态的转移过程中的不确定性。基于因子图模型对在车辆行驶过程中的各项数据进行建模,车辆在各个时刻的第一状态量定义为各个第一变量节点,从一个时刻到相邻下一个时刻的第一状态转移服从高斯分布,对各个时刻的第一变量节点进行求解,得到各个时刻的第一状态量的均值和方差,第一状态转移具有随机性,因此可以将车辆的第一状态的变化作为一个概率事件。在因子图模型中,对应于车辆第一状态转移的过程,可以构建第一状态转移因子节点,第一状态转移因子节点反映车辆的相邻时间步长的两个第一状态量之间随时间演进的概率依赖关系。高斯分布是一种常用的概率分布模型,可以用来描述随机变量的分布情况。通过对车辆的相邻时刻(即上一时刻和相邻的下一时刻)的第一状态量进行高斯分布,可以得到第一状态量在不同时刻之间的概率分布,即第一高斯分布结果。基于第一高斯分布结果和惯性性测量单元状态方程构建第一状态转移因子节点。In some embodiments, the state equation includes an inertial measurement unit state equation and an ultra-wideband state equation. The inertial measurement unit state equation is Xi= MIMU X(i-1)+ NIMU W IMU , where Xi is the first state quantity of the vehicle at the current moment, and is the optimal estimate of the first state quantity of the vehicle at the i-th moment (current moment). The above X(i-1) is the first state quantity of the vehicle at the previous moment, that is, the first state quantity of the vehicle at the i-1th moment. MIMU is a matrix that reflects the evolution law of the first state of the vehicle over time. NIMU is an IMU noise matrix that is used to represent the influence of IMU noise on the first state transfer of the vehicle. W IMU is IMU noise, which can represent the uncertainty in the transfer process of the first state of the vehicle. Based on the factor graph model, various data in the process of vehicle driving are modeled, and the first state quantity of the vehicle at each moment is defined as each first variable node. The first state transfer from one moment to the next adjacent moment obeys Gaussian distribution. The first variable nodes at each moment are solved to obtain the mean and variance of the first state quantity at each moment. The first state transfer is random, so the change of the first state of the vehicle can be regarded as a probabilistic event. In the factor graph model, corresponding to the process of the vehicle's first state transfer, a first state transfer factor node can be constructed, which reflects the probability dependency between the two first state quantities of the vehicle's adjacent time steps that evolve over time. Gaussian distribution is a commonly used probability distribution model that can be used to describe the distribution of random variables. By performing Gaussian distribution on the first state quantities of the vehicle at adjacent moments (i.e., the previous moment and the adjacent next moment), the probability distribution of the first state quantity between different moments can be obtained, i.e., the first Gaussian distribution result. The first state transfer factor node is constructed based on the first Gaussian distribution result and the inertial measurement unit state equation.
在一些实施例中,超宽带状态方程为Yi=MUWBY(i-1)+NUWBWUWB,上述Yi为当前时刻的车辆第二状态量,为第i个时刻(当前时刻)车辆第二状态量的最优估计,上述Y(i-1)为前一时刻的车辆第二状态量,即第i-1个时刻的车辆第二状态量,MUWB为矩阵,反映车辆的第二状态随时间的演化规律,NUWB为UWB噪声矩阵,用于表示UWB噪声对车辆的第二状态转移的影响,WUWB为UWB噪声,可以表示车辆的第二状态的转移过程中的不确定性。基于因子图模型对在车辆行驶过程中的各项数据进行建模,车辆在各个时刻的第二状态量定义为各个第二变量节点,从一个时刻到相邻下一个时刻的第二状态转移服从高斯分布,对各个时刻的第二变量节点进行求解,得到各个时刻的第二状态量的均值和方差,第二状态转移具有随机性,因此可以将车辆的第二状态的变化作为一个概率事件。在因子图模型中,对应于车辆第二状态转移的过程,可以构建第二状态转移因子节点,第二状态转移因子节点反映车辆的相邻时间步长的两个第二状态量之间随时间演进的概率依赖关系。通过对车辆的相邻时刻(即上一时刻和相邻的下一时刻)的第二状态量进行高斯分布,可以得到第二状态量在不同时刻之间的概率分布,即第二高斯分布结果。基于第二高斯分布结果和超宽带状态方程构建第二状态转移因子节点。In some embodiments, the ultra-wideband state equation is Yi=M UWB Y(i-1)+N UWB W UWB , where Yi is the second state quantity of the vehicle at the current moment, and is the optimal estimate of the second state quantity of the vehicle at the i-th moment (current moment), Y(i-1) is the second state quantity of the vehicle at the previous moment, that is, the second state quantity of the vehicle at the i-1th moment, M UWB is a matrix reflecting the evolution law of the second state of the vehicle over time, N UWB is a UWB noise matrix, used to represent the influence of UWB noise on the second state transition of the vehicle, and W UWB is UWB noise, which can represent the uncertainty in the transition process of the second state of the vehicle. Based on the factor graph model, various data in the vehicle driving process are modeled, and the second state quantity of the vehicle at each moment is defined as each second variable node. The second state transition from one moment to the next adjacent moment obeys Gaussian distribution. The second variable nodes at each moment are solved to obtain the mean and variance of the second state quantity at each moment. The second state transition is random, so the change of the second state of the vehicle can be regarded as a probabilistic event. In the factor graph model, corresponding to the process of the vehicle's second state transfer, a second state transfer factor node can be constructed, which reflects the probability dependency relationship between the two second state quantities of the vehicle's adjacent time steps that evolve over time. By performing Gaussian distribution on the second state quantities of the vehicle at adjacent moments (i.e., the previous moment and the adjacent next moment), the probability distribution of the second state quantity at different moments can be obtained, i.e., the second Gaussian distribution result. The second state transfer factor node is constructed based on the second Gaussian distribution result and the ultra-wideband state equation.
参考图4,一种车辆定位方法的流程图如图4所示,步骤包括:Referring to FIG4 , a flow chart of a vehicle positioning method is shown in FIG4 , and the steps include:
步骤401,惯性测量单元和超宽带的量测信息初始化;Step 401, initializing the measurement information of the inertial measurement unit and the ultra-wideband;
步骤402,建立因子图模型;Step 402, establishing a factor graph model;
步骤403,将第一位置信息和第二位置信息输入,若无,执行步骤406;Step 403, input the first location information and the second location information, if not, execute step 406;
步骤404,计算第一变量节点的均值和方差以及第二变量节点的均值和方差;Step 404, calculating the mean and variance of the first variable node and the mean and variance of the second variable node;
步骤405,将第一变量节点和第一变量节点进行融合;Step 405, merging the first variable node and the second variable node;
步骤406,停止数据更新保持原有数据。Step 406, stop data updating and keep the original data.
在上述步骤中,步骤401中初始化车辆定位所需的IMU数据和UWB数据,准备开始进行定位计算。IMU提供车辆的加速度、角速度等信息,UWB提供车辆与UWB基站之间的精确距离信息和各个UWB基站的位置信息。步骤402中构建一个用于数据融合和定位优化的因子图模型框架,因子图模型可以整合IMU数据和UWB数据,并通过贝叶斯网络结构表达IMU数据和UWB数据间的关联性和不确定性,便于进行高效的概率推理和车辆的最优状态估计。在步骤404中将第一位置信息(基于IMU测量数据计算得到的车辆位置信息)和第二位置信息(基于UWB测量数据计算得到的车辆位置信息)输入因子图模型中,如果没有新数据则执行步骤406。在步骤404中通过计算第一变量节点和第二变量节点的均值和方差,量化了基于两种传感器数据的车辆位置估计的置信度和中心趋势,这一步是进行概率融合和优化的重要步骤,为后续融合处理提供基础数据。在步骤405中通过因子图模型将第一变量节点和第二变量节点进行信息融合,通过概率论方法(如贝叶斯滤波或粒子滤波)进行最优状态估计,从而得到更准确的车辆的目标位置信息。In the above steps, in step 401, the IMU data and UWB data required for vehicle positioning are initialized, and the positioning calculation is ready to start. IMU provides information such as acceleration and angular velocity of the vehicle, and UWB provides accurate distance information between the vehicle and the UWB base station and the location information of each UWB base station. In step 402, a factor graph model framework for data fusion and positioning optimization is constructed. The factor graph model can integrate IMU data and UWB data, and express the correlation and uncertainty between IMU data and UWB data through the Bayesian network structure, which is convenient for efficient probabilistic reasoning and optimal state estimation of the vehicle. In step 404, the first position information (the vehicle position information calculated based on the IMU measurement data) and the second position information (the vehicle position information calculated based on the UWB measurement data) are input into the factor graph model. If there is no new data, step 406 is executed. In step 404, the confidence and central tendency of the vehicle position estimation based on the two sensor data are quantified by calculating the mean and variance of the first variable node and the second variable node. This step is an important step for probabilistic fusion and optimization, and provides basic data for subsequent fusion processing. In step 405, the first variable node and the second variable node are fused with information through a factor graph model, and an optimal state estimation is performed through a probability theory method (such as Bayesian filtering or particle filtering), so as to obtain more accurate target position information of the vehicle.
对本申请提出的车辆定位进行仿真分析,与仅使用IMU定位的方法对比,使用的仿真软件为Matlab。在设置车辆的真实运动轨迹后,分别使用两种方法对车辆的运动轨迹进行仿真,得到车辆的预测运动轨迹。计算二维平面中预测轨迹和真实轨迹的x轴误差和y轴误差,对x轴和y轴的误差进行对比分析,得到误差示意图如图5所示。仅使用IMU定位的方法得到的x轴和y轴误差绝对值分别为0.98m和1.12m,而经过IMU/UWB数据融合后(本申请的定位方法)的x轴和y轴误差绝对值分别为0.38m和0.31m。因此,本申请提出的方法比仅使用IMU定位得到的结果误差更小,定位精度更高。The vehicle positioning proposed in this application is simulated and analyzed, and compared with the method using only IMU positioning, the simulation software used is Matlab. After setting the real motion trajectory of the vehicle, two methods are used to simulate the motion trajectory of the vehicle to obtain the predicted motion trajectory of the vehicle. The x-axis error and y-axis error of the predicted trajectory and the real trajectory in the two-dimensional plane are calculated, and the errors of the x-axis and y-axis are compared and analyzed to obtain an error schematic diagram as shown in Figure 5. The absolute values of the x-axis and y-axis errors obtained by the method using only IMU positioning are 0.98m and 1.12m respectively, and the absolute values of the x-axis and y-axis errors after IMU/UWB data fusion (positioning method of this application) are 0.38m and 0.31m respectively. Therefore, the method proposed in this application has a smaller error than the result obtained by using only IMU positioning, and the positioning accuracy is higher.
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
图6是本申请实施例提供的一种车辆定位装置的示意图。如图5所示,该车辆定位装置包括:FIG6 is a schematic diagram of a vehicle positioning device provided in an embodiment of the present application. As shown in FIG5 , the vehicle positioning device includes:
获取模块601,用于获取车辆在当前时刻的第一测量数据和第二测量数据,第一测量数据为车辆上惯性测量单元测量的车辆速度信息,第二测量数据为多个超宽带基站的位置信息以及各个超宽带基站分别与车辆对应的各个距离信息;An acquisition module 601 is used to acquire first measurement data and second measurement data of the vehicle at a current moment, wherein the first measurement data is vehicle speed information measured by an inertial measurement unit on the vehicle, and the second measurement data is location information of multiple ultra-wideband base stations and respective distance information corresponding to each ultra-wideband base station and the vehicle;
计算模块602,用于根据当前时刻的车辆上惯性测量单元测量的车辆速度信息,确定车辆在当前时刻对应的第一位置信息,以及根据当前时刻的多个超宽带基站的位置信息以及各个超宽带基站分别与车辆对应的各个距离信息,确定车辆在当前时刻对应的第二位置信息;The calculation module 602 is used to determine the first position information corresponding to the vehicle at the current moment according to the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, and determine the second position information corresponding to the vehicle at the current moment according to the position information of multiple ultra-wideband base stations at the current moment and the respective distance information corresponding to each ultra-wideband base station and the vehicle;
预测模块603,用于基于车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息,通过因子图模型对车辆在当前时刻的位置信息进行预测,得到车辆在当前时刻的目标位置信息,因子图模型是基于历史车辆速度信息和多个超宽带基站的历史位置信息以及各个超宽带基站分别与历史车辆对应的各个距离信息构建的。The prediction module 603 is used to predict the position information of the vehicle at the current moment based on the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment through a factor graph model to obtain the target position information of the vehicle at the current moment. The factor graph model is constructed based on historical vehicle speed information and historical position information of multiple ultra-wideband base stations and various distance information corresponding to each ultra-wideband base station and historical vehicles.
根据本申请实施例提供的技术方案,通过获取模块601获取车辆在当前时刻的第一测量数据和第二测量数据,第一测量数据为车辆上惯性测量单元测量的车辆速度信息,惯性测量单元可以实时提供车辆的加速度和角速度,通过计算模块602基于当前时刻的所述车辆上惯性测量单元测量的车辆速度信息可计算出车辆在当前时刻的一个初步的位置估计,即车辆在当前时刻对应的第一位置信息。第二测量数据为通过超宽带的无线定位方法获取到的当前时刻的多个超宽带基站的位置信息以及各个超宽带基站分别与所述车辆对应的各个距离信息,通过计算模块602可以利用多边定位原理,结合已知的多个超宽带基站的坐标和车辆到各个基站的距离,可以确定车辆的位置,即车辆在当前时刻对应的第二位置信息。基于车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息,通过预测模块603对车辆在所述当前时刻的位置信息进行预测,整合惯性测量单元和超宽带两个不同来源的定位数据,利用因子图模型将车辆在当前时刻对应的第一位置信息和车辆在当前时刻对应的第二位置信息关联,并根据最大后验概率原则进行融合,对车辆当前时刻的位置进行预估,得到车辆在当前时刻的目标位置信息。在车辆行驶过程中,实时收集第一测量数据和第二测量数据,并计算得到对应的各个时刻的第一位置信息和第二位置信息,将第一位置信息和第二位置信息输入因子图模型中,不断地迭代计算,更新车辆在各个时刻的目标位置信息,从而实现对车辆的实时定位。因子图模型为基于历史车辆速度信息和多个超宽带基站的历史位置信息以及各个超宽带基站分别与历史车辆对应的各个距离信息进行构建并训练得到的。通过上述步骤,可以利用惯性测量单元定位连续跟踪的能力和超宽带定位高精度的特点,并基于因子图模型有效地整合惯性测量单元和超宽带的不同定位数据源进行数据融合,利用两者之间的相互依赖关系和不确定性信息,克服单一传感器的局限性,既抑制了惯性测量单元长期使用后的误差积累问题,又提高了定位整体稳定性和准确性,解决现有技术中在GNSS信号失效的情况下其他定位技术定位不准确的问题,提高了车辆在卫星拒止环境下的定位精度。According to the technical solution provided in the embodiment of the present application, the first measurement data and the second measurement data of the vehicle at the current moment are obtained by the acquisition module 601. The first measurement data is the vehicle speed information measured by the inertial measurement unit on the vehicle. The inertial measurement unit can provide the acceleration and angular velocity of the vehicle in real time. The calculation module 602 can calculate a preliminary position estimate of the vehicle at the current moment based on the vehicle speed information measured by the inertial measurement unit on the vehicle at the current moment, that is, the first position information corresponding to the vehicle at the current moment. The second measurement data is the position information of multiple ultra-wideband base stations at the current moment obtained by the ultra-wideband wireless positioning method and the distance information corresponding to each ultra-wideband base station and the vehicle. The calculation module 602 can use the principle of multilateral positioning, combined with the known coordinates of multiple ultra-wideband base stations and the distance from the vehicle to each base station, to determine the position of the vehicle, that is, the second position information corresponding to the vehicle at the current moment. Based on the first position information corresponding to the vehicle at the current moment and the second position information corresponding to the vehicle at the current moment, the prediction module 603 predicts the position information of the vehicle at the current moment, integrates the positioning data from two different sources, the inertial measurement unit and the ultra-wideband, and uses the factor graph model to associate the first position information corresponding to the vehicle at the current moment with the second position information corresponding to the vehicle at the current moment, and fuses them according to the maximum a posteriori probability principle, estimates the position of the vehicle at the current moment, and obtains the target position information of the vehicle at the current moment. During the driving process of the vehicle, the first measurement data and the second measurement data are collected in real time, and the corresponding first position information and second position information at each moment are calculated, and the first position information and the second position information are input into the factor graph model, and the calculation is continuously iterated to update the target position information of the vehicle at each moment, so as to realize the real-time positioning of the vehicle. The factor graph model is constructed and trained based on the historical vehicle speed information and the historical position information of multiple ultra-wideband base stations and the distance information corresponding to each ultra-wideband base station and the historical vehicle. Through the above steps, the continuous tracking capability of the inertial measurement unit and the high-precision characteristics of ultra-wideband positioning can be utilized, and the different positioning data sources of the inertial measurement unit and ultra-wideband can be effectively integrated for data fusion based on the factor graph model. The mutual dependence and uncertainty information between the two can be utilized to overcome the limitations of a single sensor, which not only suppresses the error accumulation problem after long-term use of the inertial measurement unit, but also improves the overall stability and accuracy of positioning, solves the problem of inaccurate positioning of other positioning technologies when the GNSS signal fails in the existing technology, and improves the positioning accuracy of vehicles in satellite denial environments.
在一些实施例中,通过因子图模型对车辆在当前时刻的位置信息进行预测之前,车辆定位装置被配置为获取车辆在各个历史时刻的第一测量数据和各个历史时刻的第二测量数据;基于量测方程构建第一量测因子节点和第二量测因子节点,第一量测因子节点连接车辆在各个历史时刻的第一测量数据和对应的第一变量节点,第二量测因子节点连接车辆在各个历史时刻的第二测量数据和对应的第二变量节点;将车辆在各个历史时刻的位置信息作为融合变量节点,基于状态方程构建第一状态转移因子节点和第二状态转移因子节点,第一状态转移因子节点连接前后历史时刻的第一变量节点,第二状态转移因子节点连接前后历史时刻的第二变量节点,融合变量节点为对应的第一状态转移因子节点和第二状态转移因子节点进行融合得到;根据第一量测因子节点、第二量测因子节点、第一状态转移因子节点、第二状态转移因子节点、第一变量节点、第二变量节点以及融合变量节点构建因子图模型。In some embodiments, before predicting the position information of the vehicle at the current moment through the factor graph model, the vehicle positioning device is configured to obtain the first measurement data of the vehicle at each historical moment and the second measurement data of each historical moment; construct a first measurement factor node and a second measurement factor node based on the measurement equation, the first measurement factor node connects the first measurement data of the vehicle at each historical moment and the corresponding first variable node, and the second measurement factor node connects the second measurement data of the vehicle at each historical moment and the corresponding second variable node; use the position information of the vehicle at each historical moment as a fusion variable node, and construct a first state transfer factor node and a second state transfer factor node based on the state equation, the first state transfer factor node connects the first variable nodes of the previous and next historical moments, the second state transfer factor node connects the second variable nodes of the previous and next historical moments, and the fusion variable node is obtained by fusing the corresponding first state transfer factor node and the second state transfer factor node; construct a factor graph model according to the first measurement factor node, the second measurement factor node, the first state transfer factor node, the second state transfer factor node, the first variable node, the second variable node and the fusion variable node.
在一些实施例中,预测模块603被配置为通过第一量测因子节点、第一状态转移因子节点以及前一时刻的车辆第一状态量对当前时刻对应的第一位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第一状态预测量;通过第二量测因子节点、第二状态转移因子节点以及前一时刻的车辆第二状态量对当前时刻对应的第二位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第二状态预测量;基于当前时刻对应的关于惯性测量单元的车辆第一状态预测量和当前时刻对应的关于超宽带的车辆第二状态预测量进行融合处理,得到车辆在当前时刻的目标位置信息。In some embodiments, the prediction module 603 is configured to calculate and process the first position information corresponding to the current moment through the first measurement factor node, the first state transfer factor node and the first state of the vehicle at the previous moment, and obtain the first state prediction of the vehicle corresponding to the inertial measurement unit at the current moment; calculate and process the second position information corresponding to the current moment through the second measurement factor node, the second state transfer factor node and the second state of the vehicle at the previous moment, and obtain the second state prediction of the vehicle corresponding to the inertial measurement unit at the current moment; perform fusion processing based on the first state prediction of the vehicle corresponding to the inertial measurement unit at the current moment and the second state prediction of the vehicle corresponding to the ultra-wideband at the current moment, and obtain the target position information of the vehicle at the current moment.
在一些实施例中,预测模块603被配置为根据前一时刻的车辆第一状态量和第一状态转移因子节点进行当前时刻车辆第一状态量预测,得到当前时刻车辆的车辆第一初始状态预测量;基于当前时刻车辆的车辆第一初始状态预测量和当前时刻对应的第一位置信息进行误差计算,得到第一损失;根据第一损失对第一量测因子节点进行更新,得到更新后第一量测因子节点;基于前一时刻的车辆第一状态量和当前时刻对应的第一位置信息对第一状态转移因子节点进行更新,得到更新后第一状态转移因子节点;通过更新后第一量测因子节点对当前时刻对应的第一位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第一状态预测量。In some embodiments, the prediction module 603 is configured to predict the first state quantity of the vehicle at the current moment based on the first state quantity of the vehicle at the previous moment and the first state transfer factor node, and obtain the first initial state prediction quantity of the vehicle at the current moment; perform error calculation based on the first initial state prediction quantity of the vehicle at the current moment and the first position information corresponding to the current moment, and obtain the first loss; update the first measurement factor node according to the first loss, and obtain the updated first measurement factor node; update the first state transfer factor node based on the first state quantity of the vehicle at the previous moment and the first position information corresponding to the current moment, and obtain the updated first state transfer factor node; calculate and process the first position information corresponding to the current moment through the updated first measurement factor node, and obtain the first state prediction quantity of the vehicle corresponding to the inertial measurement unit at the current moment.
在一些实施例中,预测模块603被配置为根据前一时刻的车辆第二状态量和第二状态转移因子节点进行当前时刻车辆第二状态量预测,得到当前时刻车辆的车辆第二初始状态预测量;基于当前时刻车辆的车辆第二初始状态预测量和当前时刻对应的第二位置信息进行误差计算,得到第二损失;根据第二损失对第二量测因子节点进行更新,得到更新后第二量测因子节点;基于前一时刻的车辆第二状态量和当前时刻对应的第二位置信息对第二状态转移因子节点进行更新,得到更新后第二状态转移因子节点;通过更新后第二量测因子节点对当前时刻对应的第二位置信息进行计算处理,得到当前时刻对应的关于惯性测量单元的车辆第二状态预测量。In some embodiments, the prediction module 603 is configured to predict the second state quantity of the vehicle at the current moment based on the second state quantity of the vehicle at the previous moment and the second state transfer factor node, and obtain the vehicle second initial state prediction quantity of the vehicle at the current moment; perform error calculation based on the vehicle second initial state prediction quantity of the vehicle at the current moment and the second position information corresponding to the current moment, and obtain the second loss; update the second measurement factor node according to the second loss, and obtain an updated second measurement factor node; update the second state transfer factor node based on the second state quantity of the vehicle at the previous moment and the second position information corresponding to the current moment, and obtain an updated second state transfer factor node; calculate and process the second position information corresponding to the current moment through the updated second measurement factor node, and obtain the vehicle second state prediction quantity corresponding to the inertial measurement unit at the current moment.
在一些实施例中,车辆速度信息包括当前时刻的加速度和当前时刻的角速度,计算模块602被配置为对当前时刻的加速度进行积分,得到车辆的位移;对当前时刻的角速度进行积分,得到车辆的转向信息;基于车辆的位移和车辆的转向信息,得到车辆在当前时刻对应的第一位置信息。In some embodiments, the vehicle speed information includes the acceleration at the current moment and the angular velocity at the current moment. The calculation module 602 is configured to integrate the acceleration at the current moment to obtain the displacement of the vehicle; integrate the angular velocity at the current moment to obtain the steering information of the vehicle; based on the displacement of the vehicle and the steering information of the vehicle, obtain the first position information corresponding to the vehicle at the current moment.
在一些实施例中,状态方程包括惯性测量单元状态方程和超宽带状态方程,车辆定位装置被配置为对车辆的相邻时刻的第一状态量进行高斯分布,得到第一高斯分布结果;基于第一高斯分布结果和惯性测量单元状态方程构建第一状态转移因子节点,第一状态转移因子节点表示从一个时刻到下一个时刻状态转移的概率分布;对车辆的相邻时刻的第二状态量进行高斯分布,得到第二高斯分布结果;基于第二高斯分布结果和超宽带状态方程构建第二状态转移因子节点,第二状态转移因子节点表示从一个时刻到下一个时刻状态转移的概率分布。In some embodiments, the state equation includes an inertial measurement unit state equation and an ultra-wideband state equation, and the vehicle positioning device is configured to perform Gaussian distribution on the first state quantity of the vehicle at adjacent moments to obtain a first Gaussian distribution result; construct a first state transfer factor node based on the first Gaussian distribution result and the inertial measurement unit state equation, and the first state transfer factor node represents the probability distribution of state transfer from one moment to the next moment; perform Gaussian distribution on the second state quantity of the vehicle at adjacent moments to obtain a second Gaussian distribution result; construct a second state transfer factor node based on the second Gaussian distribution result and the ultra-wideband state equation, and the second state transfer factor node represents the probability distribution of state transfer from one moment to the next moment.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
图7是本申请实施例提供的电子设备7的示意图。如图7所示,该实施例的电子设备7包括:处理器701、存储器702以及存储在该存储器702中并且可在处理器701上运行的计算机程序703。处理器701执行计算机程序703时实现上述各个方法实施例中的步骤。或者,处理器701执行计算机程序703时实现上述各装置实施例中各模块/单元的功能。FIG7 is a schematic diagram of an electronic device 7 provided in an embodiment of the present application. As shown in FIG7 , the electronic device 7 of this embodiment includes: a processor 701, a memory 702, and a computer program 703 stored in the memory 702 and executable on the processor 701. When the processor 701 executes the computer program 703, the steps in the above-mentioned various method embodiments are implemented. Alternatively, when the processor 701 executes the computer program 703, the functions of each module/unit in the above-mentioned various device embodiments are implemented.
电子设备7可以是桌上型计算机、笔记本、掌上电脑及云端服务器等电子设备。电子设备7可以包括但不仅限于处理器701和存储器702。本领域技术人员可以理解,图7仅仅是电子设备7的示例,并不构成对电子设备7的限定,可以包括比图示更多或更少的部件,或者不同的部件。The electronic device 7 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 7 may include, but is not limited to, a processor 701 and a memory 702. Those skilled in the art will appreciate that FIG. 7 is merely an example of the electronic device 7 and does not limit the electronic device 7, and may include more or fewer components than shown in the figure, or different components.
处理器701可以是中央处理单元(Central Processing Unit,CPU),也可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。The processor 701 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
存储器702可以是电子设备7的内部存储单元,例如,电子设备7的硬盘或内存。存储器702也可以是电子设备7的外部存储设备,例如,电子设备7上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。存储器702还可以既包括电子设备7的内部存储单元也包括外部存储设备。存储器702用于存储计算机程序以及电子设备所需的其它程序和数据。The memory 702 may be an internal storage unit of the electronic device 7, for example, a hard disk or memory of the electronic device 7. The memory 702 may also be an external storage device of the electronic device 7, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 7. The memory 702 may also include both an internal storage unit and an external storage device of the electronic device 7. The memory 702 is used to store computer programs and other programs and data required by the electronic device.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读存储介质(例如计算机可读存储介质)中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可以存储在计算机可读存储介质中,该计算机程序在被处理器执行时,可以实现上述各个方法实施例的步骤。计算机程序可以包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读存储介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random AccessMemory,RAM)、电载波信号、电信信号以及软件分发介质等。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium (e.g., a computer-readable storage medium). Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable storage media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410362990.7A CN118191891B (en) | 2024-03-28 | 2024-03-28 | Vehicle positioning method, device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410362990.7A CN118191891B (en) | 2024-03-28 | 2024-03-28 | Vehicle positioning method, device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118191891A true CN118191891A (en) | 2024-06-14 |
CN118191891B CN118191891B (en) | 2024-09-06 |
Family
ID=91392490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410362990.7A Active CN118191891B (en) | 2024-03-28 | 2024-03-28 | Vehicle positioning method, device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118191891B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114323034A (en) * | 2022-01-10 | 2022-04-12 | 北京科技大学 | A Confidence Propagation-Based Multi-vehicle Co-location Method in Satellite-Shaded Environments |
CN116182849A (en) * | 2023-02-24 | 2023-05-30 | 中国矿业大学 | Underground mobile equipment positioning method based on ultra-wideband and inertial unit fusion |
CN116878510A (en) * | 2023-06-14 | 2023-10-13 | 北京信息科技大学 | Multi-source fusion indoor positioning method, device and system based on factor graph optimization |
CN117232518A (en) * | 2023-09-01 | 2023-12-15 | 中国电信股份有限公司技术创新中心 | Factor graph model-based positioning method and device, electronic equipment and medium |
CN117687059A (en) * | 2023-12-12 | 2024-03-12 | 重庆九洲星熠导航设备有限公司 | Vehicle positioning method and device, electronic equipment and storage medium |
-
2024
- 2024-03-28 CN CN202410362990.7A patent/CN118191891B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114323034A (en) * | 2022-01-10 | 2022-04-12 | 北京科技大学 | A Confidence Propagation-Based Multi-vehicle Co-location Method in Satellite-Shaded Environments |
CN116182849A (en) * | 2023-02-24 | 2023-05-30 | 中国矿业大学 | Underground mobile equipment positioning method based on ultra-wideband and inertial unit fusion |
CN116878510A (en) * | 2023-06-14 | 2023-10-13 | 北京信息科技大学 | Multi-source fusion indoor positioning method, device and system based on factor graph optimization |
CN117232518A (en) * | 2023-09-01 | 2023-12-15 | 中国电信股份有限公司技术创新中心 | Factor graph model-based positioning method and device, electronic equipment and medium |
CN117687059A (en) * | 2023-12-12 | 2024-03-12 | 重庆九洲星熠导航设备有限公司 | Vehicle positioning method and device, electronic equipment and storage medium |
Non-Patent Citations (3)
Title |
---|
RAN WANG, ET AL: "Cooperative Localization and Mapping Based on UWB/IMU Fusion Using Factor Graphs", 《IEEE SENSORS JOURNAL》, 3 October 2023 (2023-10-03), pages 21931 - 21940, XP011975802, DOI: 10.1109/JSEN.2023.3316278 * |
周雅婧等: "因子图发展及其在定位与导航的应用技术", 《全球定位系统》, 29 February 2020 (2020-02-29), pages 1 - 11 * |
孔鑫: "GNSS拒止环境下基于UW...MU的车辆融合定位技术研究", 《中国优秀硕士学位论文全文数据库 工程科技II辑》, 15 January 2024 (2024-01-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN118191891B (en) | 2024-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Scholte et al. | A nonlinear set‐membership filter for on‐line applications | |
EP4492009A1 (en) | Vehicle positioning method and apparatus, computer device and storage medium | |
CN114061611B (en) | Target object positioning method, device, storage medium and computer program product | |
CN112985391B (en) | Multi-unmanned aerial vehicle collaborative navigation method and device based on inertia and binocular vision | |
CN112462326B (en) | A method, device, electronic device and storage medium for determining location information | |
CN118608435A (en) | Point cloud dedistortion method, device, electronic device and readable storage medium | |
Jin et al. | A cooperative vehicle localization and trajectory prediction framework based on belief propagation and transformer model | |
CN113310505A (en) | External parameter calibration method and device of sensor system and electronic equipment | |
CN116972834A (en) | Multi-sensor fusion positioning method, device, system and storage medium | |
CN116448111A (en) | Pedestrian indoor navigation method, device and medium based on multi-source information fusion | |
CN114021996A (en) | Vehicle scheduling strategy evaluation method and device, electronic equipment and storage medium | |
CN112987010B (en) | System and method for multi-radar mapping of robot | |
CN114063110A (en) | Vehicle positioning method, device, electronic device and storage medium | |
CN118191891A (en) | Vehicle positioning method, device, electronic device and readable storage medium | |
CN109951855B (en) | Positioning method and device using non-line-of-sight state space correlation | |
CN112034713A (en) | Optimal state estimation method and system for moving target in non-ideal network environment | |
CN112285697A (en) | Multi-sensor multi-target space-time deviation calibration and fusion method | |
CN106885567A (en) | A kind of inertial navigation Cooperative Localization Method and location equipment | |
CN117288178A (en) | Map construction method, device, computer equipment and storage medium | |
CN116929343A (en) | Pose estimation method, related equipment and storage medium | |
Schubert et al. | The role of multisensor environmental perception for automated driving | |
US20100289699A1 (en) | Method and Apparatus for Determining a Position of a Mobile Station in a Wireless Communication System | |
KR102519496B1 (en) | Method and apparatus for calibrating forward axis of vehicle accelerometer | |
CN112147659B (en) | Differential Doppler positioning method, device, equipment and medium for space-based opportunistic signal | |
CN114719857B (en) | Gaussian aggregation filtering collaborative positioning tracking method based on constrained particle flow |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |