An online agent for planning open space trajectories for autonomous vehicles

Through the reinforcement learning algorithm to perceive the environment and generate smooth trajectories, it solves the accuracy and safety problems of trajectory planning of autonomous vehicles in open spaces, and achieves smooth trajectory planning and safe control in open spaces.

CN112034833BActive Publication Date: 2024-09-24BAIDU USA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911266171.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-05-15
Filing Date
2019-12-11
Publication Date
2024-09-24
Estimated Expiration
2039-12-11

AI Technical Summary

Technical Problem

Traditional autonomous vehicle motion planning methods are difficult to accurately plan trajectories in open spaces, especially when there is no reference lane, and cannot effectively avoid collisions.

Method used

Using a reinforcement learning algorithm, based on the map and vehicle control information of the autonomous vehicle, it senses the environment and determines multiple trajectory states, and generates a smooth trajectory through reward prediction to automatically control the vehicle.

Benefits of technology

It achieves smooth trajectory planning and safe control of autonomous vehicles in open spaces, and is suitable for parking, U-turn and other scenarios, avoiding collisions and improving the applicable scenarios of autonomous vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112034833B_ABST
    Figure CN112034833B_ABST
Patent Text Reader

Abstract

In one embodiment, the system uses an actor-critic reinforcement learning (RL) model to generate a trajectory for an ADV in an open space. The system senses the environment around the ADV, including one or more obstacles. The system applies an RL algorithm to an initial state of the planned trajectory based on the sensed environment to determine multiple controls of the ADV to reach multiple trajectory states based on a map and vehicle control information of the ADV. The system determines a reward prediction for each control by the RL algorithm according to the target destination state. The system generates a first trajectory from the trajectory state by maximizing the reward prediction to automatically control the ADV according to the first trajectory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure generally relate to operating autonomous vehicles. More specifically, embodiments of the present disclosure relate to an online agent that uses reinforcement learning to plan open-space trajectories for autonomous vehicles (ADVs). Background Art

[0002] A vehicle operating in an autonomous mode (e.g., without a human operator) can relieve occupants, particularly the driver, from some driving-related responsibilities. When operating in autonomous mode, the vehicle can navigate to various locations using onboard sensors, allowing the vehicle to travel with minimal human interaction or, in some cases, without any passengers.

[0003] Motion planning and control are key operations in autonomous driving. However, traditional motion planning primarily estimates the difficulty of completing a given path based on its curvature and velocity, without considering the differences in characteristics between different types of vehicles. Applying the same motion planning and control to all vehicle types can be inaccurate and inefficient in some cases.

[0004] Trajectories are typically planned based on pre-marked lanes / reference lines within a high-definition (HD) map. This approach limits the applicability of autonomous vehicles with fully autonomous driving to scenarios such as open space scenarios where the model must plan trajectories without reference lanes (e.g., parking, U-turns, or three-point turns) while avoiding collisions. Summary of the Invention

[0005] In one aspect of the present disclosure, a computer-implemented method for operating an autonomous vehicle is provided, the method comprising:

[0006] Perceiving the environment around the autonomous vehicle (ADV);

[0007] applying a reinforcement learning (RL) algorithm to an initial state of the initial planned trajectory based on the perceived environment to determine a plurality of controls for the ADV to achieve a plurality of trajectory states based on a map and vehicle control information of the ADV;

[0008] determining, by an RL algorithm, a reward prediction for each of the plurality of controls based on the target destination state; and

[0009] A first trajectory is generated from the trajectory state by maximizing the reward prediction to automatically control the ADV according to the first trajectory.

[0010] In another aspect of the present disclosure, a non-transitory machine-readable medium storing instructions is provided, which, when executed by a processor, causes the processor to perform operations comprising:

[0011] Perceiving the environment around the autonomous vehicle (ADV);

[0012] applying a reinforcement learning (RL) algorithm to an initial state of the initial planned trajectory based on the perceived environment to determine a plurality of controls for the ADV to achieve a plurality of trajectory states based on a map and vehicle control information of the ADV;

[0013] determining, by an RL algorithm, a reward prediction for each of the plurality of controls based on the target destination state; and

[0014] A first trajectory is generated from the trajectory state by maximizing the reward prediction to automatically control the ADV according to the first trajectory.

[0015] In another aspect of the present disclosure, there is provided a data processing system, comprising:

[0016] processor; and

[0017] a memory coupled to the processor to store instructions that, when executed by the processor, cause the processor to perform operations comprising:

[0018] Perceiving the environment around the autonomous vehicle (ADV);

[0019] applying a reinforcement learning (RL) algorithm to an initial state of the initial planned trajectory based on the perceived environment to determine a plurality of controls for the ADV to achieve a plurality of trajectory states based on a map and vehicle control information of the ADV;

[0020] determining, by an RL algorithm, a reward prediction for each of the plurality of controls based on the target destination state; and

[0021] A first trajectory is generated from the trajectory state by maximizing the reward prediction to automatically control the ADV according to the first trajectory. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Embodiments of the present disclosure are illustrated by way of example, and not limitation, in the figures of the accompanying drawings in which like references indicate similar elements.

[0023] Figure 1 is a block diagram illustrating a networked system according to one embodiment.

[0024] Figure 2 is a block diagram illustrating an example of an autonomous driving vehicle according to one embodiment.

[0025] Figures 3A to 3B is a block diagram illustrating an example of a perception and planning system for use with an autonomous vehicle, according to one embodiment.

[0026] Figure 4 is a block diagram illustrating an example of an open space planning module according to one embodiment.

[0027] Figure 5 is a flow chart illustrating an example of a workflow of an open space planning module according to one embodiment.

[0028] Figure 6 is a flowchart illustrating an exemplary method according to one embodiment.

[0029] Figure 7 is a block diagram illustrating an example of an open space planning module according to another embodiment.

[0030] Figure 8 is a block diagram illustrating an example of a system using a reinforcement learning agent according to one embodiment.

[0031] Figure 9 is a flow chart illustrating an exemplary method according to one embodiment.

[0032] Figures 10A-10B is an example illustrating a machine learning engine for reinforcement learning according to one embodiment.

[0033] Figure 11 is a block diagram illustrating an example of an offline reinforcement learning system according to another embodiment.

[0034] Figure 12 is a block diagram illustrating an example of an actor neural network according to one embodiment.

[0035] Figure 13 is a block diagram illustrating an exemplary environment model according to one embodiment.

[0036] Figure 14 is a flow chart illustrating an exemplary method according to one embodiment.

[0037] Figure 15 is a block diagram illustrating a data processing system according to one embodiment. DETAILED DESCRIPTION

[0038] Various embodiments and aspects of the present disclosure will be described with reference to the details discussed below, and the accompanying drawings will illustrate the various embodiments. The following description and drawings are illustrative of the present disclosure and should not be construed as limiting the present disclosure. Many specific details are described to provide a comprehensive understanding of the various embodiments of the present disclosure. However, in some cases, well-known or conventional details are not described to provide a concise discussion of the embodiments of the present disclosure.

[0039] Reference in this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present disclosure. The appearances of the phrase "in one embodiment" in various places in this specification are not necessarily all referring to the same embodiment.

[0040] According to a first aspect, an open space model is generated for a system to plan a trajectory of an autonomous vehicle (ADV) in an open space. The system perceives an environment surrounding the ADV, including one or more obstacles. The system determines an objective function for the open space model based on constraints of the one or more obstacles and map information. The system iteratively: performs a first quadratic programming (QP) optimization on the objective function based on a first trajectory while fixing a first set of variables of the objective function; and performs a second QP optimization on the objective function based on the results of the first QP optimization while fixing a second set of variables of the objective function. The system generates a second trajectory based on the results of the first and second QP optimizations, and autonomously and automatically controls the ADV according to the second trajectory.

[0041] According to a second aspect, a system uses an actor-critic reinforcement learning (RL) model to generate a trajectory for an autonomous vehicle (ADV) in an open space. The system perceives the environment surrounding the ADV. Based on the perceived environment, the system applies an RL algorithm to the initial state of the planned trajectory to determine multiple controls for the ADV to achieve multiple trajectory states based on a map and vehicle control information of the ADV. The system uses the RL algorithm to determine a reward prediction for each control based on the target destination state. The system generates a first trajectory from the trajectory states by maximizing the reward prediction, and automatically controls the ADV according to the first trajectory.

[0042] According to a third aspect, a system generates a plurality of driving scenarios to train an RL agent and replays each of the driving scenarios to train the RL agent by applying an RL algorithm to an initial state of the driving scenario to determine a plurality of control actions from a plurality of discrete control / action options of an ADV to achieve a plurality of trajectory states based on a plurality of discrete trajectory state options, determining a reward prediction by the RL algorithm for each control / action, determining a judgment score for the trajectory state, and updating the RL agent based on the judgment score.

[0043] Figure 1 is a block diagram showing a network configuration of an autonomous driving vehicle according to one embodiment of the present disclosure. Figure 1, network configuration 100 includes an autonomous vehicle 101 that can be communicatively coupled to one or more servers 103 to 104 via a network 102. Although one autonomous vehicle is shown, multiple autonomous vehicles can be coupled to each other and / or to servers 103 to 104 via network 102. Network 102 can be any type of network, for example, a wired or wireless local area network (LAN), a wide area network (WAN) such as the Internet, a cellular network, a satellite network, or a combination thereof. Servers 103 to 104 can be any type of server or server cluster, such as a web or cloud server, an application server, a back-end server, or a combination thereof. Servers 103 to 104 can be data analysis servers, content servers, traffic information servers, map and point of interest (MPOI) servers, or location servers, among others.

[0044] An autonomous vehicle refers to a vehicle that can be configured to operate in an autonomous driving mode, in which the vehicle navigates through an environment with little or no input from a driver. Such an autonomous vehicle may include a sensor system having one or more sensors configured to detect information related to the environment in which the vehicle operates. The vehicle and its associated controller use the detected information to navigate through the environment. The autonomous vehicle 101 can operate in a manual mode, a fully autonomous driving mode, or a partially autonomous driving mode.

[0045] In one embodiment, the autonomous vehicle 101 includes, but is not limited to, a perception and planning system 110, a vehicle control system 111, a wireless communication system 112, a user interface system 113, and a sensor system 115. The autonomous vehicle 101 may also include certain common components included in a conventional vehicle, such as an engine, wheels, a steering wheel, a transmission, etc. These components may be controlled by the vehicle control system 111 and / or the perception and planning system 110 using a variety of communication signals and / or commands, such as acceleration signals or commands, deceleration signals or commands, steering signals or commands, braking signals or commands, etc.

[0046] Components 110 to 115 may be communicatively coupled to one another via an interconnect, a bus, a network, or a combination thereof. For example, components 110 to 115 may be communicatively coupled to one another via a controller area network (CAN) bus. The CAN bus is a vehicle bus standard designed to allow microcontrollers and devices to communicate with one another in applications without a host computer. It is a message-based protocol originally designed for multiplexed electrical wiring within automobiles, but is also used in many other environments.

[0047] Now refer to Figure 2In one embodiment, the sensor system 115 includes, but is not limited to, one or more cameras 211, a global positioning system (GPS) unit 212, an inertial measurement unit (IMU) 213, a radar unit 214, and a light detection and ranging (LIDAR) unit 215. The GPS unit 212 may include a transceiver operable to provide information regarding the autonomous vehicle's location. The IMU unit 213 may sense the autonomous vehicle's position and orientation changes based on inertial acceleration. The radar unit 214 may represent a system that utilizes radio signals to sense objects within the autonomous vehicle's local environment. In some embodiments, in addition to sensing objects, the radar unit 214 may also sense the speed and / or heading of objects. The LIDAR unit 215 may utilize lasers to sense objects in the autonomous vehicle's environment. Among other system components, the LIDAR unit 215 may include one or more laser sources, a laser scanner, and one or more detectors. The camera 211 may include one or more devices for capturing images of the autonomous vehicle's surroundings. The camera 211 may be a still camera and / or a video camera. The camera may be mechanically movable, for example, by mounting the camera on a rotating and / or tilting platform.

[0048] The sensor system 115 may also include other sensors, such as a sonar sensor, an infrared sensor, a steering sensor, a throttle sensor, a brake sensor, and an audio sensor (e.g., a microphone). The audio sensor may be configured to collect sound from the environment surrounding the autonomous vehicle. The steering sensor may be configured to sense the steering angle of the steering wheel, the vehicle's wheels, or a combination thereof. The throttle sensor and the brake sensor may sense the throttle position and brake position of the vehicle, respectively. In some cases, the throttle sensor and the brake sensor may be integrated into an integrated throttle / brake sensor.

[0049] In one embodiment, the vehicle control system 111 includes, but is not limited to, a steering unit 201, a throttle unit 202 (also referred to as an acceleration unit), and a brake unit 203. The steering unit 201 is used to adjust the direction or forward direction of the vehicle. The throttle unit 202 is used to control the speed of the motor or engine, which in turn controls the speed and acceleration of the vehicle. The brake unit 203 decelerates the vehicle by providing friction to decelerate the wheels or tires of the vehicle. It should be noted that, as Figure 2 The components shown may be implemented in hardware, software, or a combination thereof.

[0050] Return Reference Figure 1, the wireless communication system 112 allows communication between the autonomous vehicle 101 and external systems such as devices, sensors, other vehicles, etc. For example, the wireless communication system 112 can communicate directly with one or more devices wirelessly, or communicate wirelessly via a communication network, such as communicating with servers 103 to 104 through the network 102. The wireless communication system 112 can use any cellular communication network or wireless local area network (WLAN), for example, using WiFi, to communicate with another component or system. The wireless communication system 112 can communicate directly with a device (e.g., a passenger's mobile device, a display device, a speaker in the vehicle 101) using, for example, an infrared link, Bluetooth, etc. The user interface system 113 can be part of a peripheral device implemented in the vehicle 101, including, for example, a keyboard, a touch screen display device, a microphone, and a speaker.

[0051] Some or all of the functions of the autonomous vehicle 101 may be controlled or managed by the perception and planning system 110, particularly when operating in the autonomous driving mode. The perception and planning system 110 includes the necessary hardware (e.g., processor, memory, storage) and software (e.g., operating system, planning and routing programs) to receive information from the sensor system 115, the control system 111, the wireless communication system 112, and / or the user interface system 113, process the received information, plan a route or path from a starting point to a destination point, and then drive the vehicle 101 based on the planning and control information. Alternatively, the perception and planning system 110 may be integrated with the vehicle control system 111.

[0052] For example, a user acting as a passenger may specify a starting location and destination for a trip, for example, via a user interface. The perception and planning system 110 obtains data related to the trip. For example, the perception and planning system 110 may obtain location and route information from an MPOI server, which may be part of servers 103-104. The location server provides location services, and the MPOI server provides map services and point of interest (POIs) for certain locations. Alternatively, such location and MPOI information may be cached locally in a persistent storage device of the perception and planning system 110.

[0053] As the autonomous vehicle 101 moves along the route, the perception and planning system 110 may also obtain real-time traffic information from a traffic information system or server (TIS). It should be noted that the servers 103 to 104 may be operated by a third-party entity. Alternatively, the functionality of the servers 103 to 104 may be integrated with the perception and planning system 110. Based on the real-time traffic information, MPOI information, and location information, as well as real-time local environmental data (e.g., obstacles, objects, nearby vehicles) detected or sensed by the sensor system 115, the perception and planning system 110 may plan an optimal route and drive the vehicle 101 according to the planned route, for example, via the control system 111, to reach the designated destination safely and efficiently.

[0054] The server 103 can be a data analysis system that performs data analysis services for various clients. In one embodiment, the data analysis system 103 includes a data collector 121 and a machine learning engine 122. The data collector 121 collects driving statistics 123 from various vehicles (autonomous vehicles or conventional vehicles driven by human drivers). The driving statistics 123 include information indicating the driving commands issued (e.g., throttle, brake, steering commands) and the vehicle's responses (e.g., speed, acceleration, deceleration, direction) captured by the vehicle's sensors at different time points. The driving statistics 123 may also include information describing the driving environment at different time points, such as routes (including starting and destination locations), MPOI, road conditions, weather conditions, etc.

[0055] Based on the driving statistics 123, the machine learning engine 122 generates or trains a set of rules, algorithms, and / or predictive models 124 for various purposes. In one embodiment, the algorithms / models 124 may include a bicycle model used to simulate the vehicle dynamics of the ADV, an open space optimization model used to plan the trajectory of the ADV in an open space, or an RL agent / environment model. The algorithms / models 124 may then be uploaded to the ADV (e.g., Figure 3A Model 313) can be used by ADV in real time.

[0056] Figure 3A and Figure 3B is a block diagram illustrating an example of a perception and planning system for use with an autonomous vehicle according to one embodiment. System 300 may be implemented as Figure 1 A portion of the autonomous vehicle 101 includes, but is not limited to, a perception and planning system 110, a control system 111, and a sensor system 115. Figures 3A to 3B The perception and planning system 110 includes but is not limited to a positioning module 301 , a perception module 302 , a prediction module 303 , a decision module 304 , a planning module 305 , a control module 306 , a routing module 307 and an open space planning model 308 .

[0057] Some or all of the modules 301 to 308 may be implemented in software, hardware, or a combination thereof. For example, these modules may be installed in permanent storage 352, loaded into memory 351, and executed by one or more processors (not shown). It should be noted that some or all of these modules may be communicatively coupled to Figure 2 Some or all of the modules of the vehicle control system 111 may be integrated with them. Some of the modules 301 to 308 may be integrated together into an integrated module. For example, the planning module 305 and the open space planning model 308 may be integrated modules.

[0058] The positioning module 301 determines the current location of the autonomous vehicle 300 (e.g., using the GPS unit 212) and manages any data related to the user's itinerary or route. The positioning module 301 (also known as the map and route module) manages any data related to the user's itinerary or route. The user can log in, for example, via a user interface and specify the starting location and destination of the itinerary. The positioning module 301 communicates with other components of the autonomous vehicle 300, such as the map and route information 311, to obtain itinerary-related data. For example, the positioning module 301 can obtain location and route information from a location server and a map and point of interest (MPOI) server. The location server provides location services, and the MPOI server provides map services and POIs for certain locations, which can be cached as part of the map and route information 311. As the autonomous vehicle 300 moves along the route, the positioning module 301 can also obtain real-time traffic information from a traffic information system or server.

[0059] Based on the sensor data provided by the sensor system 115 and the positioning information obtained by the positioning module 301, the perception module 302 determines the perception of the surrounding environment. The perception information may represent what an average driver would perceive around the vehicle being driven by the driver. The perception may include, for example, lane configuration in the form of objects, traffic light signals, the relative position of another vehicle, pedestrians, buildings, crosswalks or other traffic-related signs (e.g., stop signs, yield signs), etc. The lane configuration includes information describing one or more lanes, such as, for example, the shape of the lane (e.g., straight or curved), the width of the lane, the number of lanes in the road, one-way or two-way lanes, merging or diverging lanes, exit lanes, etc.

[0060] The perception module 302 may include a computer vision system or functionality of a computer vision system to process and analyze images captured by one or more cameras to identify objects and / or features in the autonomous vehicle's environment. The objects may include, for example, traffic signs, road boundaries, other vehicles, pedestrians, and / or obstacles. The computer vision system may utilize object recognition algorithms, video tracking, and other computer vision techniques. In some embodiments, the computer vision system may map the environment, track objects, and estimate the speed of objects, among other things. The perception module 302 may also detect objects based on other sensor data provided by other sensors, such as radar and / or LIDAR.

[0061] For each object, prediction module 303 predicts how the object will behave in this situation. This prediction is performed based on sensory data that perceives the driving environment at a given point in time, taking into account a set of map / route information 311 and traffic regulations 312. For example, if the object is a vehicle traveling in the opposite direction and the current driving environment includes an intersection, prediction module 303 will predict whether the vehicle is likely to move straight ahead or turn. If the sensory data indicates that the intersection does not have a traffic light, prediction module 303 may predict that the vehicle may need to come to a complete stop before entering the intersection. If the sensory data indicates that the vehicle is currently in a left-turn-only lane or a right-turn-only lane, prediction module 303 may predict that the vehicle is more likely to turn left or right, respectively.

[0062] For each object, the decision module 304 makes a decision about how to handle the object. For example, given a particular object (e.g., another vehicle in an intersecting lane) and metadata describing the object (e.g., speed, direction, turn angle), the decision module 304 decides how to encounter the object (e.g., overtake, yield, stop, pass). The decision module 304 may make such decisions based on a set of rules, such as traffic rules or driving rules 312, which may be stored in persistent storage 352.

[0063] The routing module 307 is configured to provide one or more routes or paths from a starting point to a destination. For a given itinerary from a starting location to a destination, such as a given itinerary received from a user, the routing module 307 obtains route and map information 311 and determines all possible routes or paths from the starting location to the destination. The routing module 307 may generate a reference line in the form of a topographic map that defines each route from the starting location to the destination. The reference line is an ideal route or path that is free of interference, such as other vehicles, obstacles, or traffic conditions. In other words, if there are no other vehicles, pedestrians, or obstacles on the road, the ADV should follow the reference line exactly or closely. The topographic map is then provided to the decision module 304 and / or planning module 305. The decision module 304 and / or planning module 305 examines all possible routes to select and modify the optimal route based on other data provided by other modules, such as traffic conditions from the positioning module 301, the driving environment perceived by the perception module 302, and traffic conditions predicted by the prediction module 303. Depending on the specific driving environment at a point in time, the actual path or route used to control the ADV may be close to or different from the reference line provided by the routing module 307 .

[0064] Based on the decision for each of the perceived objects, the planning module 305 plans a path or route for the autonomous vehicle, along with driving parameters (e.g., distance, speed, and / or turning angles), using the reference lines provided by the routing module 307 as a basis. In other words, for a given object, the decision module 304 decides what to do with the object, while the planning module 305 determines how to do it. For example, for a given object, the decision module 304 may decide to overtake the object, while the planning module 305 may determine whether to overtake on the left or right side of the object. Planning and control data are generated by the planning module 305 and include information describing how the vehicle 300 will move in the next movement cycle (e.g., the next route / path segment). For example, the planning and control data may indicate that the vehicle 300 should move at a speed of 30 miles per hour (mph) for 10 meters and then change to the right lane at a speed of 25 mph.

[0065] Based on the planning and control data, the control module 306 controls and drives the autonomous vehicle according to the route or path defined by the planning and control data by sending appropriate commands or signals to the vehicle control system 111. The planning and control data includes sufficient information to drive the vehicle from a first point on the route or path to a second point using appropriate vehicle settings or driving parameters (e.g., throttle, brake, steering commands) at different points in time along the route or path.

[0066] In one embodiment, the planning phase is performed in multiple planning cycles (also referred to as drive cycles), for example, each cycle having a time interval of 100 milliseconds (ms). For each planning cycle or drive cycle, one or more control commands are issued based on the planning and control data. That is, for every 100 ms, the planning module 305 plans the next route segment or path segment, for example, including the target location and the time required for the ADV to reach the target location. Alternatively, the planning module 305 may also specify a specific speed, direction, and / or steering angle. In one embodiment, the planning module 305 plans the route segment or path segment for the next predetermined time period (e.g., 5 seconds). For each planning cycle, the planning module 305 plans the target location for the current cycle (e.g., the next 5 seconds) based on the target location planned in the previous cycle. The control module 306 then generates one or more control commands (e.g., throttle, brake, and steering control commands) based on the planning and control data for the current cycle.

[0067] It should be noted that the decision module 304 and the planning module 305 can be integrated into an integrated module. The decision module 304 / planning module 305 can include a navigation system or the functionality of a navigation system to determine a driving path for the autonomous vehicle. For example, the navigation system can determine a series of speeds and directions of travel that are used to affect the movement of the autonomous vehicle along the following path: the path substantially avoids perceived obstacles while the autonomous vehicle moves along a roadway-based path to the final destination. The destination can be set based on user input via the user interface system 113. The navigation system can dynamically update the driving path while the autonomous vehicle is operating. The navigation system can combine data from a GPS system and one or more maps to determine a driving path for the autonomous vehicle.

[0068] Figure 4 is a block diagram illustrating an example of an open space planning module according to one embodiment. The open space planning module 308 can generate a trajectory for an ADV in an open space where there are no reference lines or lanes to follow. Examples of open spaces include parking lots, or roads where vehicles perform parallel parking, U-turns, or three-point turns. Figure 4 In one embodiment, the open space planning module 308 includes an environment perception module 401, an objective function determiner module 403, a constraint determiner module 405, a dual variable warm-up module 407, a trajectory generator module 409, and a hybrid A* search module 411. The environment perception module 401 can perceive the environment of the ADV. The objective function determiner module 403 can determine the optimization model (e.g., the open space optimization model 421 (as Figure 3AThe objective function of the model 313 (part of the model 313)) is optimized. The constraint determiner module 405 can determine the constraints of the optimization model. Constraints can include inequalities, equality and bounded constraints. The dual variable warm-up module 407 can apply a quadratic programming solver to the objective (object) function to solve for one or more variables (e.g., dual / two variables) subject to certain constraints, where the objective function is a quadratic function. The trajectory generator module 409 can generate a trajectory based on the variables solved. The hybrid A* search module 411 can use a search algorithm such as an A* search algorithm or a hybrid A* search algorithm to search for an initial trajectory (a zigzag, non-smooth trajectory without considering observed obstacles).

[0069] Figure 5 is a flowchart illustrating an example of the workflow of the open space planning module of ADV according to one embodiment. Figure 5 In operation 501, the processing logic extracts environmental constraints from the HD map and moving obstacle constraints from the prediction module to generate an open space optimization problem and initializes the matrix / vector for the optimization algorithm constraints. In one embodiment, the optimization model (e.g. Figure 4 Model 421, as Figure 3A The constraints may include the distance from the vehicle to the edge of the open road, the dimensions of the drivable road, curbs, and one or more obstacles. Obstacles may include mobile obstacles, such as cars and pedestrians, as well as immobile obstacles, such as buildings, blockades, and fences. Mobile obstacles may be processed by a prediction module to determine the predicted position of the mobile obstacle at a later point in time. These obstacles and constraints may be modeled as matrices and vectors for use in optimization algorithms.

[0070] An example of an optimization algorithm for controlled objects and obstacles can be given as follows:

[0071] Make

[0072]

[0073]

[0074] h(x k +u k )≤0,λ≥0, andμ≥0,

[0075] where x k is the trajectory of discrete time step k, x0 = x(0) is the initial point, and x N+1 =x F is the end point of the trajectory, and x k+1 =f(xk +u k ). Here, u k can be vehicle control inputs, such as the vehicle's heading angle, velocity, and acceleration, and f is a vehicle dynamics model that describes the vehicle's dynamics, such as a bicycle model of the vehicle. h(x k +u k ) includes the vehicle's limitations, such as the vehicle's maximum forward direction ratio, speed, and acceleration. The matrix A and vector b are related to the size and position of one or more obstacles around the vehicle. Here, the obstacles can be modeled as polygons. g T and G T are related to the size and position of ADV, respectively. λ and μ describe the dual variables representing the distance between the obstacle and the vehicle, and R is the rotation matrix that measures the vehicle's rotation relative to the obstacle based on the vehicle's reference orientation. However, note that in the absence of an initial trajectory, some variables may not be initialized. For example, R is undefined in the absence of an initial trajectory.

[0076] For operation 502, the processing logic can apply a hybrid A* search algorithm to a simplified vehicle model to search for an initial (coarse) trajectory using the initial and destination states as input parameters. Here, the hybrid A* search can divide the state space (x, y, θ direction) into one or more branches and perform a tree search within the state space grid branch. The tree search can use the simplified vehicle model to traverse all branch nodes to generate a coarse trajectory that connects the initial state to the destination state. The simplified vehicle model can be a simple bicycle model that can travel at multiple speeds within the steering range of the simulated ADV, or the coarse trajectory can simply be a step-wise function with the shortest distance connecting two points. However, the generated coarse trajectory may be zigzag and may not take into account any surrounding obstacles. Based on the coarse trajectory, some variables of the above-mentioned optimization problem can therefore be determined. Examples of such variables include R, where R is a rotation matrix that measures the rotation of the vehicle relative to the obstacle based on the reference direction of the vehicle.

[0077] For operation 503, in one embodiment, the open space optimization problem or optimization algorithm can be relaxed into an algorithm with a quadratic objective function to be solved. The quadratic objective function can be:

[0078] in

[0079]

[0080]

[0081] h(x k +u k)≤0,λ≥0, andμ≥0,

[0082] The relaxed quadratic function can then be solved using a quadratic programming algorithm, which is computationally more efficient than interior point convex numerical methods that would otherwise require solving a non-relaxed open space optimization problem. In one embodiment, the relaxed quadratic objective function is Figure 4 Part of Model 421.

[0083] For operation 504, the processing logic fixes the dual variables (e.g., the first set of vector variables) and uses a QP solver to solve the relaxed open space optimization problem to obtain the planning trajectory and control sequence. For example, the QP algorithm is applied to solve the equation where the vectors λ and μ are set to some initial constant values.

[0084] For operation 505 , the processing logic fixes the control and trajectory values ​​(e.g., x, u as the second set of vector variables) and solves the relaxed open space optimization problem using a QP solver to update the dual variables, e.g., Wherein vectors x, u are set to the values ​​from the result of operation 504. Next, operation 504 may be repeated, with λ, μ set to the results of operation 505. Operations 504 and 505 may then be iteratively performed until the variables (e.g., x, u, λ, μ) converge. If the result of the subsequent iteration is within a predetermined threshold of the result of the previous iteration, the variables may have converged. Once the output values ​​converge, at operation 506, processing logic generates an output trajectory x based on the results of operations 504-505. (K=0…N+1) . Note that x0 is the initial trajectory state, x N+1 =x F is the final trajectory state.

[0085] Figure 6 is a flow chart illustrating an exemplary method according to one embodiment. Process 600 may be performed by processing logic that may include software, hardware, or a combination thereof. For example, process 600 may be performed by Figure 4 The open space planning module 308 is executed. Figure 6In block 601, processing logic perceives the environment surrounding an ADV, including one or more obstacles. In block 602, processing logic determines an objective function for an open space model based on constraints of the one or more obstacles and map information. In block 603, processing logic iteratively performs a first quadratic programming (QP) optimization on the objective function based on a first trajectory (e.g., a coarse trajectory) while fixing a first set of variables (e.g., λ, μ). In block 604, processing logic performs a second QP optimization on the objective function based on the results of the first QP optimization while fixing a second set of variables (e.g., x, u). In block 605, processing logic generates a second trajectory based on the results of the first and second QP optimizations to automatically control the ADV according to the second trajectory.

[0086] In one embodiment, the processing logic further applies a hybrid A* search algorithm to the open space model or an alternative simplified vehicle model to generate a first trajectory. In one embodiment, the first set of variables includes dual variables related to the calculation of the distance between the obstacle and the ADV. In one embodiment, the second set of variables includes variables used to control the ADV and the trajectory.

[0087] In one embodiment, the objective function comprises a quadratic cost function for the first and second QP optimizations. In one embodiment, the open space model will generate a trajectory for the ADV without following a reference line or traffic line. In one embodiment, the open space model comprises a vehicle dynamics model for the ADV.

[0088] Figure 7 is a block diagram illustrating an example of an open space planning module according to another embodiment. The open space planning module 308 can use an RL agent to generate a trajectory for an ADV in an open space where there is no reference line or traffic channel to follow. Figure 7 In one embodiment, the open space planning module 308 includes an environment perception module 701, an RL agent module 703, a trajectory generator module 705, and a standard determiner module 707. The environment perception module 701 can perceive the environment of the ADV. The perceived environment includes information about the location and size of perceived obstacles. The environment can also include maps and geographic information, the shape and size of parking lots, and / or roads for ADVs. The perceived information can further include information about the ADV, such as the location, speed, and target parking point of the ADV. The RL agent module 703 can use the RL agent (e.g., RL agent / environment model 721, as Figure 3AThe RL agent 721 may include an actor-critic framework, wherein the actor includes a policy decision for determining the control or action of the ADV for a given state, and the critic includes a measurement scheme for determining the value of the action or reward prediction based on the given state. The environment model may model the ADV's perceived environment, vehicle dynamics, vehicle control constraints, and reward levels or scoring criteria, such that the environment model is capable of generating actual rewards and next trajectory states based on the ADV's actions and current trajectory state. Thus, the RL agent and environment model may iteratively generate multiple next trajectory states (e.g., output trajectories) and multiple controls / actions. Scoring metrics may include a scoring scheme to evaluate whether the RL agent plans a trajectory with a final trajectory state at a goal point, whether the trajectory is smooth, and whether the trajectory avoids all perceived obstacles.

[0089] Referring to the actor-critic framework, in one embodiment, the actor comprises a first neural network and the critic comprises a second neural network. In another embodiment, the critic comprises a scoring equation / formula. The first and second neural networks may be deep neural networks. The trajectory generator module 705 may generate a trajectory for the ADV based on the current trajectory state of the ADV to control the ADV to reach a destination state. The standard determiner module 707 may contain decision logic to compare the output trajectory of the RL agent (as part of the RL agent 721). The comparison may be based on a reference trajectory, which may be from an optimization model (as part of the RL agent 721). Figure 4 The output trace of the optimization model 421 is part of the optimization model 421. The decision logic can determine whether the comparison result results in a difference below a threshold.

[0090] Figure 8 is a block diagram illustrating an example of a system using a reinforcement learning agent according to one embodiment. The system 800 can generate driving trajectories for an ADV in an open space environment, such as a parking lot, where the open space environment may not have reference trajectories or traffic signs to guide the ADV. Figure 8 In one embodiment, the system 800 includes an RL agent 803 that receives an input 801. The RL agent 803 can interact with an environment model 808 to generate discrete trajectory states (e.g., x0...x F ) and control (e.g., u0…u F). The trajectory and control outputs pass through a criteria evaluation 809 (e.g., performed by the criteria determiner module 707). The criteria evaluation 809 can evaluate whether the trajectory / controls generated by the RL agent 803 meet a list of threshold criteria (or threshold judgment scores), and if so, output the trajectory and controls to output 811. If the judgment score is not met, the criteria evaluation 809 can trigger output 811 to output a second trajectory / second list of controls from the open space optimization model 421. In one embodiment, the threshold criteria can be determined based on feedback from the open space optimization model 421. For example, the open space optimization model 421 can output the trajectory and control (as a reference trajectory) to the criteria evaluation 809 for comparison with the output of the RL agent 803. Therefore, the RL agent 803 can learn from its actions and experiences compared to the output of the optimization model 421. As described above, the open space optimization model 421 can include a vehicle dynamics model of the ADV. It should be noted that reinforcement learning (RL) refers to a type of machine learning technique that enables an agent (e.g., RL agent 803) to learn through trial and error using feedback from its actions and experiences in an interactive environment (e.g., environment model 808). Machine learning (ML) involves algorithms and statistical models that are used to perform specific tasks (here, generating driving trajectories) without explicit instructions, but instead rely on patterns and inferences.

[0091] In one embodiment, the RL agent 803 includes an actor-critic framework. The actor may include a policy function generator for generating a list of controls (or actions) from the current trajectory state, and the critic may include a value function for determining the predicted value of the controls generated by the actor. In one embodiment, the actor-critic framework includes an actor neural network 805 coupled to a critic neural network 807. In one embodiment, the actor neural network 805 and / or the critic neural network 807 are isolated deep neural networks. In another embodiment, the actor neural network 805 and the critic neural network 807 operate in parallel. Note that neural networks (as part of machine learning) are computational methods based on a large number of neural units or neurons in a series of hidden layers or layers. Each hidden layer consists of a set of neurons, each connected to one or more neurons in the previous layer, and neurons in a single layer can operate completely independently and may not share any connections with other neurons in that layer. Neural networks are self-learning and trained, rather than explicitly programmed. A deep neural network is a neural network with two or more hidden layers.

[0092] In one embodiment, the actor neural network may include a multilayer perceptron (MLP). An MLP is a feedforward neural network that includes at least an input layer, one or more hidden layers with a first set of weights, and an output layer. The input layer of the actor neural network 805 may receive input 801. Input 801 may include information about the perceived environment and vehicle control information for the autonomous vehicle (ADV). For example, environmental information may include the location and size of perceived obstacles, as well as map and geographic information, and vehicle control information may include information about the ADV, such as the current location, speed, direction, and target location, direction, speed, etc. In one embodiment, the critic neural network may include an MLP. The critic neural network includes one or more hidden layers, which include a second set of weights that must be optimized separately from the first set of weights of the actor neural network. Note that the hidden layers and / or output layer may have different activation functions, such as linear, sigmoid, tanh, RELU, softmax, etc.

[0093] Reference Figure 8 , at each discrete time step, the actor NN 805 receives the current trajectory state and generates a control / action. The environment model 808 receives the control action, generates a reward and a next trajectory state, and passes the reward and next trajectory state back to the RL agent 803. The actor NN 805 of the RL agent 803 uses the next trajectory state to generate subsequent control actions. These operations can be repeated until the next trajectory state is at the target trajectory state (e.g., the destination location) or the iteration reaches a maximum threshold count. In one embodiment, the critic NN 807 performs reward prediction based on the current trajectory state and the control action to evaluate how good a particular control action is. The critic NN 807 of the RL agent 803 can also use the actual reward generated by the environment model 808 to update its reward prediction.

[0094] In one embodiment, for each time step, the actor NN 805 can update its first set of weights based on the results of the critic NN 807, and the critic NN 807 can update its second set of weights based on the results of the actor NN 805, based on temporal difference (TD) learning. In effect, the RL agent / environment model can be updated online while the vehicle is running. Note that TD learning refers to the process of reinforcement learning to learn how to predict values ​​that depend on the future value of a given state. Once the actual reward value outcome is known, the reward / value prediction is adjusted. TD learning adjusts the weights so that the prediction for the next iteration is more accurate.

[0095] Based on the state (e.g., the first trajectory) and the control actions, the criteria module 809 can determine whether the output of the RL agent 803 meets a predetermined list of criteria. These criteria may include: 1) whether the final state of the ADV trajectory is at the destination point with the correct vehicle heading, 2) whether the trajectory is smooth, and 3) whether the trajectory avoids collisions with all obstacles. If the criteria list is met, the criteria module 809 triggers output 811 to output the first trajectory and / or control / action. If the criteria list is not met, the criteria module 809 can trigger the open space optimization model 421 to generate a second trajectory and / or control action and output the second trajectory and / or control action via output 811.

[0096] Figure 9 is a flow chart illustrating an exemplary method according to one embodiment. Process 900 may be performed by processing logic that may include software, hardware, or a combination thereof. For example, process 900 may be performed by Figure 7 The open space planning module 308 is executed. Figure 9 At block 901, processing logic perceives the environment surrounding an autonomous vehicle (ADV). At block 902, processing logic applies a reinforcement learning (RL) algorithm to an initial state of a planned trajectory based on the perceived environment to determine a list of controls for the ADV to reach a list of trajectory states (e.g., subsequent states) based on a map and vehicle control information of the ADV. At block 903, processing logic determines a reward prediction for each of a plurality of controls using the RL algorithm based on the target destination state. At block 904, processing logic generates a first trajectory from the trajectory states by maximizing the reward prediction to automatically control the ADV according to the first trajectory.

[0097] In one embodiment, the processing logic applies the judgment logic to the first trajectory to determine a judgment score for the first trajectory. In another embodiment, the judgment score includes scores for whether the first trajectory ends at the destination state, whether the first trajectory is smooth, and whether the first trajectory avoids one or more obstacles of the perceived environment.

[0098] In one embodiment, if the judgment score is below a predetermined threshold, the processing logic further generates a second trajectory based on the open space optimization model to automatically control the ADV according to the second trajectory. In another embodiment, the open space optimization model is used to generate a trajectory for the ADV without following a reference line or traffic line.

[0099] In another embodiment, the open space optimization model includes a vehicle dynamics model of the ADV. In another embodiment, the RL algorithm is performed by an actor neural network and a critic neural network, wherein the actor neural network and the critic neural network are deep neural networks.

[0100] Figures 10A-10Bis a block diagram illustrating an example of a machine learning engine for reinforcement learning, according to one embodiment. Figure 1 The machine learning engine 122 of the server 103 can be used to accelerate the training of the RL agent offline. Figure 10A In one embodiment, the machine learning engine 122 includes modules such as a scenario generation module 1001, a scenario replay module 1003, and an RL training module 1005. The scenario generation module 1001 can generate training scenarios for RL training. A scenario is a state / action sequence that ends in a terminal state. When the scenario ends, the actor returns to the initial state. For example, a scenario for RL training can be a state sequence used to generate a driving trajectory from an initial state to a final state (e.g., a destination point), or a state within an area of ​​interest that is considered to be a final high-definition (HD) map. A scenario is different from a driving scenario because a driving scenario describes a specific driving event. A driving scenario can include one or more scenarios. The scenario replay module 1003 can replay the scenario. The RL training module 1005 can use the replay of the scenario to train the RL agent.

[0101] Figure 10B An exemplary block diagram for training an RL agent is shown. Figure 10B In one embodiment, at block 1011, the machine learning engine 122 generates one or more driving scenarios. Exemplary scenarios may be limited to trajectory generation for a U-turn on a road (with initial and final trajectory states) or a self-parking maneuver in a parking lot. The generated scenario may include an initial position (e.g., an initial state), a specified final destination (e.g., a final state), and a two-dimensional (2D) overhead view image of the ADV at the initial position of the scenario. The machine learning engine 122 then trains the RL agent to maneuver the ADV from the initial position of the scenario to the specified final destination. At block 1013, the machine learning engine 122 may replay the scenario to train the RL agent. Scenario replay allows the RL agent to interact with the environment model and learn through trial and error. Training (e.g., blocks 1011 and 1013) may be repeated until the RL agent has reached an optimal reward (e.g., converged) or until training has reached a maximum training iteration count. At block 1015, the trained RL agent is saved to the algorithm / model 124, which may then be deployed on the ADV.

[0102] Figure 11 is a block diagram illustrating an example of an offline reinforcement learning system according to another embodiment. Figure 1 The machine learning engine 122 of the server 103 executes. Figure 11In one embodiment, the system 1100 includes an RL agent 803 to be trained, which includes an actor neural network 805 and a critic neural network 807 (e.g., an actor-critic framework). The actor NN 805 can generate a control action based on the current trajectory state. The critic NN 807 can generate a reward prediction based on the control action and the current trajectory state (predicting how good the control action is based on the final trajectory state). Based on the reward prediction, the actor NN 805 can be trained or updated to improve its control action output. The RL agent 803 is connected to an environment model (state) 1109. The environment model (state) 1109 can generate the next trajectory state based on the control action. Therefore, the RL agent 803 can interact with the environment model (state) 1109 to iteratively output multiple trajectory states (e.g., x0...x F , trajectory) and multiple control actions (e.g., u0…u F , control, and / or action) for the RL agent to steer the ADV from an initial trajectory state (e.g., x0) to a final trajectory state (e.g., x F ). The RL agent 803 can be connected to the environment model (reward) 1111, which can generate actual rewards for the output trajectory and provide feedback to the RL agent 803. The reward can be fed back to the RL agent 803 to further update the critic neural network 807. The reward can be based on the model-based trajectory output (e.g., from an optimization model (such as Figure 4 The output of the optimization model 421) is used to objectively evaluate the scores of the trajectories based on multiple criteria (e.g., whether the first trajectory ends at the specified destination state, whether the first trajectory is smooth, and whether the first trajectory avoids collision with one or more obstacles in the scene). Note that the environment model (state) 1109 and the environment model (reward) 1111 can be Figure 10A Different instances of the environment model 721.

[0103] Figure 12 is a block diagram illustrating an example of an actor neural network (NN) according to one embodiment. The actor NN 1200 may represent Figure 11 Actor NN 805. Reference Figure 12 , actor NN 1200 includes NN 1207 and CNN 1205. For each time step, NN 1207 can receive one or more features from convolutional neural network (CNN) 1205 and the current trajectory state 1201 from the environment model (not shown) to generate discrete control actions 1209. CNN 1205 can extract one or more features from a region of interest (ROI) 1203 of a driving scene (e.g., a 2D top-view image) having a final trajectory state (or final position). Note that features refer to the input of the CNN and represent attributes of the input data.

[0104] Note that in machine learning, a convolutional neural network (CNN) typically consists of input and output layers and multiple hidden layers. The hidden layers of a CNN typically consist of a convolutional layer, a RELU layer (i.e., an activation function), a pooling layer, a fully connected layer, and a normalization layer, i.e., each neuron in one layer is connected to all neurons in the next layer. CNN is a type of NN commonly used for visual images. Note that a discrete control action 1209 refers to a single vehicle control or action (from multiple possible control and / or action options) for a specific time step. The ROI includes information about obstacles, other vehicles, drivable roads, curbs, etc., information related to the scene of the area of ​​interest. An example of a control output can be to turn right 10 degrees in the direction of travel and add the throttle to the accelerator (e.g., direction of travel, speed, acceleration).

[0105] Figure 13 is a block diagram illustrating an exemplary environment model according to one embodiment. The environment model 1300 may represent Figure 11 The environment model (state) 1109 or environment model (reward) 1111. The environment model 1300 can be used to simulate the environment of ADV (for example, the environment model (state) 1109 or Figure 11 The environment model (reward) 1111) is modeled to interact with the RL agent to accelerate reinforcement learning. The environment model 1300 can represent Figure 10A Environmental Model 721. Reference Figure 13 The environment model 1300 may include a vehicle dynamics model 1301 of the ADV. The vehicle dynamics model 1301 may model the vehicle dynamics system. The model 1301 may include a bicycle vehicle model. The model 1301 may further model tire slip to model the ADV. Based on the model 1301, the environment model 1300 may be a discrete vehicle action (e.g., u0 ... u F ) derives multiple discrete vehicle control options (such as steering, throttle, or brake) 1303. Based on the allowed control / action options 1303, the environment model 1300 can derive a final position 1305 within the constraints of the vehicle dynamics model. The environment model 1300 can also derive a reward strategy to score different trajectories. The reward strategy can be whether the trajectory reaches the final position (e.g., x FThe planned final position 1305 is scored based on the final trajectory state (final trajectory state) 1305, whether the trajectory's acceleration is smooth, whether the trajectory is zigzag-shaped, and whether the trajectory avoids all obstacles. The planned final position 1305 is incorporated into one or more driving scene regions of interest (ROIs) 1307 in a 2D top-down view (e.g., an image with ROI mapping). The environment model 1300 can then discretize the ROIs to generate multiple trajectory state options 1309. ROIs are regions of interest within a neural network for image processing and analysis. Each driving scene can include one or more ROIs.

[0106] Figure 14 is a block diagram illustrating an exemplary method according to one embodiment. Process 1400 may be performed by processing logic that may include software, hardware, or a combination thereof. For example, process 1400 may be performed by Figure 1 The machine learning engine 122 executes. Figure 14 In block 1401, processing logic generates a plurality of driving scenarios to train an RL agent. In block 1402, processing logic replays each driving scenario to train the RL agent by, in block 1403, applying a reinforcement learning (RL) algorithm to an initial state of the driving scenario to determine a plurality of control actions from a plurality of discrete control action options to cause an ADV to reach a plurality of trajectory states from a plurality of discrete trajectory state options, in block 1404, determining a reward prediction for each control action by the RL algorithm, in block 1405 determining a judgment score (e.g., reward) for the trajectory state (e.g., generated trajectory), and in block 1406, updating the RL agent based on the judgment score (e.g., reward).

[0107] In one embodiment, the discrete control action options are generated based on the vehicle dynamics model of the ADV. In one embodiment, the discrete trajectory state options are generated by discretizing the region of interest of each driving scenario according to the final destination trajectory state.

[0108] In one embodiment, the judgment score includes scores for whether the first trajectory ends at the planned destination state, whether the first trajectory is smooth, and whether the first trajectory avoids one or more obstacles of the environment model. In one embodiment, each driving solution includes one or more regions of interest.

[0109] In one embodiment, the RL agent comprises an actor neural network and a critic neural network, wherein the actor and critic neural networks are deep neural networks. In another embodiment, the actor neural network comprises a convolutional neural network.

[0110] It should be noted that some or all of the components shown and described above may be implemented in software, hardware, or a combination thereof. For example, such components may be implemented as software installed and stored in a permanent storage device, which may be loaded into a memory by a processor (not shown) and executed in the memory to implement the processes or operations described throughout this application. Alternatively, such components may be implemented as executable code programmed or embedded into dedicated hardware (such as an integrated circuit (e.g., an application-specific integrated circuit or ASIC), a digital signal processor (DSP), or a field programmable gate array (FPGA)), which may be accessed via corresponding drivers and / or an operating system from an application. In addition, such components may be implemented as specific hardware logic in a processor or processor core as part of an instruction set that may be accessed by a software component through one or more specific instructions.

[0111] Figure 15 is a block diagram illustrating an example of a data processing system that may be used with one embodiment of the present disclosure. For example, system 1500 may represent any data processing system described above that performs any of the above-described processes or methods, e.g., Figure 1 The system 1500 may include many different components. These components may be implemented as integrated circuits (ICs), portions of integrated circuits, discrete electronic devices, or other modules suitable for use on a circuit board (such as a motherboard or add-in card of a computer system), or as components otherwise incorporated into the chassis of a computer system.

[0112] It should also be noted that system 1500 is intended to illustrate a high-level view of many components of a computer system. However, it should be understood that additional components may be provided in certain embodiments, and in addition, different arrangements of the components shown may be provided in other embodiments. System 1500 may represent a desktop computer, a laptop computer, a tablet computer, a server, a mobile phone, a media player, a personal digital assistant (PDA), a smart watch, a personal communicator, a gaming device, a network router or hub, a wireless access point (AP) or a repeater, a set-top box, or a combination thereof. In addition, although only a single machine or system is shown, the term "machine" or "system" should also be understood to include any collection of machines or systems that individually or collectively execute one (or more) instruction sets to perform any one or more methods discussed herein.

[0113] In one embodiment, system 1500 includes a processor 1501, a memory 1503, and devices 1505 to 1508 connected by a bus or interconnect 1510. Processor 1501 can represent a single processor or multiple processors including a single processor core or multiple processor cores. Processor 1501 can represent one or more general-purpose processors, such as a microprocessor, a central processing unit (CPU), etc. More specifically, processor 1501 can be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor implementing other instruction sets, or a processor implementing an instruction set combination. Processor 1501 can also be one or more special-purpose processors, such as an application-specific integrated circuit (ASIC), a cellular or baseband processor, a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, a graphics processor, a communication processor, an encryption processor, a coprocessor, an embedded processor, or any other type of logic capable of processing instructions.

[0114] Processor 1501 (which may be a low-power multi-core processor socket, such as an ultra-low voltage processor) may serve as the main processing unit and central hub for communicating with the various components of the system. Such a processor may be implemented as a system on a chip (SoC). Processor 1501 is configured to execute instructions for performing the operations and steps discussed herein. System 1500 may also include a graphics interface for communicating with an optional graphics subsystem 1504, which may include a display controller, a graphics processor, and / or a display device.

[0115] The processor 1501 may communicate with the memory 1503, which in one embodiment may be implemented via multiple memory devices to provide a certain amount of system storage. The memory 1503 may include one or more volatile storage (or memory) devices, such as random access memory (RAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), static RAM (SRAM), or other types of storage devices. The memory 1503 may store information including sequences of instructions to be executed by the processor 1501 or any other device. For example, executable code and / or data of various operating systems, device drivers, firmware (e.g., input / output basic system or BIOS) and / or applications may be loaded into the memory 1503 and executed by the processor 1501. The operating system may be any type of operating system, for example, the Robot Operating System (ROS), an operating system from company's Operating system, Mac from Apple From company's LINUX, UNIX, or other real-time or embedded operating systems.

[0116] System 1500 may also include IO devices, such as devices 1505 to 1508, including a network interface device 1505, an optional input device 1506, and other optional IO devices 1507. The network interface device 1505 may include a wireless transceiver and / or a network interface card (NIC). The wireless transceiver may be a WiFi transceiver, an infrared transceiver, a Bluetooth transceiver, a WiMax transceiver, a wireless cellular telephone transceiver, a satellite transceiver (e.g., a global positioning system (GPS) transceiver), or other radio frequency (RF) transceivers, or a combination thereof. The NIC may be an Ethernet card.

[0117] Input device 1506 may include a mouse, a touchpad, a touch-sensitive screen (which may be integrated with display device 1504), a pointer device (such as a stylus), and / or a keyboard (e.g., a physical keyboard or a virtual keyboard displayed as part of a touch-sensitive screen). For example, input device 1506 may include a touch screen controller coupled to a touch screen. The touch screen and touch screen controller may use, for example, any of a variety of touch-sensitive technologies (including, but not limited to, capacitive, resistive, infrared, and surface acoustic wave technologies), as well as other proximity sensor arrays or other elements for determining one or more points of contact with the touch screen to detect contact and movement or discontinuation thereof.

[0118] IO devices 1507 may include audio devices. The audio devices may include speakers and / or microphones to facilitate voice-enabled functions such as voice recognition, voice replication, digital recording, and / or telephone functions. Other IO devices 1507 may also include universal serial bus (USB) ports, parallel ports, serial ports, printers, network interfaces, bus bridges (e.g., PCI-PCI bridges), sensors (e.g., such as accelerometers, motion sensors, gyroscopes, magnetometers, light sensors, compasses, proximity sensors, etc.), or combinations thereof. Device 1507 may also include an imaging processing subsystem (e.g., a camera), which may include an optical sensor such as a charge-coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) optical sensor for facilitating camera functions (e.g., recording photos and video clips). Certain sensors may be coupled to interconnect 1510 via a sensor hub (not shown), while other devices such as a keyboard or thermal sensor may be controlled by an embedded controller (not shown) depending on the specific configuration or design of system 1500.

[0119] To provide permanent storage for information such as data, applications, one or more operating systems, and the like, a mass storage device (not shown) may also be coupled to processor 1501. In various embodiments, to achieve a thinner and lighter system design and improve system responsiveness, such mass storage may be implemented via a solid-state device (SSD). However, in other embodiments, the mass storage may be implemented primarily using a hard disk drive (HDD), with a smaller amount of SSD storage acting as an SSD cache to enable non-volatile storage of context state and other such information during a power outage event, thereby enabling rapid power-up when system activity is re-started. Additionally, a flash memory device may be coupled to processor 1501, for example, via a serial peripheral interface (SPI). Such a flash memory device may provide non-volatile storage for system software, including the system's BIOS and other firmware.

[0120] The storage device 1508 may include a computer-accessible storage medium 1509 (also referred to as a machine-readable storage medium or computer-readable medium) having stored thereon one or more instruction sets or software (e.g., modules, units, and / or logic 1528) embodying any one or more of the methodologies or functions described herein. The processing module / unit / logic 1528 may represent any of the aforementioned components, e.g. Figure 1 The machine learning engine 122, the planning module 305, the control module 306 and Figure 3A The open space planning model 308 is shown in FIG. The processing module / unit / logic 1528 may also reside completely or at least partially within the memory 1503 and / or the processor 1501 during execution thereof by the data processing system 1500, the memory 1503, and the processor 1501, which also constitute machine-accessible storage media. The processing module / unit / logic 1528 may also be transmitted or received over a network via the network interface device 1505.

[0121] Computer-readable storage medium 1509 may also be used to permanently store some of the software functions described above. Although computer-readable storage medium 1509 is shown as a single medium in the exemplary embodiment, the term "computer-readable storage medium" should be considered to include a single medium or multiple media (e.g., a centralized or distributed database and / or associated caches and servers) that store the one or more instruction sets. The term "computer-readable storage medium" should also be considered to include any medium capable of storing or encoding an instruction set that is used to be executed by a machine and causes the machine to perform any one or more methods of the present disclosure. Therefore, the term "computer-readable storage medium" should be considered to include, but not limited to, solid-state memory and optical and magnetic media, or any other non-transitory machine-readable medium.

[0122] The processing modules / units / logic 1528, components, and other features described herein may be implemented as discrete hardware components or integrated into the functionality of hardware components such as ASICs, FPGAs, DSPs, or similar devices. Furthermore, the processing modules / units / logic 1528 may be implemented as firmware or functional circuitry within a hardware device. Furthermore, the processing modules / units / logic 1528 may be implemented in any combination of hardware devices and software components.

[0123] It should be noted that although system 1500 is shown as having various components of a data processing system, it is not intended to represent any particular architecture or manner of interconnecting the components; as such details are not germane to the embodiments of the present disclosure. It should also be appreciated that network computers, handheld computers, mobile phones, servers, and / or other data processing systems having fewer or potentially more components may also be used with embodiments of the present disclosure.

[0124] Some portions of the foregoing detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm, as used herein, is generally conceived to be a self-consistent sequence of operations leading to a desired result. These operations are those requiring physical manipulation of physical quantities.

[0125] It should be borne in mind, however, that all of these and similar terms are intended to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless expressly indicated otherwise in the foregoing discussion, it should be understood that throughout this specification, discussions utilizing terms such as those set forth in the appended claims refer to the actions and processes of a computer system or similar electronic computing device that manipulates data represented as physical (electronic) quantities within the computer system's registers and memories and transforms that data into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage, transmission, or display devices.

[0126] Embodiments of the present disclosure also relate to devices for performing the operations described herein. Such a computer program is stored in a non-transitory computer-readable medium. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). For example, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium (e.g., read-only memory ("ROM"), random access memory ("RAM"), magnetic disk storage media, optical storage media, flash memory devices).

[0127] The processes or methods depicted in the aforementioned figures may be performed by processing logic comprising hardware (e.g., circuitry, dedicated logic, etc.), software (e.g., embodied on a non-transitory computer-readable medium), or a combination of both. Although the processes or methods are described above in terms of sequential operations, it should be understood that some of the operations may be performed in a different order. Furthermore, some operations may be performed in parallel rather than sequentially.

[0128] The embodiments of the present disclosure are not described with reference to any particular programming language. It will be appreciated that a variety of programming languages ​​can be used to implement the teachings of the embodiments of the present disclosure as described herein.

[0129] In the foregoing description, embodiments of the present disclosure have been described with reference to specific exemplary embodiments thereof. It will be apparent that various modifications may be made to the present disclosure without departing from the broader spirit and scope of the present disclosure as set forth in the appended claims. Accordingly, the present description and drawings should be read in an illustrative rather than a restrictive sense.

Claims

1. A computer-implemented method for operating an autonomous vehicle, the method include: Perceiving the environment around the autonomous vehicle; Applying a reinforcement learning algorithm to an initial state of an initial planned trajectory based on the perceived environment to determine a plurality of controls for the autonomous vehicle to reach a plurality of trajectory states based on a map and vehicle control information of the autonomous vehicle; determining a reward prediction for each of the plurality of controls based on the target destination state via a reinforcement learning algorithm; generating a first trajectory from the trajectory state by maximizing the reward prediction; applying a judgment logic to the first trajectory to determine a judgment score for the first trajectory; Determining that the judgment score is lower than a predetermined threshold; as well as generating a second trajectory based on an open space optimization model for planning a trajectory of the autonomous vehicle in the open space, so as to automatically control the autonomous vehicle according to the second trajectory, The step of generating a second trajectory based on an open space optimization model for planning a trajectory of the autonomous driving vehicle in an open space includes: determining an objective function for the open space optimization model for optimization; determining constraints of the open space optimization model; applying a quadratic programming solver to the objective function to solve for one or more variables subject to the constraints; and The second trajectory is generated based on the solved variables.

2. The method according to claim 1, in, The determination scores include scores of whether the first trajectory ends at the destination state, whether the first trajectory is smooth, and whether the first trajectory avoids one or more obstacles in the perceived environment.

3. The method according to claim 1, in, The open space optimization model is used to generate the trajectory of the autonomous vehicle without following reference lines or traffic lines.

4. The method according to claim 1, in, The open space optimization model includes a vehicle dynamics model for the autonomous vehicle.

5. The method according to claim 1, in, The reinforcement learning algorithm is performed by an actor neural network and a critic neural network, and wherein the actor neural network and the critic neural network are deep neural networks.

6. A non-transitory machine-readable medium storing instructions, which, when executed by a processor, cause the processor to perform operations, the operations include: Perceiving the environment around the autonomous vehicle; Applying a reinforcement learning algorithm to an initial state of an initial planned trajectory based on the perceived environment to determine a plurality of controls for the autonomous vehicle to reach a plurality of trajectory states based on a map and vehicle control information of the autonomous vehicle; determining a reward prediction for each of the plurality of controls based on the target destination state via a reinforcement learning algorithm; as well as generating a first trajectory from the trajectory state by maximizing the reward prediction; applying a judgment logic to the first trajectory to determine a judgment score for the first trajectory; Determining that the judgment score is lower than a predetermined threshold; as well as generating a second trajectory based on an open space optimization model for planning a trajectory of the autonomous vehicle in the open space, so as to automatically control the autonomous vehicle according to the second trajectory, The step of generating a second trajectory based on an open space optimization model for planning a trajectory of the autonomous driving vehicle in an open space includes: determining an objective function for the open space optimization model for optimization; determining constraints of the open space optimization model; applying a quadratic programming solver to the objective function to solve for one or more variables subject to the constraints; and The second trajectory is generated based on the solved variables.

7. The non-transitory machine-readable medium of claim 6, in, The determination scores include scores of whether the first trajectory ends at the destination state, whether the first trajectory is smooth, and whether the first trajectory avoids one or more obstacles in the perceived environment.

8. The non-transitory machine-readable medium of claim 6, in, The open space optimization model is used to generate the trajectory of the autonomous vehicle without following reference lines or traffic lines.

9. The non-transitory machine-readable medium of claim 6, in, The open space optimization model includes a vehicle dynamics model for the autonomous vehicle.

10. The non-transitory machine-readable medium of claim 6, in, The reinforcement learning algorithm is performed by an actor neural network and a critic neural network, and wherein the actor neural network and the critic neural network are deep neural networks.

11. A data processing system, include: processor; as well as a memory coupled to the processor to store instructions that, when executed by the processor, cause the processor to perform operations comprising: Perceiving the environment around the autonomous vehicle; Applying a reinforcement learning algorithm to an initial state of an initial planned trajectory based on the perceived environment to determine a plurality of controls for the autonomous vehicle to reach a plurality of trajectory states based on a map and vehicle control information of the autonomous vehicle; determining a reward prediction for each of the plurality of controls based on the target destination state via a reinforcement learning algorithm; generating a first trajectory from the trajectory state by maximizing the reward prediction; applying a judgment logic to the first trajectory to determine a judgment score for the first trajectory; determining that the judgment score is below a predetermined threshold; and generating a second trajectory based on an open space optimization model for planning a trajectory of the autonomous vehicle in the open space, so as to automatically control the autonomous vehicle according to the second trajectory, The step of generating a second trajectory based on an open space optimization model for planning a trajectory of the autonomous driving vehicle in an open space includes: determining an objective function for the open space optimization model for optimization; determining constraints of the open space optimization model; applying a quadratic programming solver to the objective function to solve for one or more variables subject to the constraints; and The second trajectory is generated based on the solved variables.

12. The system according to claim 11, in, The determination scores include scores of whether the first trajectory ends at the destination state, whether the first trajectory is smooth, and whether the first trajectory avoids one or more obstacles in the perceived environment.

13. The system according to claim 11, in, The open space optimization model is used to generate the trajectory of the autonomous vehicle without following reference lines or traffic lines.

14. The system according to claim 11, in, The open space optimization model includes a vehicle dynamics model for the autonomous vehicle.

15. The system according to claim 11, in, The reinforcement learning algorithm is performed by an actor neural network and a critic neural network, and wherein the actor neural network and the critic neural network are deep neural networks.