Multi-person tracking system, method, medium and terminal based on multi-radar fusion
Through multi-radar fusion technology and ROS system, combined with Kalman filter and clustering algorithm, the problem of high cost of optical sensors and low accuracy of single lidar data is solved, and low-cost and accurate indoor pedestrian tracking is achieved, which is suitable for smart elderly care applications. .
Patent Information
- Application Number
- CN202111313334.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-11-08
AI Technical Summary
In the existing smart elderly care technology, optical sensors used to monitor the elderly's walking conditions have high costs, complex data processing, poor adaptability, and risks of privacy leakage. Moreover, it is difficult for a single lidar to form a complete map in a complex environment, with low data accuracy and occlusion effects. big.
Multi-radar fusion technology is used to communicate with multiple lidars through Raspberry Pi to establish a hybrid network. The ROS system is used for data synchronization and processing, and the Kalman filter and clustering algorithm are combined for target identification and tracking to form a multi-radar network module. to improve data accuracy and system robustness.
It achieves low-cost, instant and accurate indoor pedestrian tracking, reduces the occlusion problem under a single sensor, expands the detection range, and meets the needs of smart elderly care. The system can run offline and is suitable for the elderly with limited economic strength.
Smart Images

Figure CN114185059B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of radar measurement technology, and in particular relates to a multi-person tracking system, method, medium and terminal based on multi-radar fusion. Background Art
[0002] At present, the safety protection of the elderly population is a very important part of social security. Among them, the protection of the elderly living alone is the focus of the work of the elderly population. A new low-cost and continuous care method is needed to ensure the health and safety of the elderly living alone.
[0003] At present, in the field of smart home elderly care, monitoring and analyzing people's walking is a very important part. There are many ways to complete this part, such as computer vision. Through computer analysis of actual images, a lot of information can be obtained, including people's position, walking status, posture, movement trajectory, etc. There are many inventions about image analysis. However, due to cost considerations, the calculation cost of computer vision is very high and the algorithm is very complex.
[0004] Analysis through LiDAR has unique advantages. Unlike optical sensors, LiDAR acquires one-dimensional linear point cloud data, which greatly reduces the amount of two-dimensional image data that computer vision needs to process. Moreover, LiDAR acquires information with less interference and less dirty data, making it more suitable for simple analysis in complex environments. Currently, LiDAR is widely used in production, life, and military.
[0005] With the continuous development of hardware sensors, multi-sensor redundancy has become an important means to improve accuracy and functionality. The present invention aims to use multiple laser radars to form a network for joint analysis. There are many problems with a single laser radar. The laser radar detects a plane, so occlusion has a huge impact on detection. A single laser radar cannot form a complete map for indoor environment detection. Multi-laser radars can obtain more accurate data through the observation of the same object by different radars.
[0006] Through the above analysis, the problems and defects of the prior art are as follows:
[0007] (1) At present, most smart elderly care systems often use optical sensors such as cameras for analysis, which has many problems. Optical sensors have complex images and are difficult to analyze. They are often difficult to apply to complex environments, and their cost is higher than that of lidar. The cost includes three aspects: sensors, analysis algorithms, and computing units. All aspects are higher than lidar. In many existing technologies, the smart care system composed of optical sensors performs poorly for the actual situation at home and has poor adaptability to a large number of uncontrollable factors such as illumination and occlusion. Optical sensors also have a privacy issue. How to ensure that image data is not leaked is also a key point that needs attention. The working principle of lidar is to emit a scanning laser in the direction to be detected. The laser hits the surface of a reflective object and then reflects. After the radar receives the laser reflection, it can measure the distance to the target point, forming a linear data of distance and arc. Lidar has good adaptability to conditions such as illumination. The existing technology uses lidar with lower cost and smaller data volume, which has not been put into practical application.
[0008] (2) In the prior art, the data obtained is of low accuracy. The data processing is cumbersome, the data transmission volume is large, the calculation volume is large, and the cost is high.
[0009] The significance of solving the above problems and defects is:
[0010] The present invention is aimed at healthy elderly care, and aims to monitor the health level of the elderly in real time when there is no one to take care of them, and analyze the physical condition of the person by monitoring walking and long-term tracking. The present invention adopts a multi-radar joint analysis method, which can obtain information from different radars at the same time. The laser radar has a lower resolution for objects that are farther away, and objects that are too close are severely blocked. For example, when people are walking, one foot often blocks another foot. Therefore, there is a distance interval for the best distance for laser radar detection. Using multiple radars to form a radar network can obtain a large amount of data redundancy to improve accuracy.
[0011] The present invention adopts a self-established multi-lidar network. There are two main ways to establish a multi-sensor system, centralized and distributed. The centralized method refers to aggregating all sensor information onto a computing device and analyzing it in a unified manner. The advantages are simple data processing and accurate results, but the disadvantages are large data transmission volume, large amount of calculation, and high cost. The distributed method refers to each sensor independent computing unit, which performs calculations separately and finally obtains the optimal solution in a unified manner. The advantage is that the amount of calculation is small, but the disadvantage is that it is not accurate enough. The present invention intends to adopt a hybrid method, combining the two network establishment methods together, and each device performs preliminary calculations and then aggregates them to a certain center to complete the calculation. It is intended to use the ROS master-slave system to complete the establishment of a multi-lidar network.
[0012] The present invention aims to obtain the movement trajectory and characteristics of people indoors. By analyzing the trajectory and characteristics in time and space, the long-term health status of the elderly can be obtained, and the real-time situation can also be obtained to monitor the activities of the elderly, such as whether they have fallen. Summary of the invention
[0013] In order to overcome the problems existing in the related art, the disclosed embodiments of the present invention provide a multi-person tracking system, method, terminal, medium, and device based on multi-radar fusion. The technical solution is as follows:
[0014] According to a first aspect of an embodiment disclosed in the present invention, a multi-person tracking method based on multi-radar fusion is provided, comprising:
[0015] Step 1: Enable different Raspberry Pis to communicate with multiple LiDARs and establish a host to process data;
[0016] Step 2: The host receives multiple sets of data from different radars, aligns the data from different radars, and synchronizes them to the same coordinate axis; when synchronizing the data from different radars, the time is first synchronized so that the synchronized data is the data collected by different radars at the same time;
[0017] Step 3: extract the moving point data from each lidar data, process it and transmit it out;
[0018] Step 4: The host processes the data received in step 2, finally obtains the footsteps of the pedestrian and continuously tracks them; uses a clustering method to cluster the moving point data received in step 3, calculates the geometric center of the cluster, and performs the next step of tracking; and then uses a Kalman filter to track and calculate the position of the target;
[0019] Step 5: After the data is processed, the data is immediately stored in the file and uploaded to the cloud.
[0020] In one embodiment of the present invention, the host that processes data using different Raspberry Pi components in step 1 includes:
[0021] Based on the ROS system program, modify the configuration file for each Raspberry Pi slave, mark it as a slave, store the host's IP address, the host stores the IP addresses of all slaves and marks itself as the host, all Raspberry Pis will use a fixed IP when connecting to WIFI; or use LAN broadcast to make a preliminary confirmation, then save the dynamic IP into the file before proceeding to the next step of connection;
[0022] When the system is running, the host runs a script file. The script file contains the part of connecting to the slave machine through the ssh protocol, and then starts the corresponding ROS node through the ssh protocol transmission instruction. The ROS node completes the connection of each Raspberry Pi by receiving and sending data.
[0023] In one embodiment of the present invention, the step 2 in which the host receives multiple sets of data from different radars, aligns the data from different radars, and synchronizes them to the same coordinate axis includes:
[0024] First, establish a ROS node to run the radar driver. Whenever the radar driver returns data, establish a publisher ROS thread to broadcast the source data to the ROS system.
[0025] Then establish a ROS node to receive source data and preprocess the data
[0026] Then, the polar coordinates of each frame of received data are converted into rectangular coordinates and compared with the map file;
[0027] When judging the moving point, the accuracy of the received data and map data is enlarged to 5cm. The calculation process is as follows:
[0028]
[0029] Extract points in the received data that are not in the map data and broadcast them under the ROS system.
[0030] In one embodiment of the present invention, the step 2 of synchronizing different radar data by first synchronizing the time so that the synchronized data is data collected by different radars at the same time includes:
[0031] The same ROS node receives the moving point data from all Raspberry Pis at the same time, and establishes a queue array to store the data. The size of the queue array is the number of Raspberry Pis. When the receiver receives the data, it first transforms the spatial coordinates according to the rotation angle and translation amount stored in advance according to the host name contained in the data, and then stores it in the queue at the corresponding position. The spatial coordinate change is as follows:
[0032] p′=Hp+t;
[0033] p′ is the coordinate vector of the point after the change, p is the coordinate vector of the point before the change, t is the translation amount, and H is the transformation matrix whose value is θ is the rotation angle; a thread is established to complete time synchronization, a data packet is dequeued from each queue, and the slave time attributes are subtracted from the host time attributes. If the host time is faster, the slave queue dequeues a corresponding number of data packets; if the slave time is faster, the host queue dequeues a corresponding number of data packets. If the absolute value of the difference is less than the threshold, the corresponding flag position of the slave queue is true, indicating that the host has been aligned with the slave; after alignment, the corresponding time of the two radars is stored in the file; the frame loss is within an acceptable range, and time synchronization is completed.
[0034] In one embodiment of the present invention, the step 4 of using a Kalman filter to track and calculate the position of the target includes:
[0035] The core equation of the Kalman filter model is as follows:
[0036] X k =A k X k-1 +B k u k +w k ;
[0037] z k =H k X k +v k ;
[0038] Where X k =[x k ,y k , x′ k , y′ k ] is the actual human foot state vector of the kth frame;
[0039] z k =[x k ,y k ] is the position of the human foot obtained by the laser radar in the kth frame;
[0040] A k is the state transition matrix;
[0041] B k is the control input matrix, which maps motion measurements to the state vector;
[0042] u k is the system control vector of the kth frame, which is ignored in this model;
[0043] w k is the process noise;
[0044] H k is the conversion matrix, which converts the state vector into the format of the measurement vector;
[0045] v k is the observation noise;
[0046] X k =A k X k-1 +B k u k ;
[0047]
[0048] X′ k =X k +K(z k -H k Xk );
[0049] P′ k =P k -KH k P k ;
[0050]
[0051] Where X′ k is the human foot state vector after system correction in the kth frame;
[0052] P k is the covariance matrix of the estimated state of the kth frame;
[0053] P′ k is the covariance matrix of the human foot state after system correction in the kth frame;
[0054] K is the Kalman increment.
[0055] According to a second aspect of the disclosed embodiment of the present invention, a multi-person tracking system based on multi-radar fusion is provided, comprising:
[0056] Radar network module: Use multiple radars to establish a radar network structure to allocate the scheduling of different radars;
[0057] Radar data processing preprocessing module: used for multiple radar systems with multiple sets of data, and performs noise reduction and screening on the data;
[0058] Multi-radar data registration and fusion module: used to register and fuse an indefinite number of radar images of the same scene, and also used to register two or more images of the same scene so that the image pairs are aligned on a common spatial axis;
[0059] Target analysis module: used to analyze point cloud data, separate suspected pedestrians, and track them;
[0060] Result display module: used to print out walking data in the form of tables and images.
[0061] In one embodiment of the present invention, the multi-person tracking system based on multi-radar fusion further comprises:
[0062] The laser radar is directly connected to the Raspberry Pi USB interface. All Raspberry Pis run in the same network segment. The host Raspberry Pi starts the ROSCORE process and connects several slave Raspberry Pis through the connection module. All Raspberry Pis equipped with radar run the ROS process for reading radar data and the ROS process for processing and sending data. The host Raspberry Pi runs the ROS process for receiving and analyzing the processed data; the running results are uploaded to the cloud.
[0063] According to a third aspect of the disclosed embodiment of the present invention, there is provided a storage medium for receiving a program input by a user, wherein the stored computer program enables an electronic device to execute the method of the present invention.
[0064] According to a fourth aspect of an embodiment disclosed in the present invention, there is provided an information data processing terminal, the information data processing terminal comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the processor executes the method of the present invention.
[0065] According to the fifth aspect of the disclosed embodiment of the present invention, a multi-lidar network device is provided. The multi-lidar network device adopts a ROS master-slave system to combine centralized and distributed network establishment. Each device performs preliminary calculations and then aggregates them to a certain center to complete the calculation.
[0066] The technical solution provided by the embodiments disclosed in the present invention may have the following beneficial effects:
[0067] The present invention analyzes the reality that many elderly people do not have the financial strength at this stage, and uses low-cost 2D laser radar and microcomputer Raspberry Pi to build a multi-sensor target recognition and tracking system. The system can use multi-laser radar data to detect the footsteps of indoor pedestrians for a long time after deployment. The system uses the ROS system to connect multiple Raspberry Pis and radars into a network, and uses the data of other radars to supplement the data of the main radar. It can improve the accuracy and solve the occlusion problem under some single sensors without significantly increasing the cost, and expand the detection range. The core algorithm of the system is the Kalman filter and the clustering algorithm based on regional growth, and the target recognition and tracking parts are completed by these two algorithms. The system is an instant, offline-operable indoor target recognition and tracking system that is interconnected through a local area network. Under the premise of ensuring low cost, it can achieve real-time tracking of human feet with a certain degree of accuracy, which can meet the basic needs of modern intelligent elderly care.
[0068] Compared with the prior art, the advantages of the present invention further include:
[0069] The present invention mainly completes a system for identifying and tracking indoor pedestrians through a laser radar network. The whole process from software invention to implementation is described in the form of software invention documents and some results are presented. Through the present invention, users can obtain the results of indoor pedestrian footstep tracking in real time, and more conclusions can be drawn from these data.
[0070] The present invention uses 2D laser radar as a sensor. Laser radar is less affected by the environment, uses low power, has no noise or other pollution, is not affected by light, and can operate 24 hours a day. The laser radar used in this system is lower than other industrial-grade laser radars. The whole system does not use expensive equipment, which meets the actual needs of home-based elderly care. The increasingly aging society needs a low-cost and highly intelligent security system to support the elderly care industry, which is seriously lacking in manpower and economy.
[0071] The present invention uses a multi-sensor observation structure. Multi-sensors can effectively improve the accuracy of the results without increasing the cost. Compared with the target recognition and tracking performed by the traditional single laser radar, the multi-laser radar is not affected by obstacles in one direction and can continuously track indoor pedestrians. Multi-sensors will also improve the robustness of the system. When one radar or one Raspberry Pi fails, as long as the host Raspberry Pi is not at fault, the system can still maintain a certain degree of accuracy and continue to function.
[0072] The present invention is an instant system. Many similar inventions use machine learning algorithms to perform target recognition and tracking. However, such algorithms occupy a lot of resources and take a long time to calculate, which does not meet the needs of immediacy. The present system can instantly feedback the results based on the laser radar, and the delay is within 1 second.
[0073] The present invention can be completely offline and only run under the local area network. Although the system can upload data files to the cloud, all computing work is completed locally on the Raspberry Pi. Therefore, the present invention does not use complex algorithms, but uses simple algorithms to complete target recognition and tracking with a certain degree of accuracy. If some functions are completed on the cloud, although the computing speed is improved, if there is a network fluctuation or it is not suitable to connect to the Internet, the function will be directly lost. The present system can be completed completely offline.
[0074] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0076] Figure 1 It is a schematic diagram of a multi-person tracking system based on multi-radar fusion provided by an embodiment of the present invention.
[0077] In the figure: 1. Radar network module; 2. Radar data processing and preprocessing module; 3. Multi-radar data registration and fusion module; 4. Target analysis module; 5. Result display module.
[0078] Figure 2 It is a schematic diagram of a multi-person tracking system based on multi-radar fusion provided by an embodiment of the present invention.
[0079] Figure 3 An overall flow chart of the operation of a multi-person tracking system based on multi-radar fusion provided by an embodiment of the present invention.
[0080] Figure 4 Architecture diagram of a multi-person tracking system based on multi-radar fusion provided by an embodiment of the present invention.
[0081] Figure 5 This is a main radar obstruction map provided by an embodiment of the present invention.
[0082] Figure 6 It is a synchronized moving point diagram provided by an embodiment of the present invention.
[0083] Figure 7 It is a diagram showing a moving point file provided by an embodiment of the present invention through a program.
[0084] Figure 8 This is a diagram showing the footstep tracking result provided by an embodiment of the present invention through a program. DETAILED DESCRIPTION
[0085] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0086] 1. The technical solution of the present invention is described in detail below in combination with the system and method.
[0087] like Figure 1 As shown, the multi-person tracking system based on multi-radar fusion provided by the embodiment of the present invention aims to track the footsteps of indoor pedestrians through a laser radar network. It is necessary to process the data of different radars in the radar network, separate people from the point cloud data through the point cloud data of multiple radars, and complete the tracking. It includes:
[0088] Radar network module 1: Use multiple radars to establish a radar network structure to allocate the scheduling of different radars.
[0089] Radar data processing preprocessing module 2: used for multiple radar systems with multiple sets of data, and performs noise reduction and screening on the data.
[0090] Multi-radar data registration and fusion module 3: Image registration is a basic task in image processing, which is to register two or more images of the same scene to ensure that the image pairs are aligned on a common spatial axis. The multi-radar system with self-built network is used for the same scene with an indefinite number of radar images that need to be registered and fused.
[0091] Target analysis module 4: used to analyze the point cloud data, separate the suspected pedestrian parts, and track them.
[0092] Result display module 5: used to print out the walking data in the form of tables and images.
[0093] According to an embodiment disclosed in the present invention, a multi-person tracking method based on multi-radar fusion is provided, comprising:
[0094] Step 1: Enable different Raspberry Pis to communicate with multiple LiDARs and establish a host to process data;
[0095] Step 2: The host receives multiple sets of data from different radars, aligns the data from different radars, and synchronizes them to the same coordinate axis; when synchronizing the data from different radars, the time is first synchronized so that the synchronized data is the data collected by different radars at the same time;
[0096] Step 3: extract the moving point data from each lidar data, process it and transmit it out;
[0097] Step 4: The host processes the data received in step 2, finally obtains the footsteps of the pedestrian and continuously tracks them; uses a clustering method to cluster the moving point data received in step 3, calculates the geometric center of the cluster, and performs the next step of tracking; and then uses a Kalman filter to track and calculate the position of the target;
[0098] Step 5: After the data is processed, the data is immediately stored in the file and uploaded to the cloud.
[0099] 2. The technical solution of the present invention is further described below in combination with system requirement analysis.
[0100] 2.1 The present invention aims to build a LiDAR network that can identify and track pedestrians indoors, identify pedestrians and establish tracking trajectories by analyzing the data collected in real time, and store the results in files and upload them to a cloud server, including source data and analysis results.
[0101] 2.1.1 The overall business process of the radar network system includes establishing a lidar network, synchronizing data and time between different radar devices, analyzing different radar data individually, analyzing all radar data as a whole, and displaying the results. The main operating steps of the system are the above processes. The lidar is a sensor that serves as a data source and has been placed in various locations in the room. The lidar is then connected to the Raspberry Pi as a data processing device and communication device. A stable connection needs to be established between different Raspberry Pis for data transmission, and the transmitted data needs to be synchronized, including time synchronization and spatial synchronization. The analysis of the received data includes individual analysis and overall analysis, and finally the processing results are stored in files and uploaded to the cloud.
[0102] 2.1.2 Functional Requirements Analysis
[0103] (1) Connection of Raspberry Pi and establishment of LiDAR network
[0104] This system is based on multiple laser radars. The first task is to connect different Raspberry Pi laser radars to each other. Choose a system for the Raspberry Pi to meet the operating environment required by the laser radar driver, and then realize the communication between the Raspberry Pis. And establish the host as the final data processing.
[0105] (2) Synchronization of LiDAR
[0106] The host will receive many groups of data from different radars. Some of these data are from the same radar at different times, and some are from different radars at the same time. The data coordinate axes of different radars are different. All radars scan with their own devices as the center. The data of different radars need to be aligned and synchronized to the same coordinate axis. The data of the same radar has time attributes. When synchronizing data from different radars, the time must be synchronized first so that the synchronized data is the data collected by different radars at the same time.
[0107] (3) Individual analysis of data
[0108] Each lidar needs to analyze the data it receives separately, including map data, moving point data, etc. The moving point data in the lidar data is extracted and transmitted to the subsequent modules for further analysis after processing.
[0109] (4) The host analyzes all data
[0110] The host will process the received data in a series of processes, and finally obtain the footsteps of pedestrians and continue to track them. For the received moving point data, to identify the pedestrians, consider using clustering methods to make the point set form a cluster, and calculate its geometric center to facilitate the next step of tracking. Then consider using the Kalman filter to track and calculate the position and speed of the target. The Kalman filter can reduce the system error and obtain relatively accurate position and speed.
[0111] (5) Tracking results are stored and uploaded to the cloud
[0112] After the data is processed, it is immediately stored in a file and uploaded to the cloud. Users can see the footstep tracking results of the multi-radar network and get more information from it.
[0113] 2.1.3 Non-functional requirements analysis
[0114] (1) Operating environment
[0115] This system requires several 2D laser radars as basic sensors. This system uses the Delta-1A series laser radar produced by Shenzhen 3irobotix Co., Ltd. This is a new generation of low-power, low-cost two-dimensional laser radar. Compared with other traditional laser radars on the market, it is characterized by a very low cost, but it also has the characteristics of low precision and large errors. It has a sampling capacity of about 4,000 times per second, can scan about 6 circles of images per second, and each frame of the image has about 690 points, and has achieved long-term reliable and stable operation. The Delta-1A series laser radar can achieve 360° full-range scanning within a radius of 0.15m to 8m on the 2D plane, and each frame generates a plane point cloud information of the space. Laser radar is widely used in robot positioning and navigation, map surveying and mapping, object environment recognition and other directions. Moreover, the laser power emitted by the Delta-1A series laser radar is very low, which meets the FDA Class I human eye safety level.
[0116] Several Raspberry Pi microcomputers correspond to the laser radar, which are used to connect the radar and drive it. The driver is based on the ROS system. Raspberry Pi is a microcomputer similar in size to a card, and its system can be customized. It is based on the ARM microcomputer motherboard, with SD / MicroSD card as the memory hard disk, and has all the basic functions of a PC. Using Raspberry Pi to drive the radar greatly improves the practicality of the system. The present invention uses a Raspberry Pi 4B model and installs the Ubuntu 20.04 system.
[0117] A Raspberry Pi is selected with the same version but with a graphical interface for easy operation. Then the Raspberry Pi is set as the host by default. Based on this, the slave Raspberry Pis are connected through the ssh protocol and the programs of each ROS system are automatically run through the script file. This system uses the subscriber publisher provided by ROS for data transmission. Most programs of this system are based on ROS, including python programs and C++ programs, and are uniformly organized and scheduled through ROS.
[0118] A router is needed as a gateway. All Raspberry Pis should be in the same network segment and locked to a static IP before subsequent connections can be made.
[0119] (2) Immediacy needs
[0120] The present invention aims to receive and analyze multi-radar data in real time, and obtain results in real time, which has high requirements for immediacy. The immediacy requirement is divided into two parts: communication and processing. The first part requires that the data transmission volume must meet the bandwidth requirements. The Raspberry Pi is connected to the same network segment through a router. The router transmission speed is limited and the signal distance is limited. The Raspberry Pi must be in a strong signal position, and the broadcast data can be quickly transmitted to the required device through the router. The router is required to have a certain bandwidth and support three to five devices to transmit data at the same time. The second part is that the data processing speed of the host and the slave must be greater than the data feedback speed driven by the laser radar, so as to minimize the frame loss and be able to return the final target recognition and tracking results in real time.
[0121] (3) Portability requirements
[0122] This system needs to be able to run in multiple version system environments. Since the invention runs in the ROS system environment, this system needs to run in all Linux system environments that can install the ROS system. Moreover, if the Raspberry Pi system versions are different, the connection should be completed in the same version of the ROS system environment.
[0123] (4) Reliability requirements
[0124] This system will run on multiple devices. When a device other than the host loses connection, it should be able to continue to complete target identification and tracking, and have certain error handling capabilities.
[0125] 2.2 System Function Modules
[0126] like Figure 2As shown in the figure, the entire radar network-based system principle includes Raspberry Pi connection, source data broadcasting, map creation, data preprocessing, data synchronization, target recognition, target tracking, and result display. Among them, source data broadcasting, map creation, and data preprocessing are run by all Raspberry Pis (public) equipped with radars, and Raspberry Pi connection, data synchronization, target recognition, and target tracking are run by the host.
[0127] 2.3 System Core Business Process
[0128] Target recognition and tracking are the core of this system. The overall process of system operation is as follows: Figure 3 As shown in the figure, the main processes include establishing an environment map, clustering moving points, random forest prediction, publishing pedestrian footsteps, footstep pairing, Kalman filter tracking, and obtaining walking parameters.
[0129] 2.4 System Architecture
[0130] The system architecture is as follows: Figure 4 As shown. The laser radar is directly connected to the Raspberry Pi USB interface. All Raspberry Pis run in the same network segment. The host Raspberry Pi starts the ROSCORE process and connects several slave Raspberry Pis through the connection module. All Raspberry Pis equipped with radar run the ROS process for reading radar data and the ROS process for processing and sending data. The host Raspberry Pi runs the ROS process for receiving and analyzing the processed data. The operation results are uploaded to the cloud.
[0131] 3. The technical solution of the present invention is further described below in conjunction with the detailed invention of the system.
[0132] 3.1 System environment construction
[0133] 3.1.1 Selection and connection of Raspberry Pi system
[0134] The radar driver is compatible with Linux / ros and Windows, so Ubuntu is selected as the operating environment of the program. Since the program involves communication between multiple devices, the ros system can provide a better communication interface, so Ubuntu is selected to install the ros system as the secondary operating environment. The official Ubuntu system for Raspberry Pi currently includes Ubuntu 20.04 server version and Ubuntu 20.04mate2 desktop version. Considering the device performance and actual development needs, Ubuntu 20.04mate2 desktop version is finally selected to be installed on the device with the best performance (Raspberry Pi 4b+128G memory card), and Ubuntu 20.04 server version is installed on other devices, and the program is intended to run on both platforms. The desktop version uses realVNC to connect, the server version uses ssh to connect to the console, and uses XFTP for file transfer.
[0135] 3.1.2 LiDAR driver installation and connection
[0136] This model of laser radar driver has Linux, ROS, and Windows. Considering the above, choose the driver under the ROS system. Install the ROS system on the Raspberry Pi, connect the laser radar to the Raspberry Pi through the USB interface, install the corresponding driver, and obtain the radar data according to the instructions.
[0137] 3.2 Raspberry Pi system command control and data transmission
[0138] The Raspberry Pi system is Ubuntu, which is an operating system based on the Linux system. It is necessary to control multiple Raspberry Pis at the same time. Run the script command through the host Raspberry Pi, and control the running and stopping of each slave process by establishing an ssh connection. Control each console of the slave through the ssh connection, and then control the local program through the console. The ssh protocol (Secure Shell Protocol) is a protocol built on the application layer. Its advantage is lightweight connection. After the connection is established, the console of the target system can be directly controlled, which is convenient for running commands with high permission requirements.
[0139] Data transmission between Raspberry Pis is always transmitted through the subscribers and publishers of the ROS system. The subscribers and publishers of ROS are a multi-machine and multi-process communication framework that comes with the ROS system. Its advantage is that as long as each terminal completes a connection under the ROS system and a host runs the ROSCORE process, the data transmission connection process will be automatically completed by the ROS system. The communication between different processes of the same device and the communication between processes of different devices will be automatically identified and completed, and it can have buffering and data integrity verification functions.
[0140] 3.3 Source Data Broadcast Module
[0141] Establish a ROS node and embed the radar driver. Its function is to connect to the radar to obtain the radar raw data and run the publisher to broadcast it. This process is the basic process of the system. Usually, it provides raw data for the data preprocessing module of this device. It can also be subscribed by other processes or other devices to complete other functions.
[0142] 3.4 Map building module
[0143] Establish a ROS node, subscribe to the publisher node corresponding to the radar connected to this device, obtain radar data for a period of time, and add all data frames within the time interval. The result is a graph. The points in the graph are the sum of the points in all the above frames. Each point corresponds to a weight, which is the number of times the point appears in all the above frames. The laser radar itself has errors. The causes of the errors include many aspects, including the jitter of mechanical parts. This system uses the principle of laser radar to fix a laser transmitter and a receiver on a mechanical part that can rotate in all directions. The mechanical part then rotates at a speed of six circles per second, and the rotation of the mechanical part will jitter due to process problems, resulting in error points. Therefore, the points in the graph with weights less than a certain threshold are deleted as noise reduction, and finally the weighted graph is stored in the file.
[0144] 3.5 Data Preprocessing Module
[0145] 3.5.1 Radar Raw Data Analysis
[0146] The original radar data obtained by the radar driver is: angle plus distance. The angle refers to the rotation angle from the point to the radar starting point, and the distance refers to the distance from the target point to the laser radar. Each frame is about 690 points, and the angle difference between two adjacent points is about 0.6°. There are about 6 frames in one second, and the time interval between two adjacent frames is about 0.16 seconds. Then the publisher publishes data in frames. Each time the driver returns a frame of data, it is published once and packaged into the system time and system host number at this time. The ROS system publisher receiver framework is based on "messages". After querying, it is found that the "message" that supports laser radar in the ROS system is "LaserScan". The structure is shown in Table 1
[0147] Table 1 Data structure table
[0148]
[0149] It does not meet the actual needs. The source data is angle plus distance. The angle difference is not fixed and has a certain fluctuation range. In addition, one frame actually has about 690 points, while the structure is fixed to 360, which does not meet the needs. Therefore, select "Custom Message", including indefinite length distance array, indefinite length angle array, time, and host number.
[0150] 3.5.2 Data Preprocessing
[0151] This system is an instant system that requires instant feedback of the current results, so there is a limit to the delay between pedestrian movement and result output. Therefore, the preprocessing is run on each Raspberry Pi directly connected to the radar, and the raw data of the lidar is preliminarily processed to obtain further data to reduce the host's calculation amount and thus reduce the delay. The data preprocessing of this system is the extraction of moving points. The method of reading moving points is the frame difference method, which refers to storing the previous frame data to find different points between adjacent frames as moving point output. The advantage is that when the data is accurate, no static map is required to obtain the moving point, but the lidar used in this system has a large error, so the frame difference method is not used. The second method is to first establish a static map, read the static map stored locally, compare each frame of data read with the map, find the points that do not exist in the map, and regard the points that do not exist in the map as moving points. The second method is used here. The obtained moving points continue to be broadcast in the ROS system.
[0152] 3.6 Data Synchronization Module
[0153] 3.6.1 Time Synchronization
[0154] The host Raspberry Pi needs to run a ROS node to receive the moving point information from all Raspberry Pis. The received information format is: 1. Array of horizontal coordinate values 2. Array of vertical coordinate values 3. Timestamp 4. Host name. The length of the horizontal coordinate array is the same as the length of the vertical coordinate array. The host name is the host name of the Raspberry Pi running by the publisher itself, and the timestamp is the system time added when publishing. Since the time nodes of each device publisher are uncertain, it is necessary to perform rough synchronization of the data in time. Because the data cycles returned by each radar driver do not overlap, the data cannot be completely synchronized. Then, the next step of calculation cannot be performed before the time synchronization is completed. In order to meet the requirements of immediacy, based on the limited walking speed of people, the simplest and most direct method is used for time synchronization. The time difference between the host and the slave is made. If the host time is fast, the slave data is discarded until the time difference with the host is within the threshold range. If the slave time is fast, the host data is discarded until the time difference with the slave is within the threshold range. Repeat this operation. After completion, the slave flag position is set to true, indicating that the slave has been time-aligned.
[0155] 3.6.2 Spatial Synchronization
[0156] The data collected by all radars radiate around themselves. Although multiple radars are in the same environment, their coordinate systems are different. Since the radars are arranged on the same horizontal line in the same room, the data of multiple radars can be aligned to the same coordinate system through translation and rotation. There are several ways to obtain the translation and rotation angle, such as using the ICP algorithm to align the point cloud data. Use measurement tools to measure the relative positions and angles of several laser radars in advance. Here, the algorithm is used to compare the images and manually adjust the images to the alignment. For example, the laser radar can see the walls on all sides, and the walls seen by different laser radars are partially overlapped. Based on this, the laser radar images can be aligned to obtain the rotation angle and translation, and then the rotation angle and translation can be stored in a file or uploaded to the cloud. When the host Raspberry Pi is running, it will translate, rotate and store the received data according to the local file.
[0157] 3.7 Target Recognition Module
[0158] 3.7.1 Human foot image analysis
[0159] Since then, the host Raspberry Pi has obtained the aligned moving point data from each radar, and needs to find pedestrian data among them. This system believes that the only objects that move for a long time indoors are pedestrians. In reality, there are also moving objects such as pet robots, but this system ignores these. So the next step of analysis is based on this. There are several ways to deal with the image fusion of multiple radars, such as directly adding the images, and adding multiple images to obtain a fused image. However, this method is not applicable to this system. In reality, due to the accuracy and error problems of the radar, the lidar image will drift around based on the image. In these cases, it will be very difficult to extract the features of human feet. Some technologies will use machine learning to solve this problem, such as random forest algorithm and Markov chain recognition algorithm, but the common feature of these algorithms is that the calculation time is long and the resources are occupied. This system is a real-time system deployed on the single-chip Raspberry Pi that can run completely under the local area network. If machine learning is used to identify human feet, the task cannot be completed in terms of delay or calculation amount. Therefore, this system uses one radar data as the main calculation data and another radar as supplementary data to identify human feet. If only single radar data is considered, then the recognition of human feet will be simple. It can be assumed that the position in the moving point set is the position of the human foot. The problem is simplified from recognizing human feet to identifying point sets.
[0160] 3.7.3 Supplementing the main radar data with the secondary radar data
[0161] By using the clustering algorithm based on region growing for the main radar moving point data and the secondary radar moving point data, the geometric center of the human foot under different radar viewing angles can be obtained. Now the secondary radar data needs to be used to supplement the main radar data. The secondary radar data needs to be used to supplement the main radar data only when the main radar has missing information about a certain foot of a pedestrian, as shown in 5.
[0162] Assuming that the upper radar is the main radar, the lower radar is the secondary radar, and the black straight line is an obstruction, the main radar cannot obtain the data of the right foot. At this time, the secondary radar data can be used to fill this gap. Then it is necessary to find the data that the main radar does not have in the secondary radar data. Since there are multiple people acting in the same scene in reality, an algorithm is needed to match the points of the main radar and the secondary radar one by one, and find out the points that do not have corresponding points in the secondary radar. The present invention uses the Hungarian algorithm to complete this process. The Hungarian algorithm is an algorithm for finding an augmented path in a bipartite graph, which can solve the assignment problem and can also calculate the corresponding points in the two images. It is an algorithm for finding the global optimal solution. Through this algorithm, the points that correspond one to one between the main radar image and the secondary radar image can be obtained. Then the point set that the main radar does not see in the secondary radar image is obtained and added to the main radar image.
[0163] 3.8 Target Tracking Module
[0164] 3.8.1 Target Tracking Process
[0165] Target tracking is implemented based on the Kalman filter, in which there are observation values and prediction values. The prediction value is the storage value of this system. Target tracking is divided into two parts. One part is to match the observation value with the storage value. When a frame of image observes several human feet, the observation point must be matched with the stored value. The storage value is the point calculated by the previous observation value. The practical meaning is the position point of the human foot in the previous frame. Matching these two values can get the trajectory of the human foot point to complete the tracking process. The second part is to input the matched observation value and storage value into the Kalman filter, and reduce the noise impact and complete the tracking through Kalman filter calculation.
[0166] 3.8.2 Matching stored values with observed values
[0167] The actual meaning of the observed value is the position of the foot observed by the lidar in the current frame, and the actual meaning of the stored value is the position of the foot in the previous frame. The difference between the observed value and the stored value is the starting point and the end point of the foot movement in the time interval between two adjacent frames. Since the time interval is about 0.16s, the distance moved by the pedestrian during this time is very small, so it can be considered that the stored value and the observed value change very little. To match the two, the Hungarian algorithm can also be used to match the two one by one. The point where the match fails successfully is that a new foot appears in the scanning range of the lidar.
[0168] 3.8.2 Kalman filter completes target tracking
[0169] The above process system obtains the pedestrian trajectory, which means the position of the same foot in each frame. However, there are errors in the observation of laser radar, and the Kalman filter can reduce the error. Because the human foot is regarded as a uniform linear motion in a very short time, the position and speed of the human foot in the previous frame actually determine the position and speed of the human foot in the next frame. The Kalman filter uses this relationship, using the state and change trend of the object in the previous time interval, plus the state of the object observed by the current sensor, to calculate a relatively accurate current state of the object. The Kalman filter believes that there are two errors at any time, the system error and the observation error, which correspond to the error in the software and the error in the hardware respectively, and believes that the error conforms to the normal distribution. The Kalman filter can input the observed value with error and other inputs in the linear state space to obtain a relatively accurate real state. This model is widely used in target tracking of laser radar. This paper uses the Kalman filter to obtain a relatively accurate tracking trajectory. This is a recursive estimation model. The actual value at the current time can be calculated by the actual value of the previous time interval and the observed value at the current time.
[0170] The core equations of the Kalman filter model are as follows:
[0171] X k =A k X k-1 +B k u k +w k (3-1)
[0172] z k =H k X k +v k (3-2)
[0173] Where X k =[x k ,y k , x′ k , y′ k ] is the actual human foot state vector of the kth frame;
[0174] z k =[x k ,y k ] is the position of the human foot obtained by the laser radar in the kth frame;
[0175] A k is the state transition matrix;
[0176] B k is the control input matrix, which maps motion measurements to the state vector;
[0177] u k is the system control vector of the kth frame, which is ignored in this model;
[0178] w k is the process noise;
[0179] H k is the conversion matrix, which converts the state vector into the format of the measurement vector;
[0180] v k is the observation noise.
[0181] X k =A k X k-1 +B k u k (3-3)
[0182]
[0183] X′ k =X k +K(z k -H k X k ) (3--5)
[0184] P′ k =P k -KH k P k (3-6)
[0185]
[0186] Where X′ k is the human foot state vector after system correction in the kth frame;
[0187] P k is the covariance matrix of the estimated state of the kth frame;
[0188] P′ k is the covariance matrix of the human foot state after system correction in the kth frame;
[0189] K is the Kalman increment;
[0190] When a foot point appears in the system, the system needs to assign a trajectory to it. This process corresponds to the initialization process in the Kalman filter. The measured value at the initial moment is used as the actual value at the initial moment. Then, the observation image of each frame of the lidar is input into the Kalman filter. The actual value of the current frame can be obtained through the actual value of the previous frame of the trajectory, completing a Kalman calculation. This process can effectively reduce the error of the observation value and obtain a relatively accurate human foot trajectory.
[0191] 4. The technical solution of the present invention is further described below in conjunction with system implementation.
[0192] 4.1 Implementation of Raspberry Pi connection module
[0193] The present invention mainly describes the code level implementation of the Raspberry Pi connection module. The above detailed invention has already described the technology used by the module and the implementation ideas.
[0194] This system is a program based on the ROS system. For each slave, you need to modify the configuration file and mark it as a slave, store the host's IP address, and the host needs to store the IP addresses of all slaves and mark itself as the host. All Raspberry Pis will use a fixed IP when connecting to WIFI. You can also use the LAN broadcast form for preliminary confirmation, and then save the dynamic IP into a file before proceeding to the next step of connection. This system uses a fixed IP.
[0195] When the system needs to run, the host will run a script file, which contains the part of connecting to the slave through the ssh protocol, and then start the corresponding ROS node through the ssh protocol transmission instruction. The ROS node has modules for receiving and sending data. From then on, the connection process of each Raspberry Pi is completed.
[0196] 4.2 Source Data Broadcasting and Preprocessing
[0197] The present invention mainly describes the code-level implementation of the two modules of data broadcasting and preprocessing. First, a ROS node needs to be established to run the radar driver. Whenever the radar driver returns data, a publisher ROS thread needs to be established to broadcast the source data to the ROS system. Then a ROS node is established to receive the source data and preprocess the data. In this system, source data broadcasting and data preprocessing are run in the same device. The data preprocessing process is a moving point recognition process. The map file is read from the local file, and then the polar coordinates are converted to rectangular coordinates for each frame of received data, and then compared with the map file. After actual testing, it was found that due to the large error of the laser radar, if the moving point recognition is performed according to the original accuracy, the number of moving points is too large, and the original accuracy is 1cm. Because it is difficult to scan out all errors during map establishment, the accuracy of the received data and map data are all enlarged to 5cm when judging the moving point. The specific calculation process is as shown in formula 4-1:
[0198]
[0199] Round means rounding to the nearest integer. After increasing the precision, extract the points in the received data that are not in the map data and broadcast them under the ROS system.
[0200] 4.3 Data Synchronization
[0201] The present invention mainly describes the code level implementation of the data synchronization module. Data synchronization includes time synchronization and coordinate synchronization. It is completed under the same ROS node process. The node receives the moving point data from all Raspberry Pis at the same time, and establishes a queue array for storing data. The size of the queue array is the number of Raspberry Pis. When the receiver receives the data, it will first transform its spatial coordinates according to the rotation angle and translation amount stored in advance according to the host name contained in the data, and then store it in the queue at the corresponding position. The spatial coordinate change is as shown in formula 4-2:
[0202] p′=Hp+t (4-2)
[0203] p′ is the coordinate vector of the point after the change, p is the coordinate vector of the point before the change, t is the translation amount, and H is the transformation matrix whose value is θ is the rotation angle. A thread is established to complete time synchronization. Each queue is dequeued with a data packet. The slave time attributes are subtracted from the host time attributes. If the host time is fast, the slave queue dequeues the corresponding number of data packets. If the slave time is fast, the host queue dequeues the corresponding number of data packets. If the absolute value of the difference is less than the threshold, the corresponding flag position of the slave queue is true, indicating that the host has been aligned with the slave. After actual testing, it was found that the scanning frequencies of different laser radars are not absolutely equal and the difference is large. After alignment, the output is in a frame-by-frame manner. As the number of frames increases, the time difference between the two frames will become larger and larger. The reason is that the scanning frequency of one laser radar is greater than that of the other laser radar, so time alignment will not be a one-time job. When the time difference between the two frames is too large, the alignment process needs to be re-entered. After alignment, the corresponding time of the two radars is stored in the file. The number of frame losses is within an acceptable range, and time synchronization is completed from then on.
[0204] 4.4 Target Recognition and Tracking
[0205] The present invention mainly describes the specific implementation of the target recognition and tracking module at the code level. Target recognition and tracking are located in the same thread as time synchronization, and recognition and tracking are entered after time synchronization is confirmed. For the main radar and auxiliary radar data, density-based clustering methods are performed respectively. After clustering, if more than 3 points are in a cluster, the system considers it to be a human foot and removes clusters with less than three points. Figure 6 The figure shows the result of multi-radar moving point synchronization. The blue part is a static map, and the red dots are moving points. The figure shows three people in the radar scanning range. The red dots on the left wall are noise points caused by radar errors. The main radar and the secondary radar cluster and denoise to obtain clusters, and calculate their geometric centers. After calculation, the Hungarian algorithm is used to match the points, and the successfully matched points in the secondary radar image are deleted, and the remaining points are added to the main radar image.
[0206] The supplemented main radar image points are sent to the target tracking module. The observation points of the current frame need to be matched with the actual points of the previous frame. The Hungarian algorithm is used for matching. Because the span of human feet in two adjacent frames cannot be too large, if the matching result is greater than 13cm, the matching result will be deleted. If there is an observation point in the current frame that does not match the actual point of the previous frame, it means that there is a new human foot trajectory in the scanned image. A new trajectory is established for it and the Kalman filter is initialized. For the observation points that are successfully matched, the Kalman filter is entered and the actual point of the current frame is calculated through the actual point of the previous frame, and the number of frames of the trajectory is increased by 1. If there is a trajectory that is not observed in the current frame, the Kalman filter is used to predict the trajectory point without parameters, and the number of skipped frames of the trajectory point is increased by 1. When the number of skipped frames exceeds 5 frames, the system considers that the trajectory has left. For each trajectory, the system must store it in a file immediately and upload it to the cloud to ensure immediacy. From then on, the entire system process is completed.
[0207] The present invention implements the final implementation of the entire system from the system code level. First, the Raspberry Pi is connected through the SSH protocol, and then the SSH protocol sends a control command to run the ROS node. The ROS node completes data broadcasting, data preprocessing, data synchronization, target identification and tracking, and finally outputs the results in real time. The current result output method is to store files.
[0208] 5. The technical solution of the present invention is further described below in conjunction with system testing and verification.
[0209] 5.1 Overall system testing
[0210] The present invention tests the final operation of the entire system, including the test of functional requirements and the test of non-functional requirements. The final test results are shown in Table 2.
[0211] Table 2 System test case table
[0212]
[0213]
[0214] 5.2 Partial Results
[0215] The present invention will show some results of the system operation. The test was completed in this environment. The best placement of the laser radar is at the center of the wall and 20 cm away from the wall, and then the placement of different laser radars should have a large difference in angle, such as placing one at the center of the two opposite walls. The greater the angle difference, the better the effect of the auxiliary radar and the main radar data supplement.
[0216] like Figure 7As shown in the figure, there are three people testing in this environment, and one person is recording the video. For moving points and static environment points, the surrounding noise points will be filtered out in the subsequent data processing. The effect of multi-radar in extracting footsteps is average due to radar accuracy issues.
[0217] like Figure 8 As shown, four points are the output results of footstep tracking. One point represents a tracked foot, and the pedestrian in the camera cannot recognize the foot because the distance is too far.
[0218] The present invention has carried out the testing and verification of the whole system, including functional requirement testing and non-functional requirement testing, and all tests have passed. Then some results are shown, including the results of moving point extraction, including the results of target recognition and tracking, and the images are displayed through the program, and the results are stored in the form of files on the Raspberry Pi host.
[0219] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
[0220] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure should be limited by the appended claims.
Claims
1. A multi-person tracking method based on multi-radar fusion, characterized in that: The multi-person tracking method based on multi-radar fusion includes: Step 1: Enable different Raspberry Pis to communicate with multiple LiDARs and establish a host to process data; Step 2: The host receives multiple sets of data from different radars, aligns the data from different radars, and synchronizes them to the same coordinate axis; when synchronizing the data from different radars, the time is first synchronized so that the synchronized data is the data collected by different radars at the same time; Step 3: extract the moving point data from each lidar data, process it and transmit it out; Step 4: The host processes the data received in step 2, finally obtains the footsteps of the pedestrian and continuously tracks them; uses a clustering method to cluster the moving point data received in step 3, calculates the geometric center of the cluster, and performs the next step of tracking; and then uses a Kalman filter to track and calculate the position of the target; Step 5: After the data is processed, the data is immediately stored in the file and uploaded to the cloud.
2. The multi-person tracking method based on multi-radar fusion according to claim 1 is characterized in that: In step 1, different Raspberry Pis form a host for processing data, including: The program based on the ROS system modifies the configuration file for each Raspberry Pi slave and marks it as a slave, stores the IP address of the host, and the host stores the IP addresses of all slaves and marks itself as the host. All Raspberry Pis will use a fixed IP when connecting to WIFI; or use the LAN broadcast form for preliminary confirmation, and then save the dynamic IP into the file before proceeding to the next step of connection.
3. The multi-person tracking method based on multi-radar fusion according to claim 2 is characterized in that: When the system is running, the host runs a script file. The script file contains the part of connecting to the slave machine through the ssh protocol, and then starts the corresponding ROS node through the ssh protocol transmission instruction. The ROS node completes the connection of each Raspberry Pi by receiving and sending data.
4. The multi-person tracking method based on multi-radar fusion according to claim 1 is characterized in that: In step 2, the host receives multiple sets of data from different radars, aligns the data from different radars, and synchronizes them to the same coordinate axis, including: First, establish a ROS node to run the radar driver. Whenever the radar driver returns data, establish a publisher ROS thread to broadcast the source data to the ROS system. Then establish a ROS node to receive source data and preprocess the data Then, the polar coordinates of each frame of received data are converted into rectangular coordinates and compared with the map file; When judging the moving point, the accuracy of the received data and map data is enlarged to 5cm. The calculation process is as follows: Extract points in the received data that are not in the map data and broadcast them under the ROS system.
5. The multi-person tracking method based on multi-radar fusion according to claim 1 is characterized in that: The second step of synchronizing the different radar data is to first synchronize the time so that the synchronized data is the data collected by different radars at the same time, including: The same ROS node receives the moving point data from all Raspberry Pis at the same time, and establishes a queue array to store the data. The size of the queue array is the number of Raspberry Pis. When the receiver receives the data, it first transforms the spatial coordinates according to the rotation angle and translation amount stored in advance according to the host name contained in the data, and then stores it in the queue at the corresponding position. The spatial coordinate change is as follows: p′=Hp+t; p′ is the coordinate vector of the point after the change, p is the coordinate vector of the point before the change, t is the translation amount, and H is the transformation matrix whose value is θ is the rotation angle; a thread is established to complete time synchronization, a data packet is dequeued from each queue, and the slave time attributes are subtracted from the host time attributes. If the host time is faster, the slave queue dequeues a corresponding number of data packets; if the slave time is faster, the host queue dequeues a corresponding number of data packets. If the absolute value of the difference is less than the threshold, the corresponding flag position of the slave queue is true, indicating that the host has been aligned with the slave; after alignment, the corresponding time of the two radars is stored in the file; the frame loss is within an acceptable range, and time synchronization is completed.
6. The multi-person tracking method based on multi-radar fusion according to claim 1 is characterized in that: The step 4 uses the Kalman filter to track and calculate the position of the target, including: The core equation of the Kalman filter model is as follows: X k =A k X k-1 +B k u k +w k ; z k =H k X k +v k ; Where X k =[x k ,y k , x′ k , y′ k ] is the actual human foot state vector of the kth frame; z k =[x k ,y k ] is the position of the human foot obtained by the laser radar in the kth frame; A k is the state transition matrix; B k is the control input matrix, which maps motion measurements to the state vector; u k is the system control vector of the kth frame, which is ignored in this model; w k is the process noise; H k is the conversion matrix, which converts the state vector into the format of the measurement vector; v k is the observation noise; X k =A k X k-1 +B k u k ; X′ k =X k +K(z k -H k X k ); P′ k =P k -KH k P k ; Where X′ k is the human foot state vector after system correction in the kth frame; P k is the covariance matrix of the estimated state of the kth frame; P′ k is the covariance matrix of the human foot state after system correction in the kth frame; K is the Kalman increment.
7. A multi-person tracking system based on multi-radar fusion implementing the multi-person tracking method based on multi-radar fusion according to any one of claims 1 to 6, characterized in that: The multi-person tracking system based on multi-radar fusion includes: Radar network module: Use multiple radars to establish a radar network structure to allocate the scheduling of different radars; Radar data processing preprocessing module: used for multiple radar systems with multiple sets of data, and performs noise reduction and screening on the data; Multi-radar data registration and fusion module: used to register and fuse an indefinite number of radar images of the same scene, and also used to register two or more images of the same scene so that the image pairs are aligned on a common spatial axis; Target analysis module: used to analyze point cloud data, separate suspected pedestrians, and track them; Result display module: used to print out walking data in the form of tables and images.
8. The multi-person tracking system based on multi-radar fusion according to claim 7 is characterized in that: The multi-person tracking system based on multi-radar fusion further includes: The laser radar is directly connected to the Raspberry Pi USB interface. All Raspberry Pis run in the same network segment. The host Raspberry Pi starts the ROSCORE process and connects several slave Raspberry Pis through the connection module. All Raspberry Pis equipped with radar run the ROS process for reading radar data and the ROS process for processing and sending data. The host Raspberry Pi runs the ROS process for receiving and analyzing the processed data; the running results are uploaded to the cloud.
9. A storage medium for receiving user input programs, wherein the stored computer program enables an electronic device to execute the multi-person tracking method based on multi-radar fusion as claimed in any one of claims 1 to 6.
10. An information data processing terminal, characterized in that: The information data processing terminal includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the multi-person tracking method based on multi-radar fusion as described in any one of claims 1-6.
