Method, device, system, equipment and storage medium for autonomous vehicle obstacle avoidance
By combining MPC and APF in the path planning algorithm, the problem of insufficient smoothness and low efficiency of path planning in dynamic environments in the existing technology is solved, and more efficient and smoother path planning is achieved to adapt to dynamic environment changes.
Patent Information
- Application Number
- CN202410930984.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing path planning algorithms may not be smooth enough or search efficient enough in dynamic environments or scenarios that require fine path control. In particular, they are not sensitive enough to dynamic obstacles, resulting in paths that are unfeasible or require re-planning.
Introducing model predictive control (MPC) combined with random tree connection (RRT_connect) and artificial potential field method (APF), MPC predicts and optimizes local paths based on the current reference point, APF is used to adjust the path online to avoid obstacles, and the fusion generates smoother and Efficient global paths.
It significantly improves the smoothness and search efficiency of the path, ensures the feasibility and smoothness of the trajectory, reduces the blindness of random exploration, accelerates the process of finding an effective path, and can dynamically adjust to respond to environmental changes.
Smart Images

Figure CN118466524B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle signal processing, and in particular to a method, device, system, equipment and storage medium for autonomous vehicle obstacle avoidance. Background Art
[0002] The construction of the ROS system (Robot Operating System) platform is the design of an autonomous mobile robot platform based on the ROS system. It uses omnidirectional wheels and lidar for navigation and obstacle avoidance. It can also move through remote control, and then collect environmental information through lidar and depth cameras. Finally, path planning is performed through improved algorithms.
[0003] In the prior art, APF (artificial potential field method) is usually used to guide the RRT_connect (randomly sampled tree) path planning algorithm. However, the path obtained using this method is not optimal, and may not be smooth enough or the search efficiency may not be high enough in dynamic environments or scenarios requiring fine path control.
[0004] In summary, existing path planning algorithms may not be smooth enough or have insufficient search efficiency in dynamic environments or scenarios that require fine path control. Summary of the invention
[0005] The present invention solves the problem that the existing path planning algorithm may not be smooth enough or the search efficiency is not high enough in dynamic environments or scenarios requiring precise path control.
[0006] The vehicle autonomous obstacle avoidance method of the present invention comprises the following steps:
[0007] Step S1, after obtaining map information, RRT_connect sets the state space to , the obstacle set is , RRT_connect in Randomly sample nodes in the tree, starting from the starting point S and the target point G respectively, and construct two random trees;
[0008] Step S2, in the state space X In the example, a node is randomly selected. , the node Respond to the exploration direction;
[0009] Step S3, according to the MPC prediction specified area, RRT_connect calculates the node Get the reference node by the distance between the nodes in the specified area , when the objective function of MPC is minimized, the reference node The node with the shortest distance ;
[0010] Step S4, RRT_connect from the shortest distance node To Node Create a new node by extending the direction ;
[0011] Step S5, making the new node While not colliding with any obstacles, add it to the tree and make it a reference node The child nodes of
[0012] Step S6, repeat steps S2 to S5, and randomly select a node again , until the state space X After all searches are completed, step S7 is executed;
[0013] Step S7, for each state vector of MPC Define a potential energy function , which includes attractiveness and repulsion ;
[0014] Step S8: After each reference node is selected When APF exerts a potential force, the attraction and repulsion Both at the reference node Adjust the attraction and repulsion , select a new node towards the end point ;
[0015] Step S9, repeat steps S2 to S8, and randomly select a node again , until the state space X After all searches are completed, step S10 is executed;
[0016] Step S10, using MPC to adjust and optimize the path, while adjusting the weights of multiple parameters to achieve autonomous obstacle avoidance for the vehicle.
[0017] Further, in one embodiment of the present invention, in step S3, the calculation formula of the objective function of the MPC is:
[0018] ;
[0019] in, , ;
[0020] In the formula, is the objective function, is the desired state on the reference path, , and are weight coefficients, is the location of the target point, is the number of discrete time steps in the entire control process, is the state vector, is the subscript of the current time step, is the control input, is the position of the vehicle in the x-axis direction, is the position of the vehicle in the y-axis direction, is the forward speed of the vehicle, is the acceleration, is the angular velocity, In two-dimensional space Axis position, In two-dimensional space Axis position, is the time step.
[0021] Further, in one embodiment of the present invention, in step S7, each state vector of the MPC Define a potential energy function , which includes attractiveness and repulsion , specifically:
[0022] ;
[0023] In the formula, is the subscript of the current time step.
[0024] Further, in one embodiment of the present invention, in step S8, the attraction and repulsion Both at the reference node Adjust the attraction and repulsion , select the new node towards the end point, specifically:
[0025] ;
[0026] In the formula, is the attractive potential field strength coefficient, To attract, is the state vector, is the subscript of the current time step, is the target point, is the position of a single obstacle, is the set of all obstacles, is the obstacle repulsion potential field strength coefficient, For exclusion.
[0027] Furthermore, in one embodiment of the present invention, in step S10, the MPC is used to finely adjust the path, and each local path is optimized, and the weights of multiple parameters are adjusted at the same time, specifically:
[0028] ;
[0029] In the formula, is the control input, is the number of discrete time steps in the entire control process, , , and are weight coefficients, is the state vector, is the subscript of the current time step, is the desired state on the reference path, The desired state at the end of the entire planning cycle. is the target point, is the potential energy function.
[0030] The vehicle autonomous obstacle avoidance device of the present invention is used to implement the vehicle autonomous obstacle avoidance method described in the above method, and the device includes a chassis, a laser radar, a depth camera, a central control unit and a battery;
[0031] The chassis is divided into a top layer, a middle layer and a bottom layer;
[0032] The bottom layer of the chassis is provided with three wheel trains, the middle layer of the chassis is provided with batteries, and the top layer of the chassis is provided with laser radar, depth camera and central control unit respectively.
[0033] The vehicle autonomous obstacle avoidance system of the present invention comprises the following modules:
[0034] Get the module, after getting the map information, RRT_connect sets the state space to , the obstacle set is , RRT_connect in Randomly sample nodes in the tree, starting from the starting point S and the target point G respectively, and construct two random trees;
[0035] Random module, in state space X In the example, a node is randomly selected. , the node Respond to the exploration direction;
[0036] Node module, according to MPC prediction specified area, RRT_connect calculates the node Get the reference node by the distance between the nodes in the specified area , when the objective function of MPC is minimized, the reference node The node with the shortest distance ;
[0037] Extension module, RRT_connect from the shortest distance node To Node Create a new node by extending the direction ;
[0038] Add module to make new node While not colliding with any obstacles, add it to the tree and make it a reference node The child nodes of
[0039] Repeat module, repeat random module ~ add module, re-randomly select a node , until the state space X After all searches are completed, the step definition module is executed;
[0040] Define the module for each state vector of MPC Define a potential energy function , which includes attractiveness and repulsion ;
[0041] Select the module, each time a reference node is selected When APF exerts a potential force, the attraction and repulsion Both at the reference node Adjust the attraction and repulsion , select a new node towards the end point ;
[0042] Execute the module, repeat the random module ~ select the module, and randomly select a node again , until the state space X After all the explorations are completed, the adjustment module is executed;
[0043] The adjustment module uses MPC to adjust and optimize the path while adjusting the weights of multiple parameters to achieve autonomous obstacle avoidance for the vehicle.
[0044] An electronic device described in the present invention comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0045] Memory, used to store computer programs;
[0046] The processor is used to implement the above method steps when executing the program stored in the memory.
[0047] The computer-readable storage medium of the present invention stores a computer program, and the computer program implements the above method steps when executed by a processor.
[0048] The present invention solves the problem that existing path planning algorithms may not be smooth enough or have low search efficiency in dynamic environments or scenarios requiring precise path control. Specific beneficial effects include:
[0049] 1. The method for autonomous obstacle avoidance of vehicles described in the present invention. The existing APF-guided RRT_connect path planning algorithm may not be smooth enough or the search efficiency may not be high enough in dynamic environments or scenarios requiring fine path control. To solve the above technical problems, the present invention introduces MPC in RRT_connect. MPC can predict and optimize the local path from the node to the target area based on the nodes near the current reference point. For newly generated nodes, MPC can guide the sampling process to be more inclined to those directions that can lead to better paths by predicting future states. This means that newly generated nodes are more likely to directly or indirectly contribute to the connection with the target tree, reducing the blindness of random exploration and accelerating the process of finding effective paths. Finally, the application of the APF force field can patrol the final global path faster and more efficiently. The follow-up is trajectory optimization, that is, adding the force field function into the objective function of MPC to eliminate the negative impact of APF, making the path smoother and greatly improving the efficiency of the fused algorithm.
[0050] 2. The method for autonomous obstacle avoidance of a vehicle described in the present invention. In the prior art, since RRT_connect is not sensitive enough to dynamic obstacles, and the path it generates becomes infeasible due to unforeseen dynamic obstacles, it may be necessary to re-plan the global path. The system combining RRT_connect and MPC increases complexity and uncertainty. In order to solve the above technical problems, APF is applied to calculate the potential energy distribution of each candidate node or path segment based on the initial path generated by the fusion of RRT_connect and MPC. When approaching a dynamic or static obstacle, the repulsive force generated by APF will guide the path away from the obstacle area while maintaining the attraction to the target point, thereby adjusting the local path direction online to avoid collision. MPC can also use the local optimal direction provided by APF as a reference or constraint, combined with system dynamics and control objectives for optimization, to ensure the feasibility and smoothness of the trajectory;
[0051] The vehicle autonomous obstacle avoidance method described in the present invention integrates global path planning, local trajectory optimization and dynamic obstacle avoidance to form a comprehensive and efficient solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0053] Figure 1 is a three-dimensional schematic diagram of an omnidirectional wheeled vehicle system based on a ROS system according to a fifth embodiment;
[0054] In the figure, 1 is the bottom layer, 2 is the middle layer, 3 is the top layer, 11 is three gear trains, 12 is the drive motor, 13 is the lower computer drive board, 14 is the motor drive board, 15 is the Raspberry Pi, 22 is the battery, 31 is the laser radar, and 32 is the depth camera. DETAILED DESCRIPTION
[0055] The following will clearly and completely describe various embodiments of the present invention in conjunction with the accompanying drawings. The embodiments described with reference to the accompanying drawings are exemplary and intended to be used to explain the present invention, but should not be understood as limiting the present invention.
[0056] Embodiment 1: The method for autonomous vehicle obstacle avoidance described in this embodiment includes the following steps:
[0057] Step S1, after obtaining map information, RRT_connect sets the state space to , the obstacle set is , RRT_connect in Randomly sample nodes in the tree, starting from the starting point S and the target point G respectively, and construct two random trees;
[0058] Step S2, in the state space X In the example, a node is randomly selected. , the node Respond to the exploration direction;
[0059] Step S3, according to the MPC prediction specified area, RRT_connect calculates the node Get the reference node by the distance between the nodes in the specified area , when the objective function of MPC is minimized, the reference node The node with the shortest distance ;
[0060] Step S4, RRT_connect from the shortest distance node To Node Create a new node by extending the direction ;
[0061] Step S5, making the new node While not colliding with any obstacles, add it to the tree and make it a reference node The child nodes of
[0062] Step S6, repeat steps S2 to S5, and randomly select a node again , until the state space X After all searches are completed, step S7 is executed;
[0063] Step S7, for each state vector of MPC Define a potential energy function , which includes attractiveness and repulsion ;
[0064] Step S8: After each reference node is selected When APF exerts a potential force, the attraction and repulsion Both at the reference node Adjust the attraction and repulsion , select a new node towards the end point ;
[0065] Step S9, repeat steps S2 to S8, and randomly select a node again , until the state space X After all searches are completed, step S10 is executed;
[0066] Step S10, using MPC to adjust and optimize the path, while adjusting the weights of multiple parameters to achieve autonomous obstacle avoidance for the vehicle.
[0067] In the prior art, the path obtained by the path planning algorithm of RRT_connect guided by APF is not optimal, and may not be smooth enough or the search efficiency may not be high enough in dynamic environments or scenarios requiring precise path control.
[0068] To solve the above technical problems, in this implementation, the introduction of MPC (model predictive control) is an important supplement and optimization to the RRT_connect generated path. Based on the dynamic model of the system, MPC predicts and adjusts the control inputs in the future through rolling optimization to optimize the trajectory when the current state of the system and environmental constraints are known. This means that MPC can significantly improve the smoothness of the RRT_connect path, reduce the changes in acceleration and speed, thereby improving dynamic performance, and ensure that constraints such as maximum speed and acceleration limits are met. MPC can also adjust the control strategy in real time to cope with environmental changes, and can speed up the expansion of reference points and new nodes when the search tree is expanded, thereby improving the adaptability and sampling efficiency of the path.
[0069] However, RRT_connect mainly plans for static environments and is not sensitive enough to dynamic obstacles. Although MPC can cope with dynamic changes to a certain extent, if the path generated by RRT_connect becomes infeasible due to unforeseen dynamic obstacles, the global path may need to be replanned, which increases the complexity and uncertainty of the system.
[0070] To solve the above technical problems, this implementation uses APF to calculate the potential energy distribution of each candidate node or path segment based on the initial path generated by the fusion of RRT_connect and MPC. When approaching a dynamic or static obstacle, the repulsive force generated by APF will guide the path away from the obstacle area while maintaining the attraction to the target point, thereby adjusting the local path direction online to avoid vehicle collisions. At the same time, MPC can also use the local optimal direction provided by APF as a reference or constraint, combined with system dynamics and control objectives for optimization, to ensure the feasibility and smoothness of the trajectory.
[0071] The method for autonomous vehicle obstacle avoidance described in this embodiment includes the following steps:
[0072] After the lidar 31 and the depth camera 32 acquire the map information, let the prediction and optimization capabilities of MPC guide the decision-making process of RRT_connect when generating reference points and new nodes.
[0073] Step S1, when RRT_connect starts, set the state space to , the obstacle set is , the algorithm is Randomly sample nodes in , starting from the starting point S and the target point G, respectively, to build two random trees. Each tree starts with its own root node, that is, each tree starts with the root node of the starting point S and the target point G, respectively, and continues to expand as RRT_connect proceeds;
[0074] Step S2, the core of RRT_connect is to continuously perform random sampling. X and exclude obstacles O , randomly select a node , this node Respond to the exploration direction;
[0075] Step S3, RRT_connect calculates the nodes according to the specified area that can reach the target faster or have better performance indicators (such as shorter time and shorter path) predicted by MPC. The distance between the nodes in the specified area to obtain and select the reference node , so that the objective function of MPC When is the minimum, the reference node The node with the shortest distance ;
[0076] Step S4, RRT_connect tries to connect from the node with the shortest distance To Node Create a new node by extending the direction , new node It can be regarded as the node with the shortest distance and nodes A safe point found along a straight or adjusted path between;
[0077] Step S5, ensure that the new node While not colliding with any obstacles, add it to the tree and make it a reference node In this way, the tree gradually expands outward, trying to connect with another tree or explore new barrier-free areas;
[0078] Step S6, repeat steps S2 to S5, and randomly select a node again , and use MPC to predict the specified area again, and select the objective function that can make MPC When it is the smallest, the corresponding node is the node with the shortest distance , and then select the next node with the shortest distance ;
[0079] In order to improve the computing efficiency of MPC, APF is introduced to guide and reduce the prediction range of MPC, so that RRT_connect can reach the end point more purposefully.
[0080] Step S7, for each state vector of MPC Define a potential energy function , including attractiveness and repulsion , where attraction Used to guide the target, repulsive force Used to stay away from obstacles;
[0081] Step S8: After each reference node is selected When APF exerts a potential force, that is, an attractive force and repulsion These two forces are at this reference node The target attraction potential field strength coefficient and the obstacle repulsion potential field strength coefficient These two parameters can be adjusted to purposefully select new nodes towards the end point. ;
[0082] Step S9, repeat steps S2 to S8, and randomly select a node again , until the state space X After all the explorations are completed, step S10 is executed. Each solution of MPC is guided by APF and carried out under the current RRT tree structure and environmental constraints to determine the location of the next optimal node, and then gradually guide RRT_connect to generate the global optimal path;
[0083] After the above operations, we get the final path. The path produced by the combination of MPC and RRT_connect is relatively smooth. After adding the guidance of APF, this balance is broken, making the path relatively not smooth enough. The subsequent operation is to reduce the impact of APF on the path.
[0084] First, RRT_connect is combined with MPC and then guided by APF to generate a global, roughly collision-free path;
[0085] Step S10, use MPC again to fine-tune the path. Through multiple iterations, predict and optimize the trajectory in the future, optimize the dynamic performance and ensure that various constraints are met, reduce the impact of the force field on the final path, make the path smoother, and shorten the path length, greatly improving the quality of the path;
[0086] After getting the final path, try to optimize each local path to make it smoother and shorter. , , and Parameters such as , etc. can be used to reduce the impact on the final path. , , and are all weight coefficients.
[0087] In summary, this implementation solves the problem that the existing path planning algorithm may not be smooth enough or the search efficiency is not high enough in dynamic environments or scenarios that require fine path control. And through APF, the technical problem caused by the introduction of MPC in RRT_connect is solved, making the path smoother and greatly improving the efficiency of the fused algorithm.
[0088] Implementation method 2: This implementation method further limits the method for autonomous obstacle avoidance of a vehicle described in implementation method 1. In step S3, the calculation formula of the objective function of the MPC is:
[0089] ;
[0090] in, , ;
[0091] In the formula, is the objective function, is the desired state on the reference path, , and are weight coefficients, is the location of the target point, is the number of discrete time steps in the entire control process, is the state vector, is the subscript of the current time step, is the control input, is the position of the vehicle in the x-axis direction, is the position of the vehicle in the y-axis direction, is the forward speed of the vehicle, is the acceleration, is the angular velocity, In two-dimensional space Axis position, In two-dimensional space Axis position, is the time step.
[0092] In this embodiment, the discretized nodes in the two-dimensional space ( X 0 , X 1 ,..., X N ), MPC performs local trajectory optimization based on this. Define the state vector , control input The objective function of MPC is It can be expressed as minimizing the following cost:
[0093] ;
[0094] in, is the desired state on the reference path, , and are weight coefficients used to balance tracking error, control input size, and endpoint proximity. At this reference node When the minimum value is obtained, the reference node within the MPC prediction range is Select the node with the shortest distance .
[0095] Implementation method 3: This implementation method further limits the method for autonomous obstacle avoidance of a vehicle described in implementation method 1. In step S7, each state vector of the MPC is Define a potential energy function , which includes attractiveness and repulsion , specifically:
[0096] ;
[0097] In the formula, is the subscript of the current time step.
[0098] In this embodiment, in step S8, the attraction and repulsion Both at the reference node Adjust the attraction and repulsion , select the new node towards the end point, specifically:
[0099] ;
[0100] In the formula, is the attractive potential field strength coefficient, To attract, is the state vector, is the subscript of the current time step, is the target point, is the position of a single obstacle, is the set of all obstacles, is the obstacle repulsion potential field strength coefficient, For exclusion.
[0101] Embodiment 4: This embodiment further limits the method for autonomous obstacle avoidance of a vehicle described in Embodiment 1. In step S10, the MPC is used to finely adjust the path, and each local path is optimized, and the weights of multiple parameters are adjusted at the same time, specifically:
[0102] ;
[0103] In the formula, is the control input, is the number of discrete time steps in the entire control process, , , and are weight coefficients, is the state vector, is the subscript of the current time step, is the desired state on the reference path, is the expected state at the end of the entire planning cycle (i.e., step 𝑁), is the target point, is the potential energy function.
[0104] In this embodiment, the potential energy function is added based on the formula described in the second embodiment. , to try to optimize each local path to make it smoother and shorter.
[0105] In summary, the global path planning, local trajectory optimization and dynamic obstacle avoidance are integrated to form a comprehensive and efficient solution. The model can adapt to environmental changes in real time and dynamically adjust the control strategy to ensure that the vehicle reaches the target efficiently and safely. The introduction of balances the impact of the APF effect on the overall optimization goal, allowing the system to effectively cope with unexpected obstacles while pursuing efficiency.
[0106] Embodiment 5: The vehicle autonomous obstacle avoidance device described in this embodiment is used to implement the vehicle autonomous obstacle avoidance method described in embodiments 1 to 4, and the device includes a chassis, a laser radar 31, a depth camera 32, a central control unit and a battery 22;
[0107] The chassis is divided into a top layer 3, a middle layer 2 and a bottom layer 1;
[0108] The bottom layer 1 of the chassis is respectively provided with three wheel trains 11, the middle layer 2 of the chassis is provided with a battery 22, and the top layer 3 of the chassis is respectively provided with a laser radar 31, a depth camera 32 and a central control unit.
[0109] In the prior art, the existing autonomous mobile vehicles realized by the ROS system have the technical problem of insufficient flexibility when turning.
[0110] To solve the above technical problems, Figure 1 As shown, this embodiment designs a device for autonomous obstacle avoidance of a vehicle, and the device comprises a chassis, and three wheel trains 11 are arranged on the bottom layer 1 of the chassis, and the three wheel trains 11 are evenly distributed on the edge of the bottom layer 1 of the chassis;
[0111] The laser radar 31 and the depth camera 32 arranged on the top layer 3 of the chassis are used to realize the navigation obstacle avoidance and follow-up movement capabilities for the system;
[0112] A central control unit, which is used to communicate and interact with the laser radar 31 and the depth camera 32;
[0113] The central control unit also provides driving signals for the three gear trains 11 .
[0114] Specifically, the device includes three gear trains 11, a drive motor 12, a Raspberry Pi 15, a lower computer drive board 13, a motor drive board 14, a WIFI module, which is arranged in the Raspberry Pi 15, a battery 22, a voice module, which is integrated on the motor drive board 14, a depth camera 32, a laser radar 31, a number of DuPont wires, screws and copper pillars;
[0115] The power-on working voltage of the lower machine driver board 13 is 3v, which can drive a general small motor (0v~3v), but it is not enough to drive the drive motor 12 used (the voltage required to reach the minimum rotation is 4v~5v), so the motor driver board 14 is needed here to amplify the voltage so that the motor can reach the normal operating voltage. The motor driver board 14 was originally modified from the TB6612 (chip) dual motor driver board 14, that is, two TB23aA26612FNG (chips) are added to the original TB6612, and then some terminals are connected to finally assemble it into a board. Two TB6612 dual motor driver boards 14 can also be used directly;
[0116] Raspberry Pi 15 issues commands to the entire system and can also communicate with other computers to control the direction and speed of the vehicle and connect with other sensors to obtain the surrounding environment. The working voltage it uses is 5v~12v.
[0117] The depth camera 32 has many functions. It can obtain real-time video images of the vehicle during its movement. It can be used as an ordinary camera or as a depth camera 32. The only difference between it and an ordinary camera is that the depth camera 32 uses the mapping function. In some close-range mapping, it has better mapping effects than the laser radar 31. In the future, the depth camera 32 will also play a big role in realizing the character following of the omnidirectional wheel vehicle. The working voltage it uses is 5v~12v;
[0118] The role of laser radar 31 in the omnidirectional wheel vehicle of the ROS system is obstacle avoidance and mapping. A good laser radar 31 has more accurate imaging effect in mapping. At the same time, the omnidirectional wheel vehicle can also transmit its own position to the host computer. In the subsequent automatic driving of the vehicle, the position of the vehicle can also be accurately seen on the map, and the laser radar 31 also has the effect of following. Under the condition of 1450 sampling points / week, the scanning frequency of RPLIDAR (Si Lan Laser Radar) A1 reaches 5.5hz, and the scanning frequency can reach up to 10hz. It can realize 360° all-round laser ranging scanning within a radius of 12m in the two-dimensional plane, and generate the plane point cloud map information of the space. Its working voltage is 4.9v~12v;
[0119] A voice module can be embedded in the Raspberry Pi 15. When the vehicle is lost, the corresponding slogan can be shouted through the voice module. If the vehicle is within the limited range of the voice module, it can give a response. The voice module can also be used to broadcast the acquired information, such as vehicle speed, temperature and oxygen concentration;
[0120] By adjusting the working voltage of the device, a voltage of 12V and a power of 5000mAh are selected as the battery 22 of the omnidirectional wheel vehicle system;
[0121] The three-wheel omnidirectional wheel is composed of three wheel trains 11 arranged in a circle at the bottom of the mobile chassis, and the three wheel trains 11 are all connected to the driving motor 12;
[0122] Kinematic modeling of a three-wheeled omnidirectional mobile chassis. The three-wheeled omnidirectional mobile vehicle is a complete system with three degrees of freedom. The three parameters of the vehicle are linear velocity x, linear velocity y and angular velocity z. It is unconstrained and can move in a straight line between two points. It can turn while moving to adjust the attitude angle. Its motion trajectory is summarized as a broken line. By decomposing the speed in different directions, it is found that the axial tangent angle of the three wheel systems 11 is 30°, and the corresponding speeds at the preset points a, b, and c are finally obtained, which is convenient for the upper computer to control the lower computer later, such as direction and speed. By adjusting the speed of each wheel, the direction of the vehicle can be accurately controlled, such as lateral movement, straight driving, backward movement and rotation, while maintaining the flexibility of the vehicle.
[0123] Therefore, the omnidirectional wheel vehicle system of the present embodiment is based on the ROS system and adopts an omnidirectional wheel design, so that the vehicle is more flexible when moving, especially more flexible and sensitive when turning.
[0124] Embodiment 6: The vehicle autonomous obstacle avoidance system described in this embodiment includes the following modules:
[0125] Get the module, after getting the map information, RRT_connect sets the state space to , the obstacle set is , RRT_connect in Randomly sample nodes in the tree, starting from the starting point S and the target point G respectively, and construct two random trees;
[0126] Random module, in state space X In the example, a node is randomly selected. , the node Respond to the exploration direction;
[0127] Node module, according to MPC prediction specified area, RRT_connect calculates the node Get the reference node by the distance between the nodes in the specified area , when the objective function of MPC is minimized, the reference node The node with the shortest distance ;
[0128] Extension module, RRT_connect from the shortest distance node To Node Create a new node by extending the direction ;
[0129] Add module to make new node While not colliding with any obstacles, add it to the tree and make it a reference node The child nodes of
[0130] Repeat module, repeat random module ~ add module, re-randomly select a node , until the state space X After all searches are completed, the step definition module is executed;
[0131] Define the module for each state vector of MPC Define a potential energy function , which includes attractiveness and repulsion ;
[0132] Select the module, each time a reference node is selected When APF exerts a potential force, the attraction and repulsion Both at the reference node Adjust the attraction and repulsion , select a new node towards the end point ;
[0133] Execute the module, repeat the random module ~ select the module, and randomly select a node again , until the state space X After all the explorations are completed, the adjustment module is executed;
[0134] The adjustment module uses MPC to adjust and optimize the path while adjusting the weights of multiple parameters to achieve autonomous obstacle avoidance for the vehicle.
[0135] Embodiment 7: An electronic device described in this embodiment includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0136] Memory, used to store computer programs;
[0137] The processor is used to implement the method steps described in any one of the first to fifth implementation modes when executing the program stored in the memory.
[0138] Embodiment 8: A computer-readable storage medium described in this embodiment stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of embodiments 1 to 5 are implemented.
[0139] The method, device, system, equipment and storage medium for autonomous obstacle avoidance of a vehicle proposed in the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for a person skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. Methods for autonomous vehicle obstacle avoidance, It is characterized in that The following steps are involved: Step S1, after obtaining the map information, RRT_connect sets the state space to X and the obstacle set to O. RRT_connect randomly samples nodes in X / O, starting from the starting point S and the target point G respectively, and constructs two random trees; Step S2, randomly select a node X_rand in the state space X, and the node X_rand reflects the exploration direction; Step S3: According to the MPC prediction of the designated area, RRT_connect calculates the distance between the node X_rand and the nodes in the designated area to obtain the reference node X 0 , when the objective function of MPC is minimized, the reference node X 0 is the node with the shortest distance X' 0 ; Step S4, RRT_connect from the shortest distance node X' 0 Extend in the direction of node X_rand to create a new node X 1 ; Step S5, making the new node X 1 Without colliding with any obstacles, add it to the tree and make it a reference node X 0 The child nodes of Step S6, repeating steps S2 to S5, randomly selecting a node X_rand again, until the state space X is explored, then executing step S7; Step S7, for each state vector x of the MPC k Define a potential energy function V(x k ), which includes the attraction V attr (x k ) and repulsive force V rep (x k ); Step S8: After each reference node X is selected 0 When APF exerts a potential force, the attraction V attr (x k ) and repulsive force V rep (x k ) are both at the reference node X 0 On, adjust the attraction V attr (x k ) and repulsive force V rep (x k ), select a new node X towards the end point 1 ; Step S9, repeating steps S2 to S8, randomly selecting a node X_rand again, until the state space X is explored, then executing step S10; Step S10, using MPC to adjust and optimize the path while adjusting the weights of multiple parameters to achieve autonomous obstacle avoidance for the vehicle; In the step S10, the MPC is used to fine-tune the path, optimize each local path, and adjust the weights of multiple parameters, specifically: In the formula, u k is the control input, N is the number of discrete time steps in the entire control process, and w 1 、w 2 、w 3 and w 4 are weight coefficients, x k is the state vector, k is the subscript of the current time step, x ref,k is the expected state on the reference path, x N is the expected state at the end of the entire planning cycle, G is the target point, V total (x k ) is the potential energy function.
2. The method for autonomous vehicle obstacle avoidance according to claim 1, It is characterized in that In step S3, the calculation formula of the objective function of the MPC is: Among them, X k =[P x ,P y ,V] T ,u k =[a,ω] T ; In the formula, J is the objective function, x ref,k is the expected state on the reference path, w 1 、w 2 and w 3 are weight coefficients, G is the position of the target point, N is the number of discrete time steps in the entire control process, and x k is the state vector, k is the subscript of the current time step, and u k is the control input, P x is the position of the vehicle in the x-axis direction, P y is the position of the vehicle in the y-axis direction, V is the forward speed of the vehicle, a is the acceleration, ω is the angular velocity, x is the position in the x-axis direction in the two-dimensional space, y is the position in the y-axis direction in the two-dimensional space, and T is the time step.
3. The method for autonomous vehicle obstacle avoidance according to claim 1, It is characterized in that In step S7, each state vector x of the MPC k Define a potential energy function V(x k ), which includes the attraction V attr (x k ) and repulsive force V rep (x k ), specifically: V total (x k )=V attr (x k )+V rep (x k ); Where k is the subscript of the current time step.
4. The method for autonomous vehicle obstacle avoidance according to claim 1, It is characterized in that In the step S8, the attraction V attr (x k ) and repulsive force V rep (x k ) are both at the reference node X 0 On, adjust the attraction V attr (x k ) and repulsive force V rep (x k ), select the new node towards the end point, specifically: In the formula, k a is the attractive potential field strength coefficient, a is the attraction, x k is the state vector, k is the subscript of the current time step, G is the target point, o is the position of a single obstacle, O is the set of all obstacles, and k r is the obstacle repulsion potential field strength coefficient, and r is the repulsion.
5. A device for autonomous vehicle obstacle avoidance, the device being used to implement the method for autonomous vehicle obstacle avoidance as claimed in claim 1, It is characterized in that The device comprises a chassis, a laser radar (31), a depth camera (32), a central control unit and a battery (22); The chassis is divided into a top layer (3), a middle layer (2) and a bottom layer (1); The bottom layer (1) of the chassis is provided with three wheel trains (11), the middle layer (2) of the chassis is provided with a battery (22), and the top layer (3) of the chassis is provided with a laser radar (31), a depth camera (32) and a central control unit.
6. Vehicle autonomous obstacle avoidance system, It is characterized in that Includes the following modules: Acquisition module, after acquiring map information, RRT_connect sets the state space to X and the obstacle set to O. RRT_connect randomly samples nodes in X / O, starting from the starting point S and the target point G respectively, and constructs two random trees; Random module, randomly selects a node X_rand in the state space X, and the node X_rand reflects the exploration direction; Node module, according to MPC prediction of the specified area, RRT_connect calculates the distance between node X_rand and the nodes in the specified area to obtain the reference node X 0 , when the objective function of MPC is minimized, the reference node X 0 is the node with the shortest distance X' 0 ; Extension module, RRT_connect from the shortest distance node X' 0 Extend in the direction of node X_rand to create a new node X 1 ; Add a module, and make the new node X 1 Without colliding with any obstacles, add it to the tree and make it a reference node X 0 The child nodes of Repeat module, repeat random module ~ add module, randomly select a node X_rand again, until the state space X is explored, then execute the step definition module; Define the module, for each state vector x of the MPC k Define a potential energy function V(x k ), which includes the attraction V attr (x k ) and repulsive force V rep (x k ); Selection module, when each reference node X is selected 0 When APF exerts a potential force, the attraction V attr (x k ) and repulsive force V rep (x k ) are both at the reference node X 0 On, adjust the attraction V attr (x k ) and repulsive force V rep (x k ), select a new node X towards the end point 1 ; Execute the module, repeat the random module ~ selection module, randomly select a node X_rand again, and execute the adjustment module after the state space X is explored. The adjustment module uses MPC to adjust and optimize the path while adjusting the weights of multiple parameters to achieve autonomous obstacle avoidance for the vehicle; In the adjustment module, the MPC is used to fine-tune the path, optimize each local path, and adjust the weights of multiple parameters at the same time, specifically: In the formula, u k is the control input, N is the number of discrete time steps in the entire control process, and w 1 、w 2 、w 3 and w 4 are weight coefficients, x k is the state vector, k is the subscript of the current time step, x ref,k is the expected state on the reference path, x N is the expected state at the end of the entire planning cycle, G is the target point, V total (x k ) is the potential energy function.
7. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor is used to implement the method steps described in any one of claims 1 to 5 when executing a program stored in a memory.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.
