Vehicle speed cloud planning method, vehicle acceleration control method and electronic equipment
Through the vehicle speed cloud planning method, cloud algorithms and high-precision map information are used to adjust vehicle speed in real time, solving the response delay and safety problems of autonomous driving when there is a lack of map information ahead, improving driving safety and comfort, and reducing Storage and computing resource requirements.
Patent Information
- Application Number
- CN202410773060.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-27
AI Technical Summary
When existing autonomous driving speed planning lacks the support of front map information, it leads to problems such as response delays, reduced safety, compromised comfort, compliance risks, and high pressure on storage space and computing resources.
The vehicle speed cloud planning method is used to determine the local path by obtaining the current position and vehicle speed, obtain path information, calculate the speed limit point sequence, and perform smoothing processing to generate the target speed sequence. It combines cloud algorithms and high-precision map information to adjust the vehicle in real time. Speed and ensure the vehicle is traveling within the legal speed limit.
It improves driving safety and comfort, reduces the risk of speeding, reduces storage and computing resource requirements, and reduces technical difficulty and cost.
Smart Images

Figure CN118701076A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle-related technologies, and in particular to a vehicle speed cloud planning method, a vehicle acceleration control method, an electronic device, a storage medium and a computer program product. Background Art
[0002] Connected Autonomous Driving (CAD) refers to the deep integration of autonomous driving technology and vehicle networking technology, which enables vehicles to receive, process and respond to various information transmitted from external networks (such as the Internet, dedicated short-range communication networks, cellular networks, etc.) in real time during driving, so as to achieve a higher level of autonomous driving functions. Connected autonomous driving greatly expands the perception range and decision-making ability of the autonomous driving system through extensive connection and deep interaction between vehicles and the external environment, which not only improves driving safety, efficiency and comfort, but also lays the foundation for the construction of future smart transportation systems. With the development of communication technologies (such as 5G, C-V2X, etc.) and the improvement of infrastructure, connected autonomous driving will become one of the important forms of future intelligent transportation.
[0003] The speed planning of autonomous driving based on single-vehicle intelligence refers to the process of making speed decisions based only on the perception system (such as cameras, radars, lidars, GPS, etc.) of a single autonomous driving vehicle, the on-board computing platform, and the internal resources such as pre-installed high-precision maps, without relying on the additional information provided by the external communication network (such as V2X communication). In this case, the vehicle needs to independently cope with complex traffic environments and road conditions, and make real-time speed adjustments to ensure safe, efficient, and comfortable driving. Optimize the vehicle speed curve under the constraints and generate speed and acceleration instructions for a period of time in the future (such as a few seconds to tens of seconds). The frequency of speed planning is approximately once every 100 milliseconds. Among them, single vehicle is an abbreviation for relying solely on the vehicle itself. Single-vehicle intelligence refers to relying solely on the vehicle itself for autonomous driving.
[0004] If the existing automatic driving speed planning technology does not rely on or cannot effectively use the map information ahead (such as curves, speed limits, etc.), its disadvantages are mainly reflected in the following aspects:
[0005] Response delay and reduced safety: Lack of advance knowledge of the curve ahead may cause the vehicle to decelerate urgently when entering the curve, increasing the braking distance and time and reducing driving safety.
[0006] Impaired comfort: When encountering curves, slope changes and other road conditions, due to the lack of foresight in speed adjustment, the vehicle may frequently accelerate or decelerate suddenly, causing passengers to experience bumps and discomfort, reducing ride comfort.
[0007] Compliance risk: If the speed limit change ahead is not identified in time, the vehicle may unknowingly exceed the speed limit, violate traffic regulations, and increase potential legal risks and accident liability.
[0008] Insufficient path planning tracking accuracy: Speed planning is closely related to path planning. If the speed cannot be adjusted in advance according to the geometric characteristics of the road ahead (such as curve radius, curvature change), it may affect the vehicle's accurate tracking of the predetermined path and reduce the effectiveness of path planning.
[0009] In summary, the existing single-vehicle autonomous driving speed planning will be significantly affected in terms of safety, comfort, compliance, and path planning and tracking accuracy when there is no support from the map information ahead. To overcome this problem, high-precision maps must be deployed on the vehicle. However, the disadvantages of each vehicle carrying high-precision maps in single-vehicle intelligence are as follows:
[0010] Offline risks:
[0011] Map data access: Some high-precision map services may require online access to obtain complete or updated map data. Single-vehicle intelligent vehicles may not be able to fully utilize high-precision map functions when offline, affecting autonomous driving performance.
[0012] Regulatory and Privacy Issues:
[0013] Data security and compliance: Precision maps may contain sensitive geographic information and detailed features of specific locations. When processing and using such data, strict compliance with data protection regulations is required to ensure that user privacy and national security are not violated. This increases the complexity and legal risks of map data management.
[0014] High storage space pressure and computing resource requirements:
[0015] Huge amount of data: High-precision maps not only contain basic information such as road topology, lane models, and traffic signs, but may also include three-dimensional terrain, building outlines, and centimeter-level location information. The amount of data is extremely large. Deploying such map data on each autonomous driving vehicle, especially in low-level autonomous driving vehicles with relatively limited storage space, will create significant storage pressure.
[0016] Storage management challenges caused by frequent updates: Since maps need to be updated regularly to reflect road changes, vehicles need to continuously receive and store new map versions, which further exacerbates the problem of storage space occupation. How to efficiently manage and update map data, avoid frequent overwriting or deletion of old data, and ensure that the latest and valid map information can be quickly obtained at critical moments has become a major difficulty in vehicle system design.
[0017] Computing resource consumption: The parsing, matching and fusion process of high-precision maps requires real-time processing by the vehicle's computing unit, especially when the vehicle is performing positioning, path planning or obstacle detection. Complex map data processing may occupy a large amount of computing resources and place high demands on the performance of the vehicle computing platform, especially when the hardware configuration of low-level autonomous driving vehicles may be relatively limited, and computing bottlenecks may occur, affecting the real-time response and stability of the system.
[0018] In summary, the existing technology of autonomous driving speed planning is single-vehicle autonomous driving speed planning, which requires high-precision map information. However, the on-board high-precision map has offline risks, regulatory and privacy issues, as well as high storage space pressure and computing resource requirements. Summary of the invention
[0019] Based on this, it is necessary to provide a vehicle speed cloud planning method, a vehicle acceleration control method, an electronic device, a storage medium and a computer program product to address the technical problems caused by the existing technology of autonomous driving speed planning using a single vehicle.
[0020] The present invention provides a vehicle speed cloud planning method, comprising:
[0021] Get the current position and speed of the vehicle;
[0022] Determining a local path of the vehicle based on the current position;
[0023] Acquire path information on the local path, and determine a speed limit point sequence on the local path according to the path information, wherein the local path includes a plurality of displacements, and the speed limit point sequence includes a speed limit corresponding to each displacement;
[0024] According to the current vehicle speed, the current displacement, and the speed limit point sequence, vehicle speed planning is performed to obtain a target speed sequence, wherein the target speed sequence includes expected speeds at multiple expected moments.
[0025] Furthermore, the path information includes a road speed limit and a curvature radius at each displacement location, and determining a speed limit point sequence on the local path according to the path information includes:
[0026] According to the curvature radius of each displacement position, the speed limit at the displacement position limited by the lateral acceleration is calculated, and the speed limit of each displacement is calculated as the minimum value of the speed limit at the displacement position limited by the lateral acceleration and the road speed limit, and each displacement and the corresponding speed limit are used as a speed limit point sequence.
[0027] Furthermore, the vehicle speed planning is performed according to the current vehicle speed, the current displacement, and the speed limit point sequence to obtain a target speed sequence, including:
[0028] Smoothing the speed limit point sequence to obtain a smoothed speed limit displacement curve, wherein the smoothed speed limit displacement curve is a smoothed speed limit corresponding to the displacement;
[0029] According to the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve, vehicle speed planning is performed to obtain a target speed sequence including expected speeds at multiple expected moments.
[0030] Furthermore, the smoothing of the speed limit point sequence includes:
[0031] The speed limit smoothing objective function J1 is established as:
[0032]
[0033] Among them, v limit,i is the smoothed speed limit corresponding to the ith displacement, v limitOrigin,i is the speed limit corresponding to the ith displacement of the speed limit point sequence, is the first-order derivative of the smoothed speed limit corresponding to the ith displacement, is the second-order derivative of the smoothed speed limit corresponding to the ith displacement, is the third-order derivative of the smoothed speed limit corresponding to the ith displacement, w x is the first smoothing weight value, w dx is the second smoothing weight value, w ddx is the third smoothing weight value, w dddx is the fourth smoothing weight value;
[0034] The continuity constraints of the smoothed speed limit on the 0th order derivative, first order derivative, second order derivative, and third order derivative of the displacement are established as follows:
[0035]
[0036] Among them, v limit,k is the smoothed speed limit corresponding to the kth displacement, v limit,k+1 is the smoothed speed limit corresponding to the k+1th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the third-order derivative of the smoothed speed limit corresponding to the k-th displacement, ds is the first-order derivative of the displacement, ds 2 is the second-order derivative of displacement, dt is the first-order derivative of time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time;
[0037] The upper and lower speed limit constraints are established as follows:
[0038]
[0039] Among them, v limitOrigin,k is the speed limit corresponding to the kth displacement of the speed limit point sequence, is the minimum value of the first-order derivative of the speed limit to displacement after smoothing, is the maximum value of the first-order derivative of the speed limit to displacement after smoothing, is the minimum value of the second-order derivative of the speed limit to displacement after smoothing, is the maximum value of the second-order derivative of the speed limit with respect to displacement after smoothing, is the minimum value of the third-order derivative of the speed limit with respect to displacement after smoothing, is the maximum value of the third-order derivative of the speed limit with respect to displacement after smoothing;
[0040] Based on the speed limit smoothing objective function, the continuity constraint and the upper and lower limit constraints, a quadratic programming solver is called to optimize and solve the speed limit point sequence to obtain a smoothed speed limit displacement curve.
[0041] Furthermore, the vehicle speed planning is performed according to the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve to obtain a target speed sequence including expected speeds at multiple expected moments, including:
[0042] The speed planning objective function J2 is established as:
[0043] J2:=w1∑(vv max ) k 2 +w2∑a k 2 +w3∑j k 2
[0044] Where v is the expected speed, v max is the maximum speed of the vehicle, (vv max ) k is the deviation between the expected speed at the kth expected moment and the maximum speed of the vehicle, a k is the expected acceleration of the vehicle at the kth expected moment, j kis the target acceleration of the vehicle at the kth expected moment, w1 is the weight value of the first vehicle speed planning, w2 is the weight value of the second vehicle speed planning, and w3 is the weight value of the third vehicle speed planning;
[0045] Establishing a vehicle speed planning constraint based on the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve;
[0046] Based on the vehicle speed planning objective function and the vehicle speed fixed constraint, a nonlinear programming solver is called to perform optimization to obtain a target speed sequence including expected speeds at multiple expected moments.
[0047] Furthermore, the speed planning constraints include: speed planning monotonicity constraints, speed planning continuity constraints, speed planning upper and lower limit constraints, and speed planning initial condition constraints. The speed planning constraints are established based on the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve, including:
[0048] Establish the monotonicity constraint of vehicle speed planning: s k+1 ≥s k , where s k+1 is the expected displacement of the vehicle at the k+1th expected moment, s k is the expected displacement of the vehicle at the kth expected moment;
[0049] To create a continuity constraint:
[0050]
[0051] Among them, v k is the expected speed of the vehicle at the kth expected moment, v k+1 is the expected speed of the vehicle at the k+th expected time, a k is the expected acceleration of the vehicle at the kth expected moment, a k+1 is the expected acceleration of the vehicle at the k+th expected moment, j k is the target acceleration of the vehicle at the kth expected moment, dt is the first-order derivative with respect to time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time;
[0052] Establish upper and lower speed planning constraints:
[0053]
[0054] Among them, v min is the minimum speed of the vehicle, v limit (s k ) is the smoothed speed limit corresponding to the expected displacement of the vehicle at the kth expected moment in the smoothed speed limit displacement curve, a minis the minimum acceleration of the vehicle, a max is the maximum acceleration of the vehicle, j min is the minimum acceleration of the vehicle, j max is the maximum acceleration of the vehicle;
[0055] The initial condition constraints for speed planning are established as follows: the initial expected speed is the current speed, and the initial expected displacement is the current displacement.
[0056] The present invention provides a vehicle acceleration control method, comprising:
[0057] Obtain a target speed sequence sent from the cloud, where the target speed sequence includes expected speeds at multiple expected moments;
[0058] At each expected moment:
[0059] Obtaining the obstacle information ahead, and calculating the first acceleration at multiple expected moments according to the obstacle information ahead,
[0060] Calculating a second acceleration for the vehicle to track the expected speed at each expected moment according to the current vehicle speed and the expected speed at each expected moment;
[0061] If there is an avoidance requirement, the minimum value of the first acceleration and the second acceleration at the expected moment is selected as the execution acceleration; otherwise, the second acceleration is selected as the execution acceleration and the execution acceleration is executed.
[0062] The present invention provides an electronic device, comprising:
[0063] at least one processor; and,
[0064] a memory communicatively connected to at least one of the processors; wherein,
[0065] The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the vehicle speed cloud planning method as described above or the vehicle acceleration control method as described above.
[0066] The present invention provides a storage medium, which stores computer instructions. When a computer executes the computer instructions, it is used to execute all steps of the vehicle speed cloud planning method as described above or all steps of the vehicle acceleration control method as described above.
[0067] The present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the vehicle speed cloud planning method as described above or the vehicle acceleration control method as described above.
[0068] The present invention utilizes cloud algorithms and high-precision map information to know the changes in road conditions in advance, adjust the vehicle speed in real time, and avoid emergency deceleration when entering special sections such as curves, thereby reducing response delays and improving driving safety. Through the design of smooth changes in speed and acceleration over time, the present invention can avoid frequent sudden acceleration and deceleration, reduce the bumpy feeling experienced by passengers, and improve riding comfort. The present invention combines speed limit adaptability planning and dynamic constraint processing to ensure that the vehicle always travels within the statutory speed limit, abides by traffic regulations, reduces the risk of speeding, and ensures driving compliance. By optimizing target setting and trade-offs, the present invention can flexibly adjust the control strategy to adapt to different road conditions and control requirements, improve the predictability and adaptability of vehicle driving, and optimize driving efficiency. Since the present invention no longer needs to carry high-precision maps on the bicycle, it no longer needs to consider the constraints of road shape, and only needs to consider the impact of obstacles, thereby reducing costs and technical difficulties. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 This is a workflow diagram of a vehicle speed cloud planning method according to an embodiment of the present invention;
[0070] Figure 2 This is a workflow diagram of a vehicle speed cloud planning method according to another embodiment of the present invention;
[0071] Figure 3 A schematic diagram of a local path of an example of the present invention;
[0072] Figure 4 A schematic diagram of a local path of another example of the present invention;
[0073] Figure 5 A schematic diagram of the curvature of a local path according to an example of the present invention;
[0074] Figure 6 A displacement road speed limit relationship diagram of an example of the present invention;
[0075] Figure 7 A diagram showing the relationship between displacement and speed limit according to lateral acceleration limit according to an example of the present invention;
[0076] Figure 8 A speed limit displacement relationship diagram of an example of the present invention;
[0077] Fig. 9 This is a smoothed speed limit displacement relationship diagram of an example of the present invention;
[0078] Fig.10 A displacement-speed relationship diagram for speed planning using the vehicle speed cloud planning method of the present invention for the first use case of the present invention, including a first road speed limit curve 1001 and a first target speed sequence curve 1002;
[0079] Fig.11 This is a graph showing the relationship between displacement, speed, acceleration and time for speed planning using the vehicle speed cloud planning method of the present invention in the first use case of the present invention;
[0080] Fig.12 A displacement-speed relationship diagram for speed planning using the vehicle speed cloud planning method of the present invention for the second use case of the present invention, including a second road speed limit curve 1201 and a second target speed sequence curve 1202;
[0081] Fig.13 A graph showing the relationship between displacement, speed, acceleration and time for speed planning using the vehicle speed cloud planning method of the present invention in the second use case of the present invention;
[0082] Fig.14 A displacement-speed relationship diagram for speed planning using the vehicle speed cloud planning method of the present invention for the third use case of the present invention, including a third road speed limit curve 1401 and a third target speed sequence curve 1402;
[0083] Fig.15 A graph showing the relationship between displacement, speed, acceleration and time for speed planning using the vehicle speed cloud planning method of the present invention in the third use case of the present invention;
[0084] Fig.16 A flowchart of a vehicle acceleration control method according to an embodiment of the present invention;
[0085] Fig.17 This is a schematic diagram of the information interaction process between the cloud environment and the vehicle of an example of a connected vehicle of the present invention;
[0086] Fig.18 The figure is a schematic diagram of the hardware structure of an electronic device of the present invention. DETAILED DESCRIPTION
[0087] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. The same components are represented by the same reference numerals. It should be noted that the words "front", "rear", "left", "right", "upper" and "lower" used in the following description refer to directions in the accompanying drawings, and the words "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0088] like Figure 1 The figure shows a working flow chart of a vehicle speed cloud planning method according to an embodiment of the present invention, including:
[0089] Step S101, obtaining the current position and current speed of the vehicle;
[0090] Step S102, determining a local path of the vehicle according to the current position;
[0091] Step S103, obtaining path information on the local path, and determining a speed limit point sequence on the local path according to the path information, wherein the local path includes a plurality of displacements, and the speed limit point sequence includes a speed limit corresponding to each displacement;
[0092] Step S104, performing vehicle speed planning according to the current vehicle speed, the current displacement, and the speed limit point sequence to obtain a target speed sequence, wherein the target speed sequence includes expected speeds at a plurality of expected moments.
[0093] Specifically, the present invention can be applied to electronic devices with processing capabilities, such as cloud servers.
[0094] The cloud first executes step S101 to obtain the current position and current speed of the vehicle.
[0095] Specifically, the connected vehicle provides the cloud server with the current location and current speed of the vehicle. The connected vehicle can also provide the cloud server with the current acceleration.
[0096] Then, step S102 is executed to determine the local path of the vehicle according to the current position.
[0097] Specifically, the local path is a distance extending forward from the current position. For example, based on the position and heading reported by the connected vehicle, the connected vehicle is positioned on a specific lane. Then, based on the high-precision map, it is extended forward for a distance (configurable, in urban areas: 80 meters in front of the connected vehicle; on highways: 140 meters in front of the connected vehicle), and a sequence of lane centerlines is constructed as the local path of the connected vehicle.
[0098] Then, step S103 is executed to obtain path information on the local path, and determine a speed limit point sequence on the local path according to the path information, wherein the local path includes a plurality of displacements, and the speed limit point sequence includes a speed limit corresponding to each displacement.
[0099] Specifically, the cloud obtains the speed limit for each displacement from the high-precision map. If the displacement of the starting point of the local path (the current position of the connected vehicle) is 0, a segmented speed limit based on the displacement can be obtained to determine the speed limit for each displacement.
[0100] Finally, step S104 is executed to perform vehicle speed planning according to the current vehicle speed, the current displacement, and the speed limit point sequence to obtain a target speed sequence, wherein the target speed sequence includes expected speeds at multiple expected moments.
[0101] The cloud executes steps S101 to S104, integrates nonlinear programming technology, and plans a target speed sequence that meets the requirements of road regulations and the goals of vehicle dynamic performance and passenger comfort based on road condition information (such as speed limit regulations, curvature restrictions), the current driving state of the vehicle (such as vehicle speed, acceleration), and preset control parameters (such as speed / acceleration upper and lower limits, jerk upper and lower limits, etc.). The target speed sequence will be sent to the connected vehicle, and the longitudinal control of the connected vehicle is based on the target speed sequence sent by the cloud.
[0102] The present invention utilizes cloud algorithms and high-precision map information to be able to know changes in road conditions in advance, adjust vehicle speed in real time, and avoid emergency deceleration when entering special sections such as curves, thereby reducing response delays and improving driving safety. The present invention combines speed limit adaptive planning and dynamic constraint processing to ensure that the vehicle always travels within the legal speed limit, abides by traffic regulations, reduces the risk of speeding, and ensures driving compliance. Since the present invention no longer needs to carry high-precision maps on a single vehicle, it no longer needs to consider the constraints of road shape, and only needs to consider the impact of obstacles, thereby reducing costs and technical difficulties.
[0103] like Figure 2 The figure is a workflow diagram of a vehicle speed cloud planning method in another embodiment of the present invention, including:
[0104] Step S201, obtaining the current position and current speed of the vehicle.
[0105] Step S202, determining a local path of the vehicle according to the current position.
[0106] Step S203, obtaining path information on the local path, the path information including the road speed limit and curvature radius of each displacement location, calculating the speed limit limited by the lateral acceleration at the displacement location according to the curvature radius of each displacement location, calculating the speed limit of each displacement as the minimum value of the speed limit limited by the lateral acceleration at the displacement location and the road speed limit, and taking each displacement and the corresponding speed limit as a speed limit point sequence.
[0107] Step S204, smoothing the speed limit point sequence to obtain a smoothed speed limit displacement curve, wherein the smoothed speed limit displacement curve is the smoothed speed limit corresponding to the displacement.
[0108] In one embodiment, the smoothing of the speed limit point sequence includes:
[0109] The speed limit smoothing objective function J1 is established as:
[0110]
[0111] Among them, vlimit,i is the smoothed speed limit corresponding to the ith displacement, v limitOrigin,i is the speed limit corresponding to the ith displacement of the speed limit point sequence, is the first-order derivative of the smoothed speed limit corresponding to the ith displacement, is the second-order derivative of the smoothed speed limit corresponding to the ith displacement, is the third-order derivative of the smoothed speed limit corresponding to the ith displacement, w x is the first smoothing weight value, w dx is the second smoothing weight value, w ddx is the third smoothing weight value, w dddx is the fourth smoothing weight value;
[0112] The continuity constraints of the smoothed speed limit on the 0th order derivative, first order derivative, second order derivative, and third order derivative of the displacement are established as follows:
[0113]
[0114] Among them, v limit,k is the smoothed speed limit corresponding to the kth displacement, v limit,k+1 is the smoothed speed limit corresponding to the k+1th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the third-order derivative of the smoothed speed limit corresponding to the k-th displacement, ds is the first-order derivative of the displacement, ds 2 is the second-order derivative of displacement, dt is the first-order derivative of time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time;
[0115] The upper and lower speed limit constraints are established as follows:
[0116]
[0117] Among them, v limitOrigin,k is the speed limit corresponding to the kth displacement of the speed limit point sequence, is the minimum value of the first-order derivative of the speed limit to displacement after smoothing, is the maximum value of the first-order derivative of the speed limit to displacement after smoothing, is the minimum value of the second-order derivative of the speed limit to displacement after smoothing, is the maximum value of the second-order derivative of the speed limit with respect to displacement after smoothing, is the minimum value of the third-order derivative of the speed limit with respect to displacement after smoothing, is the maximum value of the third-order derivative of the speed limit with respect to displacement after smoothing;
[0118] Based on the speed limit smoothing objective function, the continuity constraint and the upper and lower limit constraints, a quadratic programming solver is called to optimize and solve the speed limit point sequence to obtain a smoothed speed limit displacement curve.
[0119] Step S205, performing vehicle speed planning according to the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve to obtain a target speed sequence including expected speeds at multiple expected moments.
[0120] In one embodiment, the vehicle speed planning is performed according to the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve to obtain a target speed sequence including expected speeds at multiple expected moments, including:
[0121] The speed planning objective function J2 is established as:
[0122] J2:=w1∑(vv max ) k 2 +w2∑a k 2 +w3∑j k 2
[0123] Where v is the expected speed, v max is the maximum speed of the vehicle, (vv max ) k is the deviation between the expected speed at the kth expected moment and the maximum speed of the vehicle, a k is the expected acceleration of the vehicle at the kth expected moment, j k is the target acceleration of the vehicle at the kth expected moment, w1 is the weight value of the first vehicle speed planning, w2 is the weight value of the second vehicle speed planning, and w3 is the weight value of the third vehicle speed planning;
[0124] Establishing a vehicle speed planning constraint based on the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve;
[0125] Based on the vehicle speed planning objective function and the vehicle speed fixed constraint, a nonlinear programming solver is called to perform optimization to obtain a target speed sequence including expected speeds at multiple expected moments.
[0126] In one embodiment, the speed planning constraints include: speed planning monotonicity constraints, speed planning continuity constraints, speed planning upper and lower limit constraints, and speed planning initial condition constraints. The speed planning constraints are established based on the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve, including:
[0127] Establish the monotonicity constraint of vehicle speed planning: s k+1 ≥s k , where s k+1 is the expected displacement of the vehicle at the k+1th expected moment, s k is the expected displacement of the vehicle at the kth expected moment;
[0128] To create a continuity constraint:
[0129]
[0130] Among them, v k is the expected speed of the vehicle at the kth expected moment, v k+1 is the expected speed of the vehicle at the k+th expected time, a k is the expected acceleration of the vehicle at the kth expected moment, a k+1 is the expected acceleration of the vehicle at the k+th expected moment, j k is the target acceleration of the vehicle at the kth expected moment, dt is the first-order derivative with respect to time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time;
[0131] Establish upper and lower speed planning constraints:
[0132]
[0133] Among them, v min is the minimum speed of the vehicle, v limit (s k ) is the smoothed speed limit corresponding to the expected displacement of the vehicle at the kth expected moment in the smoothed speed limit displacement curve, a min is the minimum acceleration of the vehicle, a max is the maximum acceleration of the vehicle, j min is the minimum acceleration of the vehicle, j max is the maximum acceleration of the vehicle;
[0134] The initial condition constraints for speed planning are established as follows: the initial expected speed is the current speed, and the initial expected displacement is the current displacement.
[0135] Specifically, this embodiment can be applied to electronic devices with processing capabilities, such as cloud servers.
[0136] The cloud algorithm uses integrated nonlinear programming technology to plan a speed curve that meets both road regulations and vehicle dynamic performance and passenger comfort goals based on road condition information (such as speed limits, curvature limits), the vehicle's current driving status (such as speed, acceleration), and preset control parameters (such as speed / acceleration upper and lower limits, jerk upper and lower limits, etc.). Specifically, the core functions of the cloud algorithm include:
[0137] 1. Speed limit adaptive planning: Based on the real-time speed limit information of the road section, ensure that the planned expected speed never exceeds the legal speed limit, comply with road traffic regulations, and ensure driving safety.
[0138] 2. Dynamic constraint processing: Fully consider the vehicle's current speed and acceleration conditions to ensure that the planned speed change process complies with the vehicle's dynamic characteristics, such as speed / acceleration upper and lower limit constraints, jerk upper and lower limit constraints, etc., to avoid speeding, sudden acceleration or deceleration and other behaviors that are not conducive to driving safety and stability. At the same time, according to the curvature limit of the road, ensure that the vehicle's lateral acceleration does not exceed the limit value.
[0139] 3. Speed and acceleration change smoothly over time: During the speed planning process, the cloud-based algorithm takes time-related speed / acceleration constraints into consideration to ensure that the vehicle smoothly transitions to the expected speed within the preset time window, achieving smooth and continuous speed changes and improving ride comfort.
[0140] 4. Optimization target setting and trade-offs: By flexibly adjusting the weight, step length, and total number of steps of the optimization target, the control requirements in different scenarios can be met. For example, when pursuing traffic efficiency, the weight of traffic speed can be appropriately increased; when focusing on comfort, the focus can be placed on smoothing the changes in speed and acceleration. These parameters can be calibrated and set outside the algorithm to achieve flexible customization of the control strategy.
[0141] The vehicle target speed sequence sent from the cloud is designed to achieve all-round intelligent control of the vehicle under various road conditions, ensuring that it strictly abides by traffic regulations while ensuring safe, efficient and comfortable driving. It does not take into account dynamic traffic participants, but is based on static road elements and traffic regulations.
[0142] Specifically, step S201 is first executed to obtain the current position and current speed of the vehicle.
[0143] Then, step S202 is executed to determine the local path of the vehicle according to the current position.
[0144] like Figure 3As shown, in the local path determination, the connected vehicle 31 is positioned on a specific lane 32 according to the position and heading reported by the connected vehicle. Then, according to the high-precision map, it is extended forward for a distance (configurable, in urban areas: 80 meters in front of the connected vehicle; on highways: 140 meters in front of the connected vehicle), and a sequence of lane centerlines is constructed as the local path of the connected vehicle, including lane centerlines laneD1, laneD3, and laneD5.
[0145] like Figure 4 As shown, if a lane fork is encountered, the connected vehicle's turn signal information is used to determine which way to go. For example, if the connected vehicle 41 turns on the right turn signal, it will turn right at the intersection ahead instead of going straight. In this case, the local path 42 will go along the center line of the lane laneID4 instead of the center line of the lane laneID5.
[0146] After the local path is determined, step S203 is executed to obtain path information on the local path, wherein the path information includes the road speed limit and the curvature radius of each displacement location, and the speed limit limited by the lateral acceleration at the displacement location is calculated according to the curvature radius of each displacement location. The speed limit of each displacement is calculated as the minimum value of the speed limit limited by the lateral acceleration at the displacement location and the road speed limit, and each displacement and the corresponding speed limit are used as a speed limit point sequence.
[0147] The speed limit on the local path can be obtained from the map, and its curvature can be obtained from its shape (from the high-precision map database), for example Figure 5 shown.
[0148] If the displacement s of the starting point of the local path 51 (the current position of the connected vehicle) is set to 0, a segmented speed limit based on the displacement can be obtained. Figure 6 The displacement road speed limit relationship diagram shown in the figure has the displacement on the horizontal axis and the road speed limit on the vertical axis. The road speed limit at s=0 to s=40 is 20 meters per second, and the road speed limit at s=40 to s=80 is 10 meters per second.
[0149] Sample evenly on the local path (one point every two meters) and calculate the speed limit for the lateral acceleration limit at each point.
[0150] Since the lateral acceleration is equal to the square of the velocity divided by the radius of curvature, the speed limit of the lateral acceleration limit (i.e. the maximum speed caused by the lateral acceleration) is the square root of the product of the maximum lateral acceleration and the radius of curvature. Figure 4 The radius of curvature at the position of s=0 is 50 meters, and the maximum lateral acceleration is set to 2 meters per second squared. Then, at the position of s=0, the speed limit of the lateral acceleration is, Meters per second.
[0151] Therefore, the speed limit limited by the lateral acceleration at the displacement location can be calculated based on the curvature radius of each displacement location, and the relationship between the displacement and the speed limit limited by the lateral acceleration can be obtained, for example: Figure 7 As shown, the horizontal axis is displacement and the vertical axis is speed limit limited by lateral acceleration. The maximum lateral acceleration is set according to the vehicle type and is a parameter of the vehicle itself.
[0152] The speed limit displacement relationship obtained by combining the road speed limit and the lateral acceleration limit is as follows Figure 8 As shown, the horizontal axis is displacement, the vertical axis is speed limit, including road speed limit curve 81, speed limit curve 82 obtained by lateral acceleration limitation, and final speed limit curve 83. That is, at each position, the final speed limit is the minimum value of the road speed limit and the speed limit of lateral acceleration limitation at this position.
[0153] With the speed limit, the current vehicle speed and the current acceleration, and by setting the vehicle dynamics limits (maximum and minimum acceleration, speed, etc.), speed planning can be carried out. Speed planning does not take obstacles into consideration, as obstacles are taken into consideration by the vehicle's intelligence.
[0154] Next is the speed planning algorithm, which consists of two steps: smoothing of the speed limit constraint and the speed planning algorithm itself.
[0155] Specifically, step S204 is executed to smooth the speed limit point sequence to obtain a smoothed speed limit displacement curve, where the smoothed speed limit displacement curve is the smoothed speed limit corresponding to the displacement.
[0156] Speed limit constraint smoothing means generating a smooth speed limit displacement curve based on the input speed limit point sequence (the speed limit point sequence represents the speed limit at different displacement positions) and calibration parameters (the speed limit smoothing calibration parameters include constraint conditions and weights). The speed limit displacement curve is used to represent continuous displacements and the smoothed speed limit corresponding to the displacements.
[0157] In one embodiment, the smoothing of the speed limit point sequence includes:
[0158] The speed limit smoothing objective function J1 is established as:
[0159]
[0160] Among them, v limit,i is the smoothed speed limit corresponding to the ith displacement, v limitOrigin,i is the speed limit corresponding to the ith displacement of the speed limit point sequence, is the first-order derivative of the smoothed speed limit corresponding to the ith displacement, is the second-order derivative of the smoothed speed limit corresponding to the ith displacement, is the third-order derivative of the smoothed speed limit corresponding to the ith displacement, w x is the first smoothing weight value, w dx is the second smoothing weight value, w ddx is the third smoothing weight value, w dddx is the fourth smoothing weight value;
[0161] The continuity constraints of the smoothed speed limit on the 0th order derivative, first order derivative, second order derivative, and third order derivative of the displacement are established as follows:
[0162]
[0163] Among them, v limit,k is the smoothed speed limit corresponding to the kth displacement, v limit,k+1 is the smoothed speed limit corresponding to the k+1th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the third-order derivative of the smoothed speed limit corresponding to the k-th displacement, ds is the first-order derivative of the displacement, ds 2 is the second-order derivative of displacement, dt is the first-order derivative of time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time;
[0164] The upper and lower speed limit constraints are established as follows:
[0165]
[0166] Among them, v limitOrigin,k is the speed limit corresponding to the kth displacement of the speed limit point sequence, is the minimum value of the first-order derivative of the speed limit to displacement after smoothing, is the maximum value of the first-order derivative of the speed limit to displacement after smoothing, is the minimum value of the second-order derivative of the speed limit to displacement after smoothing, is the maximum value of the second-order derivative of the speed limit with respect to displacement after smoothing, is the minimum value of the third-order derivative of the speed limit with respect to displacement after smoothing, is the maximum value of the third-order derivative of the speed limit with respect to displacement after smoothing;
[0167] Based on the speed limit smoothing objective function, the continuity constraint and the upper and lower limit constraints, a quadratic programming solver is called to optimize and solve the speed limit point sequence to obtain a smoothed speed limit displacement curve.
[0168] Specifically, to achieve the smoothness of the speed limit constraint, the problem is modeled as a quadratic programming problem, which includes the objective function and constraints.
[0169] The objective function is to optimize the speed limit displacement curve (that is, to obtain the smoothed speed limit v limit The speed limit value is sampled at different displacement sampling points s=0, s=2, s=4..., that is, the speed limit value is sampled every two meters) to make it as smooth as possible (to make the speed change at different displacement positions as smooth as possible, that is, the smoothed speed limit v limit The first, second, and third derivatives of the displacement s are as small as possible (the first line of the formula below), and the optimized speed limit is as close to the original speed limit as possible (that is, the smoothed speed limit is close to the original speed limit v limitOrigin The sum of the squares of the differences is as small as possible. The second line of the following formula),w x 、w dx 、w ddx 、w dddx They are all weight values.
[0170]
[0171] Among them, v limit,i is the smoothed speed limit corresponding to the ith displacement, v limitOrigin,i is the speed limit corresponding to the ith displacement of the speed limit point sequence, is the first-order derivative of the smoothed speed limit corresponding to the ith displacement, is the second-order derivative of the smoothed speed limit corresponding to the ith displacement, is the third-order derivative of the smoothed speed limit corresponding to the ith displacement, w x is the first smoothing weight value, w dx is the second smoothing weight value, w ddx is the third smoothing weight value, w dddx is the fourth smoothing weight value.
[0172] The constraints include the smoothed speed limit v limit Constraints on the 0th, 1st, 2nd and 3rd order derivatives of displacement s:
[0173] v limit Continuity constraint: ensure that the speed limit curve is continuous, that is, the speed limit curves at adjacent displacement positions are continuous.
[0174] Continuity constraint: ensure the speed continuity of the speed curve, that is, the smoothed speed limit v at adjacent displacement positions limit The velocity variation of the first-order derivative velocity curve of displacement s is continuous.
[0175] Continuity constraint: ensure the acceleration of the velocity curve is continuous, that is, the smoothed speed limit v at adjacent displacement positions limit The velocity variation of the second-order derivative velocity curve of displacement s is continuous.
[0176] Continuity constraint: Ensure that the acceleration of the velocity curve is continuous, that is, the smoothed speed limit v at adjacent displacement positions limit The velocity variation of the third-order derivative velocity curve of displacement s is continuous.
[0177] The continuity constraint is as follows:
[0178]
[0179] Among them, v limit,k is the smoothed speed limit corresponding to the kth displacement, v limit,k+1 is the smoothed speed limit corresponding to the k+1th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the third-order derivative of the smoothed speed limit corresponding to the k-th displacement, ds is the first-order derivative of the displacement, ds 2 is the second-order derivative of displacement, dt is the first-order derivative of time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time.
[0180] v limit Upper and lower limit constraints (the lower limit is 0, the upper limit is the original speed limit), Upper and lower limit constraints (calibration quantity), Upper and lower limit constraints (calibration quantity), The upper and lower limit constraints (calibration quantity) are as follows:
[0181]
[0182] Among them, v limitOrigin,k is the speed limit corresponding to the kth displacement of the speed limit point sequence, is the minimum value of the first-order derivative of the speed limit to displacement after smoothing, is the maximum value of the first-order derivative of the speed limit to displacement after smoothing, is the minimum value of the second-order derivative of the speed limit to displacement after smoothing, is the maximum value of the second-order derivative of the speed limit with respect to displacement after smoothing, is the minimum value of the third-order derivative of the speed limit with respect to displacement after smoothing, It is the maximum value of the third-order derivative of the speed limit with respect to the displacement after smoothing.
[0183] Next, the quadratic programming solver is used to optimize and solve the problem, and the smoothed speed limit of each displacement sampling point is obtained, which satisfies all constraints and optimization objectives. Then, the smoothed speed limit of the displacement position between the displacement sampling points is obtained by interpolation, which is used as the smoothed speed limit displacement curve. For example Fig. 9 As shown, the segmented speed limit displacement 91 is smoothed to obtain a smoothed speed limit curve 92 in the displacement-speed limit diagram. The smoothed speed limit curve 92 is the smoothed speed limit of each displacement sampling point (for example, one point every two meters). The smoothed speed limit between the displacement sampling points is obtained by interpolation calculation. For example, the speed limit at the position of s=58 and the smoothed speed limit at the position of s=60 are calculated. When it is necessary to know the speed limit at the position of s=59.5, an interpolation calculation is performed: the smoothed speed limit at the position of s=59.5=the smoothed speed limit at the position of s=58*0.25+the smoothed speed limit at the position of s=60*0.75.
[0184] Next, the speed planning algorithm can be performed. Step S205 is executed to perform vehicle speed planning according to the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve to obtain a target speed sequence including expected speeds at multiple expected moments.
[0185] The algorithm plans the speed according to the speed limit and the current vehicle speed, and meets the speed / acceleration upper and lower limits, jerk upper and lower limits, speed limit and other constraints. The weight, step length, total number of steps and other information can be calibrated and set outside the algorithm. The nonlinear programming method is used to uniformly consider the speed limit related to the position (determined by the lateral acceleration constraint and the road speed limit constraint) and the speed / acceleration related to time, and to balance the requirements of increasing the speed of travel and smoothing the speed / acceleration to improve comfort.
[0186] In one embodiment, the vehicle speed planning is performed according to the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve to obtain a target speed sequence including expected speeds at multiple expected moments, including:
[0187] The speed planning objective function J2 is established as:
[0188] J2:=w1∑(vv max ) k 2 +w2∑a k 2 +w3∑j k 2
[0189] Where v is the expected speed, v max is the maximum speed of the vehicle, (vv max ) k is the deviation between the expected speed at the kth expected moment and the maximum speed of the vehicle, a k is the expected acceleration of the vehicle at the kth expected moment, j k is the target acceleration of the vehicle at the kth expected moment, w1 is the weight value of the first vehicle speed planning, w2 is the weight value of the second vehicle speed planning, and w3 is the weight value of the third vehicle speed planning;
[0190] Establishing a vehicle speed planning constraint based on the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve;
[0191] Based on the vehicle speed planning objective function and the vehicle speed fixed constraint, a nonlinear programming solver is called to perform optimization to obtain a target speed sequence including expected speeds at multiple expected moments.
[0192] The algorithm can be summarized as the following logic and process:
[0193] 1. Decision variable definition:
[0194] Define a series of decision variables, representing the expected displacement (s), expected speed (v), expected acceleration (a), and target jerk (j) of the vehicle in the planning period. These variables correspond to discrete state points on the time series, and together constitute the space for vehicle speed planning. What is required is the displacement, expected speed, expected acceleration, and target jerk of the vehicle at each expected moment every 0.2 seconds (configurable) within the next 4 seconds (configurable).
[0195] 2. Objective function design:
[0196] The objective function consists of three parts: max (It can be set to 30 meters per second according to the vehicle model) The sum of squares of deviation, the sum of squares of acceleration, and the sum of squares of jerk. The weights w1, w2, and w3 of these items can be adjusted through external calibration settings, corresponding to the requirements of increased speed, smooth speed (comfort), and acceleration smoothing (comfort) in the optimization objectives.
[0197] J2:=w1∑(vv max )i 2 +w2∑a i 2 +w3∑j i 2
[0198] Where v is the expected speed, v max is the maximum speed of the vehicle, (vv max ) i is the deviation between the expected speed at the i-th expected moment and the maximum speed of the vehicle, a i is the expected acceleration of the vehicle at the i-th expected moment, j i is the target acceleration of the vehicle at the i-th expected moment, w1 is the first vehicle speed planning weight value, w2 is the second vehicle speed planning weight value, and w3 is the third vehicle speed planning weight value.
[0199] 3. Constraint setting: Constraints include: vehicle speed planning monotonicity constraints, vehicle speed planning upper and lower limit constraints, and vehicle speed planning initial condition constraints.
[0200] In one embodiment, the speed planning constraints include: speed planning monotonicity constraints, speed planning continuity constraints, speed planning upper and lower limit constraints, and speed planning initial condition constraints. The speed planning constraints are established based on the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve, including:
[0201] Establish the monotonicity constraint of vehicle speed planning: s k+1 ≥s k , where s k+1 is the expected displacement of the vehicle at the k+1th expected moment, s k is the expected displacement of the vehicle at the kth expected moment;
[0202] To create a continuity constraint:
[0203]
[0204] Among them, v k is the expected speed of the vehicle at the kth expected moment, v k+1 is the expected speed of the vehicle at the k+th expected time, a k is the expected acceleration of the vehicle at the kth expected moment, a k+1 is the expected acceleration of the vehicle at the k+th expected moment, j k is the target acceleration of the vehicle at the kth expected moment, dt is the first-order derivative with respect to time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time;
[0205] Establish upper and lower speed planning constraints:
[0206]
[0207] Among them, v min is the minimum speed of the vehicle, v limit (s k ) is the smoothed speed limit corresponding to the expected displacement of the vehicle at the kth expected moment in the smoothed speed limit displacement curve, a min is the minimum acceleration of the vehicle, a max is the maximum acceleration of the vehicle, j min is the minimum acceleration of the vehicle, j max is the maximum acceleration of the vehicle;
[0208] The initial condition constraints for speed planning are established as follows: the initial expected speed is the current speed, and the initial expected displacement is the current displacement.
[0209] Specifically, the constraints include:
[0210] Monotonicity constraint: ensure that the displacement of vehicles increases monotonically throughout the planning cycle.
[0211] s k+1 ≥s k
[0212] where s k+1 is the expected displacement of the vehicle at the k+1th expected moment, s k is the expected displacement of the vehicle at the kth expected moment.
[0213] Continuity constraint: Ensure that the changes in expected displacement, expected velocity, expected acceleration and target jerk in adjacent time steps conform to physical laws (such as the displacement is obtained by integrating velocity over time, and the velocity change is obtained by integrating acceleration over time). The continuity constraint formula is:
[0214]
[0215] Among them, v k is the expected speed of the vehicle at the kth expected moment, v k+1 is the expected speed of the vehicle at the k+th expected time, a k is the expected acceleration of the vehicle at the kth expected moment, a k+1 is the expected acceleration of the vehicle at the k+th expected moment, j k is the target acceleration of the vehicle at the kth expected moment, dt is the first-order derivative with respect to time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time.
[0216] Upper and lower limit constraints:
[0217] The upper and lower constraints include:
[0218] - Speed / acceleration upper and lower limit constraints: limit the vehicle speed and acceleration within a preset reasonable range to meet driving safety and comfort requirements. INF means infinity, that is, no constraints.
[0219] -Jerk upper and lower limit constraints: impose limits on jerk to further ensure the smoothness of vehicle motion.
[0220] -Speed limit constraint: Ensure that the vehicle does not exceed the speed limit of the road section at any position. Use the smoothed speed limit displacement curve mentioned above to determine v limit (s k ). limit (s k ) is the smoothed speed limit corresponding to the expected displacement of the vehicle at the kth expected moment in the smoothed speed limit displacement curve, and is s k The speed limit value at this position. The smoothed speed limit displacement curve is as follows Fig. 9 As shown, the smoothed speed limit between the displacement sampling points is obtained by interpolation.
[0221] The upper and lower limit constraint formulas are as follows:
[0222]
[0223] Among them, min is the minimum value function, v min is the minimum speed of the vehicle, v limit (s k ) is the smoothed speed limit corresponding to the expected displacement of the vehicle at the kth expected moment in the smoothed speed limit displacement curve, a min is the minimum acceleration of the vehicle, a max is the maximum acceleration of the vehicle, j min is the minimum acceleration of the vehicle, j max The maximum acceleration of the vehicle.
[0224] Initial condition constraints: from given initial conditions (such as current vehicle speed, displacement).
[0225] v0=v current
[0226] s0=s current
[0227] Among them, v0 is the initial target setting, v current is the current vehicle speed, s0 is the initial expected displacement, s current is the current displacement.
[0228] 4. Solution process:
[0229] Call a nonlinear programming solver (such as IPOPT) for optimization.
[0230] The solver uses an iterative process to continuously adjust the decision variables to minimize the objective function value while satisfying all constraints.
[0231] When the solver reaches the termination condition (such as convergence, reaching the maximum number of iterations, etc.), the result is output to obtain the target velocity sequence.
[0232] In summary, the speed planning algorithm constructs a nonlinear planning problem, using decision variables to represent the state of the vehicle in the future time series. The objective function takes into account both the speed improvement and smoothness requirements, and the constraints ensure that the vehicle movement complies with physical laws, speed limit regulations, and comfort requirements. The solver optimizes the objective function under these constraints to obtain the optimal speed planning sequence, which is ultimately used to guide the longitudinal control of the vehicle. The entire process reflects the algorithm's comprehensive consideration and refined processing of the problem, ensuring that the vehicle can achieve efficient and comfortable driving while meeting a variety of complex constraints.
[0233] The speed limit constraint in speed planning is v k ≤v limit (s k ), this constraint is made continuously differentiable in the rate-limited smoothing, because the constraints in nonlinear programming need to be like this: Most modern optimization algorithms, especially gradient-based algorithms (such as IPOPT, Interior Point OPTimizer), rely on the constraint function (that is, v) in the solution process. k The algorithm updates the decision variables through iteration, and each iteration needs to calculate the gradient of the objective function and the constraint function in order to determine the search direction and step size for the next step. If the constraint function is not differentiable or discontinuous, the algorithm will not be able to effectively calculate the gradient or guarantee the stability of the iterative process, which may cause the algorithm to fail or seriously degrade its performance.
[0234] The speed planning call result is as follows Figures 10 to 15 As shown, it includes the expected displacement, expected speed and expected acceleration planned under different speed limit conditions.
[0235] This embodiment uses cloud algorithms and high-precision map information to know the changes in road conditions in advance, adjust the vehicle speed in real time, and avoid emergency deceleration when entering special sections such as curves, thereby reducing response delays and improving driving safety. This embodiment is designed to smoothly change the speed and acceleration over time, so that this embodiment can avoid frequent sudden acceleration and deceleration, reduce the bumpy feeling experienced by passengers, and improve riding comfort. This embodiment combines speed limit adaptability planning and dynamic constraint processing to ensure that the vehicle always travels within the statutory speed limit, abides by traffic regulations, reduces the risk of speeding, and ensures driving compliance. This embodiment optimizes target setting and trade-offs, so that this embodiment can flexibly adjust the control strategy to adapt to different road conditions and control requirements, improve the predictability and adaptability of vehicle driving, and optimize driving efficiency. This embodiment has low cost and low technical difficulty. It is no longer necessary to carry high-precision maps on a single vehicle, and it is no longer necessary to consider the constraints of road shape. It only needs to consider the impact of obstacles.
[0236] like Fig.16 The flowchart of a vehicle acceleration control method according to an embodiment of the present invention is shown, comprising:
[0237] Step S1601, obtaining a target speed sequence sent from the cloud, wherein the target speed sequence includes expected speeds at multiple expected moments;
[0238] At each expected moment:
[0239] Step S1602, obtaining the front obstacle information, and calculating the first acceleration at a plurality of expected moments according to the front obstacle information;
[0240] Step S1603, calculating a second acceleration of the vehicle for tracking the expected speed at each expected moment according to the current vehicle speed and the expected speed at each expected moment;
[0241] Step S1604: if there is an avoidance requirement, the minimum value of the first acceleration and the second acceleration at the expected moment is selected as the execution acceleration; otherwise, the second acceleration is selected as the execution acceleration and the execution acceleration is executed.
[0242] Specifically, it can be applied to electronic devices with processing capabilities, such as an electronic control unit (ECU) or an extendable multi-domain control unit (XCU) of a vehicle.
[0243] The longitudinal control of the vehicle is based on the target speed sequence sent from the cloud. The cloud algorithm uses comprehensive nonlinear programming technology to plan a speed curve that meets the requirements of road regulations and meets the vehicle's dynamic performance and passenger comfort goals based on road condition information (such as speed limits, curvature limits), the vehicle's current driving status (such as speed, acceleration), and preset control parameters (such as speed / acceleration upper and lower limits, jerk upper and lower limits, etc.).
[0244] like Fig.17 As shown in the figure, the information interaction process between the cloud environment and the vehicle of a connected vehicle is demonstrated. The cloud environment uses the aforementioned vehicle speed cloud planning method through nonlinear programming technology to plan a target speed sequence that meets the requirements of road regulations and the vehicle dynamic performance and passenger comfort goals based on road condition information (such as speed limit regulations, curvature restrictions), the current driving status of the vehicle (such as position, speed, turn signal) and preset control parameters (such as speed / acceleration upper and lower limits, jerk upper and lower limits, etc.). Specifically, the core functions of the cloud algorithm include: 1. Local path determination: Determine the local path of the vehicle on the current road section based on the current position of the vehicle, the target position and the road network information in the high-precision map. 2. Extraction of speed limit, curvature and other information: Obtain the speed limit information, curvature information and other necessary road feature data of the current path from the high-precision map. 3. Speed planning algorithm: Based on nonlinear programming technology, combined with the current position, speed, turn signal and other information of the vehicle, as well as preset control parameters, plan a target speed sequence that meets the requirements of road regulations and meets the vehicle dynamic performance and passenger comfort. The information interaction between the cloud environment and the vehicle includes: Step S1701. The connected vehicle 1704 monitors the real road traffic environment 1705 and uploads information such as location, speed, turn signal, etc. to the cloud 1703. Step S1702. The vehicle 1704 receives the target speed sequence sent by the cloud 1703 for longitudinal control. This set of processes is carried out at a fixed frequency, which is approximately once every 100 milliseconds or once every 100 milliseconds, and can be configured.
[0245] On the road section, when there are no dynamic traffic participants in front of the vehicle, the vehicle directly drives according to the speed planning of the target speed sequence issued by the cloud; on the road section, when there are dynamic traffic participants in front of the vehicle (perceived by the sensing equipment on the single vehicle) and the vehicle is changing lanes, the vehicle comprehensively considers the cloud-based speed planning and the single vehicle speed planning; in and near the intersection (within 80 meters around the intersection), the vehicle comprehensively considers the cloud-based speed planning and the single vehicle speed planning.
[0246] Specifically, the vehicle executes step S1601 to obtain a target speed sequence sent from the cloud, where the target speed sequence includes expected speeds at multiple expected moments.
[0247] Specifically, the target vehicle speed sequence is sent to the connected vehicle, which is the vehicle's expected speed and expected acceleration sequence in the next few seconds, such as the expected speed and expected acceleration after 0.1 seconds in the future, the expected speed and expected acceleration after 0.2 seconds in the future, the expected speed and expected acceleration after 0.3 seconds in the future...
[0248] The longitudinal control logic of the connected vehicle is that at each expected moment:
[0249] Execute step S1602 to obtain the front obstacle information, and calculate the first acceleration at multiple expected moments according to the front obstacle information.
[0250] Specifically, a first acceleration for avoiding the vehicle in front and the pedestrian in front is calculated based on the intelligence of the single vehicle, and the existing vehicle following algorithm can be used.
[0251] Execute step S1603 to calculate a second acceleration of the vehicle for tracking the expected speed at each expected moment based on the current vehicle speed and the expected speed at each expected moment.
[0252] Specifically, a second acceleration tracking the expected speed is calculated based on the target speed sequence sent from the cloud. Specifically, the existing control algorithm can be used. A simple method is feedback control. An expected speed in the speed sequence sent from the cloud is selected as the target speed, such as the target speed after 0.5 seconds. The deviation between the target speed and the current speed is divided by 0.5 seconds to obtain the second acceleration tracking the target speed.
[0253] Finally, step S1604 is executed. If there is an avoidance requirement, the minimum value of the first acceleration and the second acceleration at the expected moment is selected as the execution acceleration; otherwise, the second acceleration is selected as the execution acceleration and the execution acceleration is executed.
[0254] Specifically, if there is a need to avoid, a first acceleration to avoid the vehicle in front or pedestrians in front will be calculated based on the single vehicle intelligence, and a second acceleration to track the expected speed will be calculated based on the target speed sequence sent from the cloud. The minimum of these two accelerations will be used as the final execution acceleration. If there are no pedestrians or vehicles in front that need to be avoided, only the second acceleration calculated by the target speed sequence sent from the cloud will be used as the execution acceleration.
[0255] This execution acceleration is input into the drive-by-wire chassis, which controls the vehicle's throttle and brakes to execute this execution acceleration.
[0256] Among them, the bicycle needs to have a certain level of intelligence to cooperate with the cloud to perform the above functions. For example, the bicycle needs to have the ability to perceive dynamic obstacles and lane lines in order to avoid obstacles in front and to drive along the center line of the current lane. The bicycle needs to have positioning capabilities to report the position, speed, heading, etc. to the cloud. The bicycle needs to have networking capabilities and be able to communicate with the cloud. The bicycle needs to have a wire-controlled chassis and a simple control algorithm.
[0257] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0258] like Fig.18 The figure shows a hardware structure diagram of an electronic device of the present invention, including:
[0259] at least one processor 1801; and,
[0260] A memory 1802 is communicatively connected to at least one of the processors 1801; wherein:
[0261] The memory 1802 stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the vehicle speed cloud planning method as described above or the vehicle acceleration control method as described above.
[0262] In some embodiments, the electronic device is a cloud server that executes the vehicle speed cloud planning method as described above.
[0263] In some embodiments, the electronic device is an electronic controller unit or a scalable multi-domain control unit of a vehicle, which executes the vehicle acceleration control method as described above.
[0264] Fig.18 A processor 1801 is taken as an example.
[0265] The electronic device may further include: an input device 1803 and a display device 1804 .
[0266] The processor 1801, the memory 1802, the input device 1803 and the display device 1804 may be connected via a bus or other means, and the figure takes the connection via a bus as an example.
[0267] The memory 1802 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the vehicle speed cloud planning method in the embodiment of the present application, for example, Figure 1 , Figure 2,or Fig.16 The processor 1801 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 1802, that is, implementing the vehicle speed cloud planning method in the above embodiment or implementing the vehicle acceleration control method in the above embodiment.
[0268] The memory 1802 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the vehicle speed cloud planning method or the vehicle acceleration control method, etc. In addition, the memory 1802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1802 may optionally include a memory remotely arranged relative to the processor 1801, and these remote memories may be connected to a device for executing the vehicle speed cloud planning method or the vehicle acceleration control method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0269] The input device 1803 can receive input user clicks and generate signal input related to user settings and function control of the vehicle speed cloud planning method or the vehicle acceleration control method. The display device 1804 can include display devices such as a display screen.
[0270] The one or more modules are stored in the memory 1802, and when executed by the one or more processors 1801, the vehicle speed cloud planning method or vehicle acceleration control method in any of the above method embodiments is executed.
[0271] The present invention utilizes cloud algorithms and high-precision map information to know the changes in road conditions in advance, adjust the vehicle speed in real time, and avoid emergency deceleration when entering special sections such as curves, thereby reducing response delays and improving driving safety. Through the design of smooth changes in speed and acceleration over time, the present invention can avoid frequent sudden acceleration and deceleration, reduce the bumpy feeling experienced by passengers, and improve riding comfort. The present invention combines speed limit adaptability planning and dynamic constraint processing to ensure that the vehicle always travels within the statutory speed limit, abides by traffic regulations, reduces the risk of speeding, and ensures driving compliance. By optimizing target setting and trade-offs, the present invention can flexibly adjust the control strategy to adapt to different road conditions and control requirements, improve the predictability and adaptability of vehicle driving, and optimize driving efficiency. Since the present invention no longer needs to carry high-precision maps on the bicycle, it no longer needs to consider the constraints of road shape, and only needs to consider the impact of obstacles, thereby reducing costs and technical difficulties.
[0272] An embodiment of the present invention provides a storage medium, which stores computer instructions. When a computer executes the computer instructions, it is used to execute all steps of the vehicle speed cloud planning method as described above or all steps of the vehicle acceleration control method as described above.
[0273] In the context of the present disclosure, a storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. The storage medium may be a machine-readable signal medium or a machine-readable storage medium. Alternatively, the storage medium may be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0274] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements all steps of the vehicle speed cloud planning method as described above or the vehicle acceleration control method as described above.
[0275] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A vehicle speed cloud planning method, It is characterized in that include: Get the current position and speed of the vehicle; Determining a local path of the vehicle based on the current position; Acquire path information on the local path, and determine a speed limit point sequence on the local path according to the path information, wherein the local path includes a plurality of displacements, and the speed limit point sequence includes a speed limit corresponding to each displacement; According to the current vehicle speed, the current displacement, and the speed limit point sequence, vehicle speed planning is performed to obtain a target speed sequence, wherein the target speed sequence includes expected speeds at multiple expected moments.
2. The vehicle speed cloud planning method according to claim 1, It is characterized in that The path information includes the road speed limit and curvature radius at each displacement location, and determining the speed limit point sequence on the local path according to the path information includes: According to the curvature radius of each displacement position, the speed limit at the displacement position limited by the lateral acceleration is calculated, and the speed limit of each displacement is calculated as the minimum value of the speed limit at the displacement position limited by the lateral acceleration and the road speed limit, and each displacement and the corresponding speed limit are used as a speed limit point sequence.
3. The vehicle speed cloud planning method according to claim 1, It is characterized in that The vehicle speed planning is performed according to the current vehicle speed, the current displacement, and the speed limit point sequence to obtain a target speed sequence, including: Smoothing the speed limit point sequence to obtain a smoothed speed limit displacement curve, wherein the smoothed speed limit displacement curve is a smoothed speed limit corresponding to the displacement; According to the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve, vehicle speed planning is performed to obtain a target speed sequence including expected speeds at multiple expected moments.
4. The vehicle speed cloud planning method according to claim 3, It is characterized in that The smoothing of the speed limit point sequence includes: Establish speed limit smoothing objective function J 1 for: Among them, v limit,i is the smoothed speed limit corresponding to the ith displacement, v limitOrigin,i is the speed limit corresponding to the ith displacement of the speed limit point sequence, is the first-order derivative of the smoothed speed limit corresponding to the ith displacement, is the second-order derivative of the smoothed speed limit corresponding to the ith displacement, is the third-order derivative of the smoothed speed limit corresponding to the ith displacement, w x is the first smoothing weight value, w dx is the second smoothing weight value, w ddx is the third smoothing weight value, w dddx is the fourth smoothing weight value; The continuity constraints of the smoothed speed limit on the 0th order derivative, first order derivative, second order derivative, and third order derivative of the displacement are established as follows: Among them, v limit,k is the smoothed speed limit corresponding to the kth displacement, v limit,k+1 is the smoothed speed limit corresponding to the k+1th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the first-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k-th displacement, is the second-order derivative of the smoothed speed limit corresponding to the k+1th displacement, is the third-order derivative of the smoothed speed limit corresponding to the k-th displacement, ds is the first-order derivative of the displacement, ds 2 is the second-order derivative of displacement, dt is the first-order derivative of time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time; The upper and lower speed limit constraints are established as follows: Among them, v limitOrigin,k is the speed limit corresponding to the kth displacement of the speed limit point sequence, is the minimum value of the first-order derivative of the speed limit to displacement after smoothing, is the maximum value of the first-order derivative of the speed limit to displacement after smoothing, is the minimum value of the second-order derivative of the speed limit to displacement after smoothing, is the maximum value of the second-order derivative of the speed limit with respect to displacement after smoothing, is the minimum value of the third-order derivative of the speed limit with respect to displacement after smoothing, is the maximum value of the third-order derivative of the speed limit with respect to displacement after smoothing; Based on the speed limit smoothing objective function, the continuity constraint and the upper and lower limit constraints, a quadratic programming solver is called to optimize and solve the speed limit point sequence to obtain a smoothed speed limit displacement curve.
5. The vehicle speed cloud planning method according to claim 3, It is characterized in that The vehicle speed planning is performed according to the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve to obtain a target speed sequence including expected speeds at multiple expected moments, including: Establish the speed planning objective function J 2 for: J 2 :=w 1 Σ(v-v max ) k 2 +w 2 Σa k 2 +w 3 ∑j k 2 Where v is the expected speed, v max is the maximum speed of the vehicle, (vv max ) k is the deviation between the expected speed at the kth expected moment and the maximum speed of the vehicle, a k is the expected acceleration of the vehicle at the kth expected moment, j k is the target acceleration of the vehicle at the kth expected moment, w 1 is the weight value of the first vehicle speed planning, w 2 is the weight value of the second vehicle speed planning, w 3 Plan a weight value for the third vehicle speed; Establishing a vehicle speed planning constraint based on the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve; Based on the vehicle speed planning objective function and the vehicle speed fixed constraint, a nonlinear programming solver is called to perform optimization to obtain a target speed sequence including expected speeds at multiple expected moments.
6. The vehicle speed cloud planning method according to claim 5, It is characterized in that The speed planning constraints include: speed planning monotonicity constraints, speed planning continuity constraints, speed planning upper and lower limit constraints, and speed planning initial condition constraints. The speed planning constraints are established based on the current vehicle speed, the current displacement, and the smoothed speed limit displacement curve, including: Establish the monotonicity constraint of vehicle speed planning: s k+1 ≥s k , where s k+1 is the expected displacement of the vehicle at the k+1th expected moment, s k is the expected displacement of the vehicle at the kth expected moment; To create a continuity constraint: Among them, v k is the expected speed of the vehicle at the kth expected moment, v k+1 is the expected speed of the vehicle at the k+th expected time, a k is the expected acceleration of the vehicle at the kth expected moment, a k+1 is the expected acceleration of the vehicle at the k+th expected moment, j k is the target acceleration of the vehicle at the kth expected moment, dt is the first-order derivative with respect to time, dt 2 To find the second-order derivative with respect to time, dt 3 To find the third derivative with respect to time; Establish upper and lower speed planning constraints: Among them, v min is the minimum speed of the vehicle, v limit (s k ) is the smoothed speed limit corresponding to the expected displacement of the vehicle at the kth expected moment in the smoothed speed limit displacement curve, a min is the minimum acceleration of the vehicle, a max is the maximum acceleration of the vehicle, j min is the minimum acceleration of the vehicle, j max is the maximum acceleration of the vehicle; The initial condition constraints for speed planning are established as follows: the initial expected speed is the current speed, and the initial expected displacement is the current displacement.
7. A vehicle acceleration control method, It is characterized in that include: Obtain a target speed sequence sent from the cloud, where the target speed sequence includes expected speeds at multiple expected moments; At each expected moment: Obtaining the obstacle information ahead, and calculating the first acceleration at multiple expected moments according to the obstacle information ahead, Calculating a second acceleration for the vehicle to track the expected speed at each expected moment based on the current vehicle speed and the expected speed at each expected moment; If there is an avoidance requirement, the minimum value of the first acceleration and the second acceleration at the expected moment is selected as the execution acceleration; otherwise, the second acceleration is selected as the execution acceleration and the execution acceleration is executed.
8. An electronic device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the vehicle speed cloud planning method as described in any one of claims 1 to 6 or the vehicle acceleration control method as described in claim 7.
9. A storage medium, It is characterized in that The storage medium stores computer instructions, which, when executed by a computer, are used to execute all steps of the vehicle speed cloud planning method as described in any one of claims 1 to 6 or all steps of the vehicle acceleration control method as described in claim 7.
10. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instruction is executed by a processor, it implements the vehicle speed cloud planning method as described in any one of claims 1 to 6 or the vehicle acceleration control method as described in claim 7.
Citation Information
Cited By
Vehicle control method, controller, vehicle, storage medium and program product
CN119389239A
Vehicle control methods, controllers, vehicles, storage media, and software products
CN119389239B
Method and device for adjusting speed limit of vehicle
CN119568172A
