CN116772835A - Indoor positioning method and system based on inertial navigation and UWB sensor network - Google Patents
Indoor positioning method and system based on inertial navigation and UWB sensor network Download PDFInfo
- Publication number
- CN116772835A CN116772835A CN202310736682.1A CN202310736682A CN116772835A CN 116772835 A CN116772835 A CN 116772835A CN 202310736682 A CN202310736682 A CN 202310736682A CN 116772835 A CN116772835 A CN 116772835A
- Authority
- CN
- China
- Prior art keywords
- target
- inertial navigation
- sensor
- positioning
- uwb
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 239000002245 particle Substances 0.000 claims abstract description 46
- 238000005457 optimization Methods 0.000 claims abstract description 40
- 238000005259 measurement Methods 0.000 claims abstract description 35
- 238000001914 filtration Methods 0.000 claims abstract description 16
- 230000008447 perception Effects 0.000 claims abstract description 15
- 230000006870 function Effects 0.000 claims abstract description 3
- 230000004927 fusion Effects 0.000 claims description 34
- 230000013016 learning Effects 0.000 claims description 17
- 230000001133 acceleration Effects 0.000 claims description 5
- 238000003860 storage Methods 0.000 claims description 5
- 238000010276 construction Methods 0.000 claims 1
- 238000004364 calculation method Methods 0.000 description 13
- 230000000694 effects Effects 0.000 description 11
- 238000001514 detection method Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 9
- 238000002474 experimental method Methods 0.000 description 7
- 239000011159 matrix material Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000033001 locomotion Effects 0.000 description 6
- 238000009826 distribution Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000000052 comparative effect Effects 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000035772 mutation Effects 0.000 description 1
- 230000009326 social learning Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000009827 uniform distribution Methods 0.000 description 1
Classifications
-
- 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/0258—Hybrid positioning by combining or switching between measurements derived from different systems
- G01S5/02585—Hybrid positioning by combining or switching between measurements derived from different systems at least one of the measurements being a non-radio measurement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Biophysics (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Automation & Control Theory (AREA)
- Navigation (AREA)
Abstract
Description
技术领域Technical field
本发明涉及室内定位技术领域,尤其涉及一种基于惯性导航和UWB传感器网络的室内定位方法及系统。The present invention relates to the technical field of indoor positioning, and in particular to an indoor positioning method and system based on inertial navigation and UWB sensor network.
背景技术Background technique
定位技术用于在环境中获取目标(人员、设备或其他物体)的位置信息,且不同的场合对定位技术具有不同的需求。全球定位系统(Global Positioning System,GPS)和北斗卫星导航系统(Beidou Navigation Satellite System,BDS)等系统是当前主流的全球定位系统,由于卫星信号可在空旷的室外空间无障碍传播,因此这类定位系统能够在室外提供高质量定位服务,但在室内环境下由于墙壁和障碍物的遮挡,卫星信号将受到干扰无法进行精确定位,因此GPS、BDS等并不适用于密闭环境定位。此外,相比于室外定位,密闭空间内由于墙壁、人和设备等对信号的遮挡或反射,更易导致多径效应和延迟问题,进而增大定位难度,且室内其他无线信号干扰源也可能影响定位传感器的信号传播。而随着移动机器人在生活生产中的不断扩展应用,目前对室内环境定位技术的需求逐渐增大。Positioning technology is used to obtain location information of targets (people, equipment or other objects) in the environment, and different occasions have different requirements for positioning technology. Systems such as the Global Positioning System (GPS) and the Beidou Navigation Satellite System (BDS) are currently the mainstream global positioning systems. Since satellite signals can be transmitted without obstacles in open outdoor spaces, this type of positioning The system can provide high-quality positioning services outdoors, but in indoor environments due to the obstruction of walls and obstacles, satellite signals will be interfered with and cannot be accurately positioned. Therefore, GPS, BDS, etc. are not suitable for positioning in closed environments. In addition, compared with outdoor positioning, the obstruction or reflection of signals by walls, people and equipment in a confined space is more likely to cause multipath effects and delay problems, thereby increasing the difficulty of positioning, and other indoor wireless signal interference sources may also affect Signal propagation of positioning sensors. With the continuous expansion of mobile robots in daily life and production, the demand for indoor environment positioning technology is gradually increasing.
近年来,随着无线定位技术的普及,超宽带(Ultra Wide Band,UWB)定位方案受到广泛重视,并用于解决室内环境下由于墙壁和障碍物的遮挡,卫星信号受到干扰而无法进行精确定位的问题。UWB技术是一种无线通讯技术,利用亚纳秒级脉冲进行数据传输,受多径效应的影响程度较低,具有较高的抗干扰能力、安全性和传输速率且成本较低。UWB早期主要用于雷达搜索和无线安全通讯等军事领域,近年在室内定位领域展现其优越性。但是,在实际定位过程中,虽然UWB设备自身硬件条件能够在一定程度上提升定位精度,但是室内环境中的障碍物对信号的遮挡仍会降低系统的定位精度。此外,将UWB作为唯一的定位方法进行定位时,由于环境因素(未知动态障碍物等)的影响,定位结果仍具有一定的波动性、稳定性较低,其工作性能无法满足实际室内定位的需求。即,以UWB定位方案这一单一定位方案进行室内定位的可靠性和稳定性仍然不高,无法应对复杂多变的现实环境。In recent years, with the popularization of wireless positioning technology, Ultra Wide Band (UWB) positioning solutions have received widespread attention and are used to solve the problem of inability to perform precise positioning due to interference with satellite signals due to obstruction by walls and obstacles in indoor environments. question. UWB technology is a wireless communication technology that uses sub-nanosecond pulses for data transmission. It is less affected by multipath effects, has high anti-interference capabilities, security, transmission rate and low cost. In the early days, UWB was mainly used in military fields such as radar search and wireless security communications. In recent years, it has demonstrated its superiority in the field of indoor positioning. However, in the actual positioning process, although the hardware conditions of the UWB device can improve the positioning accuracy to a certain extent, the obstruction of the signal by obstacles in the indoor environment will still reduce the positioning accuracy of the system. In addition, when using UWB as the only positioning method, due to the influence of environmental factors (unknown dynamic obstacles, etc.), the positioning results still have a certain degree of volatility and low stability, and its working performance cannot meet the needs of actual indoor positioning. . That is, the reliability and stability of indoor positioning using a single positioning solution, the UWB positioning solution, are still not high and cannot cope with complex and changeable real-world environments.
通过合理的传感器部署方案可以降低UWB定位网络的部署成本,同时在一定程度上解决室内障碍物对无线信号的遮挡问题,进而提升传感器网络服务质量和定位精度。无线传感器网络(Wireless Sensor Network,WSN)部署优化方法可分为三类:基于虚拟力的算法、基于计算几何的算法和基于智能优化的算法。由于传感器部署优化问题解决方案的优劣与优化算法的性能和优化问题模型息息相关,因此如何设计合理的问题模型和改善优化算法是改善定位系统质量的关键与难点之一。A reasonable sensor deployment solution can reduce the deployment cost of the UWB positioning network, and at the same time solve the problem of indoor obstacles blocking wireless signals to a certain extent, thereby improving the sensor network service quality and positioning accuracy. Wireless Sensor Network (WSN) deployment optimization methods can be divided into three categories: virtual force-based algorithms, computational geometry-based algorithms and intelligent optimization-based algorithms. Since the solution to the sensor deployment optimization problem is closely related to the performance of the optimization algorithm and the optimization problem model, how to design a reasonable problem model and improve the optimization algorithm is one of the keys and difficulties in improving the quality of the positioning system.
此外,现有技术提出了多种通过融合定位在一定程度上提升定位网络稳定性的方案,如提出一种基于UWB和惯性测量单元的紧组合定位方法,首先利用机器人与UWB各基站的实际距离与测量距离训练最小二乘支持向量机模型,然后通过该模型修正机器人运动过程中UWB各基站的距离实测值以降低非视距误差对最终定位精度的影响,最后利用基于误差状态的卡尔曼滤波对修正后的测距值与惯性导航系统解算的距离信息进行组合,该组合定位系统提升矿井环境下机器人的定位精度;提出一种改进粒子滤波方法,并应用于UWB和惯性导航系统的融合定位,该方法首先引入自适应最优加权融合算法的最小方差估计理论对粒子分布权重进行调整,然后设置阈值用于限制观测方差以避免观测方差发散,最后利用经粒子滤波后的均方根误差求得各传感器的最优加权因子,有效提高车辆导航的定位精度;提出用于井下采煤机定位的基于无迹卡尔曼滤波的融合定位方法,利用UWB系统的数据作为观测量,建立了惯性导航与UWB融合定位模型,并利用VB-UKF自适应滤波算法对结果进行平滑处理,实现了惯性导航测量误差实时补偿;针对在非视距环境下UWB定位精度降低的问题,提出基于扩展卡尔曼滤波的融合定位方法,利用惯性测量单元受非视距环境中障碍物影响较小的特点,将其与UWB组合以克服单一定位技术的局限性等。因此,为了避免单一定位方案的可靠性和稳定性较差的问题,如何实现融合定位是提高室内定位精度的另一关键和难题之一。In addition, the existing technology has proposed a variety of solutions to improve the stability of the positioning network to a certain extent through fused positioning. For example, a tight combination positioning method based on UWB and inertial measurement units is proposed. First, the actual distance between the robot and each UWB base station is used. Train a least squares support vector machine model with the measured distance, and then use this model to correct the measured distance values of UWB base stations during the robot's movement to reduce the impact of non-line-of-sight errors on the final positioning accuracy. Finally, the Kalman filter based on the error state is used The corrected ranging value is combined with the distance information calculated by the inertial navigation system. The combined positioning system improves the positioning accuracy of the robot in the mine environment. An improved particle filter method is proposed and applied to the fusion of UWB and inertial navigation systems. Positioning, this method first introduces the minimum variance estimation theory of the adaptive optimal weighted fusion algorithm to adjust the particle distribution weight, then sets a threshold to limit the observation variance to avoid the observation variance divergence, and finally uses the root mean square error after particle filtering The optimal weighting factor of each sensor is obtained to effectively improve the positioning accuracy of vehicle navigation; a fusion positioning method based on unscented Kalman filter is proposed for underground shearer positioning, using the data of the UWB system as an observation quantity, and establishing an inertial The navigation and UWB fusion positioning model is used, and the VB-UKF adaptive filtering algorithm is used to smooth the results to achieve real-time compensation of inertial navigation measurement errors. To address the problem of reduced UWB positioning accuracy in non-line-of-sight environments, an extended Kalman-based The filtered fusion positioning method utilizes the characteristics of the inertial measurement unit that is less affected by obstacles in the non-line-of-sight environment, and combines it with UWB to overcome the limitations of a single positioning technology. Therefore, in order to avoid the problems of poor reliability and stability of a single positioning solution, how to achieve fusion positioning is another key and one of the difficult problems to improve indoor positioning accuracy.
发明内容Contents of the invention
为解决上述现有技术的不足,本发明提供了一种基于惯性导航和UWB传感器网络的室内定位方法及系统,适用于密闭空间中的定位,利用改进粒子群优化算法获取合理的UWB传感器部署方案,通过提前部署降低已知静态障碍物对系统定位精度的影响,并进一步提升定位网络的精度和稳定性,之后利用误差卡尔曼滤波融合UWB定位网络的位置数据和惯导系统解算的位置数据,解决单一传感器定位精度和稳定性不足的问题,实现高精度、高稳定性的密闭环境定位。In order to solve the above-mentioned shortcomings of the existing technology, the present invention provides an indoor positioning method and system based on inertial navigation and UWB sensor network, which is suitable for positioning in a confined space and uses an improved particle swarm optimization algorithm to obtain a reasonable UWB sensor deployment plan. , reduce the impact of known static obstacles on the system positioning accuracy through early deployment, and further improve the accuracy and stability of the positioning network, and then use error Kalman filtering to fuse the position data of the UWB positioning network and the position data solved by the inertial navigation system , solve the problem of insufficient positioning accuracy and stability of a single sensor, and achieve high-precision and high-stability closed environment positioning.
第一方面,本公开提供了一种基于惯性导航和UWB传感器网络的室内定位方法。In a first aspect, the present disclosure provides an indoor positioning method based on inertial navigation and UWB sensor network.
一种基于惯性导航和UWB传感器网络的室内定位方法,包括:An indoor positioning method based on inertial navigation and UWB sensor network, including:
获取传感器测量得到的距离值和真实距离值,确定传感器的感知半径和可靠性参数,进而构建得到传感器的传感器感知模型;Obtain the distance value and real distance value measured by the sensor, determine the sensing radius and reliability parameters of the sensor, and then construct the sensor sensing model of the sensor;
基于目标空间中多个传感器的传感器感知模型,以覆盖率为优化目标,利用改进的粒子群优化算法进行优化求解,获得多个传感器在目标空间的部署方案;Based on the sensor sensing model of multiple sensors in the target space, with coverage as the optimization goal, the improved particle swarm optimization algorithm is used for optimization and solution, and the deployment plan of multiple sensors in the target space is obtained;
根据部署方案在目标空间中部署多个传感器,获取待测目标的UWB定位数据,并通过惯性测量获取待测目标的惯导定位数据,利用误差卡尔曼滤波对UWB定位数据和惯导定位数据进行融合,得到待测目标的融合定位结果。Deploy multiple sensors in the target space according to the deployment plan, obtain the UWB positioning data of the target to be measured, obtain the inertial navigation positioning data of the target to be measured through inertial measurement, and use error Kalman filtering to perform the UWB positioning data and inertial navigation positioning data. Fusion to obtain the fusion positioning result of the target to be measured.
第二方面,本公开提供了一种基于惯性导航和UWB传感器网络的室内定位系统。In a second aspect, the present disclosure provides an indoor positioning system based on inertial navigation and UWB sensor network.
一种基于惯性导航和UWB传感器网络的室内定位系统,包括:An indoor positioning system based on inertial navigation and UWB sensor network, including:
传感器感知模型构建模块,用于获取传感器测量得到的距离值和真实距离值,确定传感器的感知半径和可靠性参数,进而构建得到传感器的传感器感知模型;The sensor perception model building module is used to obtain the distance value and the real distance value measured by the sensor, determine the sensing radius and reliability parameters of the sensor, and then construct the sensor perception model of the sensor;
传感器部署方案求解模块,用于基于目标空间中多个传感器的传感器感知模型,以覆盖率为优化目标,利用改进的粒子群优化算法进行优化求解,获得多个传感器在目标空间的部署方案;The sensor deployment solution module is used to solve the sensor perception model based on multiple sensors in the target space. It uses the coverage rate as the optimization goal and uses the improved particle swarm optimization algorithm to optimize and solve to obtain the deployment plan of multiple sensors in the target space;
融合定位结果获取模块,用于根据部署方案在目标空间中部署多个传感器,获取待测目标的UWB定位数据,并通过惯性测量获取待测目标的惯导定位数据,利用误差卡尔曼滤波对UWB定位数据和惯导定位数据进行融合,得到待测目标的融合定位结果。The fusion positioning result acquisition module is used to deploy multiple sensors in the target space according to the deployment plan, obtain the UWB positioning data of the target to be measured, and obtain the inertial navigation positioning data of the target to be measured through inertial measurement, and use error Kalman filtering to perform UWB The positioning data and inertial navigation positioning data are fused to obtain the fusion positioning result of the target to be measured.
第三方面,本公开还提供了一种电子设备,包括存储器和处理器以及存储在存储器上并在处理器上运行的计算机指令,所述计算机指令被处理器运行时,完成第一方面所述方法的步骤。In a third aspect, the present disclosure also provides an electronic device, including a memory, a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the computer instructions in the first aspect are completed. Method steps.
第四方面,本公开还提供了一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时,完成第一方面所述方法的步骤。In a fourth aspect, the present disclosure also provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the steps of the method described in the first aspect are completed.
以上一个或多个技术方案存在以下有益效果:One or more of the above technical solutions have the following beneficial effects:
1、本发明提供了一种基于惯性导航和UWB传感器网络的室内定位方法及系统,适用于密闭空间中的定位,优化部署无线传感器网络来降低已知静态障碍物对无线信号遮挡进而对系统定位精度所产生的影响,提升传感器网络服务质量和定位精度,并降低定位传感器网络的部署成本。1. The present invention provides an indoor positioning method and system based on inertial navigation and UWB sensor network, which is suitable for positioning in confined spaces and optimizes the deployment of wireless sensor networks to reduce the obstruction of wireless signals by known static obstacles and thereby position the system. The impact of accuracy can improve the service quality and positioning accuracy of sensor networks, and reduce the deployment cost of positioning sensor networks.
2、本发明利用误差卡尔曼滤波融合UWB定位网络的位置数据和惯导系统解算的位置数据,解决单一传感器定位精度和稳定性不足的问题,实现高精度、高稳定性的密闭环境定位。2. The present invention uses error Kalman filtering to fuse the position data of the UWB positioning network and the position data solved by the inertial navigation system to solve the problem of insufficient positioning accuracy and stability of a single sensor and achieve high-precision and high-stability closed environment positioning.
附图说明Description of drawings
构成本发明的一部分的说明书附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。The description and drawings that constitute a part of the present invention are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention.
图1为本发明实施例中统计感知模型的示意图;Figure 1 is a schematic diagram of a statistical perception model in an embodiment of the present invention;
图2为本发明实施例中UWB传感器测量精度与距离的关系示意图;Figure 2 is a schematic diagram of the relationship between UWB sensor measurement accuracy and distance in the embodiment of the present invention;
图3为本发明实施例中利用改进的粒子群算法IPSO-VF进行优化求解的流程图;Figure 3 is a flow chart for optimization and solution using the improved particle swarm algorithm IPSO-VF in the embodiment of the present invention;
图4为本发明实施例中融合定位的流程图;Figure 4 is a flow chart of fusion positioning in an embodiment of the present invention;
图5为本发明实施例中初始随机部署UWB传感器的覆盖效果图;Figure 5 is a coverage effect diagram of the initial random deployment of UWB sensors in the embodiment of the present invention;
图6为本发明实施例中四种不同算法在不同传感器密度下的最终覆盖率结果示意图;Figure 6 is a schematic diagram of the final coverage results of four different algorithms under different sensor densities in the embodiment of the present invention;
图7为本发明实施例中经四种不同算法部署UWB传感器优化后的覆盖效果图;Figure 7 is a coverage effect diagram after the UWB sensor is deployed and optimized by four different algorithms in the embodiment of the present invention;
图8为本发明实施例中融合定位的实验轨迹示意图。Figure 8 is a schematic diagram of the experimental trajectory of fusion positioning in the embodiment of the present invention.
具体实施方式Detailed ways
应该指出,以下详细说明都是示例性的,旨在对本发明提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本发明所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the present invention. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本发明的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terms used herein are for the purpose of describing specific embodiments only, and are not intended to limit the exemplary embodiments according to the present invention. As used herein, the singular forms are also intended to include the plural forms unless the context clearly indicates otherwise. Furthermore, it will be understood that when the terms "comprises" and/or "includes" are used in this specification, they indicate There are features, steps, operations, means, components and/or combinations thereof.
实施例一Embodiment 1
本实施例提供了一种基于惯性导航和UWB传感器网络的室内定位方法,利用改进的粒子群优化算法获取合理的UWB无线传感器部署方案,通过提前优化部署无线传感器网络来降低已知静态障碍物对无线信号遮挡进而对系统定位精度所产生的影响,提升传感器网络服务质量和定位精度,并降低定位传感器网络的部署成本;利用误差误差卡尔曼滤波对UWB定位网络的位置数据和惯导系统解算的位置数据进行融合,解决单一传感器定位精度和稳定性不足的问题,实现高精度、高稳定性的密闭环境(室内)的定位。This embodiment provides an indoor positioning method based on inertial navigation and UWB sensor network, using an improved particle swarm optimization algorithm to obtain a reasonable UWB wireless sensor deployment plan, and optimizing the deployment of wireless sensor networks in advance to reduce known static obstacles. The impact of wireless signal obstruction on system positioning accuracy improves sensor network service quality and positioning accuracy, and reduces the deployment cost of positioning sensor networks; the error Kalman filter is used to calculate the position data of UWB positioning network and inertial navigation system The location data is fused to solve the problem of insufficient positioning accuracy and stability of a single sensor and achieve high-precision and high-stability positioning in a closed environment (indoor).
本实施例所提出的基于惯性导航和UWB传感器网络的室内定位方法,包括以下步骤:The indoor positioning method based on inertial navigation and UWB sensor network proposed in this embodiment includes the following steps:
步骤S1、获取传感器测量得到的距离值和真实距离值,确定传感器的感知半径和可靠性参数,进而构建得到传感器的传感器感知模型;Step S1: Obtain the distance value and the real distance value measured by the sensor, determine the sensing radius and reliability parameters of the sensor, and then construct a sensor sensing model of the sensor;
步骤S2、基于目标空间中多个传感器的传感器感知模型,以覆盖率为优化目标,利用改进的粒子群优化算法进行优化求解,获得多个传感器在目标空间的部署方案;Step S2: Based on the sensor sensing model of multiple sensors in the target space, use the coverage rate as the optimization goal, use the improved particle swarm optimization algorithm to optimize and solve, and obtain the deployment plan of multiple sensors in the target space;
步骤S3、根据部署方案在目标空间中部署多个传感器,获取待测目标的UWB定位数据,并通过惯性测量获取待测目标的惯导定位数据,利用误差卡尔曼滤波对UWB定位数据和惯导定位数据进行融合,得到待测目标的融合定位结果。Step S3: Deploy multiple sensors in the target space according to the deployment plan, obtain the UWB positioning data of the target to be measured, obtain the inertial navigation positioning data of the target to be measured through inertial measurement, and use error Kalman filtering to compare the UWB positioning data and inertial navigation data. The positioning data is fused to obtain the fusion positioning result of the target to be measured.
通过下述内容进一步介绍本实施例上述基于惯性导航和UWB传感器网络的室内定位方法的实现。The following content further introduces the implementation of the indoor positioning method based on inertial navigation and UWB sensor network in this embodiment.
步骤S1中,首先,考虑到现实环境中,传感器的感知能力会受到其他节点的干扰,且数据采集的精确度和距离呈现非线性关系,因此本实施例采用更贴近实际的统计感知模型作为传感器的传感器感知模型,如图1所示。其中,R是传感器的感知半径,r是测量可靠性参数(r<R)。该模型中,待测点T被传感器N检测到的概率计算公式为:In step S1, first of all, considering that in the real environment, the sensor's sensing ability will be interfered by other nodes, and the accuracy of data collection and distance show a non-linear relationship, therefore this embodiment uses a statistical sensing model that is closer to reality as the sensor. The sensor perception model is shown in Figure 1. Among them, R is the sensing radius of the sensor, and r is the measurement reliability parameter (r<R). In this model, the probability calculation formula of the point T to be measured being detected by the sensor N is:
β1=r-R+dN,T (2)β 1 =r-R+d N,T (2)
β2=r+R-dN,T (3)β 2 =r+Rd N,T (3)
其中,dN,T是传感器N和待测点T之间的欧氏距离,R是传感器的感知半径,r是测量可靠性参数,α1、α2、δ1和δ2是测量参数。Among them, d N,T is the Euclidean distance between sensor N and the point to be measured T, R is the sensing radius of the sensor, r is the measurement reliability parameter, α 1 , α 2 , δ 1 and δ 2 are the measurement parameters.
其次,由于传感器网络部署优化效果与实际传感器感知模型息息相关,为了使感知模型更接近实际,本实施例利用测量精度公式确定传感器感知半径R和可靠性参数r,公式如下:Secondly, since the optimization effect of sensor network deployment is closely related to the actual sensor sensing model, in order to make the sensing model closer to reality, this embodiment uses the measurement accuracy formula to determine the sensor sensing radius R and reliability parameter r. The formula is as follows:
其中,dism和disr分别为UWB传感器测量得到的距离值和真实距离值(单位为厘米)。Among them, dis m and dis r are the distance value and the real distance value measured by the UWB sensor respectively (unit: centimeters).
具体的,通过下述方式计算确定传感器的感知半径和可靠性参数。预设一个定位基站和一个定位标签,调整两者间距,测量并记录实际测量距离,测试范围为0m~7.2m。此外,为了避免结果的偶然性,一共进行多次(本实施例采用20轮)独立测试,实验结果的平均值如图2和下表1所示。Specifically, the sensing radius and reliability parameters of the sensor are calculated and determined in the following manner. Preset a positioning base station and a positioning tag, adjust the distance between the two, measure and record the actual measurement distance, the test range is 0m ~ 7.2m. In addition, in order to avoid the randomness of the results, a total of multiple independent tests (20 rounds were used in this embodiment) were conducted. The average value of the experimental results is shown in Figure 2 and Table 1 below.
表1UWB传感器平均测量精度Table 1 UWB sensor average measurement accuracy
根据上表1,将传感器感知半径R设为2.5,可靠性参数r设为0.5。根据统计感知模型的定义可知,当待测点与基站传感器的距离d满足d<R-r时,待测点能够被基站传感器以接近100%的准确率感知,对应模型的绝对感知区域;当R-r<d<R+r时,待测点被基站传感器感知的精确度随距离增大而降低,对应模型中的不确定感知区域;当d>R+r时,待测点被基站传感器感知的精确度接近0,对应模型中的不可感知区域。According to Table 1 above, the sensor sensing radius R is set to 2.5 and the reliability parameter r is set to 0.5. According to the definition of the statistical sensing model, when the distance d between the point to be measured and the base station sensor satisfies d<R-r, the point to be measured can be sensed by the base station sensor with an accuracy close to 100%, corresponding to the absolute sensing area of the model; when R-r< When d<R+r, the accuracy with which the point to be measured is perceived by the base station sensor decreases as the distance increases, corresponding to the uncertain sensing area in the model; when d>R+r, the accuracy with which the point to be measured is perceived by the base station sensor The degree is close to 0, corresponding to the imperceptible area in the model.
通过上述方案,确定传感器的感知半径和可靠性参数,进而构建得到传感器的传感器感知模型。Through the above solution, the sensing radius and reliability parameters of the sensor are determined, and then the sensor sensing model of the sensor is constructed.
步骤S2中,为了使改进的粒子群优化算法能够更高效地求解最优传感器定位网络的部署方案,以此提升传感器网络对目标环境的定位精度,本实施例利用覆盖率作为优化目标。假设目标监测区域E是L×W的方形区域,E内随机分布n个传感器节点,记为N={N1,N2,…,Nn},Ni为第i个传感器节点的位置坐标,记为Ni=(x1,y1)。为了方便后续计算,目标监测区域E被分割为l×w=e个待测目标像素点,记为T={T1,T2,…,Te}。覆盖率反映传感器网络对目标监测区域的覆盖效果,定义为被传感器网络覆盖的待测目标像素点和总待测目标像素点数量之比,计算公式如下:In step S2, in order to enable the improved particle swarm optimization algorithm to more efficiently solve the optimal sensor positioning network deployment plan and thereby improve the sensor network's positioning accuracy for the target environment, this embodiment uses coverage as the optimization target. Assume that the target monitoring area E is a square area of L×W, and n sensor nodes are randomly distributed in E, recorded as N = {N 1 , N 2 ,..., N n }, N i is the position coordinate of the i-th sensor node , recorded as N i =(x1,y 1 ). In order to facilitate subsequent calculations, the target monitoring area E is divided into l×w=e target pixel points to be measured, recorded as T={T 1 , T 2 ,..., T e }. The coverage rate reflects the coverage effect of the sensor network on the target monitoring area, and is defined as the ratio of the number of target pixels to be measured covered by the sensor network to the total number of target pixels to be measured. The calculation formula is as follows:
其中,Pcov(N,Ti)是无线传感器网络N对第i个待测目标点Ti的联合检测概率,计算方法如公式(6)和(7)所示:Among them, P cov (N,T i ) is the joint detection probability of the i-th target point T i to be measured by the wireless sensor network N. The calculation method is as shown in formulas (6) and (7):
其中,p(N,Tj)为E区域内所有传感器节点N对Tj的联合检测概率,p(Ni,Tj)为传感器节点Ni对检测目标点Tj的检测概率,该概率基于上述步骤S1确定的传感器感知模型计算得到,计算方法如公式(1)-(3)所示;pth为概率阈值,当p(N,Tj)大于该阈值时,则判定待测目标像素点Tj可被无线传感器网络N有效检测。Among them, p(N,T j ) is the joint detection probability of all sensor nodes N in the E area to T j , p(N i , T j ) is the detection probability of sensor node N i to the detection target point T j . This probability It is calculated based on the sensor sensing model determined in step S1 above. The calculation method is as shown in formulas (1)-(3); p th is the probability threshold. When p (N, T j ) is greater than the threshold, the target to be measured is determined. Pixel point T j can be effectively detected by the wireless sensor network N.
之后,利用改进的粒子群算法进行优化求解,获得多个传感器在目标空间的部署方案。在本实施例中,将改进的粒子群优化算法记为IPSO-VF,IPSO-VF的流程图如图3所示。Afterwards, the improved particle swarm algorithm is used for optimization and solution, and the deployment plan of multiple sensors in the target space is obtained. In this embodiment, the improved particle swarm optimization algorithm is recorded as IPSO-VF, and the flow chart of IPSO-VF is shown in Figure 3.
步骤S2.1、初始化相关参数,即设置优化算法的初始参数,如目标监测区域像素点l、w,传感器数量n,迭代次数K,迭代阈值kth,种群规模M,粒子维数2n,搜索空间的范围[Pmin,Pmax]、粒子速度的范围[Vmin,Vmax]Step S2.1. Initialize relevant parameters, that is, set the initial parameters of the optimization algorithm, such as pixel points l and w in the target monitoring area, number of sensors n, number of iterations K, iteration threshold k th , population size M, particle dimension 2n, search The range of space [P min ,P max ], the range of particle speed [V min ,V max ]
以及最大和最小惯性权重ωmin和ωmax,学习因子最大值cmax。As well as the maximum and minimum inertia weights ω min and ω max , the maximum learning factor c max .
步骤S2.2、初始化所有粒子的位置和速度,初始化公式如下:Step S2.2. Initialize the positions and velocities of all particles. The initialization formula is as follows:
Pi,j=Pmin+(Pmax-Pmin)*Rand (8)P i,j =P min +(P max -P min )*Rand (8)
Vi,j=Vmin+(Vmax-Vmin)*Rand (9)V i,j =V min +(V max -V min )*Rand (9)
式中,Pi,j和Vi,j分别为第i个粒子的第j维的位置分量和速度分量,Rand为是服从U(0,1)标准均匀分布的随机数。In the formula, P i,j and V i,j are the position component and velocity component of the j-th dimension of the i-th particle respectively, and Rand is a random number obeying the U(0,1) standard uniform distribution.
步骤S2.3、计算所有个体的适应度值,更新个体历史最优值BP和种群全局最优值BG,根据S形惯性权重动态更新策略并重新计算惯性权重,公式如下:Step S2.3: Calculate the fitness values of all individuals, update the individual historical optimal value BP and the population global optimal value BG, dynamically update the strategy according to the S-shaped inertia weight and recalculate the inertia weight. The formula is as follows:
其中,o是调整因子,k是当前迭代次数,K是最大迭代次数。该策略可使惯性权重ω在迭代前期维持较大值,使算法获得较高的全局搜索能力,随后在中期迅速下降,最终在迭代后期保持较低值,使算法获得较大的局部搜索能力,更好的平衡算法的全局和局部搜索能力。Among them, o is the adjustment factor, k is the current iteration number, and K is the maximum iteration number. This strategy can keep the inertia weight ω at a large value in the early iteration, allowing the algorithm to obtain a higher global search capability, then decrease rapidly in the mid-term, and finally maintain a low value in the late iteration, allowing the algorithm to obtain a greater local search capability. Better balance the global and local search capabilities of the algorithm.
步骤S2.4、引入随机学习项,更新粒子速度,公式为:Step S2.4. Introduce random learning terms and update the particle speed. The formula is:
其中,Vi,j(k)为第k代第i个粒子的第j维速度分量,ω是惯性权重,c1、c2和c3分别是个体学习因子、社会学习因子和随机学习因子;u1、u2和u3是均匀分布在[0,1]的随机数;BPrand,j代表随机粒子randi的个体历史最优值的第j维分量。Among them, V i,j (k) is the j-th dimensional velocity component of the i-th particle in the k-th generation, ω is the inertia weight, c 1 , c 2 and c 3 are the individual learning factor, social learning factor and random learning factor respectively. ; u 1 , u 2 and u 3 are random numbers uniformly distributed in [0,1]; BP rand,j represents the j-th dimensional component of the individual historical optimal value of random particle randi.
本实施例在粒子群算法原速度更新公式的基础上引入了随机学习项:速度更新时,算法将随机从种群中选取一个粒子randi,然后将randi的个体历史最优值作为第三个学习对象引导种群下一代的搜索,防止算法过早陷入局部最优解。This embodiment introduces a random learning term based on the original speed update formula of the particle swarm algorithm: when updating the speed, the algorithm will randomly select a particle randi from the population, and then use the individual historical optimal value of randi as the third learning object. Guide the search for the next generation of the population to prevent the algorithm from falling into the local optimal solution prematurely.
步骤S2.5、根据迭代次数和迭代阈值进行判断,自适应调整及更新学习因子。若迭代次数k<迭代阈值kth,则学习因子c1、c2和c3的更新公式如下:Step S2.5: Make a judgment based on the number of iterations and the iteration threshold, and adaptively adjust and update the learning factors. If the number of iterations k < iteration threshold k th , then the update formulas of learning factors c 1 , c 2 and c 3 are as follows:
若k≥kth,则学习因子c1、c2和c3的更新公式如下:If k ≥ k th , the update formulas of learning factors c 1 , c 2 and c 3 are as follows:
其中,BG是种群全局历史最优值,BPi和BPrandi分别代表第i个粒子和随机粒子randi的个体历史最优值。Among them, BG is the global historical optimal value of the population, BP i and BP randi represent the individual historical optimal values of the i-th particle and random particle randi respectively.
由式(12)和(13)可知,随机学习引导将在前期被激活,在后期被调整为休眠状态,可使算法在搜索前期实现种群对整个搜索区域充分探索,避免过早陷入由个体历史最优值和全局历史最优值主导的局部解中;在搜索后期,使算法快速地收敛至全局最优值。此外,学习因子将根据学习对象的目标函数值自适应调整,即适应度好的个体对搜索具有更高的领导力,在增加种群多样性的基础上保证个体向更有潜力的区域移动。It can be seen from equations (12) and (13) that random learning guidance will be activated in the early stage and adjusted to a dormant state in the later stage, which can enable the algorithm to fully explore the entire search area by the population in the early stage of search and avoid prematurely falling into the individual history. In the local solution dominated by the optimal value and the global historical optimal value; in the later stage of the search, the algorithm quickly converges to the global optimal value. In addition, the learning factor will be adaptively adjusted according to the objective function value of the learning object, that is, individuals with good fitness will have higher leadership in search, ensuring that individuals move to areas with greater potential on the basis of increasing population diversity.
此外,当迭代次数超过迭代阈值kth,学习对象仅剩全局历史最优值和个体历史最优值,且全局历史最优值是当前搜索到的最优位置且是所有粒子的借鉴对象。因此,全局历史最优值的质量对最终解的精度有较大影响,在搜索后期对全局历史最优值进行适当的扰动,可以更高效地对有潜力区域进行探索。本实施例对全局历史最优值分别采用莱维飞行和柯西变异后保留较优值,公式如下:In addition, when the number of iterations exceeds the iteration threshold k th , the learning object only has the global historical optimal value and the individual historical optimal value, and the global historical optimal value is the optimal position currently searched and is the reference object for all particles. Therefore, the quality of the global historical optimal value has a great impact on the accuracy of the final solution. Appropriate perturbation of the global historical optimal value in the later stage of the search can explore potential areas more efficiently. This embodiment uses Levy flight and Cauchy mutation for the global historical optimal value respectively and then retains the better value. The formula is as follows:
BG(k)={X|max g(X),X∈{BG(k),New1,New2}} (15)BG(k)={X|max g(X),X∈{BG(k),New 1 ,New 2 }} (15)
其中,λ是莱维飞行的步长,x0是柯西变异的位置参数,γ是柯西变异的尺度参数,BGi代表BG的第i维分量。Among them, λ is the step size of Levy flight, x 0 is the position parameter of Cauchy variation, γ is the scale parameter of Cauchy variation, and BG i represents the i-th dimensional component of BG.
步骤S2.6、更新下一代粒子群中各粒子的位置,公式如下:Step S2.6, update the position of each particle in the next generation particle swarm, the formula is as follows:
Pi,j(k)=Pi,j(k-1)+Vi,j(k) (16)P i,j (k)=P i,j (k-1)+V i,j (k) (16)
步骤S2.7、计算传感器节点间的虚拟斥力,计算公式如下:Step S2.7: Calculate the virtual repulsion between sensor nodes. The calculation formula is as follows:
其中,μr是斥力系数,dth是距离阈值,dij是传感器节点Ni与Nj的欧氏距离,θij代表Ni指向Nj的向量与x轴正方向的夹角。Among them, μ r is the repulsion coefficient, d th is the distance threshold, d ij is the Euclidean distance between sensor nodes N i and N j , and θ ij represents the angle between the vector N i pointing to N j and the positive direction of the x-axis.
根据传感器节点间的虚拟斥力,更新经虚拟斥力引导后的粒子群中各粒子的位置。其中,节点Ni受到区域E内所有传感器节点斥力的合力Fi如式(18)所示,Ni因虚拟斥力影响在横纵坐标方向上移动的步长如式(19)所示:According to the virtual repulsion between sensor nodes, the position of each particle in the particle swarm guided by the virtual repulsion is updated. Among them, the resultant force F i of node N i subjected to the repulsion of all sensor nodes in area E is shown in Equation (18), and the step length of N i moving in the horizontal and vertical coordinate directions due to the influence of the virtual repulsion is shown in Equation (19):
其中,Δxi和Δyi分别代表Ni在x轴和y轴方向移动的步长,Fix和Fiy指合力Fi在x轴、y轴的分量,step是最大移动步长。Among them, Δx i and Δy i represent the step length of Ni 's movement in the x-axis and y-axis directions respectively, F ix and F iy refer to the components of the resultant force F i in the x-axis and y-axis directions, and step is the maximum moving step length.
上述方法通过引入了虚拟力算法中虚拟斥力的概念,以避免无线传感器网络(Wireless Sensor Networks,WSN)的传感器节点分布过于密集。其中,传感器被抽象为带电微粒,当节点间距离小于阈值时则产生斥力,传感器节点的距离将产生向外扩展的趋势以避免集中分布。The above method introduces the concept of virtual repulsion in the virtual force algorithm to avoid too dense distribution of sensor nodes in Wireless Sensor Networks (WSN). Among them, the sensor is abstracted as a charged particle. When the distance between nodes is less than a threshold, a repulsive force is generated, and the distance between sensor nodes will tend to expand outward to avoid centralized distribution.
步骤S2.8、判断是否达到最大迭代次数,若满足,则迭代停止,传感器部署方案寻优完成;否则,返回步骤S2.3,进行下一次迭代计算。Step S2.8: Determine whether the maximum number of iterations has been reached. If satisfied, the iterations stop and the sensor deployment plan optimization is completed; otherwise, return to step S2.3 to perform the next iteration calculation.
通过上述方案,输出种群全局最优值及个体适应度值,得到多个传感器在目标空间的部署方案。Through the above scheme, the global optimal value of the population and the individual fitness value are output, and the deployment scheme of multiple sensors in the target space is obtained.
步骤S3中,根据上述步骤S2获取的部署方案在目标空间中部署多个传感器,通过传感器部署优化可以有效改善UWB系统因静态障碍物遮挡信号导致系统定位误差增大的缺点。然而,将UWB作为唯一的定位方法进行定位时,由于环境因素(未知动态障碍物等)的影响,定位结果仍具有一定的波动性,工作性能无法满足实际室内定位的需求。为了降低定位误差和增大系统的定位稳定性,本实施例还利用误差卡尔曼滤波对UWB定位数据和惯导定位数据进行融合。其中,惯导定位数据为通过惯性测量单元获取的数据,惯性测量单元(Inertial Measurement Unit,IMU)是测量物体三轴姿态角(或角速率)以及加速度的装置,通过IMU获取待测目标的惯性测量数据,包括加速度和角速度,再通过惯性导航解算得到待测目标的位置、速度和姿态估计,利用这些数据进行待测目标的状态预测。即利用惯性测量单元所获取的数据计算获得待测目标的名义状态和预测误差状态,以UWB的位置测量信息(即UWB定位数据)为观测值修正预测误差状态,并结合名义状态测算待测目标的真实状态,得到最终的融合定位结果。该融合定位的流程如图4所示。In step S3, multiple sensors are deployed in the target space according to the deployment plan obtained in step S2. Sensor deployment optimization can effectively improve the UWB system's shortcomings of increased system positioning errors due to static obstacles blocking signals. However, when UWB is used as the only positioning method for positioning, due to the influence of environmental factors (unknown dynamic obstacles, etc.), the positioning results still have a certain degree of volatility, and the working performance cannot meet the needs of actual indoor positioning. In order to reduce positioning errors and increase the positioning stability of the system, this embodiment also uses error Kalman filtering to fuse UWB positioning data and inertial navigation positioning data. Among them, the inertial navigation positioning data is the data obtained through the inertial measurement unit. The inertial measurement unit (IMU) is a device that measures the three-axis attitude angle (or angular rate) and acceleration of the object. The inertia of the target to be measured is obtained through the IMU. The measured data, including acceleration and angular velocity, are then solved through inertial navigation to obtain the position, speed and attitude estimates of the target to be measured, and these data are used to predict the state of the target to be measured. That is, the data obtained by the inertial measurement unit are used to calculate the nominal state and prediction error state of the target to be measured, the UWB position measurement information (i.e., UWB positioning data) is used as the observation value to correct the prediction error state, and the nominal state is combined to calculate the target to be measured The real state is obtained to obtain the final fusion positioning result. The process of this fusion positioning is shown in Figure 4.
步骤S3.1、获取待测目标的UWB定位数据,并通过惯性测量单元获取待测目标的惯性测量数据(包括待测目标的加速度和角速度),根据惯性测量数据通过惯性导航解算得到待测目标的惯导定位数据,包括位置、速度、姿态等估计值。进一步的,以待测目标惯导定位数据为待测目标的名义状态。Step S3.1. Obtain the UWB positioning data of the target to be measured, and obtain the inertial measurement data of the target to be measured (including the acceleration and angular velocity of the target to be measured) through the inertial measurement unit. Based on the inertial measurement data, the inertial navigation solution is used to obtain the target to be measured. Inertial navigation positioning data of the target, including estimated values such as position, speed, attitude, etc. Further, the inertial navigation positioning data of the target to be measured is used as the nominal state of the target to be measured.
步骤S3.2、基于待测目标的惯导定位数据,对误差状态进行预测,得到预测误差状态。具体的,误差状态为融合定位系统进行实际操作的状态量,记为误差状态。其中,δpT是位置误差,δvT为速度误差,δθT为姿态误差,/>为陀螺仪漂移偏差,/>为加速度计漂移偏差(陀螺仪偏移偏差和加速度计偏移偏差为惯性测量单元/装置在测量时自身存在的偏差),则系统误差状态的微分方程为:Step S3.2: Predict the error state based on the inertial navigation positioning data of the target to be measured, and obtain the predicted error state. Specifically, the error state is the state quantity of the actual operation of the fusion positioning system, recorded as is an error state. Among them, δp T is the position error, δv T is the velocity error, δθ T is the attitude error,/> is the gyroscope drift deviation,/> is the accelerometer drift deviation (gyro offset deviation and accelerometer offset deviation are the deviations of the inertial measurement unit/device itself during measurement), then the differential equation of the system error state is:
其中,Cb n为坐标系转换矩阵,μω和μa为时间常数,nb和nω分别代表加速度测量噪声和角速度测量噪声,γω和γa代表均值为0的白噪声干扰,[f×]定义如下:Among them, C b n is the coordinate system transformation matrix, μ ω and μ a are time constants, n b and n ω represent acceleration measurement noise and angular velocity measurement noise respectively, γ ω and γ a represent white noise interference with a mean value of 0, [ f×] is defined as follows:
为了方便后续分析计算,利用卡尔曼滤波将误差状态的状态方程(20)转化为以下形式:In order to facilitate subsequent analysis and calculation, Kalman filtering is used to transform the state equation (20) of the error state into the following form:
其中,Fk为k时刻状态转移矩阵,Gk为k时刻噪声增益矩阵,nk为k时刻噪声矩阵,其定义分别为:Among them, F k is the state transition matrix at time k, G k is the noise gain matrix at time k, and n k is the noise matrix at time k. Their definitions are:
nk=[nω,na,γω,γa]T (25)n k =[n ω ,n a ,γ ω ,γ a ] T (25)
在离散系统两个连续时间间隔Δt中,基于IMU数据的误差状态预测方程为:In two continuous time intervals Δt of the discrete system, the error state prediction equation based on IMU data is:
为了简化计算公式,将上述误差状态预测方程转化为如式(27)所示,其协方差预测方法如式(28)所示:In order to simplify the calculation formula, the above error state prediction equation is transformed into Equation (27), and its covariance prediction method is as shown in Equation (28):
δXk|k-1=Ak|k-1δXk-1|k-1+Gknk (27)δX k|k-1 =A k|k-1 δX k-1|k-1 +G k n k (27)
其中,Pk-1|k-1为k-1时刻的后验估计协方差,Q为nk的协方差,Ak为k时刻惯性测量单元的误差状态转移矩阵的估计,计算公式如下:Among them, P k-1|k-1 is the posterior estimated covariance at time k-1, Q is the covariance of n k , and A k is the estimate of the error state transition matrix of the inertial measurement unit at time k. The calculation formula is as follows:
Ak|k-1≈I15×15+FkΔt (29)A k|k-1 ≈I 15×15 +F k Δt (29)
步骤S3.3、根据获取的待测目标的UWB定位数据,利用卡尔曼滤波更新预测误差状态。误差状态两侧更新和协方差矩阵计算公式如下:Step S3.3: Use Kalman filter to update the prediction error state according to the obtained UWB positioning data of the target to be measured. The error state update and covariance matrix calculation formulas on both sides are as follows:
Pk|k=(I-KkHk)Pk|k-1 (31)P k|k = (IK k H k )P k|k-1 (31)
其中,δXk|k是k时刻更新后的误差状态,δXk|k-1是k时刻误差状态的先验估计值,和pk UWB分别是k时刻惯性导航系统和UWB系统测算的待测目标位置坐标,Hk是状态量到量测量的转移矩阵,定义为Hk=[I3×3 03×3 03×3 03×3 03×3],Kk为k时刻卡尔曼增益,计算公式如下:Among them, δX k|k is the updated error state at time k, δX k|k-1 is the a priori estimate of the error state at time k, and p k UWB are the target position coordinates to be measured measured by the inertial navigation system and UWB system at time k respectively, H k is the transfer matrix from state quantity to quantity measurement, defined as H k = [I 3×3 0 3×3 0 3 ×3 0 3×3 0 3×3 ], K k is the Kalman gain at time k, and the calculation formula is as follows:
步骤S3.4、误差卡尔曼滤波(Error-State Kalman Filter,ESKF)模型中,待测目标的实际运动状态等于名义状态和误差状态的加和,因此,基于更新后的预测误差状态和名义状态,进行状态合并,得到待测目标的融合定位结果,即得到待测目标的真值状态Xk|k,其计算公式如下:Step S3.4. In the Error-State Kalman Filter (ESKF) model, the actual motion state of the target to be measured is equal to the sum of the nominal state and the error state. Therefore, based on the updated prediction error state and nominal state , perform state merging to obtain the fusion positioning result of the target to be measured, that is, the true value state X k|k of the target to be measured is obtained. The calculation formula is as follows:
Xk|k=Xk|k-1+δXk|k (33)X k|k =X k|k-1 +δX k|k (33)
其中,Xk|k-1为k时刻的名义状态,δXk|k为经ESKF更新的预测误差状态。Among them, X k|k-1 is the nominal state at time k, and δX k|k is the prediction error state updated by ESKF.
步骤S3.5、输出待测目标的真值状态Xk|k,即输出融合定位系统测得的待测目标的目标位置。Step S3.5: Output the true value state X k|k of the target to be measured, that is, output the target position of the target to be measured measured by the fusion positioning system.
为了进一步验证本实施例上述方案的优越性,通过下述实例进行验证。首先,为了验证改进的粒子群优化算法的性能,将本实施例所提出的算法与原始PSO、VFA和HGWOP进行对比。为了避免偶然误差,所有结果数据均取30次独立实验的均值,实验相关参数如下表2所示。为了避免因不同的随机初始化方案影响对比实验的效果,所有算法具有相同的初始解,图5是初始部署网络的覆盖效果,初始覆盖率为67.16%,右侧的条状栏的数值是检测概率,色温越高代表传感器网络对该地区的检测概率越大,即定位精度越高。此外,本实验在100×100的区域内部署不同数量的传感器,以检验算法的通用性,结果如图6所示。结果表明,所有算法的覆盖率随着传感器节点数量增多逐渐增至1,且所提IPSO-VF在n=35时,最先实现对整个检测区域的完全覆盖。因此,在不同密度的传感器部署优化中IPSO-VF均能更高效地利用传感器并实现对目标区域的覆盖。In order to further verify the superiority of the above solution in this embodiment, the following examples are used to verify. First, in order to verify the performance of the improved particle swarm optimization algorithm, the algorithm proposed in this embodiment is compared with the original PSO, VFA and HGWOP. In order to avoid accidental errors, all result data are the average of 30 independent experiments. The relevant parameters of the experiment are shown in Table 2 below. In order to avoid different random initialization schemes affecting the results of the comparative experiments, all algorithms have the same initial solution. Figure 5 shows the coverage effect of the initial deployment network. The initial coverage rate is 67.16%. The value of the bar on the right is the detection probability. , the higher the color temperature, the greater the detection probability of the sensor network in the area, that is, the higher the positioning accuracy. In addition, this experiment deployed different numbers of sensors in a 100×100 area to test the versatility of the algorithm. The results are shown in Figure 6. The results show that the coverage of all algorithms gradually increases to 1 as the number of sensor nodes increases, and the proposed IPSO-VF is the first to achieve complete coverage of the entire detection area when n=35. Therefore, in the optimization of sensor deployment at different densities, IPSO-VF can utilize sensors more efficiently and achieve coverage of the target area.
表2实验参数设置Table 2 Experimental parameter settings
图7展示了传感器数量为25时,经四种算法优化求解后传感器网络的最终覆盖效果图。由图5可知,随机初始部署的传感器网络中传感器分布不均匀,覆盖率仅为67.16%,存在大量覆盖漏洞;图7显示经本实施例所提出的算法IPSO-VF和VFA优化后的传感器网络对目标检测区域具有较好覆盖效果,传感器分布更均匀且重复覆盖区域更少。最右侧的条状栏表明经IPSO-VFA部署的传感器网络对目标检测区域的检测概率最低点在0.65左右,VFA在0.5左右,PSO和HGWOP为0,这意味着相比于其他对比算法IPSO-VF实现了对整个目标区域更高精度的覆盖。同时,所提IPSO-VF算法获得了最优的覆盖效果,其覆盖率为99.6%,最终覆盖率比初始覆盖率提升了32.44%,分别比PSO、VFA和HGWOP高出11.36%、4.24%和5.36%。Figure 7 shows the final coverage effect of the sensor network after optimization and solution using four algorithms when the number of sensors is 25. As can be seen from Figure 5, the sensors in the randomly initially deployed sensor network are unevenly distributed, with a coverage rate of only 67.16% and a large number of coverage holes. Figure 7 shows the sensor network optimized by the algorithms IPSO-VF and VFA proposed in this embodiment. It has better coverage effect on the target detection area, the sensors are more evenly distributed and there are fewer repeated coverage areas. The bar on the far right shows that the sensor network deployed by IPSO-VFA has the lowest detection probability of the target detection area at around 0.65, VFA at around 0.5, PSO and HGWOP at 0, which means that compared to other comparison algorithms IPSO -VF achieves higher-precision coverage of the entire target area. At the same time, the proposed IPSO-VF algorithm achieved the optimal coverage effect, with a coverage rate of 99.6%. The final coverage rate was 32.44% higher than the initial coverage rate, which was 11.36%, 4.24% and 11.36% higher than PSO, VFA and HGWOP respectively. 5.36%.
以上实验表明,相比于对比算法,本实施例所提出的IPSO-VF算法能够获取更优质的传感器部署方案,算法优化性能与原始PSO相比得到了显著提高。此外,得益于虚拟力引导策略的引入,IPSO-VF可以利用传感器间的虚拟斥力优化传感器的分布,降低传感器的重复覆盖,实现对传感器的高效利用。The above experiments show that compared with the comparative algorithm, the IPSO-VF algorithm proposed in this embodiment can obtain a better sensor deployment solution, and the algorithm optimization performance is significantly improved compared with the original PSO. In addition, thanks to the introduction of the virtual force guidance strategy, IPSO-VF can use the virtual repulsion between sensors to optimize the distribution of sensors, reduce repeated coverage of sensors, and achieve efficient use of sensors.
此外,为了验证基于误差状态卡尔曼滤波器的UWB定位网络和惯性导航融合定位系统的定位精度和稳定性,以阿克曼机器人作为运动平台开展融合定位实验,并利用IPSO-VF获取UWB传感器部署方案。该平台使用STM32F405作为下位机控制板、树莓派作为上位机处理器。实验过程中,机器人平台沿圆心为(4m,4.7m)、半径为1.57m的圆形轨迹运动。In addition, in order to verify the positioning accuracy and stability of the UWB positioning network and inertial navigation fusion positioning system based on the error state Kalman filter, the Ackerman robot was used as a motion platform to carry out fusion positioning experiments, and IPSO-VF was used to obtain UWB sensor deployment plan. The platform uses STM32F405 as the host computer control board and Raspberry Pi as the host computer processor. During the experiment, the robot platform moved along a circular trajectory with a center of (4m, 4.7m) and a radius of 1.57m.
为了检验融合定位方法的定位精度提升效果,分别绘制了运动平台的理论轨迹、纯UWB解算轨迹和融合定位方法解算轨迹,结果如图8所示。其中图8中(a)展示了三种轨迹的整体情况,图8中(b)展示了轨迹的局部细节。由图8(a)可知,单一UWB定位和融合定位测得的整体轨迹均收敛于圆形轨迹,但IMU+UWB融合轨迹与真实轨迹的重合区段更多、差距更小,即融合定位结果更符合机器人平台的实际轨迹;图8(b)展示了轨迹的局部细节,其中单一UWB方法测得的轨迹点出现频繁剧烈的波动,且与真实轨迹差距较大,而融合定位轨迹更平缓且更接近实际运动轨迹,表明基于ESKF的UWB定位网络和惯性导航融合定位方法相比于单一定位系统具有更高的定位稳定性和精度。In order to test the positioning accuracy improvement effect of the fusion positioning method, the theoretical trajectory of the motion platform, the pure UWB solution trajectory and the solution trajectory of the fusion positioning method were drawn respectively. The results are shown in Figure 8. Figure 8 (a) shows the overall situation of the three trajectories, and Figure 8 (b) shows the local details of the trajectories. It can be seen from Figure 8(a) that the overall trajectory measured by single UWB positioning and fusion positioning converges to a circular trajectory, but the IMU+UWB fusion trajectory and the real trajectory have more overlapping sections and a smaller gap, that is, the fusion positioning result It is more in line with the actual trajectory of the robot platform; Figure 8(b) shows the local details of the trajectory, in which the trajectory points measured by the single UWB method fluctuate frequently and violently, and are significantly different from the real trajectory, while the fused positioning trajectory is smoother and It is closer to the actual motion trajectory, indicating that the UWB positioning network and inertial navigation fusion positioning method based on ESKF has higher positioning stability and accuracy than a single positioning system.
实施例二Embodiment 2
本实施例提供了一种基于惯性导航和UWB传感器网络的室内定位系统,包括:This embodiment provides an indoor positioning system based on inertial navigation and UWB sensor network, including:
传感器感知模型构建模块,用于获取传感器测量得到的距离值和真实距离值,确定传感器的感知半径和可靠性参数,进而构建得到传感器的传感器感知模型;The sensor perception model building module is used to obtain the distance value and the real distance value measured by the sensor, determine the sensing radius and reliability parameters of the sensor, and then construct the sensor perception model of the sensor;
传感器部署方案求解模块,用于基于目标空间中多个传感器的传感器感知模型,以覆盖率为优化目标,利用改进的粒子群优化算法进行优化求解,获得多个传感器在目标空间的部署方案;The sensor deployment solution module is used to solve the sensor perception model based on multiple sensors in the target space. It uses the coverage rate as the optimization goal and uses the improved particle swarm optimization algorithm to optimize and solve to obtain the deployment plan of multiple sensors in the target space;
融合定位结果获取模块,用于根据部署方案在目标空间中部署多个传感器,获取待测目标的UWB定位数据,并通过惯性测量获取待测目标的惯导定位数据,利用误差卡尔曼滤波对UWB定位数据和惯导定位数据进行融合,得到待测目标的融合定位结果。The fusion positioning result acquisition module is used to deploy multiple sensors in the target space according to the deployment plan, obtain the UWB positioning data of the target to be measured, and obtain the inertial navigation positioning data of the target to be measured through inertial measurement, and use error Kalman filtering to perform UWB The positioning data and inertial navigation positioning data are fused to obtain the fusion positioning result of the target to be measured.
实施例三Embodiment 3
本实施例提供了一种电子设备,包括存储器和处理器以及存储在存储器上并在处理器上运行的计算机指令,所述计算机指令被处理器运行时,完成如上所述的基于惯性导航和UWB传感器网络的室内定位方法中的步骤。This embodiment provides an electronic device, including a memory, a processor, and computer instructions stored in the memory and run on the processor. When the computer instructions are run by the processor, the above-mentioned inertial navigation and UWB-based navigation are completed. Steps in indoor localization methods for sensor networks.
实施例四Embodiment 4
本实施例还提供了一种计算机可读存储介质,用于存储计算机指令,所述计算机指令被处理器执行时,完成如上所述的基于惯性导航和UWB传感器网络的室内定位方法中的步骤。This embodiment also provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the above-mentioned steps in the indoor positioning method based on inertial navigation and UWB sensor networks are completed.
以上实施例二至四中涉及的各步骤与方法实施例一相对应,具体实施方式可参见实施例一的相关说明部分。术语“计算机可读存储介质”应该理解为包括一个或多个指令集的单个介质或多个介质;还应当被理解为包括任何介质,所述任何介质能够存储、编码或承载用于由处理器执行的指令集并使处理器执行本发明中的任一方法。Each step involved in the above Embodiments 2 to 4 corresponds to the method Embodiment 1. For specific implementation details, please refer to the relevant description of Embodiment 1. The term "computer-readable storage medium" shall be understood to include a single medium or multiple media that includes one or more sets of instructions; and shall also be understood to include any medium capable of storing, encoding, or carrying instructions for use by a processor. The executed instruction set causes the processor to perform any method in the present invention.
本领域技术人员应该明白,上述本发明的各模块或各步骤可以用通用的计算机装置来实现,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。本发明不限制于任何特定的硬件和软件的结合。Those skilled in the art should understand that each module or each step of the present invention described above can be implemented by a general-purpose computer device. Alternatively, they can be implemented by program codes executable by the computing device, so that they can be stored in a storage device. The device is executed by a computing device, or they are respectively made into individual integrated circuit modules, or multiple modules or steps among them are made into a single integrated circuit module. The invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.
上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。Although the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, they do not limit the scope of the present invention. Those skilled in the art should understand that based on the technical solutions of the present invention, those skilled in the art do not need to perform creative work. Various modifications or variations that can be made are still within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310736682.1A CN116772835A (en) | 2023-06-20 | 2023-06-20 | Indoor positioning method and system based on inertial navigation and UWB sensor network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310736682.1A CN116772835A (en) | 2023-06-20 | 2023-06-20 | Indoor positioning method and system based on inertial navigation and UWB sensor network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116772835A true CN116772835A (en) | 2023-09-19 |
Family
ID=88009391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310736682.1A Pending CN116772835A (en) | 2023-06-20 | 2023-06-20 | Indoor positioning method and system based on inertial navigation and UWB sensor network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116772835A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118347507A (en) * | 2024-06-18 | 2024-07-16 | 中国科学院西安光学精密机械研究所 | A method for sensing near-space targets for aerial detection |
-
2023
- 2023-06-20 CN CN202310736682.1A patent/CN116772835A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118347507A (en) * | 2024-06-18 | 2024-07-16 | 中国科学院西安光学精密机械研究所 | A method for sensing near-space targets for aerial detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112584306B (en) | An Indoor Robot Localization Algorithm Based on Kalman Filtering | |
CN106443622B (en) | A kind of distributed object tracking based on improvement joint probability data association | |
CN107426687B (en) | Adaptive Kalman filter method for WiFi/PDR indoor fusion positioning | |
CN110244715B (en) | Multi-mobile-robot high-precision cooperative tracking method based on ultra wide band technology | |
CN109597864B (en) | Method and system for real-time positioning and map construction of ellipsoid boundary Kalman filtering | |
CN109916410A (en) | An Indoor Localization Method Based on Improved Square Root Unscented Kalman Filtering | |
CN109254591A (en) | The dynamic route planning method of formula sparse A* and Kalman filtering are repaired based on Anytime | |
Wang et al. | Tightly coupled integration of pedestrian dead reckoning and Bluetooth based on filter and optimizer | |
CN109655786B (en) | Mobile ad hoc network cooperative relative positioning method and device | |
CN105224743B (en) | A kind of antenna arrangement optimization on full frequency band based on particle cluster algorithm | |
CN108759825B (en) | Adaptive prediction Kalman filter algorithm and system for INS/UWB pedestrian navigation with missing data | |
CN112729301A (en) | Indoor positioning method based on multi-source data fusion | |
CN106226732A (en) | The indoor wireless positioning and tracing method filtered without mark based on TOF and iteration | |
CN116772835A (en) | Indoor positioning method and system based on inertial navigation and UWB sensor network | |
CN109141412B (en) | UFIR filtering algorithm and system for INS/UWB combined pedestrian navigation with missing data | |
Bai et al. | Enhancing localization of mobile robots in distributed sensor environments for reliable proximity service applications | |
Kong et al. | Hybrid indoor positioning method of BLE and monocular VINS-based smartphone | |
Li et al. | A new RSS fingerprinting-based location discovery method under sparse reference point conditions | |
Yuan et al. | MIAKF: Motion inertia estimated adaptive Kalman filtering for underground mine tunnel positioning | |
CN116528171A (en) | Mobile sensor network target tracking method based on force guiding positioning | |
Hu et al. | A reliable cooperative fusion positioning methodology for intelligent vehicle in non-line-of-sight environments | |
Wang et al. | Fedins2: A federated-edge-learning-based inertial navigation system with segment fusion | |
CN112799385B (en) | Intelligent agent path planning method based on artificial potential field of guide domain | |
CN114580601A (en) | Magnetic dipole target positioning method based on improved intelligent optimization algorithm | |
CN108337639A (en) | A kind of Monte Carlo mobile node location algorithm based on Newton interpolation |
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 |