Multi-unmanned autonomous robot narrow passage trajectory planning method
By independently searching discrete paths for each unmanned autonomous robot and determining the interaction type, performing path segmentation planning and nonlinear optimization, the problem of interaction and passing between multiple unmanned autonomous robots in narrow environments is solved, and safe trajectory planning and tracking are achieved.
Patent Information
- Application Number
- CN202411340995.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-09-25
AI Technical Summary
Existing technologies cannot effectively solve the problems of interaction and trajectory planning of multiple unmanned autonomous robots in narrow environments, especially when other mobile robots are present, and cannot handle narrow environments and passing situations at the same time.
Each unmanned autonomous robot independently searches for discrete paths, obtains discrete motion trajectories through motion planning, compares robot motion trajectories, determines the interaction type, and performs road width segmentation at locations where passing is permitted. It then performs path segmentation planning and nonlinear optimization, adjusting speed and steering angle to ensure safe passage.
This project aims to plan safe trajectories for multiple unmanned autonomous robots in confined environments, avoid collisions with static obstacles and other mobile robots, improve solution efficiency and ensure accuracy, and adapt to trajectory planning for different interaction types.
Smart Images

Figure CN119105506B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of trajectory planning for unmanned autonomous robots, and more specifically, relates to a method for trajectory planning of multiple unmanned autonomous robots in narrow passages. Background Technology
[0002] Trajectory planning is one of the core technologies for achieving autonomous driving. Planning a suitable trajectory is crucial for the safe operation of unmanned autonomous robots. Trajectory planning mainly includes path planning and motion control, which are responsible for acquiring the state and control variables of the mobile robot at each moment, ensuring that the mobile robot can safely and smoothly reach its destination.
[0003] Several patents have researched trajectory planning in confined environments. Patent "CN117873108A" proposes a trajectory planning method and controller for tractor-trailers based on constructing a driving corridor, which can quickly generate the safest and optimal trajectory in complex and confined environments. Patent "CN115447612A" proposes a priority-based method for passing on narrow roads, determining the passing strategy according to the priorities of the two vehicles. The former can solve the trajectory planning problem in narrow areas, but it cannot handle the situation where other mobile robots are present. Once another mobile robot interacts with the mobile robot currently planning the trajectory, it will be unable to generate a trajectory successfully. The latter can use priority for passing on narrow roads, but it can only handle the situation of passing, cannot distinguish whether passing is necessary, and does not have trajectory planning capabilities, making its practical application very limited.
[0004] The aforementioned patents either solve the trajectory planning problem in narrow environments or the logic problem of passing other vehicles, but they all have their limitations and cannot combine the two aspects to obtain a method that can simultaneously handle mobile robot interaction and trajectory planning in narrow environments. Summary of the Invention
[0005] To address the shortcomings and improvement needs of existing technologies, this invention provides a method for trajectory planning in narrow passages for multiple unmanned autonomous robots. The aim is to propose a method that can simultaneously handle mobile robot interaction and trajectory planning in narrow environments.
[0006] To achieve the above objectives, according to one aspect of the present invention, a method for trajectory planning of multiple unmanned autonomous robots in narrow passages is provided, comprising:
[0007] S1. Independently search for discrete paths in the target narrow channel for each unmanned autonomous robot, so as to obtain the discrete motion trajectory of the robot through motion planning;
[0008] S2. Compare the motion trajectories of each unmanned autonomous robot to determine the robot information and interaction type of each interaction event; for each interaction event of "meeting," determine a preset discrete time sequence on the discrete motion trajectory that includes the interaction time of the interaction event, and at each robot position corresponding to each discrete time point in the sequence, perform left and right parallel expansion of the robot's left and right boundaries according to the position of the nearest static obstacle to obtain the maximum expansion distance d of the left and right boundaries. left and d right When the robot's d left and d right The sum of these values is not less than the robot width B. a With respect to the preset minimum safe distance δ min When the sum of the values is equal, then the robot's position allows vehicles to pass each other. By dividing the road width at the robot's position, a pair of positions that satisfy the lateral safety of the two robots are obtained, and each position serves as the intermediate point for the corresponding robot to replan its path.
[0009] S3. Based on all the intermediate points of each robot, perform segmented path planning for the robot and merge the planned path segments to perform trajectory planning, thereby obtaining a secondary planned trajectory; perform nonlinear motion trajectory optimization on the secondary planned trajectory of each robot to complete the trajectory planning.
[0010] Furthermore, before obtaining the quadratic planning trajectory for each robot, step S3 also includes:
[0011] For each interaction event of type "not driving", the speed of the two robots is adjusted according to the first-come-first-served method at the interaction time and space of the interaction event, and finally the secondary planning trajectory of each robot is obtained.
[0012] Furthermore, in step S2, the method for obtaining a pair of positions that satisfy the lateral safety of the two robots by dividing the road width at the robot's location is as follows:
[0013] The road width R is readjusted at the robot's location, and the safety distance δ is divided into three segments: δ1, δ2, and δ3. These segments represent the distances from the robot on the left side of the road to the obstacle on the left, the distance between the two robots, and the distance from the robot on the right side of the road to the obstacle on the right, respectively. The safety distance δ satisfies the following conditions:
[0014] The positions of the two robots are determined based on δ1, δ2, and δ3, and are referred to as the pair of positions.
[0015] Furthermore, in S1, when each unmanned autonomous robot independently searches for discrete paths, each edge of the vehicle boundary defined for the robot is reduced inward by a preset length, and the resulting new vehicle boundary is used as the vehicle boundary for path planning. The ratio of the preset length to the shortest edge of the vehicle boundary before reduction is no more than 20%, which is used to relax the collision constraints between the robot and static obstacles.
[0016] Furthermore, the optimization model for the nonlinear optimization of the motion trajectory of each robot is as follows:
[0017]
[0018] In the formula, Let N be the state variable of the robot at time k, and let N represent the maximum index of the time series. x is the control variable for the robot. k+1 =f(x) k ,u k ) represents the state equation of the vehicle's kinematic model, m represents the number of the static obstacle, and M represents the total number of static obstacles in the target narrow passage; This represents the space occupied by the robot at time k. This indicates the space occupied by a convex obstacle. d represents the distance between the actual robot profile and the convex obstacle. min This is the minimum allowable distance between the robot and the obstacle. h(x) represents the space occupied by the robot that interacts with the controlled robot at time k; k ,u k )≤0 is an acceleration constraint; as well as Forming collision constraints; J(x) k ,u k ) is the cost function.
[0019] Furthermore, it also includes: adjusting the control parameters of each mobile robot in real time by predicting its own future state and the travel trajectories of other mobile robots, until it reaches the designated destination.
[0020] Furthermore, the control quantity includes the steering angle. After predicting the steering angle for the current time, the steering angle is corrected in the following manner:
[0021] Calculate the allowable turning radius R of the robot based on the location of each obstacle at the road position of the controlled robot. k Based on the relationship between the turning radius R and the steering angle θ: Obtain the permissible steering angle limit θ for the obstacle. k The allowable steering angle limit θ for each obstacle is adopted.k The upper and lower limits of the preset steering angle range are adjusted to obtain a feasible steering angle range with a narrowed range; where L is the wheelbase of the vehicle.
[0022] If the steering angle obtained by MPC is not in this range, a new steering angle is obtained from the feasible range for tracking.
[0023] The present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described above.
[0024] The present invention also provides a computer-readable storage medium comprising a stored computer program, wherein the computer program, when executed by a processor, controls the device on which the storage medium is located to perform the steps of the method described above.
[0025] The present invention also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps of the method described above.
[0026] In summary, the above-described technical solutions conceived in this invention can achieve the following beneficial effects:
[0027] (1) This invention proposes a trajectory planning method for narrow environments considering multi-vehicle interaction. First, a discrete path is independently searched for each robot in the target narrow passage to obtain a discrete motion trajectory. The motion trajectories of each robot are compared to determine each interaction event. For the two robots corresponding to each vehicle-passing interaction event, it is determined whether passing is allowed at each robot's position. By dividing the road width at the allowed passing position, a pair of positions that satisfy the lateral safety of the two robots are obtained. Each position is used as the intermediate point for the corresponding robot to replan the path. Based on all the intermediate points of each robot, the path of the robot is segmented and the planned path segments are merged for trajectory planning to obtain a secondary planned trajectory. After nonlinear optimization, the trajectory planning is completed. This invention proposes a complete trajectory planning process for narrow environments with multi-vehicle interaction. It can plan a trajectory from the starting point to the ending point for a mobile robot in a narrow road environment without colliding with static obstacles or other moving mobile robots (i.e., dynamic obstacles). This method introduces mobile robot interaction into the trajectory planning and tracking controller, ensuring that the mobile robot can complete trajectory planning and tracking on narrow roads even when other mobile robots affect passage.
[0028] (2) In order to improve the solution efficiency, this invention proposes an initial planning method that appropriately relaxes the collision constraints between the mobile robot and the static obstacle. That is, by using a threshold, the robot and the obstacle polygon can be allowed to partially invade each other, ensuring that a feasible solution can be obtained quickly. The relaxation of the collision constraint here will be corrected in the subsequent solution of the nonlinear optimization model to ensure no collision.
[0029] (3) The present invention also proposes an optimization model for nonlinear optimization of motion trajectory. The model considers the maximum acceleration constraint and the collision constraint. The collision constraint corrects the robot boundary relaxation introduced in the initial planning, which improves the solution efficiency while ensuring the solution accuracy.
[0030] (4) This invention proposes a method for steering angle correction in trajectory tracking optimization. This method provides a range of steering angles, within which any steering angle can be selected, allowing for selection based on actual needs. This method allows for the selection of either a conservative or a more aggressive steering angle, giving the executor room to decide, resulting in good adaptability and ensuring accuracy. Attached Figure Description
[0031] Figure 1 A flowchart illustrating a method for trajectory planning in narrow passages for multiple unmanned autonomous robots, provided in an embodiment of the present invention;
[0032] Figure 2 This is a schematic diagram of vehicle relaxation processing provided in an embodiment of the present invention;
[0033] Figure 3 The velocity curve diagram during initial motion control provided in the embodiments of the present invention;
[0034] Figure 4 This is a schematic diagram of the parallel expansion of a vehicle provided in an embodiment of the present invention;
[0035] Figure 5 Road width allocation diagram provided for embodiments of the present invention;
[0036] Figure 6 A vehicle interaction diagram provided as an embodiment of the present invention;
[0037] Figure 7 This is another vehicle interaction diagram provided in an embodiment of the present invention;
[0038] Figure 8 A schematic diagram of steering angle correction provided for an embodiment of the present invention;
[0039] Figure 9 The flowchart illustrates the overall implementation of a trajectory planning method for multiple unmanned autonomous robots in narrow passages, as provided in this embodiment of the invention. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0041] Example 1
[0042] A method for trajectory planning of multiple unmanned autonomous robots in narrow passages, such as Figure 1 As shown, it includes:
[0043] S1. Independently search for a discrete path in the target narrow channel for each unmanned autonomous robot and obtain the discrete motion trajectory of the robot through motion planning based on the discrete path.
[0044] S2. Collision detection is performed by comparing the motion trajectories of each unmanned autonomous robot to determine whether each robot interacts in space and time and the type of interaction, including interaction without encountering a vehicle and interaction with a vehicle. For two robots whose interaction type is interaction with a vehicle, the left and right boundaries of each robot are extended horizontally at each robot's position at each discrete time point. The maximum extension distance is determined based on the position of the nearest static obstacle on the road at the robot's position, thus obtaining the maximum extension distance d of the left and right boundaries. left and d right When the robot's d left d right The sum of these values is not less than the robot width B. a With respect to the preset minimum safe distance δ min When the sum of the values is equal, then the robot's position allows oncoming traffic. By dividing the road width at the robot's position, a pair of positions that satisfy the lateral safety of both robots are obtained, and each position serves as the replanning midpoint for the corresponding robot. Each discrete time point is defined on the discrete motion trajectory, including the interaction time t. c Each point in the preset discrete time series;
[0045] S3. Based on all the intermediate points of each robot, perform segmented path planning for the robot and merge the planned path segments to perform trajectory planning, thereby obtaining a secondary planned trajectory; perform nonlinear motion trajectory optimization on the secondary planned trajectory of each robot to complete the trajectory planning.
[0046] It should be noted that the discrete time points of the discrete motion trajectories of each unmanned autonomous robot are consistent. Therefore, the two robots that pass each other share a preset discrete time series.
[0047] As a preferred implementation, S3, before obtaining the secondary planning trajectory for each robot, further includes:
[0048] For each interaction event of type "no vehicle," corresponding to two robots, the speeds of the two robots are adjusted according to a first-come, first-served principle at the interaction point, ultimately obtaining the secondary planned trajectory for each robot. Specifically, based on the current position and future turning direction of the mobile robots, a priority relationship can be specified at the interaction point according to the first-come, first-served principle. For example, the first vehicle to pass passes at its original speed or a speed after appropriate deceleration, while the second vehicle decelerates or brakes, waiting for the other vehicle to pass before accelerating.
[0049] As a preferred implementation, in S1, when each unmanned autonomous robot independently searches for a path, each side of the vehicle boundary defined by the robot is reduced inward by a preset length, and the resulting new vehicle boundary is used as the vehicle boundary for path planning. The ratio of the preset length to the shortest side is no more than 20%, which is used to relax the collision constraints between the robot and static obstacles.
[0050] Furthermore, as a preferred option, the optimization model for the nonlinear optimization of the motion trajectory of each robot is as follows:
[0051]
[0052] In the formula, Let N be the state variable of the robot at time k, and let N represent the maximum index of the time series. For the robot's control variables, m represents the number of the static obstacle, and M represents the total number of static obstacles in the target narrow passage; This represents the space occupied by the robot at time k. This indicates the space occupied by a convex obstacle. d represents the distance between the actual robot profile and the convex obstacle. min This is the minimum allowable distance between the robot and the obstacle. h(x) represents the space occupied by the robot that interacts with the controlled robot at time k; k ,u k )≤0 is an acceleration constraint; as well as Forming collision constraints; J(x) k ,u k ) is the cost function.
[0053] Alternatively, as a preferred implementation, in S2, the method of obtaining a pair of positions that satisfy the lateral safety of the two robots by dividing the road width at the robot's location is as follows:
[0054] The road width R is readjusted at the robot's location, and the safety distance δ is divided into three segments: δ1, δ2, and δ3. These segments represent the distances from the robot on the left side of the road to the obstacle on the left, the distance between the two robots, and the distance from the robot on the right side of the road to the obstacle on the right, respectively. The safety distance δ satisfies the following conditions:
[0055] The positions of the two robots are determined based on δ1, δ2, and δ3, and are referred to as the pair of positions.
[0056] Vehicles are a type of mobile robot, and their movement patterns are non-holistic. Compared to robots with holistic movement, they face greater difficulties in handling interaction problems in confined environments. This embodiment uses an autonomous vehicle (hereinafter referred to as a vehicle) in the field of autonomous driving as an example to illustrate the above solution.
[0057] The above S1 includes:
[0058] (S11) Initial Path Planning: Using, for example, HybridA*, an independent path is searched for each vehicle in the narrow map, without considering the paths of other mobile robots. To improve solution efficiency, the collision constraints between the mobile robots and static obstacles are appropriately relaxed. That is, by using a threshold, partial intrusion between the robot and the obstacle polygon is allowed, ensuring that a feasible solution can be obtained quickly. Preferably, the relaxation of the collision constraints at this point will be corrected in the subsequent solution of the nonlinear optimization model to ensure no collisions.
[0059] Specifically, the existing HybridA* algorithm is used to search for a discrete path P = (p1, p2, p3, ..., p) for each robot in a narrow map. n ), where each path point p i From the vehicle's position coordinates (x i ,y i and orientation angle In this case, other robots (such as vehicles) are temporarily ignored, and only the surrounding static obstacles are considered.
[0060] Since HybridA* uses a graph search-based path planning method, a smaller step size makes it easier to find the optimal path without collisions with static obstacles in confined environments. However, a smaller step size also leads to slower planning speed. To ensure both solution quality and efficiency, this embodiment preferably performs relaxation processing on the HybridA* vehicle model, such as... Figure 2 As shown, the actual vehicle boundary is represented by a rectangle that completely encloses the vehicle. Based on the actual vehicle boundary, the four boundaries of the rectangle are relaxed inward by a length ζ (not greater than 20%) to obtain a new relaxed vehicle boundary, which is the vehicle boundary used in HybridA*.
[0061] (S12) Initial motion control: Obtain the total path length through the initial path, fit the velocity of each path point with a sine function, and then use a simple difference method to obtain a set of coarse (wheel) steering angles, thereby transforming the path planned in the previous step S11 into a trajectory with time information.
[0062] Specifically, based on the path obtained in the previous step, the estimated path length S is obtained by calculating the Euclidean distance between path points:
[0063]
[0064] The vehicle speed follows the rule of first accelerating, then maintaining a constant speed, and finally decelerating. The total estimated distance traveled to the destination is S, and the speed curve is fitted using a sine function.
[0065] During the travel time t, the speed curve is approximately as follows: Figure 3 As shown, by integrating the speed over time t, the travel length corresponding to this speed curve can be obtained. When the travel length is defined to be equal to the estimated length S, the specific parameters of the speed curve (i.e., the fitting) can be solved by taking the shortest travel time as the constraint.
[0066] The vehicle steering angle is obtained by solving the change in the vehicle's heading angle using a vehicle model. This step only requires a series of initial values, and the specific calculation formula is as follows:
[0067]
[0068] Where L is the vehicle wheelbase and v is the vehicle speed. This represents the change in orientation angle over time Δt.
[0069] The above S2 execution checks the interaction and classification: by comparing the trajectories of multiple robots to perform collision detection, it is roughly determined whether there is an interaction in time and space; if there is no interaction between the robots in time and space, it directly jumps to the execution step of nonlinear optimization of motion trajectory; if there is interaction but no need to meet on the road, a speed plan is performed according to the first-come, first-served method to ensure the passage of the mobile robot; if there is interaction and need to meet, the surrounding map is analyzed near the location of the interaction to determine a waypoint suitable for both vehicles to pass at the same time, which is used as the midpoint of the path of the two vehicles.
[0070] Specifically, after step S1, the spatiotemporal trajectory of each vehicle has been obtained. By searching the time and corresponding vehicle position in each vehicle's trajectory and performing collision detection between different vehicles at the same time, it is found that there exists a certain moment t. c The two vehicles collided.
[0071] If time t does not exist c If the time t is zero, it means there is no spatiotemporal collision between the vehicles, i.e., the two vehicles do not interact under normal speed, and we jump directly to the execution step of nonlinear trajectory optimization; if there is a time t... c This indicates that the vehicles are in contact at time t. c There may be collisions in time and space. In this case, it is necessary to analyze the interaction mode in detail, identify the interaction mode between the two vehicles, and use the corresponding non-collision trajectory planning method to re-plan the trajectory (that is, secondary trajectory planning).
[0072] Interaction modes can be broadly categorized into two types based on whether vehicles need to pass each other: interactive passing and interactive but not passing. The determination is based on time t. c And its trajectory over a subsequent time period Δt. At t c ~t c During the +Δt time interval, the interaction mode can be determined based on the relative position and orientation angle changes of the two vehicles.
[0073] When the interaction mode is the interactive meeting mode, at the interaction point (t) c (Time) Nearby analysis of surrounding maps, such as Figure 4 As shown, for vehicles interacting, the system extends outwards parallel to the left and right sides of each vehicle. The maximum extension distance to the left and right is determined based on the position of the nearest static obstacle to the vehicle at its current location on the road, thus obtaining the maximum extension distance d of the vehicle's left and right boundaries. left and d right If the two vehicles are to pass each other at this location, then the following safe distance conditions must be met:
[0074] d left +d right ≥B a +δ min
[0075] In the formula, B a For the vehicle width, δ min It is the preset minimum safe distance.
[0076] When d left and d righy When this safety distance condition is met, the road width R and the safety distance δ satisfy the following relationship:
[0077]
[0078] To obtain a feasible solution, in t c A search is performed on a preset discrete time series around the current time to obtain the vehicle position at each time point, i.e., the current, historical, and future positions of the interacting vehicles on the road. Based on the discrete time points and their corresponding vehicle positions, the parallel expansion operation described above is performed. It is determined whether the maximum expansion distance of any interacting vehicle at each search time meets the aforementioned safe distance condition. If not, it is considered that the road environment when the two vehicles interact is too narrow, and it is determined that there is no meeting condition at that search time. If yes, it is considered that the road environment when the two vehicles interact allows the two vehicles to meet.
[0079] For each search time t that satisfies the safe distance condition i and vehicle location, such as Figure 5 As shown, by readjusting the allocation of road width R, the safety distance δ is divided into three segments: δ1, δ2, and δ3, representing the distance to the left obstacle, the distance between the two vehicles, and the distance to the right obstacle, respectively. The positions of vehicles that meet the safety distance conditions are stored as a pair of waypoints, serving as constraints for subsequent retracing planning.
[0080] The interaction mode is interactive but no-passing mode: no passing means that vehicles do not need to travel in opposite directions. They can be planned to pass in sequence to complete the passing. There is no need to calculate waypoints. The passing order is judged and adjusted in real time based on the driving trend (speed and distance between the two vehicles, etc.).
[0081] The above S3 execution trajectory replanning: For interactions that do not require passing other vehicles, a first-come, first-served principle is followed. At the interaction point, based on the mobile robot's current position and future turning direction, a sequence is specified: the first vehicle to pass proceeds at its original speed or a speed appropriately reduced, while the vehicle passing later decelerates or brakes, waiting for the other vehicle to pass before accelerating. For interactions that involve passing other vehicles, the calculated waypoint is used as the intermediate point of the path planning, and step S1 is re-executed.
[0082] Specifically, if there is an optional waypoint, meaning the interaction type is oncoming traffic, then the waypoint is used as the intermediate point for path planning. Discrete paths are then segmented and merged into a single discrete path. The purpose of this step is to ensure that there is a feasible path solution for both vehicles, meaning that the interaction requirement can be met by controlling the speed. After obtaining the new vehicle path, trajectory planning continues, roughly planning the speed and steering angle of the entire path.
[0083] If the interaction type is interaction but not passing, then it is based on the collision time and a subsequent period of time (t). c ~tc Within the +Δt) range, the speed is reset according to priority rules. The rules are mainly divided into two categories based on the direction of travel: when two vehicles are traveling in the same direction, the first-come, first-served principle applies; when two vehicles are traveling in opposite directions, the decision is made based on their travel trends and relative positions, with the vehicle occupying less space in the interaction area taking priority over other vehicles.
[0084] like Figure 6 As shown, this scenario represents a situation where vehicles are traveling in the same direction. At time t... c Car A and Car B collided. Before the collision, the two cars were not traveling in the same direction, but their future directions were known based on their planned paths: Car A planned to turn left, and Car B planned to go straight. After the collision, the trajectories of Car A and Car B overlapped, both requiring them to travel on the same narrow road. When replanning their trajectories, each car slowed down before the collision. Subsequent tracking followed a first-come, first-served approach: the car that arrived at the collision point first accelerated through, while other vehicles slowed down, performing emergency stops if necessary.
[0085] like Figure 7 As shown, this scenario represents a type of travel in opposite directions, at time t. c Car A and Car B collided. Before the collision, the two cars were traveling in roughly opposite directions, and their future travel plans were: Car A planned to turn left, and Car B planned to go straight. Both cars needed to interact at a narrow fork in the road. After the interaction, Car A would travel in a direction with no other vehicles, and Car B would continue along the path Car A had taken before the interaction. When replanning their trajectories, Car A needed to pass before Car B, otherwise Car B would be unable to pass. Therefore, Car A would try to pass as quickly as possible, and Car B would begin to slow down or even stop before the interaction, only accelerating after Car A had passed. Figure 6 and Figure 7 In the diagram, O1, O2, and O3 represent different obstacles.
[0086] The above S4 optimization yields the optimal trajectory: by establishing and solving a nonlinear optimization problem, a portion of the trajectory is optimized to maximize the distance between the trajectory and obstacles, thereby increasing the tolerance space for tracking the trajectory in the next step.
[0087] Specifically, the motion trajectories of each robot obtained in S3 are optimized. At this point, the trajectory optimization problem is modeled as a nonlinear optimization problem, and a spatiotemporal collision-free trajectory that better conforms to vehicle kinematics is obtained. The relaxation amount in S1 is removed in this step, and the collision boundary uses the actual vehicle envelope boundary instead of the relaxed boundary, and is also fed into the optimizer for trajectory correction.
[0088] The state equations of the vehicle's kinematic model can be simply expressed as the following formula, where For the vehicle's state variables. For vehicle control variables:
[0089] x k+1 =f(x) k ,u k )
[0090] Assuming there are no disturbances, the vehicle's state variables and control variables satisfy physical constraints, such as maximum acceleration:
[0091] h(x k ,u k )≤0
[0092] For a given state x k ,use The space occupied by the vehicle at time k is represented by... This represents the space occupied by a convex obstacle (non-convex obstacles need to be pre-divided into multiple convex obstacles). d represents the distance between the actual vehicle outline and the convex obstacle. min The minimum permissible distance between a vehicle and an obstacle, using Let k represent the space occupied by vehicles interacting with the controlled vehicle at time k. Then, the collision constraint can be expressed as:
[0093]
[0094] Nonlinear problems can be represented as:
[0095]
[0096] Where the cost function J(x) k ,u k The cost function is related to the vehicle's state and control variables. By setting different cost functions, different optimal paths can be obtained. Preferably, the cost function is set with the goal of making the trajectory as smooth as possible. The optimized trajectory is safer than the initial trajectory, while allowing appropriate deviations from the trajectory during driving without collision.
[0097] As a preferred option, the above method also includes real-time trajectory tracking: by predicting its own future state and the driving trajectories of other mobile robots, the control quantity of the mobile robot is adjusted in real time until it reaches the designated destination.
[0098] The S5 real-time tracking trajectory mentioned above: The mobile robot tracks along the calculated trajectory. The actual driving will deviate from the planned trajectory to some extent. Therefore, it is necessary to predict its own future state and the driving trajectory of other mobile robots to adjust the control of the mobile robot in real time until it reaches the designated destination.
[0099] In other words, after obtaining the optimal trajectory, it is necessary to track the vehicle in real time. The optimal trajectory represents the best performance under ideal conditions. In actual driving, it is difficult to guarantee that the control quantity will perfectly match the calculated optimal control quantity. Therefore, appropriate corrections are required during driving to ensure that the error between the actual driving trajectory and the optimal trajectory is as small as possible.
[0100] This embodiment primarily uses Model Predictive Control (hereinafter referred to as MPC) to obtain the steering angle and acceleration during actual driving. It discretizes the time interval, predicting the vehicle's state n steps at a time: x r The optimal trajectory for reference is given in n steps. For the predicted trajectory in n steps, For the predictive control input over n steps, the cost function is optimized by rolling optimization. Obtain the optimal predictive control input, and use the value of the first step out of its n steps as the steering angle and acceleration at the current time.
[0101] Vehicle state equation and reference trajectory x in MPC r Related to the reference trajectory point x during vehicle movement. r(k) Linearization is performed on the vicinity to obtain the linearized matrix A. k B k C k At this point, the vehicle's state equation is:
[0102] x k+1 =A r ·x k +B r ·u k +C r
[0103] Using MPC to obtain steering angle and acceleration does not take obstacle avoidance and vehicle interaction into account, so it is necessary to make corrections based on the actual situation, such as adjusting acceleration and steering angle, to ensure safety.
[0104] The acceleration correction is primarily related to the interaction mode. It determines whether interaction is needed by predicting the trajectories of other vehicles. Only when the trajectories of the interacting vehicles are relatively close will the speed be adjusted according to the interaction mode; otherwise, the vehicle will travel as fast as possible based on the acceleration obtained from the MPC.
[0105] Correcting the steering angle requires information about obstacles around the vehicle. Depending on the obstacle's location, a feasible range for the steering angle is calculated using the vehicle boundaries. The robot's steering angle θ corresponds one-to-one with its turning radius R, which is the distance from the midpoint of the rear axle to the center of rotation. Different steering angles correspond to different turning radii R. This correspondence is only related to the vehicle's wheelbase L.
[0106]
[0107] If the turning radius R of the vehicle at the current moment is known... k Then the current steering angle θ can be calculated. k Based on this correspondence, the allowable turning radius R can be calculated according to the location of the obstacle. k Thus, the steering angle limit value θ is obtained. k The preset steering angle range is adjusted, that is, the calculated θ k It can be a new minimum or maximum steering angle, which narrows down the preset range. By considering all obstacles around the vehicle, a feasible steering angle range can be obtained. If the steering angle obtained by MPC is not in this range, a new steering angle is obtained from the feasible range for tracking.
[0108] Figure 8 This describes a situation where an obstacle is directly in front of the vehicle, in which the turning radius R is calculated using the vehicle boundary BC. k (OP). Let d be the distance from the rotation center O to the vehicle boundary point C (on the vehicle), and let d be the distance from the rear axle center point P to the front of the vehicle. froni The distance to the side is d. side At this point, we have:
[0109]
[0110] at the same time It is also equal to the distance d from the obstacle to the center of rotation. obstacle Given the relative positions of the obstacle and the vehicle's center point P, then according to the equation... The coordinates of the turning center can be calculated in the vehicle coordinate system, and then the current turning radius R can be obtained. k Thus, the steering angle θ can be calculated. k .
[0111] The corrected acceleration and steering angle enable the system to track the trajectory without collisions, thus allowing it to reach the target smoothly while considering interaction.
[0112] It should be noted that different trajectory planning schemes are used for different interaction types; the complete flowchart can be found here. Figure 9 .
[0113] In summary, considering that traditional trajectory planning methods tend to yield conservative trajectories (keeping the distance as far as possible) when dealing with dynamic obstacles such as other mobile robots, this means they struggle to find feasible solutions in narrow environments (making them difficult to solve). This invention proposes a method that adapts to narrow road environments and solves interaction problems within them. First, based on the idea of collaborative planning, a path is pre-planned for each vehicle as an initial guess, and a nonlinear optimization problem is solved to obtain a spatiotemporal collision-free trajectory for each vehicle. Then, based on this trajectory, model prediction and tracking are performed on the mobile robot, and the control input of the mobile robot is calculated in real time. If other mobile robots change their trajectories and affect normal driving, the control input is corrected to achieve avoidance.
[0114] Example 2
[0115] An electronic device includes a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the method described above.
[0116] The electronic device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The memory can be used to store computer programs and / or modules. The processor performs various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory.
[0117] The relevant technical solutions are the same as in Embodiment 1, and will not be repeated here.
[0118] Example 3
[0119] A computer-readable storage medium includes a stored computer program, wherein the computer program, when executed by a processor, controls the device on which the storage medium is located to perform the steps of the method described above.
[0120] Specifically, the memory may include high-speed random access memory, as well as non-volatile memory, such as hard disks, RAM, plug-in hard disks, smart media cards (SMC), secure digital cards (SD), flash cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.
[0121] The relevant technical solutions are the same as in Embodiment 1, and will not be repeated here.
[0122] Example 4
[0123] A computer program product includes a computer program or instructions that, when executed by a processor, implement the steps of the method described above.
[0124] The relevant technical solutions are the same as in Embodiment 1, and will not be repeated here.
[0125] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for trajectory planning in narrow passages for multiple unmanned autonomous robots, characterized in that, include: S1. Independently search for discrete paths in the target narrow channel for each unmanned autonomous robot, so as to obtain the discrete motion trajectory of the robot through motion planning; S2. Compare the motion trajectories of each unmanned autonomous robot to determine the robot information and interaction type of each interaction event; For each interaction event of the type "passing each other" between two robots, a preset discrete time sequence containing the interaction time of the interaction event is determined on the discrete motion trajectory. At each robot position corresponding to each discrete time point in the sequence, the left and right boundaries of the robot are extended horizontally according to the position of the nearest static obstacle to obtain the maximum extension distance of the left and right boundaries. and When the robot's and The sum of these values is not less than the robot's width. and the preset minimum safe distance When the sum of the values is equal, then the robot's position allows vehicles to pass each other. By dividing the road width at the robot's position, a pair of positions that satisfy the lateral safety of the two robots are obtained, and each position serves as the intermediate point for the corresponding robot to replan its path. S3. Based on all the intermediate points of each robot, perform segmented path planning for the robot, merge the planned path segments, and perform trajectory planning to obtain a secondary planning trajectory; perform nonlinear motion trajectory optimization on the secondary planning trajectory of each robot to complete the trajectory planning. In step S2, the method for obtaining a pair of positions that satisfy the lateral safety of the two robots by dividing the road width at the robot's location is as follows: The road width was readjusted at the robot's location. The allocation will ensure a safe distance. Split into , , The three segments represent the distances of the robot on the left side of the road from the obstacle on the left, the distance between the two robots, and the distance of the robot on the right side of the road from the obstacle on the right; among them, the safe distance... satisfy: ; according to , , The positions of the two robots are determined as the pair of positions.
2. The method for trajectory planning of multiple unmanned autonomous robots in narrow passages according to claim 1, characterized in that, Before obtaining the quadratic planning trajectory for each robot, step S3 also includes: For each interaction event of type "not driving", the speed of the two robots is adjusted according to the first-come-first-served method at the interaction time and space of the interaction event, and finally the secondary planning trajectory of each robot is obtained.
3. The method for trajectory planning of multiple unmanned autonomous robots in narrow passages according to claim 1, characterized in that, In step S1, when each unmanned autonomous robot independently searches for discrete paths, each edge of the vehicle boundary defined for the robot is reduced inward by a preset length. The resulting new vehicle boundary is used as the vehicle boundary for path planning. The ratio of the preset length to the shortest edge of the vehicle boundary before reduction is no more than 20%, which is used to relax the collision constraints between the robot and static obstacles.
4. The method for trajectory planning of multiple unmanned autonomous robots in narrow passages according to claim 3, characterized in that, The optimization model for the nonlinear optimization of the motion trajectory of each robot is as follows: In the formula, For robots in time k The state quantity at time, N Represents the maximum sequence number of the time series. For the control variables of the robot, The state equations represent the kinematic model of the vehicle. m Indicates the number of a static obstacle. M This indicates the total number of static obstacles in the target narrow passage; Indicates the robot's time The space occupied by time This indicates the space occupied by a convex obstacle. This represents the distance between the actual robot outline and the convex obstacle. This is the minimum allowable distance between the robot and the obstacle. Indicates time The space occupied by the robot that interacts with the controlled robot; For acceleration constraints; as well as This constitutes a collision constraint; Let be the cost function.
5. The method for trajectory planning of multiple unmanned autonomous robots in narrow passages according to claim 1, characterized in that, Also includes: By predicting its own future state and the trajectories of other mobile robots, the system adjusts the control parameters of each mobile robot in real time until it reaches the designated destination.
6. The method for trajectory planning of multiple unmanned autonomous robots in narrow passages according to claim 5, characterized in that, The control quantity includes the steering angle. After predicting the steering angle for the current time, the steering angle is corrected in the following manner: Calculate the allowable turning radius of the robot based on the location of each obstacle on the road where the controlled robot is located. According to the radius of gyration and steering angle Relationship: Obtain the permissible steering angle limit value for the obstacle. Use the allowable steering angle limit for each obstacle. Adjusting the upper and lower limits of the preset steering angle range yields a feasible steering angle range with a narrowed range; where, This refers to the vehicle's wheelbase. If the steering angle obtained by MPC is not in this range, a new steering angle is obtained from the feasible range for tracking.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein the computer program, when executed by a processor, controls the device on which the storage medium is located to perform the steps of the method as described in any one of claims 1 to 6.
9. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Traction trailer track planning method based on construction of driving corridor and controller
CN117873108A
Scheduling method, device and equipment for multi-robot over-narrow channel and storage medium
CN114153211A
Narrow road meeting method, device and equipment and storage medium
CN115447612A
