Method and apparatus for outputting information
By using the optimal control problem model and local collision avoidance constraints in vehicle path planning, the problem that vehicle shape and kinematic capabilities are not considered in the existing technology is solved, and more accurate and efficient path planning is achieved.
Patent Information
- Application Number
- CN201910248198.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-03-29
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-03-29
AI Technical Summary
The existing technology fails to effectively consider the vehicle shape, kinematic capabilities, head orientation restrictions and the complexity of the control problem model in vehicle path planning, resulting in rough planning results and difficulty in solving quickly.
The optimal control problem model is used to establish the optimization objectives and full-range collision avoidance constraints by obtaining scene information, and transform them into local collision avoidance constraints. The difference method and sequential quadratic programming algorithm are used to solve the problem, and finally the vehicle's motion path is output.
It realizes the consideration of local collision avoidance constraints during vehicle movement, improves the accuracy and solution efficiency of path planning, and ensures the vehicle's various task processing capabilities when moving at low speeds.
Smart Images

Figure CN111832142B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and more particularly to a method and device for outputting information. Background Art
[0002] Autonomous driving vehicles are high-tech complexes that integrate environmental perception, planning and decision-making, control execution, and information interaction. The planning and decision-making module is responsible for generating the vehicle's driving behavior and is the key to reflecting the vehicle's intelligence level. The planning and decision-making module includes mission planning, route planning, behavior planning, and motion planning. The motion planning link is responsible for generating the vehicle's local motion trajectory and is a direct factor in determining the vehicle's driving quality. Path planning refers to the generation of a geometric curve that connects the starting point and end point of the vehicle's movement, and satisfies the vehicle's kinematic laws and does not collide with obstacles in the environment. Common path planning methods are mainly divided into geometric methods, sampling methods, numerical optimization methods, and machine learning methods. The existing technology has the following disadvantages:
[0003] First, vehicles are often treated as point masses, and the shape of the vehicle body cannot be considered.
[0004] Second, the vehicle kinematic capabilities (i.e., non-holonomic constraints) cannot be effectively considered, and the curves are often just broken lines and are relatively rough.
[0005] Third, the vehicle's front direction constraints at the start and end times cannot be imposed.
[0006] Fourth, if a complete optimal control problem model is used to describe the path planning task, the problem model will be too large to be solved quickly. Summary of the invention
[0007] Embodiments of the present disclosure provide methods and devices for outputting information.
[0008] In a first aspect, an embodiment of the present disclosure provides a method for outputting information, comprising: obtaining scene information of a path to be planned, wherein the scene information includes: obstacle location information, vehicle initial and final locations, and status information; establishing an optimal control problem model based on the scene information, wherein the optimal control problem model includes an optimization objective and global collision avoidance constraints; transforming the global collision avoidance constraints into local collision avoidance constraints; solving the optimal control problem model, and outputting the results.
[0009] In some embodiments, the optimal control problem model also includes kinematic equation constraints and boundary value constraints.
[0010] In some embodiments, the optimization objective includes at least one of the following: the vehicle movement path is shortest, the cumulative change in vehicle curvature is less than a predetermined curvature value, and the distance between the vehicle and the obstacle is greater than a predetermined distance value.
[0011] In some embodiments, the kinematic equation constraints are modeled with distance as the independent variable.
[0012] In some embodiments, solving the optimal control problem model includes: discretizing the optimal control problem model using a differential method; and solving the discretized optimal control problem model using a sequential quadratic programming algorithm.
[0013] In the second aspect, an embodiment of the present disclosure provides a device for outputting information, comprising: an acquisition unit, configured to acquire scene information of a path to be planned, wherein the scene information includes: obstacle location information, vehicle initial and final locations, and status information; an establishment unit, configured to establish an optimal control problem model based on the scene information, wherein the optimal control problem model includes an optimization objective and global collision avoidance constraints; a transformation unit, configured to transform the global collision avoidance constraints into local collision avoidance constraints; and a solution unit, configured to solve the optimal control problem model and output the result.
[0014] In some embodiments, the optimal control problem model also includes kinematic equation constraints and boundary value constraints.
[0015] In some embodiments, the optimization objective includes at least one of the following: the vehicle movement path is shortest, the cumulative change in vehicle curvature is less than a predetermined curvature value, and the distance between the vehicle and the obstacle is greater than a predetermined distance value.
[0016] In some embodiments, the kinematic equation constraints are modeled with distance as the independent variable.
[0017] In some embodiments, the solving unit is further configured to: discretize the optimal control problem model using a difference method; and solve the discretized optimal control problem model using a sequential quadratic programming algorithm.
[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement any method as described in the first aspect.
[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, any method in the first aspect is implemented.
[0020] The method and device for outputting information provided by the embodiments of the present disclosure propose a spatiotemporal decoupling strategy, which allows the vehicle to consider the collision avoidance constraints within the current local range at different movement mileage positions - after all, the vehicle will never collide with an obstacle that is far away from its current position. On the basis of adopting the optimal control problem model, the drawbacks of the prior art can be overcome. Specifically, a unified method can be used to describe the drivable space and the space occupied by obstacles in the environment in which the vehicle is located, and based on this, the algorithm can widely handle various tasks of the vehicle moving at low speeds. If the planning problem has a solution, the algorithm of the present disclosure will definitely be able to obtain this solution without failing to solve it (that is, the algorithm is complete). The motion planning problem is solved by using a computationally optimal control method, and the solution efficiency can be satisfactory. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0022] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
[0023] Figure 2 is a flow chart of an embodiment of a method for outputting information according to the present disclosure;
[0024] Figure 3 is a schematic diagram of an application scenario of the method for outputting information according to the present disclosure;
[0025] Figure 4 is a flow chart of yet another embodiment of a method for outputting information according to the present disclosure;
[0026] Figure 5 is a structural schematic diagram of an embodiment of a device for outputting information according to the present disclosure;
[0027] Figure 6 It is a structural diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] Figure 1 An exemplary architecture 100 is shown to which the method for outputting information or the apparatus for outputting information of the present disclosure can be applied.
[0031] like Figure 1 As shown, the system architecture 100 may include a server 101, a network 102, and vehicles 103, 104, 105. The network 102 is used to provide a medium for communication links between the server 101 and the vehicles 103, 104, 105. The network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables.
[0032] The server 101 interacts with the vehicles 103 , 104 , 105 via the network 102 to receive or send messages, etc. Various communication client applications for interacting with the server 101 may be installed on the vehicles 103 , 104 , 105 .
[0033] Vehicles 103, 104, 105 include but are not limited to wheeled mobile vehicles, tracked mobile vehicles, and the like. Vehicles 103, 104, 105 are equipped with a vehicle control system. The vehicle control system can be hardware or software. When vehicles 103, 104, 105 are hardware, they can be various electronic devices with communication functions that can control the vehicle to travel according to the received path to be traveled. When the vehicle control system is software, it can be installed in the vehicles listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0034] The server 101 may be a server that provides various services, such as a background server that controls the driving paths of the vehicles 103, 104, and 105. As an example, the background server may generate a planned path for each vehicle according to the optimization objective and the constraint conditions, and then send the planned path of the vehicle to each vehicle so that the vehicle drives according to the received planned path.
[0035] The server 101 may be hardware or software. When the server 101 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server 101 is software, it may be implemented as multiple software or software modules (for example, for providing distributed services), or as a single software or software module. No specific limitation is made here.
[0036] It should be noted that the method for outputting information provided in the embodiments of the present disclosure is generally executed by the server 101 , and accordingly, the device for outputting information is generally disposed in the server 101 .
[0037] It should be understood that Figure 1 The number of servers, networks, and vehicles in the embodiment is only illustrative. Any number of servers, networks, and vehicles may be provided as required.
[0038] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for outputting information according to the present disclosure. The method for outputting information comprises the following steps:
[0039] Step 201, obtaining scene information of the path to be planned.
[0040] In this embodiment, the execution subject of the method for outputting information (for example Figure 1 The server shown) can be executed by the execution body of the method (for example Figure 1 The server shown in the figure can obtain scene information for planning the path, and the scene information may include: obstacle location information, vehicle starting and ending locations, and status information. The obstacles here may be pedestrians or objects that hinder the vehicle's travel. The objects here may include other vehicles, roadblocks, trees, etc. If the obstacle is stationary, the obstacle location information can be obtained from the map. If the obstacle is moving, the obstacle location information can be obtained through vehicle-mounted sensors, or by taking photos with cameras next to the road, drone aerial photography, etc. The status information may include information such as the vehicle's speed and attitude angle.
[0041] Step 202: establishing an optimal control problem model according to the scene information, wherein the optimal control problem model includes an optimization target and full-process collision avoidance constraints.
[0042] In this embodiment, an initial path can be generated according to the map based on the starting and ending positions of the vehicle. For vehicles that may collide, a new path to be driven can be generated to replace the initial path. At this time, the above-mentioned execution subject can construct an optimal control problem model based on the path to be driven of each vehicle.
[0043] Here, constructing an optimal control problem model generally refers to the process of modeling at least one of the above-mentioned vehicles using an optimal control algorithm, taking a preset target as an optimization target, and taking a preset constraint condition as a constraint condition. The above-mentioned preset targets may include: the shortest vehicle motion path, the cumulative change in vehicle curvature is less than a predetermined curvature value, and the distance between the vehicle and the obstacle is greater than a predetermined distance value. The above-mentioned preset constraints may include: kinematic equation constraints, collision avoidance constraints, and boundary value constraints. The collision avoidance constraints may include full-course collision avoidance constraints and local collision avoidance constraints. The prior art uses full-course collision avoidance constraints. The main idea of the spatiotemporal strategy proposed in the present disclosure is to allow the vehicle to consider the collision avoidance constraints within the current local range at different movement mileage positions: after all, the vehicle will never collide with an obstacle far away from its current position.
[0044] It should be noted that the above kinematic equations can be equations for describing vehicle motion models (such as a 2-degree-of-freedom model, a 9-degree-of-freedom model, a 16-degree-of-freedom model, etc.). Correspondingly, collision avoidance constraints are usually constraints constructed to avoid collisions between the established vehicle motion models. Boundary value constraints are usually conditions that constrain the position, velocity, acceleration, etc. of the established vehicle motion models at the initial moment and / or the end moment. The kinematic equations can be a 2-degree-of-freedom vehicle kinematic model or a monorail bicycle model, etc. Taking the monorail bicycle model as an example, the process of establishing the optimal control problem model is specifically described below.
[0045] Specifically, the kinematic constraints involved in the present disclosure are written by the well-known single-track bicycle model. The bicycle model is a simple and effective simplification of the motion of a car. The bicycle model is based on the following assumptions:
[0046] 1. The vertical movement of the vehicle is ignored, that is to say, the vehicle we describe is a moving object on a two-dimensional plane (equivalent to our bird's-eye view from the sky).
[0047] 2. Assume that the structure of the vehicle is like that of a bicycle, that is, the two front tires of the vehicle have a constant angle and rotation speed, and the same is true for the two rear tires. Then the front and rear tires can each be described by one tire.
[0048] 3. Assume that the vehicle moves like a bicycle, which means that the front tires control the turning angle of the vehicle.
[0049] Since several differential equations in the bicycle model take time t as the independent variable, we substitute the relationship v=ds / dt into them, and we can get the bicycle model with distance s as the independent variable:
[0050]
[0051] Among them, s f Represents the distance traveled by the vehicle at the end of the motion process (s f belongs to the decision variable), (x(s), y(s)) is the coordinate of the midpoint of the rear axle of the vehicle, the discrete variable v(s)∈{-1,1} represents the direction of the vehicle's speed, φ(s) is the deflection angle of the front wheel of the vehicle, θ(s) corresponds to the attitude angle of the vehicle in the coordinate system, L w represents the wheelbase of the front and rear wheels. In addition, the kinematic constraints also include constraints on variables such as φ(s) and dφ(s) / ds. Since φ(s) always appears as a part of tanφ(s) in formula (1), tanφ(s) can be directly replaced by u φ (s), the advantage of this is that the significantly non-convex constraints in the model will be removed losslessly, thus making the solution simpler.
[0052] Boundary value constraints are mainly used to limit the vehicle to s = 0 and s = s f The motion state at the moment. That is, determine x(s=0), y(s=0), θ(s=0), x(s=s f ),y(s=s f ),θ(s=s f )wait.
[0053] The collision avoidance constraint can be written as
[0054] collision_avoidance(x(s),y(s),θ(s),k)≥0,s∈[0,s f ],k∈Ψ. (2)
[0055] Where Ψ is the index set of the number of obstacles. If the established model is complete, the collision avoidance constraint condition needs to be in the whole motion process s∈[0,s f ] is also true for all obstacles. The specific writing of the function collision_avoidance() is beyond the scope of detailed discussion of this patent, and various modeling methods can be referred to.
[0056] In practice, the execution subject may determine whether the vehicle and the obstacle will collide by various methods. As an example, the execution subject may select a certain number of time points, and then for each time point, the execution subject may determine the position to be driven to by the vehicle and the position of the obstacle from the vehicle's trajectory to be driven, and then determine whether the distance between the vehicle and the position to be driven to by the obstacle at that time point is greater than a preset distance threshold. If the distance between the position to be driven to by the vehicle and the obstacle at each time point is greater than the preset distance threshold, it can be determined that the vehicle will not collide.
[0057] In some optional implementations of this embodiment, the above-mentioned determination of whether the vehicle will collide with the obstacle may include a collision determination step. The above-mentioned collision determination step may specifically include the following steps.
[0058] First, based on the vehicle's to-be-traveled trajectory and the location information of the obstacle, the position and posture information of the vehicle at the target time is obtained. The target time may be the time obtained by sampling (e.g., uniform sampling) the time period indicated by the selected vehicle's to-be-traveled trajectory. It is understood that there may be one or more target times.
[0059] The above-mentioned execution subject can obtain the position to be driven to at each target time from the selected vehicle's trajectory to be driven, and obtain its posture information. Similarly, the above-mentioned execution subject can obtain the position of the obstacle at each target time, and obtain the posture information of the obstacle. In practice, the above-mentioned execution subject can obtain the posture information of the vehicle through a variety of methods. In some application scenarios, the vehicle may be equipped with an on-board device for collecting the posture information of the vehicle. Thus, the above-mentioned execution subject can obtain the posture information collected by the on-board device from the vehicle. In other application scenarios, the above-mentioned execution subject can obtain the image of the vehicle at the target time from the camera installed at the intersection where the takeover area is located, and then identify the posture information of the vehicle from the image.
[0060] Second, based on the position and posture information of the vehicle and the obstacle at the target time, the coverage areas of the vehicle and the obstacle at the target time are generated respectively.
[0061] The above coverage area is used to characterize the area occupied by the vehicle and the obstacle in the lane. The area occupied by the vehicle and the obstacle in the lane can be, for example, the area occupied by the vehicle and the obstacle projected onto the lane, or can be, for example, the circumscribed geometric area (such as a rectangular area) of the area occupied by the vehicle and the obstacle projected onto the lane. It should be noted that the coverage area is not the area occupied by the vehicle and the obstacle in the real lane, but the area occupied by the vehicle and the obstacle projected onto the virtual two-dimensional plane established according to the road.
[0062] It can be understood that, based on the acquired position and posture information, the execution subject can project the vehicle and the obstacle into the virtual two-dimensional plane to generate the coverage area of the vehicle. Thus, the execution subject can generate the coverage area of the vehicle and the obstacle at each target time.
[0063] Third, in response to determining that the coverage areas of the vehicle and the obstacle at the target time do not overlap, it is determined that the vehicle and the obstacle will not collide.
[0064] In response to determining that the coverage areas of the vehicle and the obstacle at each target time do not overlap, the execution entity may determine that the vehicle and the obstacle will not collide.
[0065] In some optional implementations of the present embodiment, the above-mentioned determination of whether the vehicle and the obstacle will collide may also include: in response to determining that the coverage areas of the vehicle and the obstacle overlap at the target time, translating the initial position of the vehicle by a preset distance in the opposite direction of the current driving direction, generating a new initial position of the vehicle, and using the new initial position as the initial position of the vehicle; based on the initial position of the vehicle and the above-mentioned preset driving speed, updating the vehicle's to-be-traveled trajectory, and continuing to execute the above-mentioned collision determination step.
[0066] In these implementations, in response to determining that the coverage areas of the vehicle and the obstacle overlap at any target time, the execution subject may perform the following steps. First, the initial position of the selected vehicle may be translated by a preset distance in the opposite direction of the current driving direction to obtain a new initial position. Then, based on the new initial position and the preset driving speed, a new to-be-driven trajectory of the selected vehicle is generated to replace the previous to-be-driven trajectory. Then, the collision determination step may continue to be performed.
[0067] Thus, it can be ensured that the coverage areas of the vehicle and the obstacle at any target time do not overlap, and the non-overlapping coverage areas mean that the two will not collide. Then, based on the updated trajectory to be driven, there is no vehicle that will collide in the at least one vehicle.
[0068] At this point, the motion planning problem can be fully established as:
[0069] Optimization target Υ,
[0070] Constraints:
[0071] Kinematic equation constraints, (3)
[0072] Boundary value constraints,
[0073] Collision Avoidance Constraints
[0074] Among them, Υ can be freely selected according to user needs, for example, choosing to make the vehicle's movement distance as short as possible, the cumulative change of the vehicle's curvature as small as possible (that is, the curvature is smoother), the vehicle is as far away from obstacles as possible, etc.
[0075] Step 203: transform the global collision avoidance constraint condition into a local collision avoidance constraint condition.
[0076] In this embodiment, the main idea of the spatiotemporal strategy is to let the vehicle consider the collision avoidance constraints within the current local range at different movement mileage positions: after all, the vehicle will never collide with an obstacle far away from its current position. Therefore, formula (2) is modified to no longer require the vehicle to avoid collisions at each mileage (i.e. ) are all subject to collision avoidance restrictions for all obstacles. The specific modification method is:
[0077] collision_avoidance(x(s),y(s),θ(s),k)≥0,s∈[s i ,s i+1 ],k∈Ψ i .(4)
[0078] Among them [s i ,s i+1 ] corresponds to the vehicle's complete movement mileage [0,s f ] is a mileage interval segment in i It is a collision avoidance constraint condition that must be considered when the vehicle moves into this interval.
[0079] Assume that there are N such intervals, by limiting
[0080]
[0081] You can get the value for the complete distance [0,s f ]Path planning problem on:
[0082] Optimization target min s f ,
[0083] Constraints:
[0084] Kinematic equation constraints, boundary value constraints, (6)
[0085] Collision avoidance constraint: Formula (4),
[0086] And formula (5)
[0087] in, is a set of integers.
[0088] Step 204, solving the optimal control problem model and outputting the result.
[0089] In this embodiment, after the path planning problem is established according to formula (6), a numerical solution can be used to solve it, and then the path trajectory can be obtained. The solution result may include the coordinates of the midpoint of the rear wheel axle of the vehicle and the attitude angle. Various existing methods for numerically solving the optimal control model can be used to obtain the numerical solution of the optimal control model. For example, the variational method is used to solve the numerical solution of the optimal control model, the minimum principle is used to solve the numerical solution of the optimal control model, and the dynamic programming method is used to solve the numerical solution of the optimal control model.
[0090] It should be noted that the above-mentioned method of numerically solving the optimal control model using the variational method, the minimum principle method or the dynamic programming method is a well-known technology that is currently widely used and studied, and will not be described in detail here.
[0091] Continue to see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of an application scenario of the method for outputting information according to this embodiment. Figure 3 In the application scenario, the server obtains the scene information of the path that the vehicle 300 is going to travel, including the route map, the starting position and the ending position, and the position information of obstacles 301, 302, and 303. The server establishes an optimal control problem model that can avoid obstacles 301, 302, and 303 throughout the entire process based on the scene information. Afterwards, the optimal control problem model is modified so that the vehicle considers the collision avoidance constraints within the current local range at different movement mileage positions. In area 1, only avoiding collision with obstacle 301 needs to be considered, in area 2, only avoiding collision with obstacle 302 needs to be considered, and in area 3, only avoiding collision with obstacle 303 needs to be considered.
[0092] The method provided by the above-mentioned embodiment of the present disclosure improves the solution speed by allowing the vehicle to consider the collision avoidance constraints within the current local range and the path planning solution process at different movement mileage positions.
[0093] Further references Figure 4 , which shows a process 400 of another embodiment of a method for outputting information. The process 400 of the method for outputting information includes the following steps:
[0094] Step 401, obtaining scene information of the path to be planned.
[0095] Step 402: Establish an optimal control problem model based on the scene information, wherein the optimal control problem model includes an optimization target and full-process collision avoidance constraints.
[0096] Step 403: transform the global collision avoidance constraint condition into a local collision avoidance constraint condition.
[0097] Steps 401-403 are substantially the same as steps 201-203, and thus are not described in detail herein.
[0098] Step 404: discretize the optimal control problem model using a difference method.
[0099] In this embodiment, when the dynamic programming method is used to solve the optimal control problem for a continuous system, the continuous system can be discretized first, and the continuous equation can be approximately replaced by a finite difference equation, and then the discrete dynamic programming method can be used to solve it.
[0100] Step 405: Use a sequential quadratic programming algorithm to solve the discretized optimal control problem model.
[0101] In this embodiment, the SQP (sequence quadratic program) algorithm is an effective algorithm for solving small and medium-sized programming constraint optimization problems. This method can add some constraints to certain variables. If the initial value does not satisfy the constraint, then after the optimization algorithm is iterated, a new value that satisfies the constraint can also be generated. An optimization method that is attempted to be used in the self-intersection removal adaptive process.
[0102] from Figure 4 It can be seen that Figure 2 Compared with the corresponding embodiments, the process 400 of the method for outputting information in this embodiment embodies the use of a "discretization + optimization" approach to solve the problem, thereby improving the efficiency of the solution.
[0103] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for outputting information. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0104] like Figure 5 As shown, the device 500 for outputting information in this embodiment includes: an acquisition unit 501, an establishment unit 502, a transformation unit 503 and a solution unit 504. The acquisition unit 501 is configured to acquire scene information of the path to be planned; the establishment unit 502 is configured to establish an optimal control problem model according to the scene information, wherein the optimal control problem model includes an optimization target and a global collision avoidance constraint condition; the transformation unit 503 is configured to transform the global collision avoidance constraint condition into a local collision avoidance constraint condition; the solution unit 504 is configured to solve the optimal control problem model and output the result.
[0105] In this embodiment, the specific processing of the acquisition unit 501, the establishment unit 502, the transformation unit 503 and the solution unit 504 of the device for outputting information 500 can refer to Figure 2 Corresponding to step 201, step 202, step 203, and step 204 in the embodiment.
[0106] In some optional implementations of this embodiment, the optimal control problem model also includes kinematic equation constraints and boundary value constraints.
[0107] In some optional implementations of this embodiment, the optimization target includes at least one of the following: the vehicle movement path is shortest, the cumulative change in vehicle curvature is less than a predetermined curvature value, and the distance between the vehicle and the obstacle is greater than a predetermined distance value.
[0108] In some optional implementations of this embodiment, the kinematic equation constraints are modeled using the distance as the independent variable.
[0109] In some optional implementations of this embodiment, the solving unit 504 is further configured to: discretize the optimal control problem model using a difference method; and solve the discretized optimal control problem model using a sequential quadratic programming algorithm.
[0110] Reference below Figure 6 , which shows an electronic device (eg, Figure 1 A schematic diagram of the structure of the server in (a) 600. Figure 6 The server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0111] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0112] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0113] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are executed. It should be noted that the computer-readable medium described in the embodiment of the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus, or a device. In an embodiment of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus, or a device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
[0114] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains scene information of the path to be planned, wherein the scene information includes: obstacle location information, vehicle initial and final locations, and status information; establishes an optimal control problem model based on the scene information, wherein the optimal control problem model includes optimization objectives and full-course collision avoidance constraints; transforms the full-course collision avoidance constraints into local collision avoidance constraints; solves the optimal control problem model using discretization and optimization, and outputs the result.
[0115] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0116] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0117] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The units described may also be provided in a processor, for example, may be described as: a processor including an acquisition unit, an establishment unit, a transformation unit, and a solution unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the acquisition unit may also be described as a "unit for acquiring scene information of a path to be planned".
[0118] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. A method for outputting information, comprising: Obtaining scene information of the path to be planned, wherein the scene information includes: obstacle location information, vehicle start and end locations, and status information; An optimal control problem model is established according to the scene information, wherein the optimal control problem model includes an optimization target and full-course collision avoidance constraints, the optimization target includes that the cumulative change in curvature of the vehicle is less than a predetermined curvature value, an initial path is generated according to the map based on the initial and final positions of the vehicle, and a new path to be driven is generated for vehicles that may collide to replace the initial path; Transforming the global collision avoidance constraint condition into a local collision avoidance constraint condition, so that the vehicle considers the collision avoidance constraint condition within the current local range at different movement mileage positions; Solve the optimal control problem model and output the result.
2. The method according to claim 1, wherein: The optimal control problem model also includes kinematic equation constraints and boundary value constraints.
3. The method according to claim 1, wherein: The optimization goal also includes at least one of the following: The vehicle's moving path is the shortest and the distance between the vehicle and the obstacle is greater than a predetermined distance value.
4. The method according to claim 2, wherein: The kinematic equation constraints are modeled with distance as the independent variable.
5. The method according to claim 1, wherein: The method of solving the optimal control problem model comprises: Using a difference method to discretize the optimal control problem model; The sequential quadratic programming algorithm is used to solve the discretized optimal control problem model.
6. A device for outputting information, comprising: An acquisition unit is configured to acquire scene information of the path to be planned, wherein the scene information includes: obstacle location information, vehicle start and end locations, and state information; An establishing unit is configured to establish an optimal control problem model according to the scene information, wherein the optimal control problem model includes an optimization target and a full-course collision avoidance constraint condition, the optimization target includes that the cumulative change in curvature of the vehicle is less than a predetermined curvature value, an initial path is generated according to a map based on the initial and final positions of the vehicle, and a new path to be driven is generated for a vehicle that may collide to replace the initial path; a transformation unit configured to transform the global collision avoidance constraint condition into a local collision avoidance constraint condition, so that the vehicle considers the collision avoidance constraint condition within the current local range at different movement mileage positions; The solving unit is configured to solve the optimal control problem model and output the result.
7. The device according to claim 6, wherein: The optimal control problem model also includes kinematic equation constraints and boundary value constraints.
8. The device according to claim 6, wherein: The optimization goal also includes at least one of the following: The vehicle's moving path is the shortest and the distance between the vehicle and the obstacle is greater than a predetermined distance value.
9. The device according to claim 7, wherein: The kinematic equation constraints are modeled with distance as the independent variable.
10. The device according to claim 6, wherein: The solving unit is further configured to: Using a difference method to discretize the optimal control problem model; The sequential quadratic programming algorithm is used to solve the discretized optimal control problem model.
11. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
12. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
