CN110602651A - Positioning method based on WIFI position fingerprint and positioning system of robot - Google Patents

Positioning method based on WIFI position fingerprint and positioning system of robot Download PDF

Info

Publication number
CN110602651A
CN110602651A CN201910894093.XA CN201910894093A CN110602651A CN 110602651 A CN110602651 A CN 110602651A CN 201910894093 A CN201910894093 A CN 201910894093A CN 110602651 A CN110602651 A CN 110602651A
Authority
CN
China
Prior art keywords
wireless access
access point
module
positioning
data
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
Application number
CN201910894093.XA
Other languages
Chinese (zh)
Other versions
CN110602651B (en
Inventor
王亮
李桐
郑哲
于同伟
刘瑞
沈力
乔磊
刘扬
崔文朋
胡博
池颖英
李东
龙希田
李希元
雷振江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Liaoning Electric Power Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
National Network Information and Communication Industry Group Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Liaoning Electric Power Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
National Network Information and Communication Industry Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Liaoning Electric Power Co Ltd, Beijing Smartchip Microelectronics Technology Co Ltd, National Network Information and Communication Industry Group Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201910894093.XA priority Critical patent/CN110602651B/en
Publication of CN110602651A publication Critical patent/CN110602651A/en
Application granted granted Critical
Publication of CN110602651B publication Critical patent/CN110602651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention discloses a positioning method based on WIFI position fingerprints and a positioning system of a robot, wherein the positioning method based on the WIFI position fingerprints comprises the following steps: acquiring WIFI position fingerprint data of an object to be positioned at each position of a region to be detected so as to establish a WIFI position fingerprint database, and classifying the data of the WIFI position fingerprint database by adopting a K-means clustering and dividing method so as to divide the data into K classes; the RSSI value of each wireless access point received by the object to be positioned at the current position is obtained, the RSSI values of some wireless access points with poor signal strength are removed, Euclidean distances between sampling data formed by the rest RSSI values and K classes are calculated, and a weighted K nearest neighbor method is adopted to carry out matching positioning in the class with the minimum Euclidean distance value, so that the positioning result of the object to be positioned is obtained. The positioning method based on the WIFI position fingerprint and the positioning system of the robot can improve the operation efficiency and the positioning accuracy.

Description

基于WIFI位置指纹的定位方法以及机器人的定位系统Positioning method based on WIFI location fingerprint and robot positioning system

技术领域technical field

本发明是关于通信技术领域,特别是关于一种基于WIFI位置指纹的定位方法以及机器人的定位系统。The invention relates to the technical field of communication, in particular to a positioning method based on WIFI position fingerprints and a robot positioning system.

背景技术Background technique

无线定位,顾名思义就是利用收到的各种类型的信号来确定出定位终端的地理位置。Wireless positioning, as the name implies, is to use various types of signals received to determine the geographic location of the positioning terminal.

GPS(全球定位系统)和我国的北斗导航系统在较宽敞的区域内已经达到了精度很高的定位。在室内场景下也有一些定位方法,如红外线定位、超声波定位、蓝牙定位、基于WIFI指纹信息定位等方法,这些方法都存在自身的优劣。目前随着互联网和移动通信的飞速发展,很多场合都布置了大量的WIFI节点,而且移动终端普遍自带WIFI模块,使得基于WIFI指纹信息定位方法的研究得到了很好的发展。GPS (Global Positioning System) and my country's Beidou navigation system have achieved high-precision positioning in a relatively spacious area. There are also some positioning methods in indoor scenarios, such as infrared positioning, ultrasonic positioning, Bluetooth positioning, and positioning based on WIFI fingerprint information. These methods have their own advantages and disadvantages. At present, with the rapid development of the Internet and mobile communications, a large number of WIFI nodes are deployed in many occasions, and mobile terminals generally have their own WIFI modules, which makes the research on positioning methods based on WIFI fingerprint information get a good development.

基于WIFI的指纹定位技术主要是利用空间信息与无线信号的RSSI(接收的信号强度指示)的相关特性,将待测位置上收集到WIFI无线信息与地理位置信息进行相互匹配。在实际定位环境中,将待测点接受到的n个无线访问接入点的RSSI值形成一组n维向量与二维地理位置之间形成逐一映射关系,不同的n维RSSI向量对应的不同的地理位置,然后汇集这些n维RSSI向量构成指纹数据库,数据库中的每一组数据称为位置指纹。最后可以根据采集到无线访问接入点的RSSI信号强度的变化,使用当时测量到的一组RSSI值上传到定位服务器,通过与指纹数据库的位置指纹进行匹配,选取相似度最佳的位置指纹所对应的地理位置作为估计位置。The WIFI-based fingerprint positioning technology mainly uses the correlation characteristics of spatial information and wireless signal RSSI (Received Signal Strength Indication) to match the WIFI wireless information collected at the location to be tested with the geographic location information. In the actual positioning environment, the RSSI values of n wireless access points received by the point to be tested form a set of n-dimensional vectors and form a one-to-one mapping relationship with the two-dimensional geographic location. Different n-dimensional RSSI vectors correspond to different Geographic location, and then these n-dimensional RSSI vectors are collected to form a fingerprint database, and each set of data in the database is called a location fingerprint. Finally, according to the change of the RSSI signal strength collected from the wireless access point, a set of RSSI values measured at that time can be used to upload to the positioning server, and the location fingerprint with the best similarity can be selected by matching with the location fingerprint of the fingerprint database. The corresponding geographic location is used as the estimated location.

目前基于WIFI指纹的定位算法包括两个阶段,离线训练阶段和实时定位阶段。离线训练阶段的主要工作是工作人员在待测区域内选取若干个参考点的位置,并在每一个参考点同时采集多个来自不同无线访问接入点的信号强度值,然后再将各个参考点的接收到的各个无线访问接入点的RSSI值、MAC地址以及参考点的地理位置信息组成一组相关联的三元数据组保存在数据库中,其中数据库中的每一组数据就是一个位置指纹。实时定位阶段中,用户在定位区域内通过终端设备采集所有无线访问接入点的WIFI信息,并将无线访问接入点的MAC地址和RSSI值组成一个二元组,作为指纹定位算法的输入内容,通过逐一比对,找出最相近的条目,再利用最接近的一组或几组位置指纹对应的地理位置坐标进行相关的计算,进而来估计待测点的位置。At present, the positioning algorithm based on WIFI fingerprint includes two stages, offline training stage and real-time positioning stage. The main work of the offline training phase is that the staff select the positions of several reference points in the area to be tested, and collect multiple signal strength values from different wireless access points at each reference point at the same time, and then use each reference point The received RSSI value, MAC address, and geographic location information of each wireless access point form a set of associated triple data groups and store them in the database, where each set of data in the database is a location fingerprint . In the real-time positioning stage, the user collects the WIFI information of all wireless access points through the terminal device in the positioning area, and forms a two-tuple of the MAC address and RSSI value of the wireless access point as the input content of the fingerprint positioning algorithm , by comparing them one by one to find out the closest entry, and then use the closest group or groups of location fingerprints corresponding to the geographic location coordinates to perform related calculations, and then estimate the location of the point to be measured.

发明人对目前的基于WIFI指纹的定位算法进行研究后发现其存在以下问题:在线定位阶段中,当指纹库较小时,逐条比较就能够进行很快匹配,但是随着指纹库的数据量很大时,这种操作将会耗费大量的时间,从而影响定位的效率,同时也会对定位服务器产生大量的重复运算操作。因此,在保证定位精度的情况下,改进指纹匹配算法,提高定位系统的定位实时性,降低服务器的功耗,也是一个非常大的挑战。After researching the current location algorithm based on WIFI fingerprints, the inventor found the following problems: in the online location stage, when the fingerprint library is small, the comparison can be quickly matched one by one, but with the large amount of fingerprint library data When , this operation will consume a lot of time, thereby affecting the efficiency of positioning, and will also generate a large number of repeated calculation operations on the positioning server. Therefore, in the case of ensuring the positioning accuracy, it is also a very big challenge to improve the fingerprint matching algorithm, improve the real-time positioning performance of the positioning system, and reduce the power consumption of the server.

公开于该背景技术部分的信息仅仅旨在增加对本发明的总体背景的理解,而不应当被视为承认或以任何形式暗示该信息构成已为本领域一般技术人员所公知的现有技术。The information disclosed in this Background section is only for enhancing the understanding of the general background of the present invention and should not be taken as an acknowledgment or any form of suggestion that the information constitutes the prior art that is already known to those skilled in the art.

发明内容Contents of the invention

本发明的目的在于提供一种基于WIFI位置指纹的定位方法以及机器人的定位系统,其能够提高运算效率,提供定位系统的定位实时性以及降低服务器的功耗。The object of the present invention is to provide a positioning method based on WIFI position fingerprints and a positioning system of a robot, which can improve computing efficiency, provide real-time positioning of the positioning system and reduce power consumption of servers.

为实现上述目的,本发明提供了一种基于WIFI位置指纹的定位方法,待定位物体设有WIFI模块,所述待定位物体通过所述WIFI模块与多个无线访问接入点建立通信,所述WIFI模块能够检测接收到的每个无线访问接入点的RSSI值,该基于WIFI位置指纹的定位方法包括:In order to achieve the above object, the present invention provides a positioning method based on WIFI location fingerprints. The object to be positioned is provided with a WIFI module, and the object to be positioned establishes communication with a plurality of wireless access points through the WIFI module. The WIFI module can detect the received RSSI value of each wireless access point, and the positioning method based on the WIFI location fingerprint includes:

获取所述待定位物体在待测区域的每个位置的WIFI位置指纹数据并存储至预先建立的WIFI位置指纹数据库;Obtain the WIFI location fingerprint data of each position of the object to be positioned in the area to be measured and store it in a pre-established WIFI location fingerprint database;

采用K均值聚类划分方法对所述WIFI位置指纹数据库的数据进行分类从而划分为K个类;Using the K-means clustering method to classify the data of the WIFI location fingerprint database so as to be divided into K classes;

获取所述待定位物体在当前位置接收的每个无线访问接入点的RSSI值并从中去除信号强度小于预设阈值的无线访问接入点的RSSI值,计算剩余每个RSSI值组成的采样数据与所述K个类的欧式距离,在所述欧式距离值最小的类中采用加权K近邻法进行匹配定位从而获得所述待定位物体的定位结果。Obtain the RSSI value of each wireless access point received by the object to be positioned at the current position and remove the RSSI value of the wireless access point whose signal strength is less than a preset threshold, and calculate the sampling data composed of each remaining RSSI value For the Euclidean distance to the K classes, the weighted K-nearest neighbor method is used for matching and positioning in the class with the smallest Euclidean distance value, so as to obtain the positioning result of the object to be positioned.

在本发明的一实施方式中,获取所述待定位物体在某一位置的WIFI位置指纹数据包括:In one embodiment of the present invention, obtaining the WIFI location fingerprint data of the object to be positioned at a certain location includes:

对所述待定位物体在该位置接收的每个无线访问接入点的RSSI值进行采样;Sampling the RSSI value of each wireless access point received by the object to be positioned at the position;

结合采样数据并且以无线访问接入点的稳定性和信号质量为选择因素筛选出一部分无线访问接入点;Combining the sampling data and taking the stability and signal quality of the wireless access point as the selection factors to select a part of the wireless access point;

对所选择出的该部分的每个无线访问接入点的RSSI值数组进行高斯滤波,并对过滤后的每个无线访问接入点的RSSI值数组求取平均值,将所述平均值组成的集合作为该位置的WIFI位置指纹数据进行存储。Perform Gaussian filtering on the RSSI value array of each wireless access point in the selected part, and calculate the average value of the RSSI value array of each wireless access point after filtering, and form the average value into The collection of is stored as the WIFI location fingerprint data of the location.

在本发明的一实施方式中,所述结合采样数据并且以无线访问接入点的稳定性和信号质量为选择因素筛选出一部分无线访问接入点包括:计算所述采样数据中每个无线访问接入点的采样数据出现的频率,将各个频率值降序排列,将前Q个频率值所对应的Q个无线访问接入点组成第一无线访问接入点集合;计算所述采样数据中每个无线访问接入点的采样数据的平均值,将各个平均值降序排列,将前Q个平均值所对应的Q个无线访问接入点组成第二无线访问接入点集合;计算所述采样数据中每个无线访问接入点的采样数据的标准差,将各个标准差值升序排列,将前Q个标准差值所对应的Q个无线访问接入点组成第三无线访问接入点集合;对所述第一无线访问接入点集合、所述第二无线访问接入点集合以及所述第三无线访问接入点集合求交集,在该交集中选择出所述一部分稳定性和信号质量均较佳的无线访问接入点。In an embodiment of the present invention, the combination of sampling data and selecting a part of wireless access points by taking stability and signal quality of wireless access points as selection factors includes: calculating The frequency of occurrence of the sampling data of the access point is arranged in descending order of each frequency value, and the Q wireless access points corresponding to the first Q frequency values are formed into the first wireless access point set; The average value of the sampling data of wireless access points, each average value is arranged in descending order, and the Q wireless access points corresponding to the first Q average values are formed into a second wireless access point set; The standard deviation of the sampled data of each wireless access point in the data is arranged in ascending order of each standard deviation value, and the Q wireless access points corresponding to the first Q standard deviation values form the third wireless access point set ; Compute an intersection set for the first set of wireless access points, the second set of wireless access points, and the third set of wireless access points, and select the part of stability and signal in the intersection set All good quality wireless access points.

本发明还提供了一种机器人的定位系统,其包括:机器人、机器人控制器以及服务器。机器人其具有WIFI模块,所述机器人通过所述WIFI模块接入多个无线访问接入点,所述WIFI模块能够检测接收的每个无线访问接入点的RSSI值。机器人控制器与所述多个无线访问接入点通信,用于接收所述WIFI模块检测的每个无线访问接入点的RSSI值。服务器与所述机器人控制器通信,所述服务器包括:WIFI位置指纹数据库建立模块、聚类模块以及定位模块,所述WIFI位置指纹数据库建立模块用于获取所述机器人在待测区域的每个位置的WIFI位置指纹数据并存储至预先建立的WIFI位置指纹数据库;所述聚类模块与所述WIFI位置指纹数据库建立模块相耦合,用于采用K均值聚类划分方法对所述WIFI位置指纹数据库的数据进行分类从而划分为K个类;所述定位模块与所述聚类模块相耦合,用于在对所述机器人定位时,获取所述WIFI模块在所述机器人当前位置检测的每个无线访问接入点的RSSI数据,并从中去除信号强度小于预设阈值的无线访问接入点的RSSI值,计算剩余每个RSSI值组成的采样数据与所述K个类的欧式距离,在所述欧式距离值最小的类中采用加权K近邻法进行匹配定位从而获得所述待定位物体的定位结果。The present invention also provides a robot positioning system, which includes: a robot, a robot controller and a server. The robot has a WIFI module through which the robot accesses multiple wireless access points, and the WIFI module can detect the received RSSI value of each wireless access point. The robot controller communicates with the plurality of wireless access points for receiving the RSSI value of each wireless access point detected by the WIFI module. The server communicates with the robot controller, and the server includes: a WIFI position fingerprint database building module, a clustering module and a positioning module, and the WIFI position fingerprint database building module is used to obtain each position of the robot in the area to be tested The WIFI location fingerprint data is stored in the pre-established WIFI location fingerprint database; the clustering module is coupled with the WIFI location fingerprint database establishment module, and is used for using the K-means clustering method to classify the WIFI location fingerprint database The data is classified so as to be divided into K categories; the positioning module is coupled with the clustering module, and is used to obtain each wireless access detected by the WIFI module at the current position of the robot when locating the robot The RSSI data of the access point, and remove the RSSI value of the wireless access point whose signal strength is less than the preset threshold, and calculate the Euclidean distance between the sampled data composed of each remaining RSSI value and the K classes, in the Euclidean In the class with the smallest distance value, the weighted K-nearest neighbor method is used for matching and positioning to obtain the positioning result of the object to be positioned.

在本发明的一实施方式中,所述WIFI位置指纹数据库建立模块包括:采样模块、无线访问接入点选取模块以及WIFI位置指纹数据生成模块。In one embodiment of the present invention, the WIFI location fingerprint database establishment module includes: a sampling module, a wireless access point selection module, and a WIFI location fingerprint data generation module.

采样模块,用于对所述待定位物体在某一位置接收的每个无线访问接入点的RSSI值进行采样;A sampling module, configured to sample the RSSI value of each wireless access point received by the object to be positioned at a certain location;

无线访问接入点选取模块,与所述采样模块相耦合,用于结合所述采样模块的采样数据并且以无线访问接入点的稳定性和信号质量为选择因素筛选出一部分无线访问接入点;A wireless access point selection module, coupled with the sampling module, is used to combine the sampling data of the sampling module and select a part of wireless access points with the stability and signal quality of the wireless access points as selection factors ;

WIFI位置指纹数据生成模块,与所述无线访问接入点选取模块相耦合,用于对所述无线访问接入点选取模块所选择出的每个无线访问接入点的RSSI值数组进行高斯滤波,并对过滤后的每个无线访问接入点的的RSSI值数组求取平均值,将所述平均值组成的集合作为该位置的WIFI位置指纹数据进行存储。The WIFI location fingerprint data generation module is coupled with the wireless access point selection module, and is used to perform Gaussian filtering on the RSSI value array of each wireless access point selected by the wireless access point selection module , and calculate the average value of the filtered RSSI value array of each wireless access point, and store the set composed of the average value as the WIFI location fingerprint data of the location.

在本发明的一实施方式中,所述无线访问接入点选取模块包括:第一无线访问接入点选取模块、第二无线访问接入点选取模块、第三无线访问接入点选取模块以及交集求取模块。第一无线访问接入点选取模块用于计算所述采样模块的采样数据中每个无线访问接入点的采样数据出现的频率,将各个频率值降序排列,将前Q个频率值所对应的Q个无线访问接入点组成第一无线访问接入点集合。第二无线访问接入点选取模块用于计算所述采样数据中每个无线访问接入点的采样数据的平均值,将各个平均值降序排列,将前Q个平均值所对应的Q个无线访问接入点组成第二无线访问接入点集合。第三无线访问接入点选取模块用于计算所述采样数据中每个无线访问接入点的采样数据的标准差,将各个标准差值升序排列,将前Q个标准差值所对应的Q个无线访问接入点组成第三无线访问接入点集合。交集求取模块与所述第一无线访问接入点选取模块、所述第二无线访问接入点选取模块、所述第三无线访问接入点选取模块均相耦合,用于对所述第一无线访问接入点集合、所述第二无线访问接入点集合以及所述第三无线访问接入点集合求交集,并在该交集中选择出所述一部分稳定性和信号质量均较佳的无线访问接入点。In an embodiment of the present invention, the wireless access point selection module includes: a first wireless access point selection module, a second wireless access point selection module, a third wireless access point selection module, and Intersection seeking module. The first wireless access point selection module is used to calculate the frequency of occurrence of the sampled data of each wireless access point in the sampled data of the sampling module, arrange the frequency values in descending order, and sort the frequency values corresponding to the first Q frequency values Q wireless access points form a first set of wireless access points. The second wireless access point selection module is used to calculate the average value of the sampling data of each wireless access point in the sample data, arrange each average value in descending order, and arrange the Q wireless data points corresponding to the first Q average values The access points form a second set of wireless access points. The third wireless access point selection module is used to calculate the standard deviation of the sampling data of each wireless access point in the sampled data, arrange the standard deviation values in ascending order, and arrange the Q values corresponding to the first Q standard deviation values Wireless access points form a third set of wireless access points. The intersection obtaining module is coupled with the first wireless access point selection module, the second wireless access point selection module, and the third wireless access point selection module, and is used to select the second wireless access point A set of wireless access points, the second set of wireless access points, and the third set of wireless access points are intersected, and in the intersection, the part of stability and signal quality is selected. wireless access point.

在本发明的一实施方式中,所述服务器还包括定位校正模块。定位校正模块与所述定位模块以及所述机器人控制器相耦合,所述机器人控制器还用于获取所述机器人电机转速;所述定位校正模块用于计算前一次定位的位置与本次定位的位置之间的第一距离;还用于根据所述机器人电机转速计算机器人在前一次定位到本次定位的过程中所移动的第二距离;还用于比较所述第一距离和第二距离,若两者之差大于阈值,则判定本次定位结果不正确,发送消息至所述机器人控制器进行重新检测数据,否则判定本次定位结果正确并将该定位结果发送至所述机器人控制器。In an embodiment of the present invention, the server further includes a positioning correction module. The positioning correction module is coupled with the positioning module and the robot controller, and the robot controller is also used to acquire the motor speed of the robot; the positioning correction module is used to calculate the position of the previous positioning and the current positioning The first distance between positions; it is also used to calculate the second distance moved by the robot in the process from the previous positioning to this positioning according to the robot motor speed; it is also used to compare the first distance and the second distance , if the difference between the two is greater than the threshold, it is determined that the positioning result is incorrect, and a message is sent to the robot controller for re-detection data; otherwise, it is determined that the positioning result is correct and the positioning result is sent to the robot controller .

本发明还提供了一种服务器,用于对物体基于WIFI位置指纹进行定位,所述服务器包括:The present invention also provides a server for locating objects based on WIFI location fingerprints, the server comprising:

WIFI位置指纹数据库建立模块,用于获取待定位物体在待测区域的每个位置的WIFI位置指纹数据并存储至预先建立的WIFI位置指纹数据库;The WIFI location fingerprint database building module is used to obtain the WIFI location fingerprint data of each position of the object to be positioned in the area to be measured and store it in the pre-established WIFI location fingerprint database;

聚类模块,与所述WIFI位置指纹数据库建立模块相耦合,用于采用K均值聚类划分方法对所述WIFI位置指纹数据库的数据进行分类从而划分为K个类;A clustering module, coupled with the module for establishing the WIFI location fingerprint database, is used to classify the data of the WIFI location fingerprint database into K categories by using the K-means clustering method;

定位模块,与所述聚类模块相耦合,用于在对所述待定位物体定位时,获取所述待定位物体当前位置的每个无线访问接入点的RSSI数据,并从中去除信号强度小于阈值的无线访问接入点的RSSI值,计算剩余每个RSSI值组成的采样数据与所述K个类的欧式距离,在所述欧式距离值最小的类中采用加权K近邻法进行匹配定位从而获得所述待定位物体的定位结果。A positioning module, coupled with the clustering module, used to obtain the RSSI data of each wireless access point at the current position of the object to be positioned when locating the object to be positioned, and remove the RSSI data of each wireless access point whose signal strength is less than The RSSI value of the wireless access point of the threshold value, calculate the Euclidean distance between the sampling data composed of each remaining RSSI value and the K classes, and use the weighted K nearest neighbor method for matching and positioning in the class with the smallest Euclidean distance value. A positioning result of the object to be positioned is obtained.

在本发明的一实施方式中,所述WIFI位置指纹数据库建立模块包括:In one embodiment of the present invention, described WIFI location fingerprint database establishment module comprises:

采样模块,用于对所述待定位物体在某一位置接收的每个无线访问接入点的RSSI值进行采样;A sampling module, configured to sample the RSSI value of each wireless access point received by the object to be positioned at a certain location;

无线访问接入点选取模块,与所述采样模块相耦合,用于结合所述采样模块的采样数据并且以无线访问接入点的稳定性和信号质量为选择因素筛选出一部分无线访问接入点;A wireless access point selection module, coupled with the sampling module, is used to combine the sampling data of the sampling module and select a part of wireless access points with the stability and signal quality of the wireless access points as selection factors ;

WIFI位置指纹数据生成模块,与所述无线访问接入点选取模块相耦合,用于对所述无线访问接入点选取模块所选择出的每个无线访问接入点的RSSI值数组进行高斯滤波,并对过滤后的每个无线访问接入点的的RSSI值数组求取平均值,将所述平均值组成的集合作为该位置的WIFI位置指纹数据进行存储。The WIFI location fingerprint data generation module is coupled with the wireless access point selection module, and is used to perform Gaussian filtering on the RSSI value array of each wireless access point selected by the wireless access point selection module , and calculate the average value of the filtered RSSI value array of each wireless access point, and store the set composed of the average value as the WIFI location fingerprint data of the location.

在本发明的一实施方式中,所述无线访问接入点选取模块包括:In an embodiment of the present invention, the wireless access point selection module includes:

第一无线访问接入点选取模块,用于计算所述采样模块的采样数据中每个无线访问接入点的采样数据出现的频率,将各个频率值降序排列,将前Q个频率值所对应的Q个无线访问接入点组成第一无线访问接入点集合;The first wireless access point selection module is used to calculate the frequency of occurrence of the sampled data of each wireless access point in the sampled data of the sampling module, arrange the frequency values in descending order, and sort the frequency values corresponding to the first Q frequency values The Q wireless access points form the first set of wireless access points;

第二无线访问接入点选取模块,用于计算所述采样数据中每个无线访问接入点的采样数据的平均值,将各个平均值降序排列,将前Q个平均值所对应的Q个无线访问接入点组成第二无线访问接入点集合;The second wireless access point selection module is used to calculate the average value of the sampling data of each wireless access point in the sampled data, arrange each average value in descending order, and select the Q corresponding to the first Q average values The wireless access points form a second set of wireless access points;

第三无线访问接入点选取模块,用于计算所述采样数据中每个无线访问接入点的采样数据的标准差,将各个标准差值升序排列,将前Q个标准差值所对应的Q个无线访问接入点组成第三无线访问接入点集合;The third wireless access point selection module is used to calculate the standard deviation of the sampled data of each wireless access point in the sampled data, arrange the standard deviation values in ascending order, and arrange the standard deviation values corresponding to the first Q standard deviation values Q wireless access points form a third wireless access point set;

交集求取模块,与所述第一无线访问接入点选取模块、所述第二无线访问接入点选取模块、所述第三无线访问接入点选取模块均相耦合,用于对所述第一无线访问接入点集合、所述第二无线访问接入点集合以及所述第三无线访问接入点集合求交集,并在该交集中选择出所述一部分无线访问接入点。The intersection obtaining module is coupled with the first wireless access point selection module, the second wireless access point selection module, and the third wireless access point selection module, and is used for the The first set of wireless access points, the second set of wireless access points, and the third set of wireless access points calculate an intersection set, and select the part of wireless access points from the intersection set.

与现有技术相比,根据本发明的基于WIFI位置指纹的定位方法以及机器人的定位系统、服务器,使用了K均值聚类算法对指纹数据进行了分类,在定位阶段,可以有效加快数据匹配速度,能够有效提高运算效率、降低服务器功耗,提高定位实时性。Compared with the prior art, according to the positioning method based on WIFI position fingerprint of the present invention and the positioning system and server of the robot, the K-means clustering algorithm is used to classify the fingerprint data, and the data matching speed can be effectively accelerated in the positioning stage , which can effectively improve computing efficiency, reduce server power consumption, and improve positioning real-time performance.

附图说明Description of drawings

图1是根据本发明一实施方式的基于WIFI位置指纹的定位方法的步骤组成;Fig. 1 is the step composition of the positioning method based on WIFI location fingerprint according to an embodiment of the present invention;

图2是根据本发明一实施方式的K均值聚类划分方法的步骤组成;Fig. 2 is the step composition of the K-means clustering method according to an embodiment of the present invention;

图3是根据本发明一实施方式的机器人的定位系统的网络拓扑示意图;3 is a schematic diagram of a network topology of a robot positioning system according to an embodiment of the present invention;

图4是根据本发明一实施方式的机器人的定位系统的结构组成。Fig. 4 is a structural composition of a positioning system of a robot according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图,对本发明的具体实施方式进行详细描述,但应当理解本发明的保护范围并不受具体实施方式的限制。The specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific embodiments.

除非另有其它明确表示,否则在整个说明书和权利要求书中,术语“包括”或其变换如“包含”或“包括有”等等将被理解为包括所陈述的元件或组成部分,而并未排除其它元件或其它组成部分。Unless expressly stated otherwise, throughout the specification and claims, the term "comprise" or variations thereof such as "includes" or "includes" and the like will be understood to include the stated elements or constituents, and not Other elements or other components are not excluded.

为了克服现有技术中的问题,本发明提供一种基于WIFI位置指纹的定位方法以及机器人的定位系统、服务器,在建立WIFI位置指纹数据库的过程中,对接受到的信号信息进行了预处理工作,主要包括无线访问接入点的选择和RSSI信号的平滑处理,使用了K均值聚类算法对指纹数据进行了分类,在定位阶段,可以有效加快数据匹配速度,能够有效提高运算效率、降低服务器功耗,提高定位实时性和定位精度。In order to overcome the problems in the prior art, the present invention provides a positioning method based on WIFI location fingerprints, a robot positioning system, and a server. In the process of establishing a WIFI location fingerprint database, the received signal information is preprocessed. It mainly includes the selection of wireless access points and smooth processing of RSSI signals. The K-means clustering algorithm is used to classify fingerprint data. In the positioning stage, it can effectively speed up data matching, effectively improve computing efficiency, and reduce server power consumption, improve positioning real-time performance and positioning accuracy.

实施例1Example 1

图1是根据本发明一实施方式的基于WIFI位置指纹的定位方法的流程。待定位物体设有WIFI模块,待定位物体通过WIFI模块与多个无线访问接入点建立通信,WIFI模块能够检测接收到的每个无线访问接入点的RSSI值。该基于WIFI位置指纹的定位方法包括:步骤S1~步骤S3。FIG. 1 is a flowchart of a positioning method based on WIFI location fingerprints according to an embodiment of the present invention. The object to be positioned is equipped with a WIFI module, and the object to be positioned establishes communication with multiple wireless access points through the WIFI module, and the WIFI module can detect the received RSSI value of each wireless access point. The positioning method based on the WIFI location fingerprint includes: step S1 to step S3.

在步骤S1中获取待定位物体在待测区域的每个位置的WIFI位置指纹数据从而建立WIFI位置指纹数据库。具体而言,获取待定位物体在某一位置的WIFI位置指纹数据包括:对待定位物体在该位置接收的每个无线访问接入点的RSSI值进行采样,并且在该位置采样多次;结合采样数据选择出一部分稳定性和信号质量均较佳的无线访问接入点;对所选择出的该部分的每个无线访问接入点的RSSI值数组进行高斯滤波从而去除一些RSSI值,并对每个无线访问接入点的过滤后的RSSI值数组求取平均值,将求取出的每个无线访问接入点的平均值组成的集合作为该位置的WIFI位置指纹数据进行存储。In step S1, the WIFI location fingerprint data of each position of the object to be located in the area to be tested is obtained to establish a WIFI location fingerprint database. Specifically, obtaining the WIFI location fingerprint data of the object to be positioned at a certain location includes: sampling the RSSI value of each wireless access point received by the object to be positioned at the location, and sampling multiple times at the location; The data selects a part of wireless access points with better stability and signal quality; Gaussian filtering is performed on the RSSI value array of each wireless access point in the selected part to remove some RSSI values, and each Calculate the average value of the filtered RSSI value arrays of four wireless access points, and store the set of the obtained average values of each wireless access point as the WIFI location fingerprint data of the location.

其中,结合采样数据选择出一部分稳定性和信号质量均较佳的无线访问接入点包括计算采样数据中每个无线访问接入点的采样数据出现的频率,将各个频率值降序排列,将前K个频率值所对应的K个无线访问接入点组成第一无线访问接入点集合;计算采样数据中每个无线访问接入点的采样数据的平均值,将各个平均值降序排列,将前K个平均值所对应的K个无线访问接入点组成第二无线访问接入点集合;计算采样数据中每个无线访问接入点的采样数据的标准差,将各个标准差值升序排列,将前K个标准差值所对应的K个无线访问接入点组成第三无线访问接入点集合;对第一无线访问接入点集合、第二无线访问接入点集合以及第三无线访问接入点集合求交集。从上述交集中的各个无线访问接入点中根据实际情况选择出的一部分稳定性和信号质量均较佳的无线访问接入点。Wherein, selecting a part of wireless access points with better stability and signal quality by combining the sampled data includes calculating the frequency of occurrence of the sampled data of each wireless access point in the sampled data, sorting each frequency value in descending order, and sorting the previous The K wireless access points corresponding to the K frequency values form the first wireless access point set; calculate the average value of the sampling data of each wireless access point in the sampled data, arrange each average value in descending order, and The K wireless access points corresponding to the first K average values form the second wireless access point set; calculate the standard deviation of the sampling data of each wireless access point in the sampling data, and arrange each standard deviation value in ascending order , the K wireless access points corresponding to the first K standard deviation values form the third wireless access point set; for the first wireless access point set, the second wireless access point set and the third wireless access point set Find the intersection set of access points. A part of wireless access points with better stability and better signal quality are selected from the wireless access points in the above intersection according to actual conditions.

具体而言,在待测区域内,假设采样点L收到你n个无线访问接入点的集合,其可表示为{AP1,AP2,…APn},然后在该点进行M次采样,考虑每个无线访问接入点在整个采样样本出现的频率,如式子1所示:Specifically, in the area to be tested, suppose that the sampling point L receives your set of n wireless access points, which can be expressed as {AP 1 ,AP 2 ,…AP n }, and then perform M times at this point Sampling, considering the frequency of occurrence of each wireless access point in the entire sampling sample, as shown in Equation 1:

式子1中,M(APi)表示采样中无线访问接入点APi出现的样本数,M表示采样的总样本数。然后对Fre(APi)进行降序排列,选择前Q个无线访问接入点作为选择结果,表示为Q1In Equation 1, M(AP i ) represents the number of samples in which the wireless access point AP i appears in the sampling, and M represents the total number of samples in the sampling. Then Fre(AP i ) is sorted in descending order, and the top Q wireless access points are selected as the selection result, denoted as Q 1 .

并且考虑样本中无线访问接入点的信号强度,每个无线访问接入点的M次测量信号强度求平均值,如式子2所示:And considering the signal strength of the wireless access point in the sample, the M times measured signal strength of each wireless access point is averaged, as shown in Equation 2:

式子2中,RSSIi表示某个无线访问接入点的第i次测量值。可以表示该无线访问接入点的信号质量,对采样点L的N个无线访问接入点按照降序排列,选择前Q个作为选择结果,表示为Q2In Equation 2, RSSI i represents the i-th measurement value of a certain wireless access point. It can represent the signal quality of the wireless access point, and the N wireless access points of the sampling point L according to Arranged in descending order, select the first Q as the selection result, denoted as Q 2 .

同时还要考虑标准差,在采样点L经过M次采样,无线访问接入点AP1接受到M1组采样样本,其数据为{RSSI1,RSSI2,…,RSSIm1},则此无线访问接入点的波动的标准差,如式子3所示。At the same time, the standard deviation should also be considered. After M times of sampling at the sampling point L, the wireless access point AP 1 receives M 1 sets of sampling samples, and its data is {RSSI 1 ,RSSI 2 ,...,RSSI m1 }, then the wireless The standard deviation of the fluctuation of the access point is shown in Equation 3.

式子3中,表示M1次采样样本的平均值。标准差σ可以反映出该无线访问接入点的波动幅度,对采样点L的N个无线访问接入点按照标准差σ进行升序排列,同样选择前Q个无线访问接入点作为选择结果,表示为Q3In formula 3, Indicates the average value of M 1 sampling samples. The standard deviation σ can reflect the fluctuation range of the wireless access point. The N wireless access points of the sampling point L are arranged in ascending order according to the standard deviation σ, and the first Q wireless access points are also selected as the selection result. Denoted as Q 3 .

对上述求出的Q1,Q2,Q3求交集,如式子4所示。Calculate the intersection of Q 1 , Q 2 , and Q 3 obtained above, as shown in Equation 4.

Q=Q1∩Q2∩Q3 (4)Q=Q 1 ∩Q 2 ∩Q 3 (4)

通常待测点能够接收大于5个无线访问接入点的RSSI样本,就能达到很好的定位精度,可以将Q值根据实际待测环境无线访问接入点的数目设置为大于5即可。如果接受到的无线访问接入点的数量比较少,则根据实际情况有选择的采取上述的方案。Generally, the point to be tested can receive RSSI samples of more than 5 wireless access points, which can achieve good positioning accuracy. The Q value can be set to be greater than 5 according to the number of wireless access points in the actual environment to be tested. If the number of received wireless access points is relatively small, the above solution can be selectively adopted according to the actual situation.

对于经过选择的无线访问接入点,由于在测量时人员流动、物体遮挡,还是不可避免的出现一些小概率的值。为了提高最终定位结果的精确度,本实施方式使用高斯滤波模型来排除这些小概率的值,对所选择出的该部分的每个无线访问接入点的RSSI值数组进行高斯滤波从而去除一些RSSI值,并对每个无线访问接入点的过滤后的RSSI值数组求取平均值。For the selected wireless access point, due to the flow of people and the occlusion of objects during the measurement, some values with small probability inevitably appear. In order to improve the accuracy of the final positioning result, this embodiment uses a Gaussian filtering model to exclude these small probability values, and performs Gaussian filtering on the selected RSSI value array of each wireless access point in this part to remove some RSSI values and average the filtered array of RSSI values for each access point.

具体算法如下:首先假设用{RSSI1,RSSI2,…,RSSIn}来表示在一个样本点来自某一无线访问接入点的n次采样值,那么用正态模型可以表示这些RSSI值,如式子5所示。The specific algorithm is as follows: first, assuming that {RSSI 1 , RSSI 2 ,...,RSSI n } are used to represent n sampling values from a certain wireless access point at a sample point, then these RSSI values can be represented by a normal model, As shown in formula 5.

其中:in:

式子5中,x表示RSSI信号强度值。In Equation 5, x represents the RSSI signal strength value.

然后取u-3σ<x≤u+3σ之间的RSSI的值,去除范围之外的值,并将其保存为{RSSI1,RSSI2,…,RSSIn1}。Then take the RSSI value between u-3σ<x≤u+3σ, remove the value outside the range, and save it as {RSSI 1 ,RSSI 2 ,…,RSSI n1 }.

最后根据式子8求取选出的RSSI值的平均值,该平均值为计算出的该样本点来自该无线访问接入点的RSSI信号强度值R。Finally, the average value of the selected RSSI values is calculated according to formula 8, and the average value is the calculated RSSI signal strength value R of the sample point from the wireless access point.

式子8中,n1表示过滤后的样本总数。In Equation 8, n 1 represents the total number of filtered samples.

在步骤S2中采用K均值聚类划分方法对WIFI位置指纹数据库进行分类从而划分为K个类。In step S2, the K-means clustering method is used to classify the WIFI location fingerprint database so as to be divided into K classes.

具体而言,如图2所示,K均值聚类划分方法包括步骤S20~步骤S24。Specifically, as shown in FIG. 2 , the K-means clustering method includes steps S20 to S24.

WIFI位置指纹数据集X={x1,x2,…,xn}作为输入,其中包含N个数据对象,聚类中心的个数为K,聚类准则阈值为ε。划分为K簇的数据集设为输出。The WIFI location fingerprint data set X={x 1 ,x 2 ,…,x n } is used as input, which contains N data objects, the number of cluster centers is K, and the clustering criterion threshold is ε. The dataset divided into K clusters is set as output.

在步骤S20中,从数据集合X中任意选出K个聚类中心M={m1 (1),m2 (1),…mk (1)}。In step S20, K cluster centers M={m 1 (1) , m 2 (1) , . . . m k (1) } are randomly selected from the data set X.

在步骤S21中,计算剩下的每个数据xi(i=1,2,…,N-K)到K个聚类中心M的欧氏距离,用D(i,r)表示,n为定位区域内所有的无线访问接入点个数,xi(RSSIj)表示第i个数据对象接受到的第j个无线访问接入点的信号强度值,mr (1)(RSSIj)表示第r个聚类中心接收到第j个无线访问接入点的信号强度值,如果数据对象xi没有接收到第j个无线访问接入点的信号时,则用一个无限小的数值代替,则D(i,r)的算法采用式子9。In step S21, calculate the Euclidean distance from each remaining data x i (i=1,2,...,NK) to the K cluster centers M, denoted by D(i,r), n is the positioning area The number of all wireless access points in , xi (RSSI j ) represents the signal strength value of the jth wireless access point received by the i-th data object, m r (1) (RSSI j ) represents the The r cluster centers receive the signal strength value of the jth wireless access point, if the data object x i does not receive the signal of the jth wireless access point, it is replaced by an infinitely small value, then The algorithm of D(i,r) adopts formula 9.

在步骤S22中,将xi分配到离其欧氏距离最短的聚类中心中。In step S22, assign x i to the cluster center with the shortest Euclidean distance to it.

在步骤S23中计算每个类所有对象的平均值,并把它作为新的聚类中心点,如式子10所示。In step S23, calculate the average value of all objects in each class, and use it as the new cluster center point, as shown in formula 10.

其中,式子10中,Cr表示第j类包含的数据,Nr表示第j类数据的个数。Among them, in formula 10, Cr represents the data contained in the jth category, and N r represents the number of the jth category of data.

在步骤S24重复上述三个步骤,将剩余xi逐个分类,当聚类中心不再变化或者mr (p)的波动小于给定的阈值的时候,输出K个类的中心,算法结束。Repeat the above three steps in step S24, and classify the remaining x i one by one. When the cluster center does not change or the fluctuation of m r (p) is less than a given threshold, the centers of K classes are output, and the algorithm ends.

在步骤S3中采用加权K近邻法进行匹配定位。具体地,获取待定位物体在当前位置接收的每个无线访问接入点的RSSI值并从中去除一些信号强度较差的无线访问接入点的RSSI值,计算剩余每个RSSI值组成的采样数据与K个类的欧式距离,在欧式距离值最小的类中采用加权K近邻法进行匹配定位从而获得待定位物体的定位结果。In step S3, the weighted K-nearest neighbor method is used for matching and positioning. Specifically, obtain the RSSI value of each wireless access point received by the object to be positioned at the current position and remove the RSSI values of some wireless access points with poor signal strength, and calculate the sampling data composed of the remaining RSSI values For the Euclidean distance with K classes, the weighted K-nearest neighbor method is used for matching and positioning in the class with the smallest Euclidean distance value to obtain the positioning result of the object to be located.

实施例2Example 2

基于同样的发明构思,本发明还提供一种机器人的定位系统,下面进行说明。Based on the same inventive concept, the present invention also provides a robot positioning system, which will be described below.

图3是该机器人的定位系统的网络拓扑示意图。图4是一实施方式的机器人的定位系统的结构组成。其包括:机器人1、机器人控制器2、服务器3。FIG. 3 is a schematic diagram of the network topology of the positioning system of the robot. Fig. 4 is a structural composition of a positioning system of a robot according to an embodiment. It includes: a robot 1 , a robot controller 2 , and a server 3 .

机器人1具有WIFI模块10,机器人1通过WIFI模块10接入多个无线访问接入点,WIFI模块10能够检测接收的每个无线访问接入点的RSSI值。机器人1还具有摄像头11、单片机12以及电机13等。机器人控制器2与多个无线访问接入点通信,用于接收WIFI模块10检测的每个无线访问接入点的RSSI值。可选地,机器人1的WIFI模块10中设置OpenWrt路由器10a,通过OpenWrt路由器10a可以与机器人控制器2之间进行数据交互,例如在OpenWrt路由器10a运行视频服务软件,可以将机器人1的摄像头11采集的图像进行编码,在机器人控制端2可以看到来自机器人1的视频。也可以通过OpenWrt路由器10a进行串口和网口的转换,机器人控制端2的控制数据可以发送至机器人1的单片机12,单片机12发送指令从控制机器人1的电机13动作。The robot 1 has a WIFI module 10, and the robot 1 accesses multiple wireless access points through the WIFI module 10, and the WIFI module 10 can detect the received RSSI value of each wireless access point. The robot 1 also has a camera 11, a single-chip microcomputer 12, a motor 13, and the like. The robot controller 2 communicates with multiple wireless access points for receiving the RSSI value of each wireless access point detected by the WIFI module 10 . Optionally, an OpenWrt router 10a is set in the WIFI module 10 of the robot 1, and data interaction can be performed with the robot controller 2 through the OpenWrt router 10a. The image of the robot is encoded, and the video from robot 1 can be seen on the robot control terminal 2. The conversion between the serial port and the network port can also be carried out through the OpenWrt router 10a, the control data of the robot control terminal 2 can be sent to the single-chip microcomputer 12 of the robot 1, and the single-chip microcomputer 12 sends instructions to act from the motor 13 of the control robot 1.

服务器3与机器人控制器2通信。服务器3包括:WIFI位置指纹数据库建立模块31、聚类模块32以及定位模块33。The server 3 communicates with the robot controller 2 . The server 3 includes: a WIFI location fingerprint database establishment module 31 , a clustering module 32 and a positioning module 33 .

WIFI位置指纹数据库建立模块31用于获取机器人1在待测区域的每个位置的WIFI位置指纹数据从而建立WIFI位置指纹数据库。The WIFI location fingerprint database establishment module 31 is used to obtain the WIFI location fingerprint data of each location of the robot 1 in the area to be tested so as to establish a WIFI location fingerprint database.

具体地,WIFI位置指纹数据库建立模块31包括:采样模块311、无线访问接入点选取模块312、WIFI位置指纹数据生成模块313。采样模块311用于对待定位物体在某一位置接收的每个无线访问接入点的RSSI值进行采样,并且在该位置采样多次。无线访问接入点选取模块312与采样模块311相耦合,用于结合采样模块311的采样数据选择出一部分稳定性和信号质量均较佳的无线访问接入点。WIFI位置指纹数据生成模块313与无线访问接入点选取模块312相耦合,用于对无线访问接入点选取模块312所选择出的每个无线访问接入点的RSSI值数组进行高斯滤波从而去除一些RSSI值,并对每个无线访问接入点的过滤后的RSSI值数组求取平均值,将求取出的每个无线访问接入点的平均值组成的集合作为该位置的WIFI位置指纹数据进行存储。Specifically, the WIFI location fingerprint database establishment module 31 includes: a sampling module 311 , a wireless access point selection module 312 , and a WIFI location fingerprint data generation module 313 . The sampling module 311 is used for sampling the RSSI value of each wireless access point received by the object to be positioned at a certain position, and sampling at this position for multiple times. The wireless access point selection module 312 is coupled with the sampling module 311 , and is used to select a part of wireless access points with better stability and signal quality in combination with the sampling data of the sampling module 311 . The WIFI location fingerprint data generation module 313 is coupled with the wireless access point selection module 312, and is used to perform Gaussian filtering on the RSSI value array of each wireless access point selected by the wireless access point selection module 312 to remove Some RSSI values, and calculate the average value of the filtered RSSI value array of each wireless access point, and use the set of the average value of each wireless access point as the WIFI location fingerprint data of the location to store.

其中,无线访问接入点选取模块312包括:第一无线访问接入点选取模块312a、第二无线访问接入点选取模块312b、第三无线访问接入点选取模块312c以及交集求取模块312d。Wherein, the wireless access point selection module 312 includes: a first wireless access point selection module 312a, a second wireless access point selection module 312b, a third wireless access point selection module 312c and an intersection calculation module 312d .

第一无线访问接入点选取模块312a用于计算采样模块的采样数据中每个无线访问接入点的采样数据出现的频率,将各个频率值降序排列,将前K个频率值所对应的K个无线访问接入点组成第一无线访问接入点集合。第二无线访问接入点选取模块312b用于计算采样数据中每个无线访问接入点的采样数据的平均值,将各个平均值降序排列,将前K个平均值所对应的K个无线访问接入点组成第二无线访问接入点集合。第三无线访问接入点选取模块312c用于计算采样数据中每个无线访问接入点的采样数据的标准差,将各个标准差值升序排列,将前K个标准差值所对应的K个无线访问接入点组成第三无线访问接入点集合。交集求取模块312d用于对第一无线访问接入点集合312a、第二无线访问接入点集合312b以及第三无线访问接入点集合312c求交集,其中,该交集中的各个无线访问接入点为选择出的一部分稳定性和信号质量均较佳的无线访问接入点。The first wireless access point selection module 312a is used to calculate the frequency of occurrence of the sampling data of each wireless access point in the sampling data of the sampling module, arrange each frequency value in descending order, and calculate the K corresponding to the first K frequency values Wireless access points form a first set of wireless access points. The second wireless access point selection module 312b is used to calculate the average value of the sampling data of each wireless access point in the sampling data, arrange each average value in descending order, and sort the K wireless access points corresponding to the first K average values The access points form a second set of wireless access points. The third wireless access point selection module 312c is used to calculate the standard deviation of the sampling data of each wireless access point in the sampling data, arrange each standard deviation value in ascending order, and sort the K corresponding to the first K standard deviation values The wireless access points form a third set of wireless access points. The intersection calculating module 312d is used to calculate the intersection of the first wireless access point set 312a, the second wireless access point set 312b and the third wireless access point set 312c, wherein each wireless access point in the intersection The access points are selected wireless access points with better stability and signal quality.

聚类模块32与WIFI位置指纹数据库建立模块31相耦合,用于采用K均值聚类划分方法对WIFI位置指纹数据库进行分类从而划分为K个类。The clustering module 32 is coupled with the WIFI location fingerprint database building module 31, and is used to classify the WIFI location fingerprint database into K classes by using the K-means clustering method.

定位模块33与聚类模块32相耦合,用于在对机器人定位时,获取WIFI模块10在机器人1当前位置检测的每个无线访问接入点的RSSI数据,并从中去除一些信号强度较差的无线访问接入点的RSSI值,计算剩余每个RSSI值组成的采样数据与K个类的欧式距离,在欧式距离值最小的类中采用加权K近邻法进行匹配定位从而获得待定位物体的定位结果。The positioning module 33 is coupled with the clustering module 32, and is used to obtain the RSSI data of each wireless access point detected by the WIFI module 10 at the current position of the robot 1 when locating the robot, and remove some wireless access points with poor signal strength. The RSSI value of the wireless access point, calculate the Euclidean distance between the sampled data composed of each remaining RSSI value and K classes, and use the weighted K nearest neighbor method for matching and positioning in the class with the smallest Euclidean distance value to obtain the positioning of the object to be located result.

在本实施方式中,为了进一步提高定位精度,在服务器3中还设置了定位校正模块34。其与定位模块33以及机器人控制器2相耦合,机器人控制器2还用于获取机器人电机13的转速。定位校正模块34用于计算前一次定位的位置与本次定位的位置之间的第一距离;还用于根据机器人电机13的转速计算机器人1在前一次定位到本次定位的过程中所移动的第二距离,其中,这个过程的时间可以通过计时器计算得出;还用于比较第一距离和第二距离,若两者之差大于阈值,则判定本次定位结果不正确,发送消息至机器人控制器2进行重新检测数据,否则判定本次定位结果正确并将该定位结果发送至机器人控制器2。机器人控制器2可以通过界面进行显示。In this embodiment, in order to further improve the positioning accuracy, a positioning correction module 34 is also provided in the server 3 . It is coupled with the positioning module 33 and the robot controller 2 , and the robot controller 2 is also used to acquire the rotational speed of the robot motor 13 . The positioning correction module 34 is used to calculate the first distance between the position of the previous positioning and the position of this positioning; it is also used to calculate the moving distance of the robot 1 from the previous positioning to the current positioning according to the rotating speed of the robot motor 13 The second distance, where the time of this process can be calculated by a timer; it is also used to compare the first distance and the second distance, if the difference between the two is greater than the threshold, it is determined that the positioning result is incorrect, and a message is sent Go to the robot controller 2 to re-detect the data, otherwise it is determined that the positioning result is correct and the positioning result is sent to the robot controller 2. The robot controller 2 can be displayed through the interface.

综上所述,根据本实施方式的基于WIFI位置指纹的定位方法以及机器人的定位系统,在建立WIFI位置指纹数据库阶段,对无线访问接入点的稳定性和信号质量进行了双重考量来选择合适的无线访问接入点,提高了精度,避免了无效的无线访问接入点;并对RSSI值进行了高斯滤波,使得其数值明显变得平滑,去除了小概率的杂乱数据;而且使用了K均值聚类算法对指纹数据进行了分类,在后续定位阶段的数据匹配过程中可以加快匹配速度,提高定位实时性;另外在机器人的定位系统中还对定位结果进行了矫正,进一步提高了定位结果的精度。To sum up, according to the positioning method based on WIFI location fingerprint and the positioning system of the robot in this embodiment, in the stage of establishing the WIFI location fingerprint database, the stability and signal quality of the wireless access point are double considered to select the appropriate The wireless access point improves the accuracy and avoids invalid wireless access points; Gaussian filtering is performed on the RSSI value, which makes the value significantly smoother and removes the messy data with small probability; and uses K The mean value clustering algorithm classifies the fingerprint data, which can speed up the matching speed and improve the real-time positioning in the data matching process of the subsequent positioning stage; in addition, the positioning result is corrected in the positioning system of the robot, which further improves the positioning result. accuracy.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

前述对本发明的具体示例性实施方案的描述是为了说明和例证的目的。这些描述并非想将本发明限定为所公开的精确形式,并且很显然,根据上述教导,可以进行很多改变和变化。对示例性实施例进行选择和描述的目的在于解释本发明的特定原理及其实际应用,从而使得本领域的技术人员能够实现并利用本发明的各种不同的示例性实施方案以及各种不同的选择和改变。本发明的范围意在由权利要求书及其等同形式所限定。The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. These descriptions are not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain the specific principles of the invention and its practical application, thereby enabling others skilled in the art to make and use various exemplary embodiments of the invention, as well as various Choose and change. It is intended that the scope of the invention be defined by the claims and their equivalents.

Claims (10)

1.一种基于WIFI位置指纹的定位方法,待定位物体设有WIFI模块,所述待定位物体通过所述WIFI模块与多个无线访问接入点建立通信,所述WIFI模块能够检测接收到的每个无线访问接入点的RSSI值,其特征在于,该基于WIFI位置指纹的定位方法包括:1. A positioning method based on WIFI position fingerprints, the object to be positioned is provided with a WIFI module, and the object to be positioned establishes communication with a plurality of wireless access points through the WIFI module, and the WIFI module can detect received The RSSI value of each wireless access point, it is characterized in that, this positioning method based on WIFI position fingerprint comprises: 获取所述待定位物体在待测区域的每个位置的WIFI位置指纹数据并存储至预先建立的WIFI位置指纹数据库;Obtain the WIFI location fingerprint data of each position of the object to be positioned in the area to be measured and store it in a pre-established WIFI location fingerprint database; 采用K均值聚类划分方法对所述WIFI位置指纹数据库的数据进行分类从而划分为K个类;Using the K-means clustering method to classify the data of the WIFI location fingerprint database so as to be divided into K classes; 获取所述待定位物体在当前位置接收的每个无线访问接入点的RSSI值并从中去除信号强度小于预设阈值的无线访问接入点的RSSI值,计算剩余每个RSSI值组成的采样数据与所述K个类的欧式距离,在所述欧式距离值最小的类中采用加权K近邻法进行匹配定位从而获得所述待定位物体的定位结果。Obtain the RSSI value of each wireless access point received by the object to be positioned at the current position and remove the RSSI value of the wireless access point whose signal strength is less than a preset threshold, and calculate the sampling data composed of each remaining RSSI value For the Euclidean distance to the K classes, the weighted K-nearest neighbor method is used for matching and positioning in the class with the smallest Euclidean distance value, so as to obtain the positioning result of the object to be positioned. 2.如权利要求1所述的基于WIFI位置指纹的定位方法,其特征在于,获取所述待定位物体在某一位置的WIFI位置指纹数据包括:2. the positioning method based on WIFI position fingerprint as claimed in claim 1, is characterized in that, obtaining the WIFI position fingerprint data of the object to be positioned at a certain position comprises: 对所述待定位物体在该位置接收的每个无线访问接入点的RSSI值进行采样;Sampling the RSSI value of each wireless access point received by the object to be positioned at the position; 结合采样数据并且以无线访问接入点的稳定性和信号质量为选择因素筛选出一部分无线访问接入点;Combining the sampling data and taking the stability and signal quality of the wireless access point as the selection factors to select a part of the wireless access point; 对所选择出的该部分的每个无线访问接入点的RSSI值数组进行高斯滤波,并对过滤后的每个无线访问接入点的RSSI值数组求取平均值,将所述平均值组成的集合作为该位置的WIFI位置指纹数据进行存储。Perform Gaussian filtering on the RSSI value array of each wireless access point in the selected part, and calculate the average value of the RSSI value array of each wireless access point after filtering, and form the average value into The collection of is stored as the WIFI location fingerprint data of the location. 3.如权利要求2所述的基于WIFI位置指纹的定位方法,其特征在于,所述结合采样数据并且以无线访问接入点的稳定性和信号质量为选择因素筛选出一部分无线访问接入点包括:3. The location method based on WIFI location fingerprint as claimed in claim 2, characterized in that, the combined sampling data and the stability and signal quality of the wireless access point are selected as selection factors to screen out a part of the wireless access points include: 计算所述采样数据中每个无线访问接入点的采样数据出现的频率,将各个频率值降序排列,将前Q个频率值所对应的Q个无线访问接入点组成第一无线访问接入点集合;Calculate the occurrence frequency of the sampling data of each wireless access point in the sampled data, arrange the frequency values in descending order, and form the first wireless access points corresponding to the first Q frequency values to form the first wireless access point set of points; 计算所述采样数据中每个无线访问接入点的采样数据的平均值,将各个平均值降序排列,将前Q个平均值所对应的Q个无线访问接入点组成第二无线访问接入点集合;Calculate the average value of the sampling data of each wireless access point in the sampled data, arrange the average values in descending order, and form the second wireless access point corresponding to the Q wireless access points corresponding to the first Q average values set of points; 计算所述采样数据中每个无线访问接入点的采样数据的标准差,将各个标准差值升序排列,将前Q个标准差值所对应的Q个无线访问接入点组成第三无线访问接入点集合;Calculate the standard deviation of the sampling data of each wireless access point in the sampling data, arrange the standard deviation values in ascending order, and form the third wireless access point corresponding to the Q wireless access points corresponding to the first Q standard deviation values collection of access points; 对所述第一无线访问接入点集合、所述第二无线访问接入点集合以及所述第三无线访问接入点集合求交集,在该交集中选择出所述一部分无线访问接入点。Obtain an intersection set for the first set of wireless access points, the second set of wireless access points, and the third set of wireless access points, and select the part of wireless access points from the intersection set . 4.一种机器人的定位系统,其特征在于,包括:4. A positioning system for a robot, comprising: 机器人,其具有WIFI模块,所述机器人通过所述WIFI模块接入多个无线访问接入点,所述WIFI模块能够检测接收的每个无线访问接入点的RSSI值;A robot, which has a WIFI module, through which the robot accesses a plurality of wireless access points, and the WIFI module can detect the received RSSI value of each wireless access point; 机器人控制器,与所述多个无线访问接入点通信,用于接收所述WIFI模块检测的每个无线访问接入点的RSSI值;A robot controller, communicating with the plurality of wireless access points, for receiving the RSSI value of each wireless access point detected by the WIFI module; 服务器,与所述机器人控制器通信,所述服务器包括:WIFI位置指纹数据库建立模块、聚类模块以及定位模块,所述WIFI位置指纹数据库建立模块用于获取所述机器人在待测区域的每个位置的WIFI位置指纹数据并存储至预先建立的WIFI位置指纹数据库;所述聚类模块与所述WIFI位置指纹数据库建立模块相耦合,用于采用K均值聚类划分方法对所述WIFI位置指纹数据库的数据进行分类从而划分为K个类;所述定位模块与所述聚类模块相耦合,用于在对所述机器人定位时,获取所述WIFI模块在所述机器人当前位置检测的每个无线访问接入点的RSSI数据,并从中去除信号强度小于预设阈值的无线访问接入点的RSSI值,计算剩余每个RSSI值组成的采样数据与所述K个类的欧式距离,在所述欧式距离值最小的类中采用加权K近邻法进行匹配定位从而获得所述待定位物体的定位结果。The server communicates with the robot controller, and the server includes: a WIFI position fingerprint database building module, a clustering module and a positioning module, and the WIFI position fingerprint database building module is used to obtain each location of the robot in the area to be tested. The WIFI location fingerprint data of the location is stored in a pre-established WIFI location fingerprint database; the clustering module is coupled with the WIFI location fingerprint database establishment module, and is used to classify the WIFI location fingerprint database using the K-means clustering method Classify the data so as to be divided into K categories; the positioning module is coupled with the clustering module, and is used to obtain each wireless data detected by the WIFI module at the current position of the robot when positioning the robot. Access the RSSI data of the access point, and remove the RSSI value of the wireless access point whose signal strength is less than the preset threshold, and calculate the Euclidean distance between the sampled data composed of each remaining RSSI value and the K classes, in the In the class with the smallest Euclidean distance value, the weighted K-nearest neighbor method is used for matching and positioning to obtain the positioning result of the object to be positioned. 5.如权利要求4所述的机器人的定位系统,其特征在于,所述WIFI位置指纹数据库建立模块包括:5. the positioning system of robot as claimed in claim 4, is characterized in that, described WIFI position fingerprint database establishment module comprises: 采样模块,用于对所述待定位物体在某一位置接收的每个无线访问接入点的RSSI值进行采样;A sampling module, configured to sample the RSSI value of each wireless access point received by the object to be positioned at a certain location; 无线访问接入点选取模块,与所述采样模块相耦合,用于结合所述采样模块的采样数据并且以无线访问接入点的稳定性和信号质量为选择因素筛选出一部分无线访问接入点;A wireless access point selection module, coupled with the sampling module, is used to combine the sampling data of the sampling module and select a part of wireless access points with the stability and signal quality of the wireless access points as selection factors ; WIFI位置指纹数据生成模块,与所述无线访问接入点选取模块相耦合,用于对所述无线访问接入点选取模块所选择出的每个无线访问接入点的RSSI值数组进行高斯滤波,并对过滤后的每个无线访问接入点的的RSSI值数组求取平均值,将所述平均值组成的集合作为该位置的WIFI位置指纹数据进行存储。The WIFI location fingerprint data generation module is coupled with the wireless access point selection module, and is used to perform Gaussian filtering on the RSSI value array of each wireless access point selected by the wireless access point selection module , and calculate the average value of the filtered RSSI value array of each wireless access point, and store the set composed of the average value as the WIFI location fingerprint data of the location. 6.如权利要求5所述的机器人的定位系统,其特征在于,所述无线访问接入点选取模块包括:6. the positioning system of robot as claimed in claim 5, is characterized in that, described wireless access point selection module comprises: 第一无线访问接入点选取模块,用于计算所述采样模块的采样数据中每个无线访问接入点的采样数据出现的频率,将各个频率值降序排列,将前Q个频率值所对应的Q个无线访问接入点组成第一无线访问接入点集合;The first wireless access point selection module is used to calculate the frequency of occurrence of the sampled data of each wireless access point in the sampled data of the sampling module, arrange the frequency values in descending order, and sort the frequency values corresponding to the first Q frequency values The Q wireless access points form the first set of wireless access points; 第二无线访问接入点选取模块,用于计算所述采样数据中每个无线访问接入点的采样数据的平均值,将各个平均值降序排列,将前Q个平均值所对应的Q个无线访问接入点组成第二无线访问接入点集合;The second wireless access point selection module is used to calculate the average value of the sampling data of each wireless access point in the sampled data, arrange each average value in descending order, and select the Q corresponding to the first Q average values The wireless access points form a second set of wireless access points; 第三无线访问接入点选取模块,用于计算所述采样数据中每个无线访问接入点的采样数据的标准差,将各个标准差值升序排列,将前Q个标准差值所对应的Q个无线访问接入点组成第三无线访问接入点集合;The third wireless access point selection module is used to calculate the standard deviation of the sampled data of each wireless access point in the sampled data, arrange the standard deviation values in ascending order, and arrange the standard deviation values corresponding to the first Q standard deviation values Q wireless access points form a third wireless access point set; 交集求取模块,与所述第一无线访问接入点选取模块、所述第二无线访问接入点选取模块、所述第三无线访问接入点选取模块均相耦合,用于对所述第一无线访问接入点集合、所述第二无线访问接入点集合以及所述第三无线访问接入点集合求交集,并在该交集中选择出所述一部分无线访问接入点。The intersection obtaining module is coupled with the first wireless access point selection module, the second wireless access point selection module, and the third wireless access point selection module, and is used for the The first set of wireless access points, the second set of wireless access points, and the third set of wireless access points calculate an intersection set, and select the part of wireless access points from the intersection set. 7.如权利要求4所述的机器人的定位系统,其特征在于,所述服务器还包括:7. the positioning system of robot as claimed in claim 4, is characterized in that, described server also comprises: 定位校正模块,与所述定位模块以及所述机器人控制器相耦合,所述机器人控制器还用于获取所述机器人电机转速;所述定位校正模块用于计算前一次定位的位置与本次定位的位置之间的第一距离;还用于根据所述机器人电机转速计算机器人在前一次定位到本次定位的过程中所移动的第二距离;还用于比较所述第一距离和第二距离,若两者之差大于阈值,则判定本次定位结果不正确,发送消息至所述机器人控制器进行重新检测数据,否则判定本次定位结果正确并将该定位结果发送至所述机器人控制器。The positioning correction module is coupled with the positioning module and the robot controller, and the robot controller is also used to obtain the motor speed of the robot; the positioning correction module is used to calculate the position of the previous positioning and the current positioning The first distance between the positions; it is also used to calculate the second distance moved by the robot in the process from the previous positioning to this positioning according to the robot motor speed; it is also used to compare the first distance with the second If the difference between the two is greater than the threshold, it is determined that the positioning result is incorrect, and a message is sent to the robot controller for re-detection data, otherwise it is determined that the positioning result is correct and the positioning result is sent to the robot controller device. 8.一种服务器,用于对物体基于WIFI位置指纹进行定位,其特征在于,所述服务器包括:8. A server, for positioning an object based on a WIFI location fingerprint, characterized in that the server includes: WIFI位置指纹数据库建立模块,用于获取待定位物体在待测区域的每个位置的WIFI位置指纹数据并存储至预先建立的WIFI位置指纹数据库;The WIFI location fingerprint database building module is used to obtain the WIFI location fingerprint data of each position of the object to be positioned in the area to be measured and store it in the pre-established WIFI location fingerprint database; 聚类模块,与所述WIFI位置指纹数据库建立模块相耦合,用于采用K均值聚类划分方法对所述WIFI位置指纹数据库的数据进行分类从而划分为K个类;A clustering module, coupled with the module for establishing the WIFI location fingerprint database, is used to classify the data of the WIFI location fingerprint database into K categories by using the K-means clustering method; 定位模块,与所述聚类模块相耦合,用于在对所述待定位物体定位时,获取所述待定位物体当前位置的每个无线访问接入点的RSSI数据,并从中去除信号强度小于阈值的无线访问接入点的RSSI值,计算剩余每个RSSI值组成的采样数据与所述K个类的欧式距离,在所述欧式距离值最小的类中采用加权K近邻法进行匹配定位从而获得所述待定位物体的定位结果。A positioning module, coupled with the clustering module, used to obtain the RSSI data of each wireless access point at the current position of the object to be positioned when locating the object to be positioned, and remove the RSSI data of each wireless access point whose signal strength is less than The RSSI value of the wireless access point of the threshold value, calculate the Euclidean distance between the sampling data composed of each remaining RSSI value and the K classes, and use the weighted K nearest neighbor method for matching and positioning in the class with the smallest Euclidean distance value. A positioning result of the object to be positioned is obtained. 9.如权利要求8所述的服务器,其特征在于,所述WIFI位置指纹数据库建立模块包括:9. server as claimed in claim 8, is characterized in that, described WIFI location fingerprint database establishment module comprises: 采样模块,用于对所述待定位物体在某一位置接收的每个无线访问接入点的RSSI值进行采样;A sampling module, configured to sample the RSSI value of each wireless access point received by the object to be positioned at a certain location; 无线访问接入点选取模块,与所述采样模块相耦合,用于结合所述采样模块的采样数据并且以无线访问接入点的稳定性和信号质量为选择因素筛选出一部分无线访问接入点;A wireless access point selection module, coupled with the sampling module, is used to combine the sampling data of the sampling module and select a part of wireless access points with the stability and signal quality of the wireless access points as selection factors ; WIFI位置指纹数据生成模块,与所述无线访问接入点选取模块相耦合,用于对所述无线访问接入点选取模块所选择出的每个无线访问接入点的RSSI值数组进行高斯滤波,并对过滤后的每个无线访问接入点的的RSSI值数组求取平均值,将所述平均值组成的集合作为该位置的WIFI位置指纹数据进行存储。The WIFI location fingerprint data generation module is coupled with the wireless access point selection module, and is used to perform Gaussian filtering on the RSSI value array of each wireless access point selected by the wireless access point selection module , and calculate the average value of the filtered RSSI value array of each wireless access point, and store the set composed of the average value as the WIFI location fingerprint data of the location. 10.如权利要求9所述的服务器,其特征在于,所述无线访问接入点选取模块包括:10. The server according to claim 9, wherein the wireless access point selection module comprises: 第一无线访问接入点选取模块,用于计算所述采样模块的采样数据中每个无线访问接入点的采样数据出现的频率,将各个频率值降序排列,将前Q个频率值所对应的Q个无线访问接入点组成第一无线访问接入点集合;The first wireless access point selection module is used to calculate the frequency of occurrence of the sampled data of each wireless access point in the sampled data of the sampling module, arrange the frequency values in descending order, and sort the frequency values corresponding to the first Q frequency values The Q wireless access points form a first set of wireless access points; 第二无线访问接入点选取模块,用于计算所述采样数据中每个无线访问接入点的采样数据的平均值,将各个平均值降序排列,将前Q个平均值所对应的Q个无线访问接入点组成第二无线访问接入点集合;The second wireless access point selection module is used to calculate the average value of the sampling data of each wireless access point in the sampled data, arrange each average value in descending order, and select the Q corresponding to the first Q average values The wireless access points form a second set of wireless access points; 第三无线访问接入点选取模块,用于计算所述采样数据中每个无线访问接入点的采样数据的标准差,将各个标准差值升序排列,将前Q个标准差值所对应的Q个无线访问接入点组成第三无线访问接入点集合;The third wireless access point selection module is used to calculate the standard deviation of the sampled data of each wireless access point in the sampled data, arrange the standard deviation values in ascending order, and arrange the standard deviation values corresponding to the first Q standard deviation values Q wireless access points form a third wireless access point set; 交集求取模块,与所述第一无线访问接入点选取模块、所述第二无线访问接入点选取模块、所述第三无线访问接入点选取模块均相耦合,用于对所述第一无线访问接入点集合、所述第二无线访问接入点集合以及所述第三无线访问接入点集合求交集,并在该交集中选择出所述一部分无线访问接入点。The intersection obtaining module is coupled with the first wireless access point selection module, the second wireless access point selection module, and the third wireless access point selection module, and is used for the The first set of wireless access points, the second set of wireless access points, and the third set of wireless access points calculate an intersection set, and select the part of wireless access points from the intersection set.
CN201910894093.XA 2019-09-20 2019-09-20 Positioning method based on WIFI position fingerprint and positioning system of robot Active CN110602651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910894093.XA CN110602651B (en) 2019-09-20 2019-09-20 Positioning method based on WIFI position fingerprint and positioning system of robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910894093.XA CN110602651B (en) 2019-09-20 2019-09-20 Positioning method based on WIFI position fingerprint and positioning system of robot

Publications (2)

Publication Number Publication Date
CN110602651A true CN110602651A (en) 2019-12-20
CN110602651B CN110602651B (en) 2022-02-01

Family

ID=68861919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910894093.XA Active CN110602651B (en) 2019-09-20 2019-09-20 Positioning method based on WIFI position fingerprint and positioning system of robot

Country Status (1)

Country Link
CN (1) CN110602651B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891241A (en) * 2020-01-08 2020-03-17 北京理工大学重庆创新中心 Fingerprint positioning method based on long-time memory network model and access point selection strategy
CN111711985A (en) * 2020-06-16 2020-09-25 南京林业大学 A Bluetooth RSSI value noise elimination method and Bluetooth positioning method
CN111726860A (en) * 2020-06-09 2020-09-29 北京无限向溯科技有限公司 Positioning method, device, equipment and storage medium based on POI space distance
CN112040415A (en) * 2020-08-10 2020-12-04 国网上海市电力公司 Indoor hybrid positioning method for transformer substation robot based on WIFI and RFID
CN112665578A (en) * 2021-03-16 2021-04-16 湖南承希科技有限公司 Inspection positioning method and system based on tunnel inspection robot
CN114245307A (en) * 2021-12-21 2022-03-25 北京云迹科技股份有限公司 A positioning method, device, electronic device and storage medium for robot
CN114424635A (en) * 2020-06-01 2022-04-29 蜂图志科技控股有限公司 Signal map construction method, device, equipment and readable storage medium
CN114826520A (en) * 2021-01-19 2022-07-29 纬创资通股份有限公司 Method for representing channel state information and related receiving device
CN115226027A (en) * 2022-07-26 2022-10-21 内蒙古大学 A WiFi indoor fingerprint positioning method and device
CN115460687A (en) * 2021-06-07 2022-12-09 中移物联网有限公司 Positioning method, positioning device and related equipment
CN115515068A (en) * 2021-06-23 2022-12-23 华为技术有限公司 Electronic device, distributed implementation method thereof, and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916820A (en) * 2014-03-31 2014-07-09 浙江大学 Wireless indoor locating method based on access point stability degree
CN105933975A (en) * 2016-04-11 2016-09-07 南京邮电大学 WiFi fingerprint-based accuracy improved indoor positioning method
CN106093852A (en) * 2016-05-27 2016-11-09 东华大学 A kind of method improving WiFi fingerprint location precision and efficiency
CN106646338A (en) * 2016-12-07 2017-05-10 华南理工大学 Rapidly accurate indoor location method
WO2017086561A1 (en) * 2015-11-20 2017-05-26 Samsung Electronics Co., Ltd. Landmark location determination
CN109511085A (en) * 2018-10-29 2019-03-22 中国矿业大学 A kind of UWB fingerprint positioning method based on MeanShift and weighting k nearest neighbor algorithm
CN110166930A (en) * 2019-04-03 2019-08-23 华中科技大学 A kind of indoor orientation method and system based on WiFi signal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916820A (en) * 2014-03-31 2014-07-09 浙江大学 Wireless indoor locating method based on access point stability degree
WO2017086561A1 (en) * 2015-11-20 2017-05-26 Samsung Electronics Co., Ltd. Landmark location determination
CN105933975A (en) * 2016-04-11 2016-09-07 南京邮电大学 WiFi fingerprint-based accuracy improved indoor positioning method
CN106093852A (en) * 2016-05-27 2016-11-09 东华大学 A kind of method improving WiFi fingerprint location precision and efficiency
CN106646338A (en) * 2016-12-07 2017-05-10 华南理工大学 Rapidly accurate indoor location method
CN109511085A (en) * 2018-10-29 2019-03-22 中国矿业大学 A kind of UWB fingerprint positioning method based on MeanShift and weighting k nearest neighbor algorithm
CN110166930A (en) * 2019-04-03 2019-08-23 华中科技大学 A kind of indoor orientation method and system based on WiFi signal

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891241A (en) * 2020-01-08 2020-03-17 北京理工大学重庆创新中心 Fingerprint positioning method based on long-time memory network model and access point selection strategy
CN114424635A (en) * 2020-06-01 2022-04-29 蜂图志科技控股有限公司 Signal map construction method, device, equipment and readable storage medium
CN111726860B (en) * 2020-06-09 2022-04-08 北京无限向溯科技有限公司 Positioning method, device, equipment and storage medium based on POI space distance
CN111726860A (en) * 2020-06-09 2020-09-29 北京无限向溯科技有限公司 Positioning method, device, equipment and storage medium based on POI space distance
CN111711985A (en) * 2020-06-16 2020-09-25 南京林业大学 A Bluetooth RSSI value noise elimination method and Bluetooth positioning method
CN111711985B (en) * 2020-06-16 2021-06-18 南京林业大学 Bluetooth RSSI value noise elimination method and Bluetooth positioning method
CN112040415A (en) * 2020-08-10 2020-12-04 国网上海市电力公司 Indoor hybrid positioning method for transformer substation robot based on WIFI and RFID
CN114826520A (en) * 2021-01-19 2022-07-29 纬创资通股份有限公司 Method for representing channel state information and related receiving device
CN114826520B (en) * 2021-01-19 2024-05-17 纬创资通股份有限公司 Channel state information representation method and related receiving device
CN112665578A (en) * 2021-03-16 2021-04-16 湖南承希科技有限公司 Inspection positioning method and system based on tunnel inspection robot
CN115460687A (en) * 2021-06-07 2022-12-09 中移物联网有限公司 Positioning method, positioning device and related equipment
CN115515068A (en) * 2021-06-23 2022-12-23 华为技术有限公司 Electronic device, distributed implementation method thereof, and medium
CN114245307A (en) * 2021-12-21 2022-03-25 北京云迹科技股份有限公司 A positioning method, device, electronic device and storage medium for robot
CN115226027A (en) * 2022-07-26 2022-10-21 内蒙古大学 A WiFi indoor fingerprint positioning method and device

Also Published As

Publication number Publication date
CN110602651B (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN110602651B (en) Positioning method based on WIFI position fingerprint and positioning system of robot
CN106851573B (en) Log path loss model-based joint weighting K nearest neighbor indoor positioning method
KR101895647B1 (en) Location-aided recognition
CN108540929B (en) Indoor fingerprint positioning method based on RSSI signal strength sequencing
CN110166930A (en) A kind of indoor orientation method and system based on WiFi signal
CN107703480B (en) A hybrid kernel function indoor localization method based on machine learning
CN103442331B (en) Terminal unit location determining method and terminal unit
WO2021035966A1 (en) Visual positioning method and related device
CN106646339A (en) Online matching and positioning method in wireless position fingerprint indoor positioning
CN105120479B (en) Signal strength difference correction method for Wi-Fi signals between terminals
CN112135248B (en) WIFI fingerprint positioning method based on K-means optimal estimation
US20160050541A1 (en) Fine-Grained Indoor Location-Based Social Network
CN105635956B (en) One kind is based on indoor virtually target localization method and device
CN108919177A (en) A Location Map Construction Method Based on Virtual Source Estimation and Trajectory Correction
CN112801268A (en) Positioning method based on graph convolution and multilayer perceptron hybrid network
CN111368900A (en) Image target object identification method
CN110300372A (en) A kind of WIFI indoor orientation method based on location fingerprint
CN111757464A (en) A method and device for region contour extraction
CN108737979A (en) A kind of indoor orientation method
Liu et al. An indoor WLAN location algorithm based on fingerprint database processing
CN105357647B (en) A kind of WIFI indoor orientation method under linear &#34;hysteresis&#34; loop border
CN111194000A (en) Distance measurement method and system based on Bluetooth fusion hybrid filtering and neural network
Zhang et al. Research and optimization of BLE fingerprint indoor positioning algorithm based on fusion clustering
Pandey et al. Residual neural networks for heterogeneous smart device localization in IoT networks
Luckner et al. Selection of signal sources influence at indoor positioning system

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