A multi-AGV collaborative working system
By adopting an integrated controller and modular architecture based on the Zynq UltraScale+ platform in a multi-AGV system, the problem of lack of universality and portability in multi-AGV system design in the existing technology is solved, achieving high integration and low power. Low-cost and low-cost AGV collaborative working system.
Patent Information
- Application Number
- CN202211323178.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-10-26
AI Technical Summary
Existing multi-AGV systems lack universality and portability during design. They usually require multiple processors to increase power consumption and development costs. Moreover, existing methods are mostly solutions for specific scenarios and lack universality and portability. sex.
Using an integrated controller based on the Zynq UltraScale+ platform, combined with the motion planning module, behavior-level planning module, path resource allocation module, perception module and scheduling module, the AGV collaborative working system is realized through the single perception module and perception fusion module, which is suitable for Different kinds of AGVs and scenarios.
It has realized a multi-AGV collaborative working system with high hardware integration, low power consumption and cost saving. It has high universality and portability and is suitable for AGV systems in different scenarios.
Smart Images

Figure CN115629609B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of AGV intelligent control, and in particular relates to a multi-AGV collaborative working system. Background Art
[0002] An automated guided vehicle (AGV) is a type of transportation equipment that can automatically complete material handling. It usually uses radio, cameras, lidar, or magnetic strips, magnetic nails, and QR codes marked on the ground for navigation. Compared with other logistics and transportation equipment, AGV has the advantages of strong adaptability, high degree of automation, labor cost savings, and easy maintenance. With the gradual increase in labor costs and the increasingly changing production structure, more and more companies are adopting highly automated production systems, and AGV is an important part of the automated production system. Therefore, the design and research of AGV is of great significance for companies to improve production efficiency and reduce production costs.
[0003] Compared with a single AGV, a multi-AGV system has a stronger ability to perform handling operations. In the face of a complex and changeable factory environment, a multi-AGV system can quickly respond to changes in the external environment and complete tasks flexibly and efficiently. Therefore, the development of a multi-AGV system has become inevitable. Compared with a single AGV, a multi-AGV system needs to solve problems such as multi-machine collaboration, information interaction, and conflict resolution. Therefore, the design of a multi-AGV system is more complex. At present, the design of a multi-AGV system with high collectivity, self-organization, and adaptability has become a research hotspot, mainly including the following research directions: research on motion analysis and control algorithms, research on autonomous perception and networking algorithms, research on multi-machine positioning algorithms, research on multi-machine autonomous dynamic decision-making and path planning algorithms, research on multi-machine formation combination dissolution and bionic behavior simulation algorithms, etc.
[0004] In addition, with the development of deep learning, more and more deep learning algorithms have been applied to AGVs, such as target detection and target tracking based on deep learning, and AGV control planning based on deep reinforcement learning. Implementing embedded development of deep learning on AGVs has also become the key to research in the AGV field.
[0005] At present, most AGVs with more complex functions are equipped with more than two processors. For example, industrial computers and single-chip microcomputers are used for perception and planning functions and low-level control functions respectively, which brings a lot of additional power consumption and material and development costs. In addition, many papers and patents in recent years have focused on enabling AGVs to perform advanced tasks, or expanding and improving existing functions, but these methods are applied in specific scenarios, such as adding temporary hardware solutions to a certain AGV in a laboratory scenario, or designing a specific multi-AGV system in a factory environment. These methods lack certain universality and portability. Summary of the invention
[0006] In order to solve the above technical problems, the present disclosure discloses a multi-AGV collaborative working system, including: multiple AGVs, a controller, a motion planning module, a behavior-level planning module, a path resource allocation module, a perception module and a scheduling module, wherein the perception module includes a single perception module and a perception fusion module; wherein:
[0007] The controller receives instructions from the motion planning module and feeds back the running status of the AGV to the motion planning module;
[0008] The motion planning module receives the spatiotemporal channel sent by the behavior-level planning module and the motion mode sent by the scheduling module, and sends the vehicle body speed to the controller;
[0009] The behavior-level planning module receives the semantic information-level behavior sent by the path resource allocation module, determines whether each AGV starts to change lanes immediately, or goes straight for a distance before changing lanes, and generates a spatiotemporal channel and sends it to the motion planning module;
[0010] The path resource allocation module receives the real-time scene information flow from the perception fusion module, reasonably allocates path resources according to pre-defined rules, and sends semantic information level behaviors to the behavior level planning module;
[0011] The single perception module detects the size and category of the AGV, pedestrians and goods in the scene, and transmits the obtained detection results to the perception fusion module;
[0012] The perception fusion module fuses the static scene of the environment, the real-time perception information of the AGV, and the real-time monitoring results of the sensors installed in the environment to obtain a global dynamic scene map, and transmits the real-time scene information flow to the path resource allocation module;
[0013] The scheduling module is responsible for task allocation, multi-AGV collaborative path planning and traffic control.
[0014] Through the above technical solution, the system uses an integrated controller based on the Zynq UltraScale+ platform as the processor, with high hardware integration, low power consumption, cost savings, and certain universality and portability. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a software and hardware architecture diagram of a multi-AGV collaborative working system provided in one embodiment of the present disclosure;
[0016] Figure 2 It is a diagram of the AGV software and hardware architecture provided in one embodiment of the present disclosure;
[0017] Figure 3It is a detailed design diagram of a single-machine AGV control plan provided in one embodiment of the present disclosure;
[0018] Figure 4(a) to Figure 4(b) is a schematic diagram of obstacle avoidance measurement and control provided in one embodiment of the present disclosure;
[0019] Figure 5 is a detailed design diagram of a motion planning module provided in one embodiment of the present disclosure;
[0020] Figure 6(a) to Figure 6(b) is a space-time channel diagram provided in one embodiment of the present disclosure;
[0021] Figure 7 is a bicycle model diagram provided in one embodiment of the present disclosure;
[0022] Figure 8 is a Purepursuit algorithm diagram provided in one embodiment of the present disclosure;
[0023] Fig. 9 is a Stanley algorithm diagram provided in one embodiment of the present disclosure;
[0024] Fig.10 It is a detailed design diagram of the positioning and perception of a single AGV provided in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to make those skilled in the art understand the technical solutions disclosed in the present disclosure, the following will be combined with the embodiments and related appended Figures 1 to 10 , the technical solutions of various embodiments are described, and the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. The terms "first", "second", etc. used in the present disclosure are used to distinguish different objects, rather than to describe a specific order. In addition, "including" and "having" and any variations thereof are intended to cover and not exclude inclusion. For example, a process, or method, or system, or product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, systems, products or devices.
[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present disclosure. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] See also Figure 1In one embodiment, the present disclosure discloses a multi-AGV collaborative working system, including: multiple AGVs, a controller, a motion planning module, a behavior-level planning module, a path resource allocation module, a perception module, and a scheduling module, wherein the perception module includes a single perception module and a perception fusion module;
[0028] The controller receives instructions from the motion planning module and feeds back the running status of the AGV to the motion planning module;
[0029] The motion planning module receives the spatiotemporal channel sent by the behavior-level planning module and the motion mode sent by the scheduling module, and sends the vehicle body speed to the controller;
[0030] The behavior-level planning module receives the semantic information-level behavior sent by the path resource allocation module, determines whether each AGV starts to change lanes immediately, or goes straight for a distance before changing lanes, and generates a spatiotemporal channel and sends it to the motion planning module;
[0031] The path resource allocation module receives the real-time scene information flow from the perception fusion module, reasonably allocates path resources according to pre-defined rules, and sends semantic information level behaviors to the behavior level planning module;
[0032] The single perception module detects the size and category of the AGV, pedestrians and goods in the scene, and transmits the obtained detection results to the perception fusion module;
[0033] The perception fusion module fuses the static scene of the environment, the real-time perception information of the AGV, and the real-time monitoring results of the sensors installed in the environment to obtain a global dynamic scene map, and transmits the real-time scene information flow to the path resource allocation module;
[0034] The scheduling module is responsible for task allocation, multi-AGV collaborative path planning and traffic control.
[0035] In this embodiment, the multi-AGV collaborative working system architecture can be applied to different types of AGVs and can operate in different scenarios. Figure 1 As you can see, the software architecture is mainly divided into two parts: single-machine positioning and environmental perception and single-machine control planning running on the end-side single-machine AGV, and multi-machine collaborative perception and multi-machine collaborative decision-making planning and scheduling running on the cloud-side. Information exchange between the end-side and the cloud-side is carried out through 5G or WIFI.
[0036] In the multi-machine collaborative perception part on the cloud side, a method of fusing the perception results of different AGVs is proposed to resolve the contradictions and differences between different AGV observations and obtain the fused occupancy grid map.
[0037] In the multi-machine collaborative decision-making and planning part on the cloud side, a multi-path channel passage rule and a corresponding priority-based centralized multi-AGV multi-path channel lane change decision planning method are proposed. This method can be applied to complex environments containing obstacles or non-cooperative AGVs. As shown in Figure 1, it is mainly divided into two modules: path resource allocation module and behavior planning module.
[0038] In the multi-machine collaborative decision-making and planning part on the cloud side, a traffic-based multi-AGV global scheduling solution is also proposed. A multi-AGV collision-free path planning method based on the expected flow of the path is used to plan the optimal global path for multiple AGVs, and traffic management and control are performed through real-time flow to complete multi-AGV scheduling efficiently and safely. The specific design solution mainly includes the following seven parts:
[0039] First: Single perception module. The single perception module mainly uses sensors installed on a single AGV to realize local scene perception, and is mainly responsible for detecting the size, category, location and bounding box descriptor of the AGV, pedestrians and goods in the scene.
[0040] Second: Perception fusion module. The perception summary fusion module mainly integrates the static scene of the environment, the real-time perception information of the AGV, and the real-time monitoring results of the sensors installed in the environment to obtain a global dynamic scene map, and pass the real-time scene information flow to the path resource allocation module.
[0041] 3. Path resource allocation module. It receives the real-time scene information flow from the perception fusion module, reasonably allocates path resources according to pre-defined rules, and sends semantic information-level behaviors to the behavior-level planning module.
[0042] 4. Behavior-level planning module. It receives the semantic information-level behavior sent by the path resource allocation module, decides whether each AGV should start changing lanes immediately, or go straight for a distance before changing lanes, and generates a spatiotemporal channel and sends it to the motion planning module.
[0043] Fifth: Scheduling module. The scheduling module is the design of multi-AGV global scheduling solution based on traffic.
[0044] 6. Motion planning module. The motion planning module will receive the spatiotemporal channel from the behavior-level planning module to realize lane change. In addition, the motion planning module will also receive the path sequence and path attributes sent by the scheduling module to ensure the continuous operation of the AGV. According to the spatiotemporal channel, path sequence and path attributes, the motion planning module generates the vehicle body speed through the processes of Bezier curve generation, preview point generation and preview point tracking, and sends it to the controller.
[0045] 7. Controller design. The controller mainly receives the vehicle speed from the motion planning module, performs motion calculation, converts the vehicle speed into specific driver instructions and sends them to the actuator. In addition to motion calculation, the controller also includes manual control, obstacle avoidance and measurement and control.
[0046] In another embodiment,
[0047] The hardware architecture of the AGV in this multi-AGV collaborative work system is designed based on the Zynq UltraScale+ development platform, including two parts: the processing system PS and the programmable logic PL. The processing system PS includes a quad-core APU and a dual-core RPU, and the programmable logic PL is a programmable logic device FPGA; the hardware architecture of the server side of the multi-AGV collaborative work system includes a CPU and a HiPU, wherein the HiPU is used for neural network reasoning acceleration and is suitable for real-time processing of large amounts of image and point cloud data.
[0048] In this embodiment, Figure 2 As shown in the figure, the hardware architecture of the end side (stand-alone AGV) in the system is designed based on the Zynq UltraScale+ development platform. The board consists of two parts: the processing system (PS) and the programmable logic (PL). The PS side includes a quad-core APU and a dual-core RPU, and the PL side is a programmable logic device FPGA. The Linux system runs on the APU on the PS side, the RTOS runs on the RPU, and the two-way inter-core communication between the APU and the RPU is realized through the OpenAMP framework. The hardware architecture of the cloud side (server side) mainly includes CPU and HiPU. HiPU is used for neural network inference acceleration, which is suitable for real-time processing of large amounts of image and point cloud data.
[0049] The use of an integrated controller based on the Zynq UltraScale+ platform as a processor has the following advantages: 1) High hardware integration. Traditional architectures often require industrial computers and single-chip microcomputers as the upper and lower computers respectively, while this design can use a single board to complete all information processing and control operations; 2) Low power consumption. The integrated controller based on the ZynqUltraScale+ platform uses low-power APU and RPU on the PS side, which is much lower than the X86 architecture processor used by most industrial computers. The FPGA on the PL side can be used to accelerate computing-intensive applications, such as deep learning reasoning acceleration, which is much lower than the GPU solution used by most AGVs; 3) Cost savings. The price of the Zynq UltraScale+ platform series processor module is between 1,500 and 11,000 yuan, which can be selected according to the actual application complexity. Its cost is lower than that of the industrial computer + GPU solution; 4) Standardization of the wiring harness. The unified multi-functional processing module design solidifies the physical form of the interface, and the wiring terminals can be mass-produced. Avoiding the huge workload of customizing wiring harnesses due to the physical form of interfaces when current AGV companies use different industrial computers is conducive to standardized production. In particular, the current AGV industry is gradually developing in the direction of small batches, flexibility, and customization. Unified wiring harness interfaces and production methods can effectively improve production efficiency.
[0050] In another embodiment,
[0051] The controller, the motion planning module and the single perception module are run on a single AGV, and the behavior-level planning module, the path resource allocation module and the perception fusion module are run on a server.
[0052] In this embodiment, a reasonable communication security design solves the problem of high communication delay and communication interruption that may exist between the two. Since most multi-AGV systems must use wireless communication, there is a certain instability, and communication security design must be considered. AGV decision-making planning needs to interact with the cloud. Local decision-making planning requires high real-time performance and low tolerance for communication delays. Delays in information interaction between cooperative AGVs will reduce the rationality of decisions and even lead to decision failures.
[0053] In another embodiment, the controller includes a motion solving module, a manual control module and an obstacle avoidance module.
[0054] In this embodiment, the controller receives instructions from the motion planning module and feeds back the running status of the AGV to the motion planning module; Figure 3 As shown, the controller mainly includes a drive measurement and control module, a manual control module, an obstacle avoidance module and other parts.
[0055] In another embodiment,
[0056] The motion solving module converts the speed into specific driver instructions according to the motion model of the vehicle body, and is applicable to different types of AGVs.
[0057] In this embodiment, first, the motion solution receives the vehicle body speed from the motion planning module, and converts the speed into the front wheel steering angle and rear wheel speed according to the vehicle body motion model. In addition to the bicycle model, the motion solution method can also be compatible with AGV motion models such as the Ackerman model, differential model, and actuator model, so that it is suitable for different types of AGVs. The results of the motion solution are sent in the message format of uint16 array and bool array, which mainly include the AGV front wheel steering angle, rear wheel speed, and steering direction.
[0058] As shown in Table 1, we give the definitions of some important vehicle state quantities and input and output quantities. When users use this system, they need to measure the vehicle state quantities of the AGV and modify them in the system. The input and output quantities are variables used for motion solution and do not need to be measured by the user. The input quantities (ω, v, a) come from the measurement results of the motion planning module or the sensor, and the output quantities (ω d , δ f , δ b ) is used to control the movement of the AGV. In addition, for safety reasons, the range of the velocity v and acceleration a can be limited within the system.
[0059] Vehicle state definition Input and output definition L Distance from front wheel to rear wheel axle center ω Vehicle angular velocity <![CDATA[R b ]]> Driving wheel diameter v Body linear speed <![CDATA[R s ]]> Speed wheel diameter <![CDATA[ω b ]]> Driving wheel speed D Driving wheel track <![CDATA[δ f ]]> Front wheel angle <![CDATA[l b ]]> Distance from rear wheel to vehicle center of gravity <![CDATA[δ b ]]> Driving wheel rotation angle <![CDATA[l f ]]> Distance from front wheel to vehicle center of gravity a Acceleration
[0060] Table 1
[0061] Here we take the bicycle model as an example to introduce the process of motion solution. The motion solution receives the AGV speed sent by the motion planning module, including the linear speed v of the AGV center of mass, the slip angle β, and the angular velocity ω. According to the inverse kinematics formula, we can get the front wheel steering angle δ f and rear wheel speed v b :
[0062]
[0063] The results of the motion solution will be sent to the actuator to complete the control of the AGV's rear wheel speed and front wheel steering.
[0064] In another embodiment, the manual control module is used for AGV testing and handling of emergencies, and the mode switching and speed adjustment of the AGV are achieved through manual operation.
[0065] In this embodiment, manual control mainly refers to manual control of the button panel (manual mode button, automatic mode button, pause button), foot brake, hand brake, etc. on the AGV. When the foot brake or hand brake is activated, the manual operation module will send a signal to the brake driver to complete the braking. Manual operation is mainly convenient for AGV testing and handling of emergencies or emergencies, and the mode switching and speed adjustment of the AGV are realized through manual operation.
[0066] In another embodiment, when an unexpected situation occurs, the obstacle avoidance module brakes in time when the distance between the AGV and the obstacle is less than a threshold value to ensure the safety of the AGV.
[0067] As far as this embodiment is concerned, obstacle avoidance and measurement and control are the most basic safety guarantee for AGV. When the multi-machine collaborative control planning on the cloud side goes wrong, the communication between the single-machine AGV and the cloud side is interrupted, or other unexpected situations occur, obstacle avoidance and measurement and control can brake in time when the distance between the AGV and the obstacle is less than the threshold, thus ensuring the safety of the AGV. In order to be compatible with different obstacle avoidance sensors, we stipulate that the data format received by obstacle avoidance and measurement and control is sensor_msgs / Range.msg or sensor_msgs / Scan.msg, where the former is used to receive data from infrared or ultrasonic sensors, and the latter is used to receive data from single-line lidar. The logic of obstacle avoidance and measurement and control is as follows:
[0068] like Figure 4(a) to Figure 4(b) As shown in the figure, the gray square represents an obstacle. An expansion range x is set around the obstacle, and a safety area y is set around the AGV, and y < x. The distance between the obstacle and the AGV is d. The values of x and y can be determined based on the response time, vehicle speed, and acceleration. There are two main logics for handling obstacles: 1) In the case shown in Figure 4 (a), the distance between the AGV and the obstacle is outside the expansion range x, that is, when d > x, the AGV detects the obstacle and is processed by the cloud side. The motion path is planned through multi-machine collaborative decision-making to control the AGV to avoid obstacles, and the motion path tries to avoid the AGV from entering the expansion range x; 2) In the case shown in Figure 4 (b), the distance between the AGV and the obstacle is within the safety area y, that is, when d < y, it means that the multi-machine collaborative decision-making planning fails. At this time, the AGV needs to brake urgently to avoid collision. In addition, when the AGV needs to change lanes or turn, the cloud-side multi-machine collaborative decision-making planning and the terminal-side motion-level planning module also need to consider that the distance between the AGV and other obstacles is greater than y when planning the path to avoid triggering the safety logic of obstacle avoidance measurement and control.
[0069] Since different types of AGVs may use different actuators (such as different types of motor drivers, lights, horns or other actuators), in order to improve the universality of the software system, the communication protocol between the controller and the actuator can be changed according to the actual situation. When a new actuator is used, the user only needs to rewrite the communication protocol code and summarize different sensors into data types specified by the communication protocol for transmission. Table 2 shows some parameters included in the communication protocol. The controller sends the signal value to the actuator to achieve the control of the AGV; the controller receives the signal value uploaded by the actuator, and summarizes the status of the actuator.
[0070] The controller sends to the actuator The actuator sends the Pause / manual / auto on keypad Battery level Brake indicator light Travel drive speed value Left / right turn indicator Steering drive speed value Travel motor speed Brake motor actual torque Steering motor speed Pedal accelerator Braking torque Pause / manual / auto input on keypad Music Speaker Brake / steering / travel drive abnormality
[0071] Table 2
[0072] like Figure 2 As shown in the figure, the controller runs on the RPU and is developed based on the real-time operating system (RTOS). Because the RPU with RTOS has the characteristics of high performance and high real-time performance, it has a fast, bounded and deterministic interrupt response, which can ensure deterministic operation with high response speed and high throughput. The controller controls the RPU interface (CAN, serial port, IO, etc.) on the PL side through the AXI bus to realize data interaction with actuators such as encoders, drives, photoelectric switches, and power modules.
[0073] In another embodiment,
[0074] The motion modes include open fields, multi-path channels and single-path channels; when the AGV determines that it is currently in an open field, the motion planning module will receive a local cost map from the cloud to complete the motion planning; if it is a multi-path channel, the motion planning module will receive a space-time channel from the cloud to determine the time and operating area restrictions for completing lane changes or turns; if it is a single-path channel, the AGV will receive the simulated offset distance, generate a Bezier curve as a trajectory, and then generate a preview point.
[0075] In this embodiment, the motion planning module mainly consists of three parts: local Bezier curve generation, preview point generation and preview point tracking. The motion planning module receives the spatiotemporal channel sent by the cloud-side behavior-level planning module and the S2V_protocol communication protocol sent by the scheduling module, and parses the path sequence and path attributes from the communication protocol.
[0076] like Figure 5 As shown in the figure, the path attributes of AGV include different types such as open field, multi-path channel, single-path channel, etc. The open field refers to the field that allows AGV to walk freely, the multi-path channel refers to the path that allows multiple AGVs to walk side by side, and the single-path channel refers to the path that only allows one AGV to pass. This method uses different motion planning methods for different path attributes.
[0077] When the AGV determines that it is currently in a multipath channel, the AGV will receive the space-time channel sent by the cloud side to implement the lane change behavior. Figure 6(a) shows the lane change operation to be implemented by the AGV, and the gray area in Figure 6(b) is the corresponding space-time channel. The space-time channel is a two-dimensional space restriction with certain time constraints. This method imposes constraints such as target state constraints, continuity constraints, safety constraints, and kinematic constraints to transform the problem of calculating the Bezier curve into a quadratic programming problem. The smooth local Bezier curve obtained will be used as the motion trajectory of the AGV. The input of this method is the space-time channel, and the output is the Bezier curve. The Bezier curve is represented by a series of dense point coordinates and is sent in the message format of geometry_msgs / Point array.
[0078] Next, the preview point generation is performed. The preview point generation retains the first and last points of the Bezier curve, and then samples every ten points in the middle. The sparse points obtained are used as preview points. The preview points are also sent in the message format of geometry_msgs / Point array for preview point tracking.
[0079] This method is compatible with different motion models and preview point tracking methods, and is therefore applicable to different types of AGVs. The motion model can be an Ackerman model, a bicycle model, a differential model, etc., and the preview point tracking method can be a method based on geometric tracking and a method based on model prediction. Here, taking the bicycle model as an example, the Purepursuit algorithm and the Stanley algorithm in the geometric tracking method are introduced.
[0080] Figure 7 The figure shows a schematic diagram of the bicycle model, which is based on the following assumptions:
[0081] 1) Assume that the vehicle moves in a two-dimensional plane (x, y direction) and ignore the vertical movement;
[0082] 2) Assume that the left and right tires of the vehicle behave in the same way, that is, they have the same turning angle and rotation speed;
[0083] 3) Assume that the vehicle is traveling at a low speed and ignore the transfer of loads between the front and rear axles;
[0084] 4) Assume that the vehicle is front-wheel drive, i.e. the front wheels control the steering and speed;
[0085] 5) Assume that the vehicle body and suspension system are rigid systems.
[0086] In the figure, F is the front wheel, B is the rear wheel, and C is the center of mass of the vehicle; O is the intersection of the vertical line OF of the front wheel and the vertical line OB of the rear wheel, which is the instantaneous center of rotation of the vehicle; β is the slip angle, which is the angle between the vehicle's travel direction and the body direction; L is the wheelbase, that is, the distance between the center points of the front and rear wheels; v f is the front wheel speed, v is the vehicle speed, v b is the rear wheel drive speed, δ f is the front wheel turning angle; r c is the distance between the center of mass and point O, r b is the distance between the rear wheel and point O.
[0087] Next, we will introduce the PurePursuit algorithm. Based on the bicycle model, we add a preview point (g x , g y ), the Purepursuit algorithm can be used to track the preview point. Figure 8 Middle d represents the distance from the rear wheel of the vehicle to the preview point (forward distance), α represents the angle between the vehicle body direction and the preview point, δ f is the front wheel turning angle, O is the intersection of the front wheel vertical line OF and the rear wheel vertical line OB, r b is the turning radius of the vehicle, and L is the wheelbase of the vehicle. The PurePursuit algorithm uses the rear wheel as the tangent point and the vehicle body orientation as the tangent line. By controlling the front wheel turning angle, the vehicle can travel along the arc and the rear wheel passes the preview point. From the bicycle model, we can get:
[0088]
[0089] According to the sine theorem, we can get:
[0090]
[0091] Substituting formula (16) into (15), we can obtain:
[0092]
[0093] At this point we can get the angle δ that the AGV needs to rotate at the current moment f Since the front wheel turning angle of AGV is mainly affected by the front sight distance l d The influence of the forward sight distance should be different at different vehicle speeds. Therefore, the forward sight distance can be expressed as a linear function of the longitudinal speed of the vehicle, that is, l d =kv x , then the front wheel turning angle formula becomes:
[0094]
[0095] At this time, the adjustment of the Purepursuit controller becomes the adjustment coefficient k. The larger the k, the smoother the trajectory tracking, but understeer may occur in sharp turns; the smaller the k, the more accurate the trajectory tracking, but it may also cause unstable or even oscillating vehicle control. Usually, the maximum and minimum k are used to constrain the forward distance, and the appropriate k is selected through continuous debugging.
[0096] Next, we will introduce the Stanley algorithm. In the Purepursuit algorithm, the rear wheels are used as the reference point, and the lateral tracking error of the vehicle is used to design the controller, while the Stanley algorithm uses the front wheels as the reference point and combines the lateral tracking error and the heading tracking error to design the controller.
[0097] like Fig. 9 As shown, path is the planned trajectory, and e is the closest point on the planned trajectory from the front wheel (p x , p y ) distance, lateral tracking error δ e We hope that this distance is as small as possible; the vehicle intersects the tangent line of the nearest point at a distance d from the front wheel, v is the speed of the front wheel, and d is linearly related to v. Without considering the heading tracking error and only considering the lateral tracking error, the larger the lateral tracking error, the larger the front wheel steering angle. Therefore, we have:
[0098]
[0099] Where k is the proportionality coefficient.
[0100] and Fig. 9 θ e Is the body and (p x , p y ) point, the angle formed by the tangent direction, heading tracking error I hope the direction of the car body is consistent with (p x , p y ) point, so that the AGV can move in the direction of the planned trajectory. Without considering the lateral tracking error, the front wheel direction is consistent with (p x , p y ), that is:
[0101]
[0102] Finally, the sum of these two deviations is the total angle the front wheel should turn:
[0103]
[0104] The following formula is the AGV kinematic model derived from the bicycle model. According to the front wheel angle δ f and rear wheel speed vb , we can get the velocity of the AGV center of mass:
[0105]
[0106] Among them, v is the linear velocity of the center of mass, β is the slip angle, that is, the movement direction of the AGV, and ω is the angular velocity of the center of mass.
[0107] The result of the preview point tracking calculation is the velocity vector of the AGV body, which is sent to the controller in the format of geometry_msgs / Twist.
[0108] When the AGV determines that the current path belongs to an open field, the AGV will receive the local cost map sent by the cloud side to complete the motion planning. The open field allows the AGV to run arbitrarily. For this case, this architecture is compatible with different path planning algorithms, such as Dynamic Window Approach (DWA), HRVO (Hybrid Reciprocal Velocity Obstacle) or A* algorithm; when the AGV determines that the current path belongs to a single-path channel, if the actual running route of the AGV deviates from the center of the path, the AGV will receive the simulated offset distance sent by the cloud side. Similar to the multi-path channel, the AGV can also use the above-mentioned local Bezier curve generation, preview point generation and preview point tracking process to generate the vehicle body velocity vector and send it to the controller.
[0109] like Figure 2 As shown in the figure, the motion planning module runs on the APU on the PS side and is developed based on the Linux system. The APU has low power consumption, high energy efficiency, and high program execution efficiency. It can calculate Bezier curves in real time and track preview points. In addition, the motion planning module interacts with the cloud-side behavior-level planning module through the 5G or WIFI interface of the Zynq development board.
[0110] In another embodiment,
[0111] The dense point cloud map is stored on the server side, while the sparse map based on voxel downsampling and the positioning map are stored on the AGV side.
[0112] As far as this embodiment is concerned, in order to address the problem of limited storage space of a stand-alone AGV computing device, the system proposes to store dense point cloud maps on the server side, and store sparse maps based on voxel downsampling and positioning maps on the AGV side, thus avoiding the storage of a large amount of point cloud data on the AGV.
[0113] In another embodiment, a monomer sensing module, such as Fig.10As shown in the figure, a detailed software flow chart of the single perception module is designed based on the ROS (Robot Operation System) framework. Except for some special instructions, the messages transmitted between various software nodes all adopt the ROS standard message format. The single perception module mainly realizes the self-positioning of the single AGV and the environmental perception of the single AGV.
[0114] For the self-positioning of a single AGV, a tightly coupled iterative Kalman filter is used to fuse the perception results of multiple sensors for positioning. The filter consists of two parts: prediction and measurement update. The input of the prediction part is the odometer information obtained by dead reckoning of the wheel speed meter and inertial sensor, and the output is the preliminary AGV positioning result, which is sent in the format of geometry_msgs / Pose for subsequent map registration. The input of the measurement update is the positioning result of the map registration, and the output is the final positioning result after fusion. The final positioning result is also sent in the format of geometry_msgs / Pose for the environmental perception result positioning of a single AGV.
[0115] Secondly, this method uses the VoxelGrid voxel filter to downsample the point cloud to reduce the number of points. The VoxelGrid voxel filter creates a three-dimensional cube (voxel) based on the point cloud. In each voxel, the centroid points of all point clouds in the cube are obtained to represent the cube, thereby achieving the purpose of downsampling. Downsampling can effectively improve the running speed of subsequent map registration programs. Here, the pcl::VoxelGrid function in the PCL library is called to implement point cloud downsampling. Its input is the point cloud information in the sensor_msgs / PointCloud2 format sent by the lidar, and the output is the downsampled point cloud result, which is sent in the message format of sensor_msgs / PointCloud2.
[0116] Next, map registration is implemented to obtain highly accurate positioning results. The iterative closest point algorithm (ICP) is used to implement point cloud registration. This algorithm iteratively solves the correspondence and relative position between two point clouds to accurately match the point clouds. Here, this method uses the registration_icp function in the open3d library to implement point cloud registration. The input is the downsampled point cloud, the preliminary positioning result predicted by the kalman filter, and the pre-drawn global static environment sparse point cloud. The output is a highly accurate positioning result, which will be used in the update process of the kalman filter.
[0117] For the environmental perception of a single AGV, the camera and lidar are first calibrated jointly, and the lidar point cloud is converted to the camera coordinate system to achieve spatial synchronization of multiple sensors. The calibration method can adopt the 2D-3D correspondence method, which uses multiple rectangular cardboards as marking boards and uses the PnP (Perspective-n-Point) algorithm based on RanSaC to solve the 6-DoF of the camera and lidar. The output is the external parameters of the camera and lidar and the internal parameters of the camera, and is recorded in the format of cv::Mat.
[0118] Secondly, the camera sends RGB image information in the message format of sensor_msgs / Image, and the lidar sends point cloud information in the message format of sensor_msgs / PointCloud2. The point cloud and RGB image data are aligned by combining the messages sent by the camera and lidar. The alignment steps are as follows: 1) Match the RGB image and point cloud message with the closest timestamps, one image corresponds to one point cloud message; 2) Project the point cloud onto the RGB image to form a depth map.
[0119] The result of data alignment is a sparse depth map, which is sent in the message format of sensor_msgs / Image. Next, depth completion is performed, and the depth completion problem is converted into a deep learning regression problem. The CNN is trained using a self-supervised method. Its input is a sparse depth map and an RGB image, and the output is a dense point cloud, which is sent in the message format of sensor_msgs / PointCloud2.
[0120] Next, the background map is removed. The background map removal is implemented using the octree_change_detection algorithm in the PCL library. The spatial change detection of the point cloud is performed based on the octree, thereby filtering out the background map and obtaining the point cloud of obstacles in the scene. The input of this method is the dense point cloud obtained by depth completion, the high-precision positioning result obtained by map registration, and the sparse point cloud of the global static environment. The output is the point cloud of obstacles in the scene. The background map removal result is sent in the message format of sensor_msgs / PointCloud2.
[0121] Finally, 3D target detection is performed on the obstacle point cloud. First, the YOLOv3 method is used based on the data-aligned RGB image to realize 2D target detection. Then, the 3D point cloud is reversely searched according to the 2D detection box to obtain the tetrahedral area where the 3D point cloud is located. Finally, the Euclidean distance clustering and scoring mechanism are used to realize 3D target detection. The input of this method is the obstacle point cloud and RGB image, and the output is the target detection result, including the position and length, width and height of the target object bounding box, rotation angle, category, bounding box descriptor, number of point clouds, detection score and other information. The detection result is uploaded to the perception fusion module in the Obj_info message format. The message format is defined as shown in Table 3:
[0122] Obj_info message content Obj_info message format Bounding box position geometry_msgs / Pose
[10] Length, width and height uint16 Rotation Angle geometry_msgs / Twist
[10] category uint16 Bounding Box Descriptor uint16 Point cloud quantity uint16 Test score uint16
[0123] Table 3
[0124] like Figure 2 As shown in the figure, data alignment in the single perception module, obstacle positioning, AGV positioning itself, and communication between the cloud side and the end side are run on the APU on the PS side, while depth completion and target detection are run on the PL side.
[0125] In another embodiment, in the perception fusion module, the detection and tracking functions that require deep learning run on the HiPU chip on the server side, while the traditional target detection function and sensor data association and fusion functions mainly run on the CPU.
[0126] In another embodiment, the system has a special architecture design for communication security and limited storage. The decision-making planning and perception of AGV need to interact with the cloud, so we need lower communication latency and higher communication bandwidth to ensure security. However, due to fluctuations in network environments such as 5G or WIFI, it is difficult to ensure communication quality; in addition, the perception of the AGV uses laser radar, which requires the storage and processing of a large number of point clouds, and the storage space on the AGV is limited. Therefore, in response to the above problems, the following architecture designs are proposed:
[0127] First, in order to solve the problem of limited information transmission bandwidth, we perform single-machine positioning and environmental perception on a single AGV, so that the information uploaded to the cloud is not point cloud, but processed middle- and high-level semantic information, namely the obstacle's 3D position, size, speed, covariance matrix, category, uncertainty, and timestamp, etc. This greatly reduces the amount of data transmitted; in addition, we perform centralized lane change decision planning on the cloud, and ultimately send down a spatiotemporal channel with less data, which also avoids sending down a large amount of point cloud data.
[0128] Secondly, in order to solve the AGV decision-making planning failure caused by communication delay, the present invention proposes that when the information of the cooperative AGV is not received within the time window, it is treated as a non-cooperative AGV to complete the decision. As a prediction process of the filtering operation, after receiving the information of the cooperative AGV, the prediction result is corrected. This not only reflects the information interaction advantage of the cooperative AGV, but also can complete reasonable decision-making planning operations under low communication conditions.
[0129] Although the embodiments of the present invention are described above in conjunction with the accompanying drawings, the present invention is not limited to the above specific embodiments and application fields, and the above specific embodiments are only illustrative and instructive, rather than restrictive. A person of ordinary skill in the art can also make many forms under the guidance of this specification and without departing from the scope of protection of the claims of the present invention, all of which belong to the protection of the present invention.
Claims
1. A multi-AGV collaborative working system, comprising: Multiple AGVs, controllers, motion planning modules, behavior-level planning modules, path resource allocation modules, perception modules, and scheduling modules. The perception module includes a single perception module and a perception fusion module. The controller receives instructions from the motion planning module and feeds back the running status of the AGV to the motion planning module; The motion planning module receives the spatiotemporal channel sent by the behavior-level planning module and the motion mode sent by the scheduling module, and sends the vehicle body speed to the controller; The behavior-level planning module receives the semantic information-level behavior sent by the path resource allocation module, determines whether each AGV starts to change lanes immediately, or goes straight for a distance before changing lanes, and generates a spatiotemporal channel and sends it to the motion planning module; The path resource allocation module receives the real-time scene information flow from the perception fusion module, reasonably allocates path resources according to pre-defined rules, and sends semantic information level behaviors to the behavior level planning module; The single perception module detects the size and category of the AGV, pedestrians and goods in the scene, and transmits the obtained detection results to the perception fusion module; The perception fusion module integrates the static scene of the environment, the real-time perception information of the AGV, and the real-time monitoring results of the sensors installed in the environment, thereby obtaining a global dynamic scene map, and transmits the real-time scene information flow to the path resource allocation module; The scheduling module is responsible for task allocation, multi-AGV collaborative path planning and traffic control.
2. The system of claim 1, wherein: The hardware architecture of the AGV in this multi-AGV collaborative work system is designed based on the Zynq UltraScale+ development platform, including two parts: the processing system PS and the programmable logic PL. The processing system PS includes a quad-core APU and a dual-core RPU, and the programmable logic PL is a programmable logic device FPGA; the hardware architecture of the server side of the multi-AGV collaborative work system includes a CPU and a HiPU, wherein the HiPU is used for neural network reasoning acceleration and is suitable for real-time processing of large amounts of image and point cloud data.
3. The system of claim 1, wherein: The controller, the motion planning module and the single perception module are run on a single AGV, and the behavior-level planning module, the path resource allocation module and the perception fusion module are run on a server.
4. The system as claimed in claim 1, wherein the controller comprises a motion solving module, a manual control module and an obstacle avoidance module.
5. The system as claimed in claim 4, wherein the motion solving module converts the speed into specific driver instructions according to the motion model of the vehicle body, and is applicable to different types of AGVs.
6. The system as claimed in claim 4, wherein the manual control module is used for AGV testing and handling emergencies, and the mode switching and speed adjustment of the AGV are achieved through manual operation.
7. The system as claimed in claim 4, wherein when an unexpected situation occurs, the obstacle avoidance module brakes in time when the distance between the AGV and the obstacle is less than a threshold value to ensure the safety of the AGV.
8. The system of claim 1, wherein: The movement modes include open field, multi-path channel and single-path channel; When the AGV determines that it is currently in an open area, the motion planning module will receive the local cost map from the cloud to complete the motion planning; if it is a multi-path channel, the motion planning module will receive the space-time channel from the cloud to determine the time and operating area restrictions for completing lane changes or turns; if it is a single-path channel, the AGV will receive the simulated offset distance, generate a Bezier curve as a trajectory, and then generate a preview point.
9. The system of claim 1, wherein: The dense point cloud map is stored on the server side, while the sparse map based on voxel downsampling and the positioning map are stored on the AGV side.
10. The system of claim 2, wherein: In the perception fusion module, the detection and tracking functions using deep learning run on the device represented by the HiPU chip on the server side, while the traditional target detection function and sensor data association and fusion functions run on the device represented by the CPU.
Citation Information
Patent Citations
Agricultural machine trajectory tracking and obstacle avoidance system and method based on multi-source information fusion
CN109508007A
Intelligent horizontal transportation system and method for full-automatic container loading and unloading wharf.
CN113486293A
