Multi-vehicle collaborative planning obstacle avoidance method and device and electronic equipment
Through the multi-vehicle collaborative planning obstacle avoidance method, the spatial information and behavioral rules of the vehicle in the scene are used to solve the problems of limited sensory information and insufficient scene adaptability in multi-vehicle navigation, and achieve safe and efficient navigation decision-making and path planning.
Patent Information
- Application Number
- CN202410704085.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-01
AI Technical Summary
Existing multi-vehicle navigation technology has problems with limited sensing information, large errors, and inability to adapt to heterogeneous vehicles and complex scenarios in collision avoidance strategies, resulting in insufficient response capabilities.
Using a multi-vehicle collaborative planning obstacle avoidance method, the vehicle's spatial information in the obstacle avoidance scenario to be planned is acquired and characterized, the speed range of the vehicle is set, and reward and punishment rules are executed according to different behaviors to coordinate vehicle behavior to achieve navigation decisions without communication.
It enables each vehicle to make independent navigation decisions, find time-saving and collision-free paths, adapt to various scenarios, including unseen virtual and real scenes, and improve the safety and efficiency of navigation.
Smart Images

Figure CN118730106A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle obstacle avoidance, and in particular to a multi-vehicle collaborative planning obstacle avoidance method, device and electronic equipment. Background Art
[0002] In the existing technology, one of the main challenges of multi-vehicle navigation is how to develop safe and robust collision avoidance strategies so that each vehicle can navigate safely and efficiently from the starting position to the desired target. Among them, complex collision avoidance skills are also a prerequisite for vehicles to complete many complex tasks, including multi-vehicle collaboration, tracking, and navigation through dense crowds. The main methods for developing collision avoidance strategies are currently divided into two categories: centralized methods and distributed methods. The centralized method generates collision avoidance actions by planning the best path for all vehicles at the same time; the distributed method uses a platform-level decentralized collision avoidance strategy, and each vehicle makes decisions independently by considering the observable states of other vehicles (such as shape, speed, and position).
[0003] However, the above two methods have the following defects: First, each vehicle considers the observable state of other vehicles through its own sensors, and the range of perception of its own sensors is limited, which can only be a small part of the overall environment. Due to sensor errors, the perception obtained may be inaccurate and erroneous. Secondly, it cannot adapt to the large-scale application of heterogeneous vehicles, that is, a large number of vehicles may belong to heterogeneous models with different performance (turning radius, perception range, acceleration performance, etc.), and may not be able to interconnect and communicate with each other. The existing technology requires cumbersome model debugging and training. Finally, the ability to adapt to various scenarios is insufficient. The actual road conditions are diverse, and there may be narrow passages, different road conditions, obstacles of different shapes, dense crowds, fast-crossing pedestrians, dynamically changing roadblocks, etc. The existing technology has insufficient action response capabilities for ordinary situations, complex situations and emergency situations. Therefore, a multi-vehicle collaborative planning obstacle avoidance navigation method is needed to assist multi-vehicle collaborative obstacle avoidance and be able to adapt to various scenarios. Summary of the invention
[0004] In view of this, the present application proposes a multi-vehicle collaborative planning and obstacle avoidance method to solve the problems reflected in the above-mentioned background technology.
[0005] According to one aspect of the present application, a multi-vehicle collaborative planning obstacle avoidance method is provided, comprising:
[0006] Get the obstacle avoidance scene to be planned;
[0007] Acquire spatial information of the vehicle in the obstacle avoidance scene to be planned, and perform feature processing on the spatial information to obtain a feature processing result;
[0008] According to the feature processing result, setting the speed range of the vehicle;
[0009] When the speed of the vehicle is within the speed range, corresponding reward and punishment rules are executed according to different behaviors of the vehicle, and the behavior of the vehicle is coordinated and planned according to the reward and punishment rules.
[0010] As an optional implementation scheme of the present application, obtaining spatial information of the vehicle in the obstacle avoidance scene to be planned, and performing feature processing on the spatial information to obtain a feature processing result includes:
[0011] Obtaining continuous frame measurements of the space in front of the vehicle;
[0012] Performing convolution processing on the measurement values of the continuous frames to obtain a convolution result;
[0013] According to the convolution result, the feature information of the convolution result is integrated to obtain a feature processing result of the spatial information.
[0014] As an optional implementation scheme of the present application, before setting the speed range of the vehicle according to the feature processing result, the method further includes:
[0015] Obtaining the final target position and establishing a polar coordinate system with the vehicle position as the center;
[0016] The relative position of the end target position with respect to the vehicle is determined according to the coordinate information of the end target position in the polar coordinate system.
[0017] As an optional implementation scheme of the present application, before setting the speed range of the vehicle according to the feature processing result, the method further includes:
[0018] Obtaining the running speed of the vehicle;
[0019] Wherein, the running speed includes translation speed and rotation speed.
[0020] As an optional implementation scheme of the present application, setting the speed range of the vehicle according to the feature processing result includes:
[0021] Integrate the feature processing result of the spatial information, the relative position and the running speed to obtain an integration result;
[0022] The speed range of the vehicle is set according to the integration result.
[0023] As an optional implementation scheme of the present application, when the speed of the vehicle is within the speed range, executing corresponding reward and punishment rules according to different behaviors of the vehicle, and coordinating and planning the behavior of the vehicle according to the reward and punishment rules, including:
[0024] Presetting driving requirements for the vehicle;
[0025] If the vehicle meets the driving requirements after the driving is completed, a first reward is obtained;
[0026] If during the driving process of the vehicle, there is a driving behavior that does not meet the driving requirements, a first penalty is obtained;
[0027] The first reward and the first penalty are added together to obtain a target reward, and the behavior of the vehicle is coordinated and planned according to the target reward.
[0028] As an optional implementation scheme of the present application, if the vehicle has a driving behavior that does not meet the driving requirements during driving, a first penalty is obtained, including:
[0029] If a collision occurs during the driving of the vehicle, a corresponding collision penalty will be imposed;
[0030] If the vehicle increases its rotation speed during driving, a corresponding speed-up penalty is imposed;
[0031] The collision penalty and the speed-up penalty are added together to obtain a first penalty.
[0032] As an optional implementation scheme of the present application, setting the speed range of the vehicle according to the integration result includes:
[0033] The translation speed range and the rotation speed range of the vehicle are set according to the integration result.
[0034] The present application also provides a multi-vehicle collaborative planning obstacle avoidance device, comprising:
[0035] Obtain scene module, used to obtain the obstacle avoidance scene to be planned;
[0036] A feature processing module is used to obtain spatial information of the vehicle in the obstacle avoidance scene to be planned, and perform feature processing on the spatial information to obtain a feature processing result;
[0037] Setting a speed module, used to set a speed range of the vehicle according to the feature processing result;
[0038] The vehicle behavior planning module is used to execute corresponding reward and punishment rules according to different behaviors of the vehicle when the speed of the vehicle is within the speed range, and coordinate and plan the behavior of the vehicle according to the reward and punishment rules.
[0039] The present application also provides an electronic device, including:
[0040] processor;
[0041] a memory for storing processor-executable instructions;
[0042] Among them, the processor is configured to implement the above-mentioned multi-vehicle collaborative planning and obstacle avoidance method when executing the executable instructions.
[0043] Beneficial effects of this application:
[0044] The present invention obtains the obstacle avoidance scene to be planned, obtains the spatial information of the vehicle in the obstacle avoidance scene to be planned, and performs feature processing on the spatial information to obtain the feature processing result. According to the feature processing result, the speed range of the vehicle is set. When the speed of the vehicle is within the speed range, the corresponding reward and punishment rules are executed according to the different behaviors of the vehicle, and the behavior of the vehicle is coordinated and planned according to the reward and punishment rules. The purpose of each vehicle making a navigation decision independently can be achieved without any communication with other vehicles. This can find time-saving and collision-free paths for large non-complete constrained vehicle systems, and can be safely applied to unseen virtual and real scenes.
[0045] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.
[0047] Figure 1 A flowchart showing a multi-vehicle collaborative planning obstacle avoidance method according to an embodiment of the present application;
[0048] Figure 2 A neural network model design block diagram showing a multi-vehicle collaborative planning obstacle avoidance method according to an embodiment of the present application;
[0049] Figure 3 A block diagram of a multi-vehicle collaborative planning and obstacle avoidance device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0050] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0051] Among them, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application or simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0052] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0053] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0054] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0055] Example 1
[0056] Figure 1 The flowchart of the multi-vehicle collaborative planning and obstacle avoidance method according to an embodiment of the present application is shown. In this method, based on a multi-scenario multi-stage deep reinforcement learning framework, a policy gradient method is used to simulate and train a large multi-vehicle system in a set of complex scenarios to learn the optimal collision avoidance strategy for collaborative planning and obstacle avoidance. The learned strategy is superior to existing vehicle and sensor-level methods in terms of navigation speed and safety. Figure 1 As shown, the flow chart includes:
[0057] S100, obtaining an obstacle avoidance scene to be planned;
[0058] When using the policy gradient method for simulation training, a neural network model that applies the policy gradient method can be designed. The neural network model design includes three parts: observation space design, action space design, and reward function design. The relationship between the three is progressive. Observation space design is required before action space design can be performed, and further, reward function design can be performed. Obtaining the obstacle avoidance scene to be planned is part of the observation space design. In this step, by installing a scanner at the front of the vehicle to obtain the maximum unobstructed field of view, the information of the current obstacle avoidance scene is obtained as the basis for subsequent planning of obstacle avoidance methods.
[0059] S200, obtaining spatial information of the vehicle in the obstacle avoidance scene to be planned, and performing feature processing on the spatial information to obtain a feature processing result;
[0060] Spatial information is the distance measurement value of the 2D laser rangefinder In this step, the measured values of the two-dimensional laser rangefinder need to be processed and then combined with the running speed and the relative position of the target After normalization by subtracting the observed mean and dividing by the standard deviation, it is used for full training. The training here means that the neural network model will be used for training after it is designed, and the aforementioned Normalization is required before each neural network model training.
[0061] S300, setting a speed range of the vehicle according to the feature processing result;
[0062] In this step, the speed range of the vehicle is set based on the action space design, which sets a set of permissible speed values in a continuous interval.
[0063] S400, when the speed of the vehicle is within the speed range, executing corresponding reward and punishment rules according to different behaviors of the vehicle, and coordinating and planning the behavior of the vehicle according to the reward and punishment rules.
[0064] After setting a set of permissible speed values in a continuous interval, the reward function is designed. The optimization goal in the reward function design is to avoid collisions when the vehicle is navigating and to minimize the average arrival time of all vehicles. The reward function is designed to guide all vehicles to achieve this optimization goal and is also a reflection of the reward and punishment rules. Through the reward function, users can coordinate and plan their driving behavior.
[0065] As an optional implementation scheme of the present application, obtaining spatial information of the vehicle in the obstacle avoidance scene to be planned, and performing feature processing on the spatial information to obtain a feature processing result includes:
[0066] Obtaining continuous frame measurements of the space in front of the vehicle;
[0067] The scanner is a two-dimensional laser rangefinder. By installing it on the front of the vehicle, the measurement value of the two-dimensional laser rangefinder is obtained. Measurements Contains the measurement values of the last three consecutive frames of the 180° laser scanner. Each frame contains 512 ranging values within 4 meters.
[0068] Performing convolution processing on the continuous frame measurement values to obtain a convolution result;
[0069] See also Figure 2 , the measured value Perform two one-dimensional convolutions. First, perform a one-dimensional convolution of 32 rows and 5 columns to obtain the first convolution result. Then perform a one-dimensional convolution of 32 rows and 3 columns on the second convolution result to obtain the second convolution result. By stacking multiple convolution layers in the neural network model and performing convolution, the neural network model can gradually learn the hierarchical representation from simple features to complex features.
[0070] According to the convolution result, the feature information of the convolution result is integrated to obtain a feature processing result of the spatial information.
[0071] After obtaining the result of the second convolution, the next fully connected layer (FC) with 256 nodes can learn the feature representation of the output data of the first two one-dimensional convolutions, integrate all the feature information learned in the previous one-dimensional convolution, and obtain the feature processing result of the spatial information in front of the vehicle.
[0072] As an optional implementation scheme of the present application, before setting the speed range of the vehicle according to the feature processing result, the method further includes:
[0073] Obtaining the final target position and establishing a polar coordinate system with the vehicle position as the center;
[0074] The destination target position is the destination of the vehicle. A polar coordinate system is established with the vehicle position as the center to obtain the relative position of the destination target position relative to the current position of the vehicle.
[0075] The relative position of the end target position with respect to the vehicle is determined according to the coordinate information of the end target position in the polar coordinate system.
[0076] Relative Position It is a two-dimensional vector that represents the distance and angle of the end target position in the polar coordinate system under the current position of the vehicle. Confirming the direction of the end target position in two dimensions can set a suitable speed range for the subsequent operation.
[0077] As an optional implementation scheme of the present application, setting the speed range of the vehicle according to the feature processing result also includes:
[0078] Obtaining the running speed of the vehicle;
[0079] The running speed of the vehicle can be obtained through sensor components in the vehicle, etc.
[0080] Wherein, the running speed includes translation speed and rotation speed.
[0081] Contains the vehicle's current translational and rotational speeds.
[0082] As an optional implementation scheme of the present application, setting the speed range of the vehicle according to the feature processing result includes:
[0083] Integrate the feature processing result of the spatial information, the relative position and the running speed to obtain an integration result;
[0084] The speed range of the vehicle is set based on the action space design, see Figure 2 , the feature results and relative positions of the spatial information that have been processed by the convolution and fully connected layers and the vehicle's speed Through a 128-node fully connected layer, learn the feature results of spatial information and the relative position of the target and the vehicle's speed The feature representation of is obtained to obtain the integration result that can reflect the learned feature representation.
[0085] The speed range of the vehicle is set according to the integration result.
[0086] The action space designs a set of permissible speed values in a continuous interval. The vehicle's action includes translational speed and rotational speed, i.e., a t =[v t , w t ], in this embodiment, the translation speed range v is set t (0.0, 1.0), rotation speed range w t (-1.0, 1.0), when setting the speed a at step time t t It is also necessary to consider and in is the mean linear velocity output by the policy network at step time t, where the policy network mainly uses the policy gradient method; is the logarithm of the standard deviation of the linear velocity at step time t. This parameter is used to control the uncertainty or variance of the velocity output, which can affect the smoothness or exploration behavior of the vehicle's motion. The speed range set in this way is more in line with the actual driving situation of the vehicle. It should be noted that the situation of reversing (v<0) is not considered here because the laser scanner cannot scan the rear area of the vehicle.
[0087] As an optional implementation scheme of the present application, when the speed of the vehicle is within the speed range, executing corresponding reward and punishment rules according to different behaviors of the vehicle, and coordinating and planning the behavior of the vehicle according to the reward and punishment rules, including:
[0088] Presetting driving requirements for the vehicle;
[0089] Before designing the reward function, it is necessary to determine the optimization goal corresponding to the target reward so that the target reward can be obtained by completing the optimization goal. According to the corresponding optimization goal, the driving requirements for the driver can be obtained. In this embodiment, the optimization goal corresponding to the target reward is to encourage vehicles to avoid collisions during navigation and to minimize the average arrival time of all vehicles.
[0090] If the vehicle meets the driving requirements after the driving is completed, a first reward is obtained;
[0091] In this embodiment, when the vehicle meets the driving requirements during driving, it will receive a first reward, and corresponding penalties will be imposed based on other driving behaviors of the vehicle that do not meet the driving requirements. Therefore, the target reward is the sum of the first reward and the first penalty. Specifically:
[0092]
[0093] It means that the reward r received by the i-th vehicle at step time t is the sum of three items: g r 、c r 、w r .That The first reward is the vehicle’s first reward when it reaches the optimization goal.
[0094]
[0095] In the formula for obtaining the first reward, p i is the position of the i-th vehicle; is the position of the i-th vehicle at step time t; g i is the final target position, according to the i-th vehicle and the final target position g i The distance between To calculate the reward.
[0096] If during the driving process of the vehicle, there is a driving behavior that does not meet the driving requirements, a first penalty is obtained;
[0097] in and The different penalties corresponding to different driving behaviors in the first penalty are added together to obtain the final penalty sum, which is the first penalty.
[0098] The first reward and the first penalty are added together to obtain a target reward, and the behavior of the vehicle is coordinated and planned according to the target reward.
[0099] The first reward Add the first penalty to get the target reward that the vehicle can finally obtain. Adjust the driver's driving behavior according to the target reward. For example, when the driver does not collide or speed up during driving, the sum of the first penalty is 0, and the first reward is the target reward. After a collision or speeding up, the driver's target reward will become smaller, and the driving behavior can be coordinated and planned according to the final target reward.
[0100] As an optional implementation scheme of the present application, if the vehicle has a driving behavior that does not meet the driving requirements during driving, a first penalty is obtained, including:
[0101] If a collision occurs during the driving of the vehicle, a corresponding collision penalty will be imposed;
[0102] When the vehicle collides with other vehicles or obstacles while completing the driving goal, it receives a collision penalty
[0103]
[0104] Get collision penalty In the formula, is the radius of the vehicle center, used as the safety distance threshold from obstacles. k is the position of the obstacle. j is the position of the jth vehicle; is the position of the jth vehicle at step time t. Collisions include collisions with other vehicles or collisions with obstacles. According to the distance between the i-th vehicle and the j-th vehicle at step time t and Compared with, or according to the distance between the i-th vehicle and the obstacle B at the step time t k The distance between and The unit of collision penalty deducted from the target reward is compared to r collision .
[0105] If the vehicle increases its rotation speed during driving, a corresponding speed-up penalty is imposed;
[0106] To encourage smooth vehicle movement, a small acceleration penalty is applied when the vehicle has a large turning speed.
[0107]
[0108] Get speed penalty In the formula, is the angular velocity of the i-th vehicle at step time t.
[0109] The collision penalty and the speed-up penalty are added together to obtain a first penalty.
[0110] Penalize collision and speed penalty Add them together to get the total penalty for the vehicle, which is the first penalty.
[0111] In the above formulas for the first reward and the first penalty, set r arrival =15; w g =2.5; r collision =-15; w w =-0.1. Specifically, they are all parameters in the target reward formula, where r arrival represents the reward value obtained when the vehicle reaches the destination. In this formula, it is set to 15 to encourage the vehicle to reach the destination. g It is used to encourage the vehicle to reduce the distance from the final target position at each step time t, and as the vehicle approaches the final target position, this reward will gradually increase, thereby promoting the vehicle to move effectively towards the final target position. This design helps the vehicle learn how to navigate in a complex environment and ultimately reach the final target position. collision represents the parameter used to calculate the collision penalty in the target reward equation. Specifically, r collision The value of is set to -15, meaning that when the vehicle collides, it deducts 15 units from the target reward. w is the weight parameter used to control the smoothness of vehicle motion in the target reward equation. Specifically, w w The value of is set to -0.1 to penalize the vehicle for large angular velocities during execution, thereby encouraging the vehicle to take a smoother trajectory. collision = -15 and w w=-0.1, we can know that when a vehicle collides with other vehicles or obstacles, it is easy to cause serious traffic accidents. Therefore, the collision penalty has a greater impact on the final target reward. When the vehicle has a large rotation speed, the negative effect is far less serious than the collision. It is more for the vehicle to run smoothly. Therefore, the speed-up penalty has a smaller impact on the final target reward, but it cannot be ignored.
[0112] As an optional implementation scheme of the present application, setting the speed range of the vehicle according to the integration result includes:
[0113] The translation speed range and the rotation speed range of the vehicle are set according to the integration result.
[0114] When considering the speed range of a vehicle, it includes the translational speed range and the rotational speed range. Considering the translational speed range and the rotational speed range of the vehicle has many benefits for ensuring the safety and efficient operation of the vehicle and extending the life of the vehicle. First of all, the translational speed, that is, the vehicle speed, directly affects the safety and efficiency of the vehicle. Too high a speed may increase the risk of traffic accidents, such as increased braking distance and reduced handling stability. Secondly, the rotational speed, that is, the engine speed, is related to the vehicle's fuel economy, power performance and engine life. Too high an engine speed will increase fuel consumption and wear and reduce engine life; while too low a speed may lead to incomplete fuel combustion and carbon deposits, which will also damage the engine.
[0115] The above is the design of the neural network model of the multi-vehicle collaborative planning obstacle avoidance method. After the design is completed, the neural network model can be trained. The training steps include:
[0116] The neural network model can be placed in the intelligent agent, and the parallel PPO algorithm can be used to perform intelligent agent optimization iteration in large-scale scenarios. The centralized learning and training and distributed deployment methods can be used to accelerate the optimization learning process of the multi-vehicle collaborative planning and obstacle avoidance method.
[0117] By using the simulation environment to generate a variety of scenarios, the neural network model can be fully trained, improving the quality and robustness of the strategy, making the algorithm easier to promote and improving generalization.
[0118] Ultimately, a hybrid control architecture is formed that combines learning strategies with traditional control strategies. Vehicles are classified and controlled according to the complexity of the scene. This not only solves the problem of the algorithm's slow learning of low-dimensional content (such as arriving in a straight line when there are no obstacles) in a high-dimensional action space, but also bridges the gap between simulation scenarios and real scenarios, and is better adapted to different scenarios. For example, PID controller strategies are used for simple scenarios, strategies obtained through reinforcement learning are used for more complex scenarios, and safety control strategies are used for emergency scenarios.
[0119] Through the above method, each vehicle can set a speed range in its driving scenario, speed up or slow down according to the speed range, and make navigation decisions independently without any communication with other vehicles. This can find time-saving and collision-free paths for large non-holonomic constrained vehicle systems and can be safely applied to unseen virtual and real scenarios.
[0120] Example 2
[0121] Based on the same principle as the above method, a multi-vehicle collaborative planning obstacle avoidance device is also proposed, see Figure 3 , a multi-vehicle collaborative planning obstacle avoidance device 100 of an embodiment of the present disclosure includes:
[0122] A scene acquisition module 110 is used to acquire the obstacle avoidance scene to be planned;
[0123] A feature processing module 120 is used to obtain spatial information of the vehicle in the obstacle avoidance scene to be planned, and perform feature processing on the spatial information to obtain a feature processing result;
[0124] Setting a speed module 130, for setting a speed range of the vehicle according to the feature processing result;
[0125] The vehicle behavior planning module 140 is used to execute corresponding reward and punishment rules according to different behaviors of the vehicle when the speed of the vehicle is within the speed range, and coordinate and plan the behavior of the vehicle according to the reward and punishment rules.
[0126] Obviously, those skilled in the art should understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. The modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by computing devices, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.
[0127] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0128] Example 3
[0129] Furthermore, an electronic device is proposed, comprising:
[0130] processor;
[0131] a memory for storing processor-executable instructions;
[0132] Among them, the processor is configured to implement the multi-vehicle collaborative planning and obstacle avoidance method described in Example 1 when executing the executable instructions.
[0133] The electronic device of the embodiment of the present disclosure includes a processor and a memory for storing processor executable instructions, wherein the processor is configured to implement any of the above-mentioned multi-vehicle collaborative planning and obstacle avoidance methods when executing the executable instructions.
[0134] It should be noted that the number of processors may be one or more. At the same time, the electronic device of the embodiment of the present disclosure may also include an input device and an output device. The processor, memory, input device, and output device may be connected via a bus or in other ways, which are not specifically limited here.
[0135] The memory is a computer-readable storage medium for the multi-vehicle collaborative planning obstacle avoidance method, and can be used to store software programs, computer executable programs, and various modules, such as: the program or module corresponding to the multi-vehicle collaborative planning obstacle avoidance method of the embodiment of the present disclosure. The processor executes various functional applications and data processing of the electronic device by running the software program or module stored in the memory.
[0136] The input device can be used to receive input numbers or signals. The signal can be a key signal related to user settings and function control of the device / terminal / server. The output device can include a display device such as a display screen.
[0137] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A multi-vehicle collaborative planning and obstacle avoidance method, It is characterized in that include: Get the obstacle avoidance scene to be planned; Acquire spatial information of the vehicle in the obstacle avoidance scene to be planned, and perform feature processing on the spatial information to obtain a feature processing result; According to the feature processing result, setting the speed range of the vehicle; When the speed of the vehicle is within the speed range, corresponding reward and punishment rules are executed according to different behaviors of the vehicle, and the behavior of the vehicle is coordinated and planned according to the reward and punishment rules.
2. The multi-vehicle collaborative planning and obstacle avoidance method according to claim 1, It is characterized in that Acquiring spatial information of the vehicle in the obstacle avoidance scene to be planned, and performing feature processing on the spatial information to obtain a feature processing result, including: Obtaining continuous frame measurements of the space in front of the vehicle; Performing convolution processing on the continuous frame measurement values to obtain a convolution result; According to the convolution result, the feature information of the convolution result is integrated to obtain a feature processing result of the spatial information.
3. The multi-vehicle collaborative planning obstacle avoidance method according to claim 2, It is characterized in that Before setting the speed range of the vehicle according to the feature processing result, the method further includes: Obtaining the final target position and establishing a polar coordinate system with the vehicle position as the center; The relative position of the end target position with respect to the vehicle is determined according to the coordinate information of the end target position in the polar coordinate system.
4. The multi-vehicle collaborative planning obstacle avoidance method according to claim 3, It is characterized in that Before setting the speed range of the vehicle according to the feature processing result, the method further includes: Obtaining the running speed of the vehicle; Wherein, the running speed includes translation speed and rotation speed.
5. The multi-vehicle collaborative planning and obstacle avoidance method according to claim 4, It is characterized in that The step of setting the speed range of the vehicle according to the feature processing result includes: Integrate the feature processing result of the spatial information, the relative position and the running speed to obtain an integration result; The speed range of the vehicle is set according to the integration result.
6. The multi-vehicle collaborative planning and obstacle avoidance method according to claim 5, It is characterized in that When the speed of the vehicle is within the speed range, executing corresponding reward and punishment rules according to different behaviors of the vehicle, and coordinating and planning the behavior of the vehicle according to the reward and punishment rules, including: Presetting the driving requirements of the vehicle; If the vehicle meets the driving requirements after the driving is completed, a first reward is obtained; If during the driving process of the vehicle, there is a driving behavior that does not meet the driving requirements, a first penalty is obtained; The first reward and the first penalty are added together to obtain a target reward, and the behavior of the vehicle is coordinated and planned according to the target reward.
7. The multi-vehicle collaborative planning and obstacle avoidance method according to claim 6, It is characterized in that If the vehicle has a driving behavior that does not meet the driving requirements during driving, a first penalty is imposed, including: If a collision occurs during the driving of the vehicle, a corresponding collision penalty will be imposed; If the vehicle increases its rotation speed during driving, a corresponding speed-up penalty is imposed; The collision penalty and the speed-up penalty are added together to obtain a first penalty.
8. The multi-vehicle collaborative planning and obstacle avoidance method according to claim 5, It is characterized in that Setting the speed range of the vehicle according to the integration result includes: The translation speed range and the rotation speed range of the vehicle are set according to the integration result.
9. A multi-vehicle collaborative planning obstacle avoidance device, It is characterized in that include: Obtain scene module, used to obtain the obstacle avoidance scene to be planned; A feature processing module is used to obtain spatial information of the vehicle in the obstacle avoidance scene to be planned, and perform feature processing on the spatial information to obtain a feature processing result; Setting a speed module, used to set a speed range of the vehicle according to the feature processing result; The vehicle behavior planning module is used to execute corresponding reward and punishment rules according to different behaviors of the vehicle when the speed of the vehicle is within the speed range, and coordinate and plan the behavior of the vehicle according to the reward and punishment rules.
10. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the multi-vehicle collaborative planning and obstacle avoidance method described in any one of claims 1-8 when executing the executable instructions.
Citation Information
Patent Citations
Formation instruction determination method, system and device and storage medium
CN115826627A
Multi-robot safety navigation method and system based on hierarchical deep reinforcement learning
CN116339331A
Intelligent collision avoidance method for a swarm of unmanned surface vehicles based on deep reinforcement learning
US20220189312A1
Obstacle avoidance method, apparatus, electronic device and storage medium for vehicle
US20240166196A1
