[go: up one dir, main page]

CN116609723A - A method and system for regional radio positioning and early warning of mobile vehicles - Google Patents

A method and system for regional radio positioning and early warning of mobile vehicles Download PDF

Info

Publication number
CN116609723A
CN116609723A CN202310562232.5A CN202310562232A CN116609723A CN 116609723 A CN116609723 A CN 116609723A CN 202310562232 A CN202310562232 A CN 202310562232A CN 116609723 A CN116609723 A CN 116609723A
Authority
CN
China
Prior art keywords
polygon
polyhedron
early warning
coordinates
positioning
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
Application number
CN202310562232.5A
Other languages
Chinese (zh)
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.)
Tongji University
Original Assignee
Tongji University
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 Tongji University filed Critical Tongji University
Priority to CN202310562232.5A priority Critical patent/CN116609723A/en
Publication of CN116609723A publication Critical patent/CN116609723A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-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/06Position of source determined by co-ordinating a plurality of position lines defined by path-difference measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Traffic Control Systems (AREA)

Abstract

本发明涉及一种机动载具区域无线电定位与预警方法及系统,其中方法包括以下步骤:基于测距算法获取无线电标签与各基站之间的距离数据并存储与基站中;基站将距离数据通过串口通信发送至终端设备;终端设备解码距离数据,并执行定位算法,定位行人标签坐标与载具区域多边形/多面体;基于行人标签坐标与区域多边形/多面体执行碰撞检测算法,确定安全区域多边形/多面体,判断是否有行人或其他载具区域进入安全区域多边形/多面体,若判断为是,则通过预警模块进行预警提示,同时终端设备可视化输出预警信息。与现有技术相比,本发明具有结合了无线电定位、定位区域精准、实时预警等优点。

The invention relates to a method and system for radio positioning and early warning in a mobile vehicle area, wherein the method includes the following steps: based on a ranging algorithm, the distance data between the radio tag and each base station is obtained and stored in the base station; the base station transmits the distance data through the serial port The communication is sent to the terminal device; the terminal device decodes the distance data, and executes the positioning algorithm to locate the pedestrian tag coordinates and the vehicle area polygon/polyhedron; based on the pedestrian tag coordinates and the area polygon/polyhedron, executes the collision detection algorithm to determine the safe area polygon/polyhedron, Judging whether pedestrians or other vehicle areas enter the safe area polygon/polyhedron, if the judgment is yes, an early warning prompt will be given through the early warning module, and the terminal equipment will visually output early warning information. Compared with the prior art, the present invention has the advantages of combining radio positioning, accurate positioning area, real-time early warning and the like.

Description

一种机动载具区域无线电定位与预警方法及系统A method and system for regional radio positioning and early warning of mobile vehicles

技术领域technical field

本发明涉及通信定位领域,尤其是涉及一种机动载具区域无线电定位与预警方法及系统。The invention relates to the field of communication positioning, in particular to a method and system for radio positioning and early warning in a motor vehicle area.

背景技术Background technique

工厂、建筑场地、码头等复杂运输场景中人与车的交互十分频繁,由于人与车的路线在许多复杂场景中不可控,特别是行人进入了车辆的盲区,或者车辆行驶距离较近时,发生事故的可能性大大增加。受益于空间物体定位技术的发展,在大型场景中对指定物体的定位精度不断提升,这为我们定位复杂场景中人与车辆的位置从而尽早避免事故发生提供了可能。而传统的GPS等全球导航卫星系统(GNSS)只能提供米级的基线精度水平,即使使用地面站支持能进一步提高至厘米级的精度,但仍然受限于室外的空旷场景,对于工厂等室内场景的定位会由于信号传统损耗而无法有效定位;利用视觉、激光、无线电等方式进行定位的室内定位系统(IPS),可以在人员、载具和其他资产中安装定位信标(标签),通过固定在场景中的锚点(基站)接收标签的数据并由中央控制终端协调完成定位,利用这种方式能在一定范围的大型场景中提供厘米级精度的定位,而其局限在于只能对人员或载具等进行点的定位,若需要对人与载具进行安全预警,还需要对于载具所在的整个区域的定位,从而当人进入载具的安全区域或者载具之间的安全区域发生碰撞的时候给出预警。In complex transportation scenarios such as factories, construction sites, and docks, the interaction between people and vehicles is very frequent. Because the routes between people and vehicles are uncontrollable in many complex scenarios, especially when pedestrians enter the blind spot of the vehicle, or the vehicle travels at a short distance, The possibility of accidents is greatly increased. Benefiting from the development of space object positioning technology, the positioning accuracy of specified objects in large-scale scenes has been continuously improved, which provides us with the possibility to locate people and vehicles in complex scenes and avoid accidents as soon as possible. However, traditional global navigation satellite systems (GNSS) such as GPS can only provide meter-level baseline accuracy. Even if ground station support can further improve the accuracy to centimeter-level, it is still limited to outdoor open scenes. The positioning of the scene will not be able to effectively locate due to the traditional loss of signals; the indoor positioning system (IPS) that uses vision, laser, radio, etc. for positioning can install positioning beacons (labels) in personnel, vehicles and other assets, through The anchor point (base station) fixed in the scene receives the tag data and is coordinated by the central control terminal to complete the positioning. This method can provide centimeter-level precision positioning in a certain range of large-scale scenes, but its limitation is that it can only be used for personnel Or vehicles, etc. for point positioning, if a safety warning is required for people and vehicles, it is also necessary to locate the entire area where the vehicle is located, so that when a person enters the safe area of the vehicle or the safe area between the vehicles Give an early warning in the event of a collision.

发明内容Contents of the invention

本发明的目的是为了提供一种机动载具区域无线电定位与预警方法及系统,利用无线电定位弥补IPS的无法进行区域定位的局限性,从而实现人车、车车的安全检测和预警。The purpose of the present invention is to provide a method and system for regional radio positioning and early warning of motor vehicles, which uses radio positioning to make up for the limitation of IPS that cannot perform regional positioning, so as to realize the safety detection and early warning of vehicles and vehicles.

本发明的目的可以通过以下技术方案来实现:The purpose of the present invention can be achieved through the following technical solutions:

一种机动载具区域无线电定位与预警方法,包括以下步骤:A method for regional radio positioning and early warning of mobile vehicles, comprising the following steps:

S1、基于测距算法获取无线电标签与各基站之间的距离数据并存储与基站中,其中,无线电标签分别放置在场地区域中的行人以及载具上,基站分布于场地区域边缘;S1. Obtain the distance data between the radio tag and each base station based on the ranging algorithm and store it in the base station, wherein the radio tags are respectively placed on pedestrians and vehicles in the field area, and the base stations are distributed at the edge of the field area;

S2、基站将距离数据通过串口通信发送至终端设备;S2. The base station sends the distance data to the terminal device through serial port communication;

S3、终端设备解码距离数据,并执行定位算法,定位行人标签坐标与载具区域多边形/多面体;S3. The terminal device decodes the distance data, and executes a positioning algorithm to locate the coordinates of the pedestrian tag and the polygon/polyhedron of the vehicle area;

S4、基于行人标签坐标与区域多边形/多面体执行碰撞检测算法,确定安全区域多边形/多面体,判断是否有行人或载具区域进入安全区域多边形/多面体,若判断为是,则通过预警模块进行预警提示,同时终端设备可视化输出预警信息;若判断为否,则返回步骤S1,进行持续监测。S4. Execute the collision detection algorithm based on the pedestrian tag coordinates and the area polygon/polyhedron, determine the safe area polygon/polyhedron, and judge whether there are pedestrians or vehicle areas entering the safe area polygon/polyhedron. , and at the same time, the terminal device visually outputs the early warning information; if the judgment is no, return to step S1 for continuous monitoring.

根据定位场景为二维场景或三维场景,确定标签放置的多少与位置;当为二维场景时,定位算法得到的行人标签坐标为二维坐标,对于载具对象,无线电标签放置于载具边缘处,载具定位结果构成矩形或其他多边形;当为三维场景时,定位算法得到的行人标签坐标为三维坐标,对于载具对象,在载具边缘放置标签的基础上增加标签数量提供高度信息,将载具区域拓展成多面体。According to whether the positioning scene is a two-dimensional scene or a three-dimensional scene, determine the number and position of the tags; when it is a two-dimensional scene, the pedestrian tag coordinates obtained by the positioning algorithm are two-dimensional coordinates, and for the vehicle object, the radio tag is placed on the edge of the vehicle , the vehicle positioning result forms a rectangle or other polygons; when it is a 3D scene, the pedestrian label coordinates obtained by the positioning algorithm are 3D coordinates. For the vehicle object, the number of labels is added to provide height information on the basis of placing labels on the edge of the vehicle. Expand the vehicle area into a polyhedron.

所述无线电标签与各基站之间互相发送无线电信号,通过TWR或TDOA测距算法获取距离数据。The radio tags and each base station transmit radio signals to each other, and obtain distance data through TWR or TDOA ranging algorithms.

所述步骤S3中,利用定位算法定位行人标签坐标具体为:In the step S3, using the positioning algorithm to locate the pedestrian label coordinates is specifically:

设测距算法测量得到的每个标签与每个基站的距离为di,i=1,2,...,n,n为基站数量;Suppose the distance between each tag and each base station measured by the ranging algorithm is d i , i=1, 2,..., n, n is the number of base stations;

对于三维场景,设各基站在设定的坐标系下的坐标为(xi,yi,zi),取其中三个基站i,j,k解如下方程组得到行人标签坐标(x,y,z):For a three-dimensional scene, set the coordinates of each base station in the set coordinate system as ( xi , y , zi ) , and take three base stations i, j, k to solve the following equations to obtain the pedestrian label coordinates (x, y ,z):

其中,i,j,k=1,2,...,n且互不相等;Wherein, i, j, k=1, 2, ..., n and not equal to each other;

对于二维场景,设各基站在设定的坐标系下的坐标为(xi,yi),取其中2个基站i,j解如下方程组得到行人标签坐标(x,y):For a two-dimensional scene, set the coordinates of each base station in the set coordinate system as ( xi , y i ), and take two of the base stations i, j to solve the following equations to obtain the pedestrian label coordinates (x, y):

其中,i,j=1,2,…,n且互不相等。Wherein, i, j=1, 2, . . . , n and are not equal to each other.

取不同的基站组合进行行人标签坐标求解,滤除求解结果中坐标值变化超出阈值的点,将滤除后的坐标的中心坐标值作为定位坐标输出。Different base station combinations are used to solve pedestrian tag coordinates, and the points whose coordinate value changes exceed the threshold in the solution result are filtered out, and the center coordinate value of the filtered coordinate is output as the positioning coordinate.

所述步骤S3中,利用定位算法定位载具区域多边形/多面体具体为:In the step S3, using the positioning algorithm to locate the polygon/polyhedron in the vehicle area is specifically:

对于载具上的每个标签,用定位行人标签的方法计算得到标签坐标,将得到的标签坐标依次连接组成多边形/多面体,其中,多面体为基于多边形和高度坐标确定的多边形棱柱;For each tag on the vehicle, the tag coordinates are calculated by locating pedestrian tags, and the obtained tag coordinates are connected in sequence to form a polygon/polyhedron, wherein the polyhedron is a polygonal prism determined based on the polygon and height coordinates;

利用先验数据对多边形/多面体进行矫正:以载具长宽高信息作为先验多边形/多面体数据,利用先验数据与当前定位得到的载具区域多边形/多面体坐标数据相结合进行坐标优化,使得最终得到的多边形/多面体与先验多边形/多面体形状吻合,且与定位得到的区域多边形/多面体贴合程度满足预设的阈值。Use prior data to correct polygons/polyhedrons: take the length, width and height information of the vehicle as prior polygon/polyhedron data, and use the combination of prior data and the vehicle area polygon/polyhedron coordinate data obtained from the current positioning to optimize the coordinates, so that The finally obtained polygon/polyhedron matches the shape of the prior polygon/polyhedron, and the matching degree with the localized polygon/polyhedron meets the preset threshold.

所述步骤S4包括以下步骤:Described step S4 comprises the following steps:

S41、扩展多边形/多面体:给定安全预警范围ds,将定位得到的载具区域多边形/多面体的每个边/面向外法向量方向扩展ds个长度,延长得到的新的边/面,组成新的多边形/多面体,作为安全区域多边形/多面体;S41. Extending the polygon/polyhedron: given the safety warning range d s , extend each side/facing outward normal vector direction of the vehicle area polygon/polyhedron obtained by positioning by d s lengths, and extend the obtained new side/surface, Form new polygons/polyhedra as safe area polygons/polyhedra;

S42、碰撞检测S42. Collision detection

S421、行人与区域碰撞:判断行人标签坐标是否在任意一个安全区域多边形/多面体内,若是则终端设备向该多边形所代表的载具的预警模块传输信息,预警模块进行预警提示,同时,终端设备可视化输出预警信息;若否,则返回步骤S1;S421. Pedestrian and area collision: determine whether the coordinates of the pedestrian tag are within any polygon/polyhedron in the safe area, and if so, the terminal device transmits information to the early warning module of the vehicle represented by the polygon, and the early warning module gives an early warning prompt. At the same time, the terminal device Visually output warning information; if not, return to step S1;

S422、区域间的碰撞:利用多边体碰撞检测算法计算载具区域多边形/多面体是否在任意一个安全区域多边形/多面体间内,若是则终端设备向该多边形所代表的载具的预警模块传输信息,预警模块进行预警提示,同时,终端设备可视化输出预警信息;若否,则返回步骤S1。S422. Collision between areas: use the polygon collision detection algorithm to calculate whether the vehicle area polygon/polyhedron is within any safe area polygon/polyhedron, and if so, the terminal device transmits information to the early warning module of the vehicle represented by the polygon, The early warning module gives an early warning prompt, and at the same time, the terminal device visually outputs early warning information; if not, returns to step S1.

所述终端设备可视化输出预警信息具体为:The visual output warning information of the terminal device is specifically:

用前端工具实时拉取行人与矫正的区域坐标,分别以散点与多边形/多面体的形式输出图形,并显示安全区域多边形/多面体范围,当存在碰撞时,输出可视化提示。Use front-end tools to pull pedestrians and corrected area coordinates in real time, output graphics in the form of scatter points and polygons/polyhedra, and display the polygon/polyhedron range of the safe area, and output visual prompts when there is a collision.

一种机动载具区域无线电定位与预警系统,包括:An area radio positioning and early warning system for mobile vehicles, comprising:

无线电标签,分别放置在场地区域中的行人以及载具上;Radio tags are placed on pedestrians and vehicles in the field area;

基站,分布于场地区域边缘,与无线电标签之间通过互相发送无线电信号并基于测距算法获取距离数据,同时,通过串口通信模块将距离数据发送至终端设备;The base station is distributed on the edge of the site area, and the radio tags send radio signals to each other and obtain distance data based on the ranging algorithm. At the same time, the distance data is sent to the terminal device through the serial port communication module;

供电电源,用于对无线电标签和基站进行供电;Power supply for powering radio tags and base stations;

串口通信模块,用于实现基站与终端设备之间的串口通信;Serial communication module, used to realize the serial communication between the base station and the terminal equipment;

终端设备,用于解码距离数据并根据距离数据执行定位算法,定位行人标签坐标与载具区域多边形/多面体,基于行人标签坐标与区域多边形/多面体执行碰撞检测算法,确定安全区域多边形/多面体,判断是否有行人或载具区域进入安全区域多边形/多面体,若判断为是,则进行通过预警模块进行预警提示,同时终端设备可视化输出预警信息,若判断为否,则更新距离数据,进行持续监测;The terminal device is used to decode the distance data and execute the positioning algorithm according to the distance data, locate the pedestrian tag coordinates and the vehicle area polygon/polyhedron, execute the collision detection algorithm based on the pedestrian tag coordinates and the area polygon/polyhedron, determine the safe area polygon/polyhedron, and judge Whether there are pedestrians or vehicle areas entering the safe area polygon/polyhedron, if the judgment is yes, the early warning module will be used for early warning prompts, and at the same time, the terminal equipment will visually output early warning information, if the judgment is no, the distance data will be updated for continuous monitoring;

预警模块,部署于载具上,用于根据碰撞检测算法的结果进行预警。The early warning module is deployed on the vehicle and is used for early warning according to the result of the collision detection algorithm.

所述串口通信模块为ESP8266 Wifi模块。The serial port communication module is an ESP8266 Wifi module.

与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

1、本发明将通过无线电定位获取行人与载具的位置信息,通过在机动载具边角放置无线电定位标签来框定其区域范围,实现载具区域位置的识别,为人车、车车的安全检测和预警提供数据基础。1. The present invention will obtain the position information of pedestrians and vehicles through radio positioning, and frame its area range by placing radio positioning tags at the corners of motor vehicles, so as to realize the identification of vehicle area positions and provide safety detection for people, vehicles and vehicles. and early warning provide the data basis.

2、本发明采用的定位算法简单,能够极大的减小对设备算力的要求,能够部署于大多数终端设备,适用范围广。2. The positioning algorithm adopted in the present invention is simple, can greatly reduce the requirement on equipment computing power, can be deployed on most terminal equipment, and has a wide range of applications.

3、本发明利用先验数据对区域多边形/多面体进行校正,能够弥补定位标签不能严格同步带来的区域移动时产生的区域形变和飘移,提高定位精度。3. The present invention uses prior data to correct regional polygons/polyhedrons, which can compensate for the regional deformation and drift caused by the inability of the positioning tags to be strictly synchronized when the region moves, and improve the positioning accuracy.

4、本发明通过设置安全区域多边形/多面体,利用现有的成熟算法即可实现区域间的碰撞检测,检测结果准确率高。4. The present invention can realize the collision detection between regions by setting the polygon/polyhedron of the safety region and using the existing mature algorithm, and the accuracy of the detection result is high.

附图说明Description of drawings

图1为本发明的方法流程图;Fig. 1 is method flowchart of the present invention;

图2为一种实施例中的二维场景下的机动载具区域无线电定位与预警系统结构示意图。Fig. 2 is a schematic structural diagram of a mobile vehicle area radio positioning and early warning system in a two-dimensional scene in an embodiment.

具体实施方式Detailed ways

下面结合附图和具体实施例对本发明进行详细说明。本实施例以本发明技术方案为前提进行实施,给出了详细的实施方式和具体的操作过程,但本发明的保护范围不限于下述的实施例。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is carried out on the premise of the technical solution of the present invention, and detailed implementation and specific operation process are given, but the protection scope of the present invention is not limited to the following embodiments.

实施例1Example 1

本实施例提供一种机动载具区域无线电定位与预警方法,如图1所示,包括以下步骤:This embodiment provides a method for radio positioning and early warning in a mobile vehicle area, as shown in Figure 1, comprising the following steps:

S1、基于测距算法获取无线电标签与各基站之间的距离数据并存储与基站中,其中,无线电标签分别放置在场地区域中的行人以及载具上,基站分布于场地区域边缘。S1. Obtain the distance data between the radio tag and each base station based on the ranging algorithm and store it in the base station. The radio tags are respectively placed on pedestrians and vehicles in the field area, and the base stations are distributed at the edge of the field area.

无线电标签的定位方式为可测量角度或距离的射频定位装置,包括但不限于ZigBee,UWB,Wifi等。本实施例中,无线电标签与各基站之间互相发送UWB信号,通过TWR或TDOA等测距算法获取距离数据。The positioning method of the radio tag is a radio frequency positioning device that can measure angle or distance, including but not limited to ZigBee, UWB, Wifi, etc. In this embodiment, the radio tag and each base station send UWB signals to each other, and obtain distance data through ranging algorithms such as TWR or TDOA.

本实施例中,区域定位的对象的载具(Vehicle)是宽泛概念,包括但不限于卡车、叉车、无人机、船只等机动载具以及场景中的固定资产。In this embodiment, the vehicle of the object of regional positioning is a broad concept, including but not limited to trucks, forklifts, drones, ships and other mobile vehicles and fixed assets in the scene.

对于场景中需要定位的人员,在其身上如衣服口袋处放置定位标签。对于场景中需要进行区域定位的载具或资产,将标签放置于其边缘处构成矩形或其他多边形。将基站模块分布于场景边缘,基站覆盖范围尽可能覆盖场地中需要定位的范围。For people who need to be positioned in the scene, place positioning tags on their bodies, such as pockets. For vehicles or assets that require regional positioning in the scene, place labels on their edges to form rectangles or other polygons. The base station modules are distributed on the edge of the scene, and the coverage of the base station covers as much as possible the range that needs to be positioned in the site.

根据定位场景为二维场景或三维场景,确定标签放置的多少与位置;当为二维场景时,定位算法得到的行人标签坐标为二维坐标,对于载具对象,无线电标签放置于载具边缘处,载具定位结果构成矩形或其他多边形;当为三维场景时,定位算法得到的行人标签坐标为三维坐标,对于载具对象,在载具边缘放置标签的基础上增加标签数量提供高度信息,将载具区域拓展成多面体。为提高定位精度,二维定位场景下,标签和基站的高度应尽量在同一水平线上;三维定位场景下提供高度信息的标签应与用于框定区域的标签拉开足够的高度。According to whether the positioning scene is a two-dimensional scene or a three-dimensional scene, determine the number and position of the tags; when it is a two-dimensional scene, the pedestrian tag coordinates obtained by the positioning algorithm are two-dimensional coordinates, and for the vehicle object, the radio tag is placed on the edge of the vehicle , the vehicle positioning result forms a rectangle or other polygons; when it is a 3D scene, the pedestrian label coordinates obtained by the positioning algorithm are 3D coordinates. For the vehicle object, the number of labels is added to provide height information on the basis of placing labels on the edge of the vehicle. Expand the vehicle area into a polyhedron. In order to improve the positioning accuracy, in the 2D positioning scenario, the height of the tag and the base station should be on the same horizontal line as much as possible; in the 3D positioning scenario, the tag providing height information should be sufficiently separated from the tag used to frame the area.

S2、基站将距离数据通过串口通信发送至终端设备。S2. The base station sends the distance data to the terminal device through serial port communication.

S3、终端设备解码距离数据,并执行定位算法,定位行人标签坐标与载具区域多边形/多面体。S3. The terminal device decodes the distance data, and executes a positioning algorithm to locate the coordinates of the pedestrian tag and the polygon/polyhedron of the vehicle area.

S31、利用定位算法定位行人标签坐标S31. Using a positioning algorithm to locate the pedestrian label coordinates

设测距算法测量得到的每个标签与每个基站的距离为di,i=1,2,…,n,n为基站数量;Suppose the distance between each tag and each base station measured by the ranging algorithm is d i , i=1,2,...,n, n is the number of base stations;

对于三维场景,设各基站在设定的坐标系下的坐标为(xi,yi,zi),取其中三个基站i,j,k解如下方程组得到行人标签坐标(x,y,z):For a three-dimensional scene, set the coordinates of each base station in the set coordinate system as ( xi , y , zi ) , and take three base stations i, j, k to solve the following equations to obtain the pedestrian label coordinates (x, y ,z):

其中,i,j,k=1,2,...,n且互不相等;Wherein, i, j, k=1, 2, ..., n and not equal to each other;

对于二维场景,设各基站在设定的坐标系下的坐标为(xi,yi),取其中2个基站i,j解如下方程组得到行人标签坐标(x,y):For a two-dimensional scene, set the coordinates of each base station in the set coordinate system as ( xi , y i ), and take two of the base stations i, j to solve the following equations to obtain the pedestrian label coordinates (x, y):

其中,i,j=1,2,...,n且互不相等。Wherein, i, j=1, 2, . . . , n are not equal to each other.

对于场景中区域定位的标签,每个标签用行人标签定位的方法计算得到坐标值。将得到的散点依次连接组成多边形(三维情景利用高度信息组成多边形棱柱),为了弥补定位标签不能严格同步带来的区域移动时产生的区域形变和飘移,需要利用先验数据对多边形/多面体进行矫正。可以以载具长宽高信息作为先验多边形/多面体数据,利用该数据与当前定位得到的区域多边形/多面体坐标数据相结合进行坐标优化,使得最终得到的多边形/多面体与先验多边形/多面体形状吻合,且与定位得到的区域多边形/多面体尽量贴合。For the tags located in the scene area, the coordinates of each tag are calculated by the pedestrian tag positioning method. The obtained scattered points are sequentially connected to form a polygon (the 3D scene uses height information to form a polygonal prism). In order to compensate for the regional deformation and drift caused by the regional movement caused by the inability of the positioning tags to be strictly synchronized, it is necessary to use the prior data to carry out the polygon/polyhedron correction. The length, width, and height information of the vehicle can be used as the prior polygon/polyhedron data, and the coordinates can be optimized by combining this data with the regional polygon/polyhedron coordinate data obtained from the current positioning, so that the final polygon/polyhedron is in the same shape as the prior polygon/polyhedron Consistent, and as close as possible to the regional polygon/polyhedron obtained by positioning.

S32、利用定位算法定位载具区域多边形/多面体:S32. Using a positioning algorithm to locate polygons/polyhedrons in the vehicle area:

对于载具上的每个标签,用定位行人标签的方法计算得到标签坐标,将得到的标签坐标依次连接组成多边形/多面体,其中,多面体为基于多边形和高度坐标确定的多边形棱柱;For each tag on the vehicle, the tag coordinates are calculated by locating pedestrian tags, and the obtained tag coordinates are connected in sequence to form a polygon/polyhedron, wherein the polyhedron is a polygonal prism determined based on the polygon and height coordinates;

利用先验数据对多边形/多面体进行矫正:以载具长宽高信息作为先验多边形/多面体数据,利用先验数据与当前定位得到的载具区域多边形/多面体坐标数据相结合进行坐标优化,使得最终得到的多边形/多面体与先验多边形/多面体形状吻合,且与定位得到的区域多边形/多面体贴合程度满足预设的阈值。Use prior data to correct polygons/polyhedrons: take the length, width and height information of the vehicle as prior polygon/polyhedron data, and use the combination of prior data and the vehicle area polygon/polyhedron coordinate data obtained from the current positioning to optimize the coordinates, so that The finally obtained polygon/polyhedron matches the shape of the prior polygon/polyhedron, and the matching degree with the localized polygon/polyhedron meets the preset threshold.

S4、基于行人标签坐标与区域多边形/多面体执行碰撞检测算法,确定安全区域多边形/多面体,判断是否有行人或载具区域进入安全区域多边形/多面体,若判断为是,则通过预警模块进行预警提示,同时终端设备可视化输出预警信息;若判断为否,则返回步骤S1,进行持续监测。S4. Execute the collision detection algorithm based on the pedestrian tag coordinates and the area polygon/polyhedron, determine the safe area polygon/polyhedron, and judge whether there are pedestrians or vehicle areas entering the safe area polygon/polyhedron. , and at the same time, the terminal device visually outputs the early warning information; if the judgment is no, return to step S1 for continuous monitoring.

S41、扩展多边形/多面体:给定安全预警范围ds,将定位得到的载具区域多边形/多面体的每个边/面向外法向量方向扩展ds个长度,延长得到的新的边/面,组成新的多边形/多面体,作为安全区域多边形/多面体;S41. Extending the polygon/polyhedron: given the safety warning range d s , extend each side/facing outward normal vector direction of the vehicle area polygon/polyhedron obtained by positioning by d s lengths, and extend the obtained new side/surface, Form new polygons/polyhedra as safe area polygons/polyhedra;

S42、碰撞检测S42. Collision detection

S421、行人与区域碰撞:判断行人标签坐标是否在任意一个安全区域多边形/多面体内,若是则终端设备向该多边形所代表的载具的预警模块传输信息,预警模块进行预警提示,同时,终端设备可视化输出预警信息;若否,则返回步骤S1;S421. Pedestrian and area collision: determine whether the coordinates of the pedestrian tag are within any polygon/polyhedron in the safe area, and if so, the terminal device transmits information to the early warning module of the vehicle represented by the polygon, and the early warning module gives an early warning prompt. At the same time, the terminal device Visually output warning information; if not, return to step S1;

S422、区域间的碰撞:利用多边体碰撞检测算法(如GJK算法)计算载具区域多边形/多面体是否在任意一个安全区域多边形/多面体间内,若是则终端设备向该多边形所代表的载具的预警模块传输信息,预警模块进行预警提示,同时,终端设备可视化输出预警信息;若否,则返回步骤S1。S422. Collision between areas: use a polygon collision detection algorithm (such as the GJK algorithm) to calculate whether the polygon/polyhedron in the vehicle area is in any safe area polygon/polyhedron, and if so, the terminal device sends a message to the vehicle represented by the polygon. The early warning module transmits information, and the early warning module gives an early warning prompt, and at the same time, the terminal device visually outputs the early warning information; if not, return to step S1.

终端设备用前端工具实时拉取行人与矫正的区域坐标,分别以散点与多边形/多面体的形式输出图形,实时监控场景中的人员与载具资产的活动;此外,可显示安全区域多边形/多面体范围,当存在碰撞时,给予警告窗口等可视化提示供终端管理者参考。Terminal equipment uses front-end tools to pull pedestrians and corrected area coordinates in real time, output graphics in the form of scatter points and polygons/polyhedrons, and monitor the activities of personnel and vehicle assets in the scene in real time; in addition, polygons/polyhedrons in safe areas can be displayed When there is a collision, visual prompts such as warning windows are given for the reference of the terminal manager.

实施例2Example 2

本实施例提供一种机动载具区域无线电定位与预警系统,包括:This embodiment provides a mobile vehicle area radio positioning and early warning system, including:

(1)无线电标签(1) Radio tags

对于场景中需要定位的人员,在其身上如衣服口袋处放置定位标签。对于场景中需要进行区域定位的载具或资产,将标签放置于其边缘处构成矩形或其他多边形。将基站模块分布于场景边缘,基站覆盖范围尽可能覆盖场地中需要定位的范围。For people who need to be positioned in the scene, place positioning tags on their bodies, such as pockets. For vehicles or assets that require regional positioning in the scene, place labels on their edges to form rectangles or other polygons. The base station modules are distributed on the edge of the scene, and the coverage of the base station covers as much as possible the range that needs to be positioned in the site.

(2)基站(2) Base station

基站分布于场地区域边缘,与无线电标签之间通过互相发送UWB信号并基于测距算法获取距离数据,同时,通过串口通信模块将距离数据发送至终端设备;The base station is distributed on the edge of the site area, and the radio tags send UWB signals to each other and obtain distance data based on the ranging algorithm. At the same time, the distance data is sent to the terminal device through the serial communication module;

若需要定位的场地过大,为解决较远距离的基站与标签通信强度减弱,可以考虑基站漫游或增加基站分布的方法扩大定位的有效范围。If the site to be positioned is too large, in order to solve the weakening of the communication strength between the base station and the tag at a long distance, the method of roaming the base station or increasing the distribution of the base station can be considered to expand the effective range of positioning.

(3)供电电源,用于对无线电标签和基站进行供电。考虑基站与标签的供电问题,可用5V2A移动电源对其进行供电,标签也可内置电源实现长时间续航。(3) The power supply is used to supply power to the radio tag and the base station. Considering the power supply of the base station and the tag, it can be powered by a 5V2A mobile power supply, and the tag can also have a built-in power supply for long-term battery life.

(4)串口通信模块,用于实现基站与终端设备之间的串口通信。(4) The serial port communication module is used to realize the serial port communication between the base station and the terminal equipment.

本实施例中,串口通信模块选择ESP8266 Wifi模块。In this embodiment, the serial port communication module selects the ESP8266 Wifi module.

(5)终端设备,用于解码距离数据并根据距离数据执行定位算法,定位行人标签坐标与载具区域多边形/多面体,基于行人标签坐标与区域多边形/多面体执行碰撞检测算法,确定安全区域多边形/多面体,判断是否有行人或载具区域进入安全区域多边形/多面体,若判断为是,则进行通过预警模块进行预警提示,同时终端设备可视化输出预警信息,若判断为否,则更新距离数据,进行持续监测。(5) Terminal equipment, used to decode the distance data and execute the positioning algorithm according to the distance data, locate the pedestrian tag coordinates and the vehicle area polygon/polyhedron, and execute the collision detection algorithm based on the pedestrian tag coordinates and the area polygon/polyhedron to determine the safe area polygon/polyhedron Polyhedron, judging whether there are pedestrians or vehicle areas entering the safe area polygon/polyhedron, if it is judged to be yes, the early warning module will be used for early warning prompts, and the terminal equipment will visually output early warning information, if it is judged to be no, then update the distance data and proceed Continuous monitoring.

本实施例中,定位算法包括以下步骤:In this embodiment, the positioning algorithm includes the following steps:

S31、利用定位算法定位行人标签坐标S31. Using a positioning algorithm to locate the pedestrian label coordinates

设测距算法测量得到的每个标签与每个基站的距离为di,i=1,2,...,n,n为基站数量;Suppose the distance between each tag and each base station measured by the ranging algorithm is d i , i=1, 2,..., n, n is the number of base stations;

对于三维场景,设各基站在设定的坐标系下的坐标为(xi,yi,zi),取其中三个基站i,j,k解如下方程组得到行人标签坐标(x,y,z):For a three-dimensional scene, set the coordinates of each base station in the set coordinate system as ( xi , y , zi ) , and take three base stations i, j, k to solve the following equations to obtain the pedestrian label coordinates (x, y ,z):

其中,i,j,k=1,2,...,n且互不相等;Wherein, i, j, k=1, 2, ..., n and not equal to each other;

对于二维场景,设各基站在设定的坐标系下的坐标为(xi,yi),取其中2个基站i,j解如下方程组得到行人标签坐标(x,y):For a two-dimensional scene, set the coordinates of each base station in the set coordinate system as ( xi , y i ), and take two of the base stations i, j to solve the following equations to obtain the pedestrian label coordinates (x, y):

其中,i,j=1,2,...,n且互不相等。Wherein, i, j=1, 2, . . . , n are not equal to each other.

对于场景中区域定位的标签,每个标签用行人标签定位的方法计算得到坐标值。将得到的散点依次连接组成多边形(三维情景利用高度信息组成多边形棱柱),为了弥补定位标签不能严格同步带来的区域移动时产生的区域形变和飘移,需要利用先验数据对多边形/多面体进行矫正。可以以载具长宽高信息作为先验多边形/多面体数据,利用该数据与当前定位得到的区域多边形/多面体坐标数据相结合进行坐标优化,使得最终得到的多边形/多面体与先验多边形/多面体形状吻合,且与定位得到的区域多边形/多面体尽量贴合。For the tags located in the scene area, the coordinates of each tag are calculated by the pedestrian tag positioning method. The obtained scattered points are sequentially connected to form a polygon (the 3D scene uses height information to form a polygonal prism). In order to compensate for the regional deformation and drift caused by the regional movement caused by the inability of the positioning tags to be strictly synchronized, it is necessary to use the prior data to carry out the polygon/polyhedron correction. The length, width, and height information of the vehicle can be used as the prior polygon/polyhedron data, and the coordinates can be optimized by combining this data with the regional polygon/polyhedron coordinate data obtained from the current positioning, so that the final polygon/polyhedron is in the same shape as the prior polygon/polyhedron Consistent, and as close as possible to the regional polygon/polyhedron obtained by positioning.

S32、利用定位算法定位载具区域多边形/多面体:S32. Using a positioning algorithm to locate polygons/polyhedrons in the vehicle area:

对于载具上的每个标签,用定位行人标签的方法计算得到标签坐标,将得到的标签坐标依次连接组成多边形/多面体,其中,多面体为基于多边形和高度坐标确定的多边形棱柱;For each tag on the vehicle, the tag coordinates are calculated by locating pedestrian tags, and the obtained tag coordinates are connected in sequence to form a polygon/polyhedron, wherein the polyhedron is a polygonal prism determined based on the polygon and height coordinates;

利用先验数据对多边形/多面体进行矫正:以载具长宽高信息作为先验多边形/多面体数据,利用先验数据与当前定位得到的载具区域多边形/多面体坐标数据相结合进行坐标优化,使得最终得到的多边形/多面体与先验多边形/多面体形状吻合,且与定位得到的区域多边形/多面体贴合程度满足预设的阈值。Use prior data to correct polygons/polyhedrons: take the length, width and height information of the vehicle as prior polygon/polyhedron data, and use the combination of prior data and the vehicle area polygon/polyhedron coordinate data obtained from the current positioning to optimize the coordinates, so that The finally obtained polygon/polyhedron matches the shape of the prior polygon/polyhedron, and the matching degree with the localized polygon/polyhedron meets the preset threshold.

本实施例中,碰撞检测算法包括以下步骤:In this embodiment, the collision detection algorithm includes the following steps:

S41、扩展多边形/多面体:给定安全预警范围ds,将定位得到的载具区域多边形/多面体的每个边/面向外法向量方向扩展ds个长度,延长得到的新的边/面,组成新的多边形/多面体,作为安全区域多边形/多面体;S41. Extending the polygon/polyhedron: given the safety warning range d s , extend each side/facing outward normal vector direction of the vehicle area polygon/polyhedron obtained by positioning by d s lengths, and extend the obtained new side/surface, Form new polygons/polyhedra as safe area polygons/polyhedra;

S42、碰撞检测S42. Collision detection

S421、行人与区域碰撞:判断行人标签坐标是否在任意一个安全区域多边形/多面体内,若是则终端设备向该多边形所代表的载具的预警模块传输信息,预警模块进行预警提示,同时,终端设备可视化输出预警信息;若否,则返回步骤S1;S421. Pedestrian and area collision: determine whether the coordinates of the pedestrian tag are within any polygon/polyhedron in the safe area, and if so, the terminal device transmits information to the early warning module of the vehicle represented by the polygon, and the early warning module gives an early warning prompt. At the same time, the terminal device Visually output warning information; if not, return to step S1;

S422、区域间的碰撞:利用多边体碰撞检测算法(如GJK算法)计算载具区域多边形/多面体是否在任意一个安全区域多边形/多面体间内,若是则终端设备向该多边形所代表的载具的预警模块传输信息,预警模块进行预警提示,同时,终端设备可视化输出预警信息;若否,则更新距离数据,进行持续监测。S422. Collision between areas: use a polygon collision detection algorithm (such as the GJK algorithm) to calculate whether the polygon/polyhedron in the vehicle area is in any safe area polygon/polyhedron, and if so, the terminal device sends a message to the vehicle represented by the polygon. The early warning module transmits information, and the early warning module gives an early warning prompt. At the same time, the terminal device visually outputs the early warning information; if not, the distance data is updated for continuous monitoring.

(6)预警模块,部署于载具上,用于根据碰撞检测算法的结果进行预警。预警模块可采用蜂鸣器等设备,部署在载具及其他资产处,负责接收终端传来的预警信息实时提醒行人与司机。(6) The early warning module is deployed on the vehicle and is used for early warning according to the result of the collision detection algorithm. The early warning module can use devices such as buzzers, deployed on vehicles and other assets, and is responsible for receiving early warning information from terminals to remind pedestrians and drivers in real time.

系统工作过程中,设定主通信基站,通过该基站串口与终端通信;当场景中需要通信的基站和标签数量较多时,可以设置多个主通信基站,分时向终端发送串口数据以避免数据包的碰撞冲突。此外,为了方便基站串口与终端通信,可采用ESP8266等串口通信模块与终端接入同一局域网传输串口数据。终端设备处理接受的串口数据,包括处理器与显示器,运行定位算法与碰撞检测算法,以及将定位与预警结果实时可视化展示。During the working process of the system, set the main communication base station and communicate with the terminal through the serial port of the base station; when there are many base stations and tags that need to communicate in the scene, multiple main communication base stations can be set to send serial port data to the terminal in time-sharing to avoid data Package collision conflicts. In addition, in order to facilitate the communication between the serial port of the base station and the terminal, a serial communication module such as ESP8266 can be used to connect to the same local area network as the terminal to transmit serial data. The terminal device processes the received serial port data, including processor and display, runs the positioning algorithm and collision detection algorithm, and visualizes the positioning and early warning results in real time.

具体的,在场景中安装三个及以上的基站模块,场景中的人员配有定位标签,对于载具等区域定位对象,将标签放置于其边缘处构成矩形或其他多边形。标签分别向基站发送信号实现TWR算法测距,控制终端利用标签的距离信息计算每个标签在场景中的坐标。对于区域定位标签的坐标,构建对应的多边形,并且将该多边形向外扩展一定的安全距离,得到区域安全多边形。若考虑有些载具或资产的复杂三维结构,可增加标签数量提供高度信息,如部署额外标签于载具顶部,此时定位区域可拓展成多面体。当有人员标签进入该多边形/多面体或者若干区域安全多边形/多面体发生碰撞时,终端利用GJK等碰撞检测算法给出预警提示,从而提醒人员以及载具司机注意安全。Specifically, three or more base station modules are installed in the scene, and the personnel in the scene are equipped with positioning tags. For regional positioning objects such as vehicles, the tags are placed on the edges to form rectangles or other polygons. The tags send signals to the base station respectively to realize the TWR algorithm ranging, and the control terminal uses the distance information of the tags to calculate the coordinates of each tag in the scene. For the coordinates of the area positioning label, construct the corresponding polygon, and extend the polygon outward for a certain safety distance to obtain the area safety polygon. If the complex three-dimensional structure of some vehicles or assets is considered, the number of tags can be increased to provide height information. For example, additional tags are deployed on the top of the vehicle. At this time, the positioning area can be expanded into a polyhedron. When a person tag enters the polygon/polyhedron or several regional safety polygons/polyhedrons collide, the terminal uses GJK and other collision detection algorithms to give an early warning prompt, thereby reminding personnel and vehicle drivers to pay attention to safety.

本发明的创新点在于:The innovation point of the present invention is:

(1)无线电区域定位:有别于目前的无线电标签普遍用于点的定位,该方案的区域定位通过对目标多边形的框定,可以定位一定目标的二维或三维区域范围。(1) Radio area positioning: Different from the current radio tags that are generally used for point positioning, the area positioning of this scheme can locate the two-dimensional or three-dimensional area range of a certain target by framing the target polygon.

(2)区域碰撞检测算法用于安全预警:将人与载具、载具与载具的安全预警抽象为点与多边形/多面体、多边形/多面体与多边形/多面体的碰撞检测问题。(2) The area collision detection algorithm is used for safety warning: abstract the safety warning of people and vehicles, vehicles and vehicles into collision detection problems between points and polygons/polyhedra, polygons/polyhedra and polygons/polyhedra.

优选的,本实施例进行2D区域定位以尽可能降低定位误差,为简化模型,采用三台基站定位即可。Preferably, this embodiment performs 2D area positioning to reduce positioning errors as much as possible. To simplify the model, three base stations are used for positioning.

本实施例将三台基站部署在场地中,呈等腰三角形分布,如图2所示。以1号基站为坐标原点,三角形底边为x轴建立坐标系,三台基站的坐标分别为In this embodiment, three base stations are deployed in a site, and are distributed in an isosceles triangle, as shown in FIG. 2 . The base station No. 1 is used as the origin of the coordinates, and the base of the triangle is the x-axis to establish a coordinate system. The coordinates of the three base stations are

将1号基站串口将这些距离信息和标签id一并传输至终端设备,每条数据的内容包括(标签id,到1号基站距离、到2号基站距离、到3号基站距离);The serial port of No. 1 base station transmits the distance information and the tag id to the terminal device together. The content of each piece of data includes (tag id, distance to No. 1 base station, distance to No. 2 base station, and distance to No. 3 base station);

则,系统执行的定位算法包括以下步骤:Then, the positioning algorithm executed by the system includes the following steps:

S31、为每个标签新建坐标缓存池。定位算法根据距离信息算得各标签的定位坐标,并分别存入对应的缓存池;S31. Create a coordinate buffer pool for each tag. The positioning algorithm calculates the positioning coordinates of each tag according to the distance information, and stores them in the corresponding buffer pool;

S32、对于行人标签,利用到任意两个基站的距离计算当前定位坐标,分别测量三组,最终取三组得出的坐标中心作为输出定位坐标;S32. For pedestrian tags, use the distance to any two base stations to calculate the current positioning coordinates, measure three groups respectively, and finally take the coordinate centers obtained by the three groups as the output positioning coordinates;

S33、对于区域定位标签,用S52的方法进行坐标计算;若当前定位区域的对应的各标签坐标缓存池都有数据,则拉取各池中最新的坐标数据进行坐标矫正,综合区域长宽信息等先验数据和当前计算的坐标数据,输出矫正坐标;S33. For the regional positioning tags, use the method of S52 to calculate the coordinates; if the corresponding tag coordinate buffer pools of the current positioning area have data, then pull the latest coordinate data in each pool to correct the coordinates, and integrate the area length and width information Wait for the prior data and the currently calculated coordinate data, and output the corrected coordinates;

S34、过滤异常坐标。由于静止或低速移动的标签真实位置不会发生大幅度的跳变,因此通过判断缓存池中是否含有距离差较大的坐标数据,可以发现并过滤异常坐标;S34. Filter abnormal coordinates. Since the real position of a static or low-speed moving tag does not change significantly, abnormal coordinates can be found and filtered by judging whether the buffer pool contains coordinate data with a large distance difference;

系统执行的碰撞检测算法包括以下步骤:The collision detection algorithm implemented by the system includes the following steps:

S41、将区域多边形向外扩展安全距离,得到区域安全多边形:给定安全预警范围ds,将区域定位得到的凸多边形的每个边向外法向量方向扩展ds个长度,延长得到的新的边组成新的多边形,该多边形即为安全多边形;S41. Expand the area polygon outward by a safe distance to obtain the area safety polygon: given the safety warning range d s , extend each side of the convex polygon obtained by area positioning to the direction of the outer normal vector by d s lengths, and extend the obtained new The sides form a new polygon, which is the safe polygon;

S42、每次获取新的定位坐标后,若该坐标属于行人标签,则判断该坐标是否在任意区域安全多边形内,若是则行人已进入安全多边形内;S42. After acquiring new positioning coordinates each time, if the coordinates belong to the pedestrian label, it is judged whether the coordinates are within the safety polygon of any area, and if so, the pedestrian has entered the safety polygon;

若该坐标属于定位区域,则运用GJK等碰撞检测算法判断该坐标所在定位区域是否与其他区域的安全多边形发生重叠;If the coordinates belong to the positioning area, use GJK and other collision detection algorithms to judge whether the positioning area where the coordinates are located overlaps with the safety polygons in other areas;

S43、可视化,图像输出行人坐标、定位区域与安全多边形.S43. Visualization, image output pedestrian coordinates, positioning area and safety polygon.

以上详细描述了本发明的较佳具体实施例。应当理解,本领域的普通技术人员无需创造性劳动就可以根据本发明的构思做出诸多修改和变化。因此,凡本技术领域中技术人员依据本发明的构思在现有技术的基础上通过逻辑分析、推理、或者有限的实验可以得到的技术方案,皆应在权利要求书所确定的保护范围内。The preferred specific embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make many modifications and changes according to the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experiments on the basis of the prior art shall be within the scope of protection defined in the claims.

Claims (10)

1.一种机动载具区域无线电定位与预警方法,其特征在于,包括以下步骤:1. A mobile vehicle area radio location and early warning method, is characterized in that, comprises the following steps: S1、基于测距算法获取无线电标签与各基站之间的距离数据并存储与基站中,其中,无线电标签分别放置在场地区域中的行人以及载具上,基站分布于场地区域边缘;S1. Obtain the distance data between the radio tag and each base station based on the ranging algorithm and store it in the base station, wherein the radio tags are respectively placed on pedestrians and vehicles in the field area, and the base stations are distributed at the edge of the field area; S2、基站将距离数据通过串口通信发送至终端设备;S2. The base station sends the distance data to the terminal device through serial port communication; S3、终端设备解码距离数据,并执行定位算法,定位行人标签坐标与载具区域多边形/多面体;S3. The terminal device decodes the distance data, and executes a positioning algorithm to locate the coordinates of the pedestrian tag and the polygon/polyhedron of the vehicle area; S4、基于行人标签坐标与区域多边形/多面体执行碰撞检测算法,确定安全区域多边形/多面体,判断是否有行人或载具区域进入安全区域多边形/多面体,若判断为是,则通过预警模块进行预警提示,同时终端设备可视化输出预警信息;若判断为否,则返回步骤S1,进行持续监测。S4. Execute the collision detection algorithm based on the pedestrian tag coordinates and the area polygon/polyhedron, determine the safe area polygon/polyhedron, and judge whether there are pedestrians or vehicle areas entering the safe area polygon/polyhedron. , and at the same time, the terminal device visually outputs the early warning information; if the judgment is no, return to step S1 for continuous monitoring. 2.根据权利要求1所述的一种机动载具区域无线电定位与预警方法,其特征在于,根据定位场景为二维场景或三维场景,确定标签放置的多少与位置;当为二维场景时,定位算法得到的行人标签坐标为二维坐标,对于载具对象,无线电标签放置于载具边缘处,载具定位结果构成矩形或其他多边形;当为三维场景时,定位算法得到的行人标签坐标为三维坐标,对于载具对象,在载具边缘放置标签的基础上增加标签数量提供高度信息,将载具区域拓展成多面体。2. A kind of radio positioning and early warning method for motor vehicles according to claim 1, characterized in that, according to the positioning scene is a two-dimensional scene or a three-dimensional scene, determine the number and position of the label placement; when it is a two-dimensional scene , the pedestrian tag coordinates obtained by the positioning algorithm are two-dimensional coordinates. For vehicle objects, the radio tags are placed on the edge of the vehicle, and the vehicle positioning results form a rectangle or other polygons; when it is a three-dimensional scene, the pedestrian label coordinates obtained by the positioning algorithm For the three-dimensional coordinates, for the vehicle object, the number of labels is added to provide height information on the basis of the labels placed on the edge of the vehicle, and the vehicle area is expanded into a polyhedron. 3.根据权利要求1所述的一种机动载具区域无线电定位与预警方法,其特征在于,所述无线电标签与各基站之间互相发送无线电信号,通过TWR或TDOA测距算法获取距离数据。3. A method for radio positioning and early warning of a mobile vehicle area according to claim 1, wherein the radio tags and each base station send radio signals to each other, and obtain distance data through TWR or TDOA ranging algorithms. 4.根据权利要求1所述的一种机动载具区域无线电定位与预警方法,其特征在于,所述步骤S3中,利用定位算法定位行人标签坐标具体为:4. A kind of radio positioning and early warning method for motor vehicles according to claim 1, characterized in that, in the step S3, using a positioning algorithm to locate the pedestrian tag coordinates is specifically: 设测距算法测量得到的每个标签与每个基站的距离为di,i=1,2,…,n,n为基站数量;Suppose the distance between each tag and each base station measured by the ranging algorithm is d i , i=1,2,...,n, n is the number of base stations; 对于三维场景,设各基站在设定的坐标系下的坐标为(xi,yi,zi),取其中三个基站i,j,k解如下方程组得到行人标签坐标(x,y,z):For a three-dimensional scene, set the coordinates of each base station in the set coordinate system as (xi , y i , z i ), and take three of the base stations i, j, k to solve the following equations to obtain the pedestrian label coordinates (x, y ,z): 其中,i,j,k=1,2,…,n且互不相等;Among them, i, j, k=1, 2,..., n and are not equal to each other; 对于二维场景,设各基站在设定的坐标系下的坐标为(xi,yi),取其中2个基站i,j解如下方程组得到行人标签坐标(x,y):For a two-dimensional scene, set the coordinates of each base station in the set coordinate system as ( xi , y i ), and take two of the base stations i, j to solve the following equations to obtain the pedestrian label coordinates (x, y): 其中,i,j=1,2,…,n且互不相等。Wherein, i, j=1, 2, . . . , n and are not equal to each other. 5.根据权利要求4所述的一种机动载具区域无线电定位与预警方法,其特征在于,取不同的基站组合进行行人标签坐标求解,滤除求解结果中坐标值变化超出阈值的点,将滤除后的坐标的中心坐标值作为定位坐标输出。5. A kind of mobile vehicle area radio location and early warning method according to claim 4, it is characterized in that, take different base station combinations to carry out pedestrian label coordinate solution, filter out the point in solution result that the coordinate value change exceeds threshold value, will The center coordinate values of the filtered coordinates are output as positioning coordinates. 6.根据权利要求4所述的一种机动载具区域无线电定位与预警方法,其特征在于,所述步骤S3中,利用定位算法定位载具区域多边形/多面体具体为:6. The method for radio positioning and early warning in a region of a mobile vehicle according to claim 4, characterized in that, in the step S3, using a positioning algorithm to locate the polygon/polyhedron in the region of the vehicle is specifically: 对于载具上的每个标签,用定位行人标签的方法计算得到标签坐标,将得到的标签坐标依次连接组成多边形/多面体,其中,多面体为基于多边形和高度坐标确定的多边形棱柱;For each tag on the vehicle, the tag coordinates are calculated by locating pedestrian tags, and the obtained tag coordinates are connected in sequence to form a polygon/polyhedron, wherein the polyhedron is a polygonal prism determined based on the polygon and height coordinates; 利用先验数据对多边形/多面体进行矫正:以载具长宽高信息作为先验多边形/多面体数据,利用先验数据与当前定位得到的载具区域多边形/多面体坐标数据相结合进行坐标优化,使得最终得到的多边形/多面体与先验多边形/多面体形状吻合,且与定位得到的区域多边形/多面体贴合程度满足预设的阈值。Use prior data to correct polygons/polyhedrons: take the length, width and height information of the vehicle as prior polygon/polyhedron data, and use the combination of prior data and the vehicle area polygon/polyhedron coordinate data obtained from the current positioning to optimize the coordinates, so that The finally obtained polygon/polyhedron matches the shape of the prior polygon/polyhedron, and the matching degree with the localized polygon/polyhedron meets the preset threshold. 7.根据权利要求1所述的一种机动载具区域无线电定位与预警方法,其特征在于,所述步骤S4包括以下步骤:7. A kind of radio positioning and early warning method for motor vehicle area according to claim 1, characterized in that, said step S4 comprises the following steps: S41、扩展多边形/多面体:给定安全预警范围ds,将定位得到的载具区域多边形/多面体的每个边/面向外法向量方向扩展ds个长度,延长得到的新的边/面,组成新的多边形/多面体,作为安全区域多边形/多面体;S41. Extending the polygon/polyhedron: given the safety warning range d s , extend each side/facing outward normal vector direction of the vehicle area polygon/polyhedron obtained by positioning by d s lengths, and extend the obtained new side/surface, Form new polygons/polyhedra as safe area polygons/polyhedra; S42、碰撞检测S42. Collision detection S421、行人与区域碰撞:判断行人标签坐标是否在任意一个安全区域多边形/多面体内,若是则终端设备向该多边形所代表的载具的预警模块传输信息,预警模块进行预警提示,同时,终端设备可视化输出预警信息;若否,则返回步骤S1;S421. Pedestrian and area collision: determine whether the coordinates of the pedestrian tag are within any polygon/polyhedron in the safe area, and if so, the terminal device transmits information to the early warning module of the vehicle represented by the polygon, and the early warning module gives an early warning prompt. At the same time, the terminal device Visually output warning information; if not, return to step S1; S422、区域间的碰撞:利用多边体碰撞检测算法计算载具区域多边形/多面体是否在任意一个安全区域多边形/多面体间内,若是则终端设备向该多边形所代表的载具的预警模块传输信息,预警模块进行预警提示,同时,终端设备可视化输出预警信息;若否,则返回步骤S1。S422. Collision between areas: use the polygon collision detection algorithm to calculate whether the vehicle area polygon/polyhedron is within any safe area polygon/polyhedron, and if so, the terminal device transmits information to the early warning module of the vehicle represented by the polygon, The early warning module gives an early warning prompt, and at the same time, the terminal device visually outputs the early warning information; if not, return to step S1. 8.根据权利要求1所述的一种机动载具区域无线电定位与预警方法,其特征在于,所述终端设备可视化输出预警信息具体为:8. A kind of mobile vehicle area radio positioning and early warning method according to claim 1, characterized in that, the visual output early warning information of the terminal equipment is specifically: 用前端工具实时拉取行人与矫正的区域坐标,分别以散点与多边形/多面体的形式输出图形,并显示安全区域多边形/多面体范围,当存在碰撞时,输出可视化提示。Use front-end tools to pull pedestrians and corrected area coordinates in real time, output graphics in the form of scatter points and polygons/polyhedra, and display the polygon/polyhedron range of the safe area, and output visual prompts when there is a collision. 9.一种机动载具区域无线电定位与预警系统,其特征在于,包括:9. A regional radio positioning and early warning system for mobile vehicles, characterized in that it includes: 无线电标签,分别放置在场地区域中的行人以及载具上;Radio tags are placed on pedestrians and vehicles in the field area; 基站,分布于场地区域边缘,与无线电标签之间通过互相发送无线电信号并基于测距算法获取距离数据,同时,通过串口通信模块将距离数据发送至终端设备;The base station is distributed on the edge of the site area, and the radio tags send radio signals to each other and obtain distance data based on the ranging algorithm. At the same time, the distance data is sent to the terminal device through the serial port communication module; 供电电源,用于对无线电标签和基站进行供电;Power supply for powering radio tags and base stations; 串口通信模块,用于实现基站与终端设备之间的串口通信;Serial communication module, used to realize the serial communication between the base station and the terminal equipment; 终端设备,用于解码距离数据并根据距离数据执行定位算法,定位行人标签坐标与载具区域多边形/多面体,基于行人标签坐标与区域多边形/多面体执行碰撞检测算法,确定安全区域多边形/多面体,判断是否有行人或载具区域进入安全区域多边形/多面体,若判断为是,则进行通过预警模块进行预警提示,同时终端设备可视化输出预警信息,若判断为否,则更新距离数据,进行持续监测;The terminal device is used to decode the distance data and execute the positioning algorithm according to the distance data, locate the pedestrian tag coordinates and the vehicle area polygon/polyhedron, execute the collision detection algorithm based on the pedestrian tag coordinates and the area polygon/polyhedron, determine the safe area polygon/polyhedron, and judge Whether there are pedestrians or vehicle areas entering the safe area polygon/polyhedron, if the judgment is yes, the early warning module will be used for early warning prompts, and at the same time, the terminal equipment will visually output early warning information, if the judgment is no, the distance data will be updated for continuous monitoring; 预警模块,部署于载具上,用于根据碰撞检测算法的结果进行预警。The early warning module is deployed on the vehicle and is used for early warning according to the result of the collision detection algorithm. 10.根据权利要求9所述的一种机动载具区域无线电定位与预警系统,其特征在于,所述串口通信模块为ESP8266 Wifi模块。10. The regional radio positioning and early warning system for motorized vehicles according to claim 9, wherein the serial port communication module is an ESP8266 Wifi module.
CN202310562232.5A 2023-05-18 2023-05-18 A method and system for regional radio positioning and early warning of mobile vehicles Pending CN116609723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310562232.5A CN116609723A (en) 2023-05-18 2023-05-18 A method and system for regional radio positioning and early warning of mobile vehicles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310562232.5A CN116609723A (en) 2023-05-18 2023-05-18 A method and system for regional radio positioning and early warning of mobile vehicles

Publications (1)

Publication Number Publication Date
CN116609723A true CN116609723A (en) 2023-08-18

Family

ID=87679396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310562232.5A Pending CN116609723A (en) 2023-05-18 2023-05-18 A method and system for regional radio positioning and early warning of mobile vehicles

Country Status (1)

Country Link
CN (1) CN116609723A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190044616A1 (en) * 2017-08-07 2019-02-07 Osram Sylvania Inc. Techniques for resolving angle of transmitter and angle of receiver in light-based communication used to determine vehicle position
US20190129025A1 (en) * 2017-10-26 2019-05-02 Safemine Ag Personal protection system with rf time-of-flight ranging
CN113463718A (en) * 2021-06-30 2021-10-01 广西柳工机械股份有限公司 Anti-collision control system and control method for loader

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190044616A1 (en) * 2017-08-07 2019-02-07 Osram Sylvania Inc. Techniques for resolving angle of transmitter and angle of receiver in light-based communication used to determine vehicle position
US20190129025A1 (en) * 2017-10-26 2019-05-02 Safemine Ag Personal protection system with rf time-of-flight ranging
CN113463718A (en) * 2021-06-30 2021-10-01 广西柳工机械股份有限公司 Anti-collision control system and control method for loader

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王萌: "基于组合定位的现代有轨电车雷达防撞系统设计", 铁道标准设计, vol. 64, no. 05, 24 October 2019 (2019-10-24), pages 189 - 193 *

Similar Documents

Publication Publication Date Title
CN115597659B (en) Intelligent safety management and control method for transformer substation
KR102826629B1 (en) Method, apparatus, computer program and computer readable recording medium for producing high definition map
CN111432017B (en) Special platform truck of intelligence grain commodity circulation based on car networking and intelligent driving technique
CN106405605B (en) A kind of indoor and outdoor seamless positioning method and positioning system of the robot based on ROS and GPS
CN118276077B (en) Intelligent driving multi-mode navigation system and method
JP6840369B2 (en) Automated guided vehicle and transportation work method using it
EP3913328B1 (en) Vehicle positioning system and method, and vehicle
US12416731B2 (en) System and method for collaborative calibration via landmark
CN107562054A (en) The independent navigation robot of view-based access control model, RFID, IMU and odometer
CN109573029B (en) Method for avoiding obstacles for plant protection unmanned aerial vehicle during return flight and landing
KR20180109118A (en) A method for identifying the exact position of robot by combining QR Code Tag, beacon terminal, encoder and inertial sensor
CN103957596B (en) The comprehensive search and rescue system of community policing personnel and localization method
WO2022004494A1 (en) Industrial vehicle
CN105573339A (en) Navigation flight system based on rotor airship
CN113050626B (en) Physical forbidden zone detection and global relocation method for service robot
CN106503830A (en) A kind of unmanned plane patrol system and its patrol method
CN115379555A (en) Forklift anti-collision method and system based on UWB positioning technology
CN115267820A (en) Fire scene map construction method and system fusing laser radar/vision/UWB
EP3678115B1 (en) Auxiliary parking method, apparatus and system
Imani et al. Autopilot drone in construction: A proof of concept for handling lightweight instruments and materials
CN116609723A (en) A method and system for regional radio positioning and early warning of mobile vehicles
CN110020470B (en) Showcase moving method for layout planning in exhibition hall
CN112797986B (en) Intelligent logistics robot positioning system and method based on unmanned autonomous technology
CN204495357U (en) A kind of many Quito module net merges indoor occupant navigation positioning system
CN115273542B (en) Port vehicle anti-collision system and method

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