An automatic parameter tuning framework for controllers used in autonomous vehicles
The parameters of the autonomous vehicle controller are simulated and optimized in multiple driving scenarios through the Bayesian global optimizer, which solves the problem of parameter adjustment in the existing technology, improves the control performance and reduces the computing cost.
Patent Information
- Application Number
- CN202110187207.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-09-30
- Filing Date
- 2021-02-18
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-02-18
AI Technical Summary
In the existing technology, it is difficult to find the optimal parameter set in various driving scenarios for parameter adjustment of autonomous vehicle controller systems, resulting in poor control performance and high computational costs.
A Bayesian global optimizer is used to generate and calculate weighted scores by simulating multiple driving scenarios, and iteratively optimize the adjustable parameters of the controller to improve control performance.
It achieves optimal control parameter adjustment in different driving scenarios, improves the control performance of autonomous vehicles, and reduces computing costs.
Smart Images

Figure CN114326696B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to operating an autonomous vehicle. More specifically, embodiments of the present disclosure relate to an efficient real-time process for optimizing control parameters of one or more adjustable controllers of an autonomous vehicle to improve control of the autonomous vehicle. Background Art
[0002] A vehicle operating in an automated driving mode (e.g., without human control) can relieve occupants, particularly the driver, from some driving-related responsibilities. When operating in an automated driving 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 operations mainly estimate the difficulty of completing a given path from its curvature and velocity (first-order dynamics), without considering the second-order dynamics of the control subsystems (such as brakes, throttle, and steering).
[0004] When deploying a controller system for an autonomous vehicle, it is critical to specify the controller system design parameters for a particular autonomous vehicle so that the autonomous vehicle moves as instructed. However, a large number of controller design parameters must be determined, and their values must be tuned to obtain optimal controller performance. Efficiently finding a set of optimal controller parameter values that can be used in a variety of driving scenarios is a significant challenge.
[0005] In the prior art, the parameters of the controller can be adjusted by a human observer or by a brute force search using a grid search algorithm. Relying solely on human experience may not guarantee the optimal set of parameters for the controller, while a brute force search using a grid search algorithm in the parameter configuration space may introduce a large computational cost. Summary of the invention
[0006] The present disclosure provides a computer-implemented method, non-transitory machine-readable medium, data processing system, and computer program product for automatically adjusting one or more controllers of an automated driving vehicle (ADV) control system.
[0007] A computer-implemented method for automatically tuning one or more controllers of an automated driving vehicle (ADV) control system, comprising: for each of a plurality of driving scenarios, running a simulation of the driving scenario using a first value for each of a plurality of adjustable parameters to control one or more controllers of the ADV; and generating a score for the simulation of the driving scenario, the score indicating performance of the one or more controllers during the simulation of the driving scenario; calculating a first weighted score from the scores generated for the simulation of each of the plurality of driving scenarios; and optimizing the values of the plurality of adjustable parameters by iteratively performing the operations of running the simulation, generating the scores, and calculating the first weighted scores, using the first weighted score for each repetition as a target to generate a second value for each of the plurality of adjustable parameters, wherein the optimized values of the plurality of adjustable parameters are used by the one or more controllers of the ADV to navigate the ADV.
[0008] A non-transitory machine-readable medium having instructions stored therein, which, when executed by a processor, cause the processor to perform operations for automatically adjusting one or more controllers of an automated driving vehicle (ADV) control system, the operations comprising: for each of a plurality of driving scenarios, running a simulation of the driving scenario using a first value for each of a plurality of adjustable parameters to control the one or more controllers of the ADV; and generating a score for the simulation of the driving scenario, the score indicating performance of the one or more controllers during the simulation of the driving scenario; calculating a first weighted score from the score generated for the simulation of each of the plurality of driving scenarios; and optimizing the values of the plurality of adjustable parameters by iteratively performing the operations of running the simulation, generating the score, and calculating the first weighted score, using the first weighted score for each repetition as a target to generate a second value for each of the plurality of adjustable parameters, wherein the optimized values of the plurality of adjustable parameters are used by the one or more controllers of the ADV to navigate the ADV.
[0009] A data processing system includes: a processor; and a memory connected to the processor to store instructions, which, when executed by the processor, cause the processor to perform operations for automatically adjusting one or more controllers of an automated driving vehicle (ADV) control system, the operations including: for each of a plurality of driving scenarios, running a simulation of the driving scenario using a first value for each of a plurality of adjustable parameters to control the one or more controllers of the ADV; and generating a score for the simulation of the driving scenario, the score indicating the performance of the one or more controllers during the simulation of the driving scenario; calculating a first weighted score from the score generated for the simulation of each of the plurality of driving scenarios; and optimizing the values of the plurality of adjustable parameters by iteratively performing the operations of running the simulation, generating the score, and calculating the first weighted score, using the first weighted score for each repetition as a target to generate a second value for each of the plurality of adjustable parameters, wherein the optimized values of the plurality of adjustable parameters are used by the one or more controllers of the ADV to navigate the ADV.
[0010] A computer program product, including a computer program, which, when executed by a processor, implements a method for automatically adjusting one or more controllers of an automated driving vehicle (ADV) control system, comprising: for each of a plurality of driving scenarios, running a simulation of the driving scenario using a first value for each of a plurality of adjustable parameters to control one or more controllers of the ADV; and generating a score for the simulation of the driving scenario, the score indicating the performance of the one or more controllers during the simulation of the driving scenario; calculating a first weighted score from the score generated for the simulation of each of the plurality of driving scenarios; and optimizing the values of the plurality of adjustable parameters by iteratively performing the operations of running the simulation, generating the score, and calculating the first weighted score, using the first weighted score for each repetition as a target to generate a second value for each of the plurality of adjustable parameters, wherein the optimized values of the plurality of adjustable parameters are used by the one or more controllers of the ADV to navigate the ADV. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] 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.
[0012] Figure 1 is a block diagram illustrating a networked system according to one embodiment.
[0013] Figure 2 is a block diagram illustrating an example of a sensor system and a control system for an autonomous driving vehicle according to one embodiment.
[0014] 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.
[0015] Figure 3C Example autonomous vehicle control commands and autonomous vehicle control subsystem actuation responses to the control commands are shown according to some embodiments.
[0016] Figure 3D A steering control subsystem and a power source for use in an autonomous vehicle are shown according to one embodiment.
[0017] Figure 4 is a block diagram showing the structure of an automatic driving system according to one embodiment.
[0018] Figure 5 is a block diagram illustrating a data flow and system for generating standardized performance metrics for an autonomous vehicle controller for improving an autonomous vehicle controller according to one embodiment.
[0019] Figures 6A to 6C is a block diagram illustrating data flow and a system incorporating an extended model reference adaptive controller (MRAC) that improves actuation of one or more control subsystems in an autonomous vehicle, according to one embodiment.
[0020] Figure 7 is a block diagram illustrating a process flow of an automatic parameter tuning framework for a controller used in an autonomous vehicle according to a tapered implementation.
[0021] Figure 8 A method for automatic parameter adjustment of a controller used in an ADV according to one embodiment.
[0022] Fig. 9A and 9B A method for automatic parameter adjustment of a controller used in an autonomous vehicle is provided according to one embodiment. DETAILED DESCRIPTION
[0023] 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.
[0024] References in this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, or characteristic described in connection with the embodiment may 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.
[0025] In an embodiment, a computer-implemented method for automatically adjusting one or more controllers of an autonomous vehicle (ADV) control system includes: generating, by an optimizer, a first value for each of a plurality of adjustable parameters of the one or more controllers of the ADV. In an embodiment, the optimizer may be a Bayesian global optimizer. The Bayesian global optimizer may utilize a plurality of surrogate models including Gaussian process regression (GPR) and tree-structured Parzen estimation (TPE), which are probabilistic models for approximating an objective function. For each of a plurality of driving scenarios: running a simulation of the driving scenario using a first value for each of the plurality of adjustable parameters to control the one or more controllers; generating a score for the simulation of the driving scenario indicating a performance level of the one or more controllers during the simulation of the driving scenario; and calculating a first weighted score based on the score generated for the simulation of each of the plurality of driving scenarios. Optimizing the values of the plurality of adjustable parameters by repeating the aforementioned operations, using the first weighted score obtained from each repetition as a target for the optimizer, and generating a second value for each of the plurality of adjustable parameters using the obtained first weighted score. Repeating the aforementioned operations until a predetermined fixed number of repetitions has been performed. The optimized values of the plurality of adjustable parameters are then incorporated into one or more controllers of a physical real-world ADV, and the ADV is navigated using the one or more controllers. In an embodiment, in a first iteration of the aforementioned operation, a first value for each of the plurality of adjustable control parameters is randomly selected. In an embodiment, a second independent instance of the aforementioned operation having a first value different from the first value for the plurality of adjustable parameters is run in parallel with the first instance of the operation. The second independent instance of the operation is repeated until the difference between the second weighted score and the first weighted score of the previous iteration of the operation is less than a predetermined threshold amount. The plurality of adjustable parameters may include: a time constant parameter and an adaptive gain parameter for a model reference adaptive gain controller (MRAC), the MRAC optimizing the actuation of the steering control subsystem, the braking control subsystem, and the throttle control subsystem of the ADV. The plurality of adjustable parameters may also include a plurality of lateral dynamic parameters in a state weighting matrix of a linear quadratic regulator (LQR) of the ADV. In an embodiment, the plurality of adjustable parameters may include low-speed and high-speed proportional gain parameters, low-speed and high-speed integral gain parameters, and a station error parameter. In an embodiment, the driving scenarios in the plurality of driving scenarios may include high-speed left turn, low-speed left turn, high-speed right turn, low-speed right turn, high-speed U-turn, low-speed U-turn, and serpentine continuous side pass. Serpentine continuous side pass refers to a driving scenario in which an autonomous driving vehicle (ADV) follows another vehicle in a first lane, and the ADV uses a second lane (to the right or left of the other vehicle) to overtake and pass the other vehicle, and then the ADV returns to the first lane. When viewed from above, the shape of the ADV driving path is serpentine.The passing of the other vehicle is continuous, as the ADV changes from the first lane to the second lane, then the ADV overtakes (passes) the other vehicle, and then the ADV changes from the other lane back to the first lane. In an embodiment, each of generating the first weighted score and the second weighted score is calculated using a weight profile, and the weight profile may include a higher weight for heading error than for speed error, and a higher weight for terminal error than for terminal lateral error.
[0026] In an embodiment, any / all of the above method functions may be implemented by a processing system that includes one or more hardware processors connected to a memory programmed with executable instructions, which, when executed by the processing system, cause the computing system to perform the claimed functions. In an embodiment, the memory may be a non-transitory computer-readable medium or other type of memory.
[0027] 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, the network configuration 100 includes an autonomous vehicle 101 that can be communicatively connected to one or more servers 103 to 104 via a network 102. Although one autonomous vehicle is shown, multiple autonomous vehicles can be connected to each other and / or to the servers 103 to 104 via the network 102. The 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. The servers 103 to 104 can be any type of server or server cluster, such as a network or cloud server, an application server, a back-end server, or a combination thereof. The servers 103 to 104 can be data analysis servers, content servers, traffic information servers, maps and points of interest (MPOI) servers, simulated autonomous vehicle driving servers, or location servers, etc. The autonomous vehicle driving simulator server 104 may include a data log of driving records that are substantially the same as the data log of a real autonomous vehicle. The driving simulator can be used to test proposed updates to the autonomous vehicle control system. The driving simulator can upload its driving record to be processed by, for example, the server 103 for algorithm 124, thereby generating a standardized set of metrics 124 that characterizes the performance of the autonomous vehicle control system. The driving simulator can simulate the actual driving of one or more types of ADVs. The types of ADVs may include compact ADVs, sport utility vehicles (SUVs), trucks, vans, or other physical types of ADVs. The autonomous driving of each type of ADV can be controlled by one or more controllers or subsystem controllers. The driving simulator can implement the ADV controller using the same or similar logic as in the physical real-world ADV. The controller of the ADV may include logic that runs a portion of the planned vehicle path, guiding the ADV along the planned vehicle path by controlling control subsystems such as steering, braking, and throttle. Each controller or subsystem controller (collectively referred to as a "controller") may include one or more adjustable parameters that affect the operation of the ADV with an ADV type. The controller includes a power controller, such as a linear quadratic regulator (LQR) or other power controllers (e.g., a "bicycle model"). The subsystem controller includes a model reference adaptive controller (MRAC), which optimizes the actuation of the subsystem (e.g., steering, braking, and throttle) based on the waiting time in the subsystem actuator. In an embodiment, each subsystem brake may have its own instance of an MRAC controller. The server 104 may have logic that implements the automatic parameter tuning framework to tune the values of the tunable parameters for each controller or subsystem controller using a driving simulator.
[0028] An autonomous vehicle 101 refers to a vehicle that is configurable to be driven in an autonomous 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 is operating. The vehicle and its associated controller use the detected information to navigate through the environment. The autonomous vehicle 101 may operate in a manual mode, in a fully autonomous mode, or in a partially autonomous mode. As described herein, in some embodiments, an autonomous vehicle is simulated in an autonomous driving simulator of a server 104. Autonomous vehicle types such as, for example, Characteristics and identifiers of a vehicle type (e.g., car, van, truck, SUV, etc.) and an autonomous vehicle controller type (e.g., model predictive control, or linear quadratic regulator (LQR)) that can be used to simulate an autonomous vehicle within an autonomous driving simulation system and driving records generated from driving sessions of the simulated autonomous vehicle.
[0029] 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 an ordinary vehicle, such as: an engine, wheels, a steering wheel, a transmission, etc., which 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.
[0030] Components 110 to 115 may be communicatively coupled to each other via an interconnect, a bus, a network, or a combination thereof. For example, components 110 to 115 may be communicatively coupled to each other via a controller area network (CAN) bus. The CAN bus is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other in applications without a host. It is a message-based protocol originally designed for multiplexed electrical wiring within an automobile, but is also used in many other environments.
[0031] Reference now 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 that is operable to provide information about the location of the autonomous vehicle. The IMU unit 213 may sense the position and orientation changes of the autonomous vehicle based on inertial acceleration. The radar unit 214 may represent a system that uses radio signals to sense objects within the local environment of the autonomous vehicle. In some embodiments, in addition to sensing objects, the radar unit 214 may additionally sense the speed and / or heading of the object. The LIDAR unit 215 may use lasers to sense objects in the environment of the autonomous vehicle. The LIDAR unit 215 may also include, among other system components, 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 environment surrounding the autonomous vehicle. 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.
[0032] 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 around the autonomous vehicle. The steering sensor may be configured to sense the steering angle of the steering wheel, the wheels of the vehicle, or a combination thereof. The throttle sensor and the brake sensor sense the throttle position and the 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.
[0033] 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.
[0034] The control system 111 may also include a subsystem controller 205. The subsystem controller 205 may include a controller for the steering unit 201, a controller for the throttle unit 202, and a controller for the brake unit 203. Each subsystem controller 205 receives one or more control commands from the ADV control system 111. Figure 3C As described, the ADV control system 111 receives the trajectory path followed by the ADV to navigate a portion of the ADV route. The control system 111 can determine the number of steering, braking and / or throttles required to navigate the ADV along the trajectory path. Then, the control system 111 issues one or more commands to one or more control subsystems (steering unit 201, throttle unit 202, brake unit 203). The steering command can be in the form of a target steering angle, such as on the left or right side of the straight ahead, expressed as an angle or arc. The throttle command from the control system 111 to the throttle unit 202 can be, for example, a target speed, acceleration, or full throttle percentage. The braking command from the control system 111 to the brake unit 203 can be, for example, a target speed, a deceleration rate, or a full braking percentage. Each control command from the control system 111 to the control subsystem (steering unit 102, throttle 202, brake 203) can be converted into a physical action on the control subsystem by a controller within the subsystem.
[0035] The physical actuation of a command received from the control system 111 by the control subsystem is not performed immediately. The time-latency in physical actuation represents the difference between the time when the command is issued from the controller 111 and the time when the subsystem controller outputs the command to start the physical actuation. After the command is started by the subsystem controller, there is a power delay in running the command to achieve the physical target actuation commanded by the controller 111. The systems and methods described herein compensate for the time-latency and power delay in the physical actuation of the subsystem, thereby improving the bandwidth of the control system 111. Figure 3C Describes example commands from the ADV controller to the subsystem controllers, and the resulting times for the subsystems - latency and braking power.
[0036] The subsystem controller 205 may include a memory 206 for reference actuation outputs, a memory 207 for, for example, power model parameters, a memory 208 for adaptive gains, and one or more model reference adaptive controllers (MRACs) 209. In an embodiment, the reference actuation outputs and / or predicted actuation outputs may be generated based on a model or one or more algorithms and data. Figures 6A to 6C References ("auxiliary systems"), predicted actuation outputs and other data 206, adaptive gains 208, and MRACS 209 are more fully described.
[0037] The subsystem controller 205 can be integrated with the ADV controller 111 or as a standalone subsystem controller. In practice, the subsystem controller is typically a third-party controller such that the ADV control system communicates with the subsystem actuator controller via a programming interface, and the details of how the subsystem is operated and actuated are a "black box" to the ADV controller designer. As described herein, compensating for subsystem time-wait times and actuation power delays enables the ADV to adaptively account for subsystem time-wait times and actuation power delays without knowing the cause or reason for the time-wait times and actuation power delays. Controlling subsystem time-wait times and actuation power delays is particularly important in driving scenarios that require rapid braking, acceleration, or steering. Note that, as Figure 2 The components shown may be implemented in hardware, software, or a combination thereof. One or more time constants and one or more adaptive gain values of the MRAC 209 may be adjusted by an automatic parameter adjustment parameter framework of the controller used in the ADV, as described below.
[0038] Return to reference Figure 1 , the wireless communication system 112 allows communication between the autonomous driving 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 Wi-Fi, 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.
[0039] 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 an autonomous 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. Optionally, the perception and planning system 110 may be integrated with the vehicle control system 111.
[0040] For example, a user as a passenger may specify a starting location and a destination of a trip, for example, via a user interface. The perception and planning system 110 obtains trip-related data. For example, the perception and planning system 110 may obtain location and route information from an MPOI server, which may be part of the servers 103 to 104. The location server provides location services, and the MPOI server provides map services and POIs of certain locations. Optionally, such location and MPOI information may be locally cached in a permanent storage device of the perception and planning system 110.
[0041] 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. Optionally, the functionality of the servers 103 to 104 may be integrated with the perception and planning system 110. Based on 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 safely and efficiently reach a designated destination.
[0042] An autonomous vehicle (ADV) 101 may generate and record driving records that capture data from subsystems such as sensor system 115, control system 111, and perception and planning system 110. The driving records may be uploaded to a server such as server 103 for storage by data collector 121. A cross-platform control profile system stored in algorithms and models 124 such as server 103 may analyze driving records from a large number of ADVs and simulated ADVs to generate driving records.
[0043] The server 103 may be a data analysis system, thereby performing 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 driving vehicles or conventional vehicles driven by human drivers). The driving statistics 123 include information indicating the driving instructions issued (e.g., throttle, brake, steering instructions) and the responses of the vehicle (e.g., speed, acceleration, deceleration, direction) captured by the vehicle's sensors at different points in time. The driving statistics 123 may also include information describing the driving environment at different points in time, such as routes (including starting and destination locations), MPOI, road conditions, weather conditions, etc.
[0044] Based on the driving statistics data 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 algorithm 124 may include a cross-platform control profile system that generates a standardized set of statistics or metrics 123, using ADV driving data and simulated ADV driving data ("cross-platform" means real and simulated ADV driving records) to characterize the performance of the ADV's autonomous driving control system. The original driving data records are uploaded from the ADV at a specific time, or manually uploaded to the date collector 121. Simulated ADV driving data is also uploaded to the data collector 121. The algorithm 124 is used to generate a set of standardized metrics that characterize the performance of the ADV control system. The metrics are stored in the driving statistics data 123 and distributed to subscribed users such as design engineers.
[0045] 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 an autonomous vehicle 101 includes, but is not limited to, a perception and planning system 110, a control system 111, and a sensor system 115. FIG. 3A to FIG. 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 route scheduling module 307 and a driving recorder 308 .
[0046] 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 modules of the vehicle control system 111 of the embodiment of the present invention may be integrated with them. Some of the modules 301 to 308 may be integrated together into an integrated module.
[0047] 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 referred to 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 POI (MPOI) server. The location server provides location services, and the MPOI server provides map services and POIs at certain locations, which can be cached as part of the map and route information 311. When 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.
[0048] 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 that the driver is driving. 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 splitting lanes, exit lanes, etc.
[0049] The perception module 302 may include a computer vision system or the 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 environment. The objects may include traffic signals, road boundaries, other vehicles, pedestrians, and / or obstacles, etc. The computer vision system may use 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, etc. The perception module 302 may also detect objects based on other sensor data provided by other sensors such as radar and / or LIDAR.
[0050] For each object, the prediction module 303 predicts how the object will behave in this situation. The prediction is performed based on the perception data, which perceives the driving environment at a point in time considering a set of map / route information 311 and traffic rules 312. For example, if the object is a vehicle in the opposite direction and the current driving environment includes an intersection, the prediction module 303 will predict whether the vehicle is likely to move straight ahead or turn. If the perception data indicates that there is no traffic light at the intersection, the prediction module 303 may predict that the vehicle may need to come to a complete stop before entering the intersection. If the perception data indicates that the vehicle is currently in a left-turn only lane or a right-turn only lane, the prediction module 303 may predict that the vehicle will be more likely to turn left or right, respectively.
[0051] For each object, the decision module 304 makes a decision about how to handle the object. For example, for a particular object (e.g., another vehicle in a crossing path) 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 rule set such as traffic rules or driving rules 312, which may be stored in the persistent storage device 352.
[0052] The route arrangement module 307 is configured to provide one or more routes or paths from the starting point to the destination point. For a given trip from the starting location to the destination location, such as a given trip received from a user, the route arrangement module 307 obtains the route and map information 311 and determines all possible routes or paths from the starting location to the destination location. The route arrangement module 307 can generate a reference line in the form of a topographic map, which determines each route from the starting location to the destination location. The reference line refers to an ideal route or path that is not interfered by any other factors such as other vehicles, obstacles or traffic conditions. That is, if there are no other vehicles, pedestrians or obstacles on the road, the ADV should follow the reference line accurately or closely. Then, the topographic map is provided to the decision module 304 and / or the planning module 305. The decision module 304 and / or the planning module 305 examine all possible routes to select and change one of the optimal routes based on other data provided by other modules, wherein the other data is such as traffic conditions from the positioning module 301, the driving environment perceived by the perception module 302, and the traffic conditions predicted by the prediction module 303. Depending on the particular driving circumstances 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 .
[0053] Based on the decision for each of the perceived objects, the planning module 305 plans a path or route and driving parameters (e.g., distance, speed, and / or turning angle) for the autonomous vehicle using the reference line 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, and 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, and 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 loop (e.g., the next route / path segment). For example, the planning and control data may indicate that the vehicle 300 moves at a speed of 30 miles per hour (mph) for 10 meters and then changes to the right lane at a speed of 25 mph.
[0054] 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.
[0055] In one embodiment, the planning phase is performed in multiple planning cycles (also referred to as driving cycles), for example, in each cycle with a time interval of 100 milliseconds (ms). For each of the planning cycles or driving cycles, one or more control commands will be issued based on the planning and control data. That is, for every 100ms, the planning module 305 plans the next route segment or path segment, for example, including the target position and the time required for the ADV to reach the target position. Optionally, the planning module 305 can also specify a specific speed, direction and / or steering angle, etc. In one embodiment, the planning module 305 plans the route segment or path segment for the next predetermined period of time (such as 5 seconds). For each planning cycle, the planning module 305 plans the target position for the current cycle (e.g., the next 5 seconds) based on the target position planned in the previous cycle. The control module 306 then generates one or more control commands (e.g., throttle, brake, steering control commands) based on the planning and control data of the current cycle.
[0056] 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 may include a navigation system or a function of a navigation system to determine a driving path for an autonomous vehicle. For example, the navigation system may determine a series of speeds and directions of travel for influencing the autonomous vehicle to move along a path that substantially avoids perceived obstacles while allowing the autonomous vehicle to move along a roadway-based path to a final destination. The destination may be set based on user input via the user interface system 113. The navigation system may dynamically update the driving path while the autonomous vehicle is running. The navigation system may combine data from a GPS system and one or more maps to determine a driving path for the autonomous vehicle.
[0057] The driving recorder 308 records driving records from at least three data channels of the ADV control system: a control channel, a rack channel, and a positioning channel. The control channel generates information about control commands to the control system of the ADV, such as brakes, throttles, and steering. The rack channel generates information from various sensors such as accelerometers, as well as readings of the actual position or actuation of the brake, throttle, and steering systems. The positioning channel generates information about the actual position and heading of the ADV with reference to a standard reference such as a high-definition (HD) map or a global positioning satellite (GPS) system. The data record can be recorded at about 100 frames per second (fps) or about 10 milliseconds (ms) per frame. Each driving record has a timestamp. The timestamp can be an absolute timestamp in the form of hh:mm:ss:ms (hours, minutes, seconds, milliseconds) relative to a start time (such as the start of a driving route). In an embodiment, the timestamp can be a frame number relative to a start time (such as the start of a driving route). In an embodiment, in addition to the timestamp, each driving record may also have a date stamp. The data recorder 308 may record driving records for simulated ADV driving sessions as well as real-world ADV driving sessions.
[0058] The data recorder 308 may write the driving record to a non-volatile storage device, such as a driving log 313 memory. The driving log 313 may be uploaded to a server system, such as servers 103 and 104, to generate a standardized set of performance metrics that grade the performance of the controller of the ADV. The controller of the ADV may be updated by the ADV controller / update 314 using the standardized set of metrics, and the updated controller of the ADV may be stored in the permanent storage 352. The permanent storage 352 may also include logic and updates to the ADV controller.
[0059] like Figure 3BAs shown, the data recorder 308 may also receive driving records from the planning module. The planning module driving records may be used to compare planned driving conditions with actual (or simulated) driving conditions to grade the performance of the ADV controller.
[0060] Figure 3C An example ADV control command and an autonomous vehicle control subsystem actuation action response to the control command are shown according to an embodiment. Assume that the example control command 350 is shown as a step function. In practice, the control input is typically not a step function. However, the control input is a good illustration of the concepts to be described herein. The control command 350 has a time-wait time 355. The time-wait time is the time between a control input given to an ADV control subsystem (e.g., throttle, steering, brake) by the ADV control system 111 and the start of actuation of the control subsystem in response to the control input.
[0061] The control command 350 may be passed through a low pass filter 351 before being passed to the subsystem actuation 352. ADV is "drive-by-wire", which means that the control subsystem actuation is via the transmission of the control command. In practice, the control subsystem actuator is usually provided by a third party different from the designer of the ADV or ADV controller. Thus, the designer of the ADV or ADV controller knows that there is an actuation delay after receiving the actuation command and before the actuation begins, such as rise time 356, overshoot 357, and time-latency, but the designer of the ADV or ADV controller does not know the exact source of the actuation delay. For the ADV designer or ADV controller designer, the control subsystem actuator is just a "black box" with an actuation delay associated with the input control command. The systems and methods described herein can use reference actuation outputs, predicted actuation outputs, control-by-wire actuation outputs, adaptive gains, time-delay compensation and time-latency compensation and closed-loop subsystem controllers to take into account actuation delays and time-latency.
[0062] Figure 3D A steering control subsystem and power source for use in an autonomous vehicle according to an embodiment are shown.
[0063] Steering control subsystem 360 is an example control subsystem of ADV 101. Steering subsystems in ADVs are typically "drive-by-wire" systems that receive control commands (e.g., control command 350) and execute the control commands through physical and electronic means. Steering control subsystem 360 may include belt drive 361, handwheel feedback motor 363, handwheel angle sensor 362, steering actuator 364, pinion angle sensor, and tires. Steering actuator 364, for example, and tires may introduce a source of actuation power delay.
[0064] Figure 4400 is a block diagram showing a system architecture for autonomous driving according to one embodiment. Figure 3A and 3B The architecture of the autonomous driving system is shown in Figure 2. Figure 4 , the system architecture 400 includes, but is not limited to, an application layer 401, a planning and control (PNC) layer 402, a perception layer 403, a driver layer 404, a firmware layer 405, and a hardware layer 406. The application layer 401 may include a user interface or configuration application that interacts with a user or passenger of the autonomous vehicle, for example, functionality associated with the user interface system 113. The PNC layer 402 may include functionality of at least the planning module 305 and the control module 306. The perception layer 403 may include functionality of at least the perception module 302. In one embodiment, there are additional layers that include functionality of the prediction module 303 and / or the decision module 304. Optionally, such functionality may be included in the PNC layer 402 and / or the perception layer 403. The system architecture 400 also includes a driver layer 404, a firmware layer 405, and a hardware layer 406. The firmware layer 405 may represent functionality of at least the sensor system 115, which may be implemented in the form of a field programmable gate array (FPGA). The hardware layer 406 may represent hardware of the autonomous vehicle, such as the control system 111. Layers 401 - 403 may communicate with a firmware layer 405 and a hardware layer 406 via a device driver layer 404 .
[0065] Figure 5 A cross-platform control profile system 500 is shown in block diagram form according to some embodiments, and generates performance metrics for grading the performance of a control system of an ADV. The cross-platform control profile system 500 may be implemented on servers 103 and 104, for example.
[0066] The cross-platform control profile system (or "control profile system") 500 may include a simulation platform 510 and a data pipeline 520. The simulation platform 510 may simulate driving a real-world ADV, including simulating driving of an ADV having an ADV type (e.g., ADV make, model, revision number) and an ADV control system type (or "ADV controller type") of the ADV (e.g., model predictive control, linear quadratic regulator, or hybrid controller type). The ADV control system type may also have a model, hardware revision level, software revision level, build number, serial number, and other identifying information. A specific ADV controller type may be simulated within the simulation platform 510 so that the simulated driving may generate a simulated data 515 driving record that is similar to a real-world ADV "road test data" 545 driving record. The simulated data 515 may be generated by a driving session of a simulated ADV. The simulated data 515 may be uploaded to the data pipeline 520 to generate a set of performance metrics that rank the performance of the ADV control system. In an embodiment, at the end of the simulated driving session, the simulation data is automatically uploaded to the data pipeline 520 .
[0067] The data pipeline 520 may include source data 530, data channels 540, characteristic filtering 550, visualization 560, data analysis module 570, and analysis result distribution 580. The source data 530 may include simulation data 515 driving records and road test data 545 driving records. The data extraction module 532 may receive selection criteria from a user interface, or from a processing job instruction, or other means of receiving driving data selection criteria. The data extraction 532 may extract driving records from the received simulation data 515 and road test data 545. The data extraction 532 may limit the extracted records to a specific ADV type 535 and a specific ADV controller type 538. The ADV vehicle type 535 may be a vehicle classification (compact, standard, full-size, sport utility vehicle (SUV), or truck) or a specific manufacturing brand, model, and year (e.g., Accord 2019). ADV type 535 may include other identification information that may further identify the physical attributes of the specified ADV, such as wheelbase, curb weight, turning radius, engine type (hybrid, electric, diesel, or gasoline), maximum turning angle, horsepower rating, etc. ADV controller type 538 may include model predictive control (MPC), linear quadratic regulator (LQR), or a hybrid thereof. ADV controller type 538 may also include hardware identifiers, software module identifiers, version information, etc. Source data 530 extracted from simulation data 515 and road test data 545 and selected based on ADV type 535 and ADV controller type 538 is passed to channel module 540 and processed by channel module 540.
[0068] The driving data record may be generated by an ADV or simulated ADV at a rate of, for example, 100 frames per second (100fps) or at intervals of approximately 10 milliseconds (ms). Each driving data record may have a timestamp representing a value that increases monotonically sequentially from a start time. In an embodiment, the start time may be associated with a real-time clock. In an embodiment, the start time may be associated with the first time of a day when the ADV or simulated ADV is powered on or actuated. In an embodiment, the start time may be associated with the start time of a driving session from a start position to an end position. The timestamp may have a granularity of at least 10ms. In an embodiment, the timestamp may be a monotonically increasing positive integer value representing a data frame number as measured from the first frame number. The driving data record may be grouped into at least three driving record source data channels by a channel module 540: a control channel 542, a rack channel 545, and a positioning channel 548.
[0069] Control channel 542 :The driving record generated by the ADV control channel 542 includes information about the control systems of the ADV (such as throttle, steering, and brakes). The control channel 542 driving record can be generated by the control module of the ADV (e.g., control module 306). The driving record is recorded by, for example, the driving recorder 308. Each driving record may include a timestamp for the driving record, a throttle control value sent to the throttle control system of the ADV, a steering control value sent to the steering control system of the ADV, and a field for the brake control value sent to the ADV brake system. The throttle control value may be expressed as a percentage, such as 0..100%. In an embodiment, the throttle control value may be expressed as or converted from a percentage to, for example, an integer value, such as a 12-bit digital value in the range of 0..4095. The digital value may be used by a digital-to-analog converter (DAC) of the ADV control system to command the throttle system of the ADV. Similarly, the brake value may be expressed as a percentage or a digital value that may be converted to an analog value by a DAC to control the brake system of the ADV. The steering input command may be expressed in degrees such as ±0..40°, indicating the amount of steering left or right. In an embodiment, the braking input value may be expressed in radians instead of degrees.
[0070] Rack channel 545: The frame driving data channel 545 may include sensor output values or readings from multiple frame sensors, including but not limited to: lateral acceleration sensors, front / rear acceleration sensors, vertical acceleration sensors, pitch sensors, roll sensors, position sensors of actuators of the braking system, position sensors of actuators of the throttle system, and position sensors of the steering system. The lateral acceleration sensors, front / rear acceleration sensors, and vertical acceleration sensors may each have one or more thresholds that are considered to be indicative of the comfort and / or safety of the passengers of the ADV. The pitch sensor and roll sensor indicate the forward / rearward pitch or roll force of the frame around the axis of the ADV, respectively. The pitch value and roll value may each have one or more thresholds that are considered to be indicative of the comfort and / or safety of the passengers of the ADV. The frame channel 545 may also include actuator sensors for the braking system, throttle system, and steering system to measure the actual position of each system.
[0071] Positioning channel 548 The positioning channel 548 driving data record may include information about the position and heading of the ADV relative to a high definition (HD) digital map or a global positioning satellite (GPS) system. The positioning information may include a planned heading, planned stops along the route, planned speed, and planned acceleration received from a planning system such as the planning module 305. The positioning channel 548 may also include a driving data record indicating the actual heading of the ADV or simulated ADV, actual stops along the planned route, actual speed, and actual acceleration.
[0072] The above source data 530 from the data channel 540 of the ADV is further processed by a characteristic filtering system 550. The characteristic filtering 550 includes a driving mode filter 552, a shift position filter 555 and a time stamp alignment module 558.
[0073] The driving mode filter 552 filters the driving records to include only driving records in the automated driving vehicle mode. Driving records in manual (human) driving mode and hybrid driving mode (human and automatic) are filtered out by the driving mode filter 552. The driving mode filter 552 can also filter out driving records indicating that the ADV speed is zero except at the end of the route station of the ADV. Even if the ADV speed at the end of the route should be zero, the station and the forward direction value at the end of the driving route are analyzed by the analysis module 570 and included as a driving record. The gear shift filter 555 also filters the driving records to include or exclude driving records based on whether the gear position of the ADV is in the forward driving gear or the reverse driving gear. The gear shift filter 555 is also configured to exclude driving records when the gear shift position of the ADV is "parking" or "neutral".
[0074] The timestamp alignment module 558 aligns the driving records according to their respective timestamps in preparation for the generation of a set of controller performance metrics by the analysis module 570. For example, in order for the analysis module 570 to generate a station error metric "station_err_std", the analysis module 570 calculates the difference between the trajectory of the ADV's planned stations along the route and the trajectory of the ADV's actual stations along the route for a large number of stations at a certain point in time. Similarly, metrics are generated for heading error, pitch amount, roll amount, velocity error, acceleration error, vertical acceleration amount (e.g., "bump"), lateral acceleration error (e.g., lateral "bump" feeling), or forward / backward acceleration (e.g., "forward bump" feeling due to braking or "backward bump" feeling due to throttle application).
[0075] The raw data may be generated by the analysis module 570, which may be used by the visualization module 560 to generate curves and histograms of the raw data. Fig. 9A and 9BExample curves describing raw data. Raw data and / or visualization data for curves and histograms can be stored in standardized data formats such as HDF4 or HDF5. After the source data 530 has been filtered by the characteristic filter 550, the analysis module 570 generates a standard metric set for all ADV driving data (simulated driving and actual road test driving). The standard metric set includes, for example, the following metrics calculated from the source data of the over-wave. The standard metric set can be organized into control performance metrics 572, safety metrics 574, sensory metrics 576, and usage metrics 578. The described standardized metric set is exemplary and non-exhaustive. The control performance 572 metric is a metric related to the performance of the ADV vehicle controller in accurately following the site and forward direction information in the planned trajectory of the ADV route. The safety 574 metric is a metric related to the safety of navigating the ADV, and may include the "worst case" control accuracy of the site, speed, lateral position, and forward direction control, as well as the control accuracy of some specific points (such as the end of the route or the end of the partial driving route, such as pedestrian stop lines, stop signs, stop lights, or stopped vehicles). The safety 574 metric may also include an indication of the distance away from obstacles (people, parked cars, etc.). The feel 576 metric may include the smoothness of driving the ADV, such as whether there is excessive pitch, roll, acceleration, bumps, sharp turns or hard braking, etc. The use 578 metric may include indicating the stations and forward directions of the trajectory of the ADV route maintained under the efforts of the ADV controller, and the magnitude and frequency of control adjustments made by the ADV controller to the steering, throttle and braking control systems. An exemplary, non-exhaustive set of metrics for evaluating the performance of the ADV controller is described below with reference to Tables I to IV below. In the following table, severe driving conditions refer to abnormal driving conditions, such as extreme traffic, an abnormally high number of curves / straights, an abnormally high number of stop signs, or the number of traffic lights per unit distance of the road. Quantitative thresholds for characterizing "severe" driving conditions can be configured in the control profile system.
[0076]
[0077]
[0078] Table I
[0079]
[0080]
[0081] Table II
[0082]
[0083] Table III
[0084]
[0085]
[0086] Table IV
[0087] The following example illustrates a method for calculating the metric "lateral_error_std". Similarly, the other metrics are calculated. Optional algorithms can be used for the lateral_error_std ADV controller metric μ y .
[0088] in:
[0089] y i is the actual lateral position of ADV at time increment i,
[0090] y des,i is the planned lateral position of ADV at time increment i,
[0091] L wheelbase is the wheelbase of ADV,
[0092] k des,i is the planned curvature of the trajectory of ADV at time increment i,
[0093] is the planned longitudinal velocity at time increment i,
[0094] Δt is the time between increments of i (i.e., the sampling time of a single frame), and
[0095] n frame is a predetermined number of data frames.
[0096] Feedback to the design model 580 may communicate the visualization data 560 generated by the analysis module 570 to the simulation platform 510. The simulation platform 510 may receive the visualization data 560 and generate one or more curves or histograms from the visualization data 560. In an embodiment, the ADV controller type 538 for which the analysis is performed by the analysis module 570 may have one or more adjustable parameters that modify the corresponding characteristics of the ADV controller type. An updated ADV controller may be generated using the set of metrics generated by the analysis module 570, input received from a design engineer, and / or changes in the adjustable parameters automatically generated by the feedback to the design model 580. The feedback to the design model 580 may communicate the set of metrics generated by the analysis module 570, the visualization data 560, and any suggested modifications for updating the ADV controller type automatically generated from the feedback to the design model 580, the distribution results 590 module. The distribution results 590 module distributes the above information to the design engineer for further analysis. Such analysis may result in an updated ADV controller having an ADV controller type.
[0097] Fig. 6A 6 is a block diagram illustrating data flow and a system 600 that incorporates an extended model reference adaptive controller (MRAC) including a predictor system and improves control bandwidth for actuation of one or more control subsystems of an autonomous vehicle (ADV) according to one embodiment. The control subsystems may include the brake, throttle, and steering systems of the ADV. When actuating the control subsystem using a "drive by wire" approach, there are second order dynamic delays and time-latency of the control subsystem. The second order dynamic delays may include the rise time, overshoot, and settling time of the measured actuation state of the control subsystem with respect to an input actuation command. The actuation system 650 may reduce the second order actuation dynamic delay and time-latency to produce smoother actuation control of the control subsystem using a model reference 660, a predictor system 680, a model reference adaptive control (MRAC) feedback controller 655, and an extended MRAC adaptive gain system 670.
[0098] The auxiliary (reference) system 660 uses a time-delay compensation function 679 to reflect the "time-delay" effects in the real-world drive-by-wire actuation system 665. A delayed "desired" actuation output 661 is then created by the reference system 660 to compare with the actuation output 666 of the "imperfect" drive-by-wire actuation system 665 that includes the power delay and time-latency in the vehicle actuation system 605. The control error 669 between the reference actuation action 661 and the drive-by-wire actuation action 666 is the control error 669 that will be used in the adaptive gain process 670.
[0099] The predictor system 680 uses a "loop shaping" mathematical model to "predict" the actuation system response in the near future time horizon and then creates a "future" predicted actuation action 681 that includes the time-latency effect 656 to compare with the drive-by-wire actuation action 666 of the vehicle control system 605. The predicted control error 668 between the predicted actuation action 681 and the drive-by-wire actuation action 666 will also be used by the adaptive gain process 670 to determine the adaptive gain 671.
[0100] The MRAC feedback controller 655 generates a "realizable" actuation action 659 control by using the (dynamically adjusted) adaptive gain 671 to feedback input / state / etc.
[0101] The extended MRAC adaptive gain system 670 performs on-line adjustments of adaptive gains 671 to ensure convergence and stability of the inner loop system of the actuation control system 650. The MRAC is extended to cover two aspects of the powertrain: the control error 669 between the "reference" system 660 and the "actual" (control-by-wire) system 665, and the predicted control error 668 between the "predictor" system 680 and the "actual" (control-by-wire) system 665.
[0102] System 600 includes a vehicle system 605 controller and an actuation system 650. The actuation system 650 may include functionality for all control subsystems (throttle, brake, steering). In an embodiment, one or more control subsystems each have their own actuation system 650. Vehicle system 605 may include a vehicle system controller 615 and a calibration table 620. Vehicle system 605 may be considered an "outer loop" with respect to actuation system 650 as an "inner loop" that may iterate as fast or faster than the "outer loop" of vehicle system 605. The outer loop addresses vehicle lateral dynamics. The inner loop addresses vehicle actuation dynamics, such as steering, brake, or throttle actuation dynamics.
[0103] In operation, the vehicle system 605 receives a planned trajectory 610 from the perception and planning system (e.g., perception and planning system 111) of the ADV. The summing circuit 611 receives the planned trajectory 610 signal and also receives a state output y676 of the vehicle system 675. The state output 676 represents the current measured actuation state of the control subsystem of the vehicle system (e.g., the frame) 675. For example, the planned trajectory 610 may specify that the steering command subsystem actuates to 8° left of center, and the state output 676 reports that the current state of the steering subsystem is 5° left of center. The summing circuit 611 may report this difference to the vehicle system controller 615 as an additional 3° left of center.
[0104] The vehicle system controller 615 can be any type of ADV vehicle controller, such as a model predictive controller (MPC) or a linear quadratic regulator (LQR). The vehicle system controller 615 outputs a control command 616 (e.g., a steering command) to a calibration table 620. The calibration table 620 generates a subsystem control actuation command 621, such as a command to actuate the steering control subsystem to 8° of the planned trajectory 610 input with an additional 3° of steering input to the left of the center command (desired input 621) to achieve 8° to the left of the center indicated in the plan and trajectory signal 610. The desired input action r 621 is input to the MRAC feedback controller 655 and the reference (desired actuation) system 660.
[0105] Reference now Figure 6B , the exemplary desired input action 621 is shown as a step function input to the actuation system 650. In practice, the input to the actuation system of the control subsystem is rarely a step function. However, the step function is used to illustrate the second-order actuation dynamics of the actuation system 650. Also refer to Figure 3C Second order actuation dynamics are described. The desired input action 621 is passed to the MRAC feedback controller 655 and the reference system 660 at time t0.
[0106] The reference system 660 receives the desired input action 621 and creates an "expected" or "reference" actuation action 661 to compare to the actuation action 666 of the "incomplete" drive-by-wire actuation system 665 of the vehicle system 605. The model reference system 660 outputs the reference actuation action 661 to a comparator (or "summing circuit") 667 for comparison to the drive-by-wire actuation action 666 described below. A control error 669 is determined as the difference between the model reference actuation action 661 and the drive-by-wire actuation action 666. The reference system 660 may look up the reference actuation action 661 that corresponds to the received desired input 621. The reference actuation action 661 may be retrieved from the reference actuation output 206 memory of the subsystem controller 205, as described above with reference to FIG. Figure 2 As described in related U.S. Patent Application No. 16 / 790,036 filed on February 13, 2020 by Yu WANG et al., entitled “Autonomous Vehicle Actuation Dynamics and Latency Identification,” second-order dynamic delays and time-latency can be identified and characterized in the control subsystem. Reference system 660 can be a machine-generated or manually generated actuation curve that takes into account the second-order dynamic delay of the control subsystem. For example, given an example desired input 621, reference system 660 can look up or generate an example desired reference action x a661. The desired reference actuation action 661 is received by the summing circuit 667. The reference actuation action 661 is an ideal or desired output to achieve what may or may not be physically achievable by the drive-by-wire actuation system 665, but the reference system 660 does take into account the second order dynamics of the drive-by-wire actuation system 665 (e.g., rise time, overshoot, settling time).
[0107] At substantially the same time as the reference system 660 determines the reference actuation output 661, the MRAC feedback controller 655 receives the desired input 621. Assume that the MRAC feedback controller receives the desired input action 621 at time t0, and the MRAC feedback controller 655 has not yet received the adaptive gain 671 associated with the desired input action 621. Therefore, at time t0, the MRAC feedback controller 655 can pass the desired input action 621 to the drive-by-wire actuation system 665 as the actuation command u 659 without the adaptive gain 671. In practice, the drive-by-wire actuation system 665 is typically a third-party component that is treated as a black box. Therefore, the drive-by-wire actuation system 665 generates the actuation action x 666 according to the programming or logic of the actuation system 665 produced by the manufacturer of the drive-by-wire actuation system 665. At time t1 , the drive-by-wire actuation action 666 is sent to (1) a vehicle system such as 675 , (2) summing circuit 662 , (3) summing circuit 667 , and (4) MRAC feedback controller 655 as an input to MRAC feedback controller 655 .
[0108] The predictor system 680 predicts future predicted actions 681, such as future steering actions, and uses the predicted actions 681 to generate predicted control errors 668, which produce faster and more precise control responses. In addition to the control error 669 from the reference system 660, the predicted control error 668 provides additional information about the uncertain parameters of the drive-by-wire actuation system. This additional information helps to better maintain closed-loop stability and trajectory performance. The extended MRAC with a predictor system has greater potential to improve the robustness and transient performance of the actuation control system 650.
[0109] Predictor system 680 sends its predicted actuation action 681 to comparator 662. Comparator 662 determines predicted control error 668 as the difference between actuation action 666 and predicted actuation action 681. Reference system 660 sends its reference actuation action 661 to comparator 667. Comparator 667 determines control error 669 as the difference between actuation action 666 and reference action 661. Predicted control error 668 and control error 669 are passed to MRAC adaptive gain system 670 to determine adaptive gain 671 that is fed back to MRAC feedback controller 655 for use at time t1 and subsequently t2..t nThe next iteration of the inner control loop of the actuation control system 650 is performed until the execution of the actuation command 621 is completed or a new actuation command 621 is received. After the first iteration, at time t0 of the inner control loop, the adaptive gain 671 and the last actuation action 666 are fed back to the time-delay compensation function f(τ, t, x) to introduce the time-latency into the next reference actuation action 661 and include the adaptive gain 671 into the next reference actuation action 661. The time-delay compensation function 679 collects all time-latency related terms in the closed-loop mathematical model of the entire adaptive control system. The motivation for including time-delay compensation in the design of the auxiliary ("reference") system 660 is to cancel these "time-latency" terms when calculating the difference between the actuation action 666 and the reference system action 661. With this design, the negative impact of the time-latency factor in the stability of the entire closed-loop system will be eliminated.
[0110] The control-by-wire actuation action 666 includes real-world power delays and time-latency. When determining the next control error 669, the real-world power delays and time-latency in the actuation 666 will be offset by the time-delay compensation introduced into the reference actuation action 661, thereby producing a control error 669 without substantially any power delay or time-latency. Similarly, the prediction action 681 will have a time-latency introduced by the time-latency module 656. When determining the next prediction error 668, the real-world power delays and time-latency in the actuation action 666 will be offset by the time-latency function 656, thereby producing a prediction error 668 without substantially any time-latency.
[0111] In an embodiment, the adaptive gain 671 may be determined by the MRAC adaptive gain system 670 as follows. For simplicity, a first order system is discussed, which is sufficient to explain the adaptive algorithm.
[0112] (1) Adaptive feedback law:
[0113] in
[0114]
[0115]
[0116] γ x , γ r , > 0 is a constant adaptive gain that determines the convergence rate of the adaptive process; p ref , p prd >0 is a positive constant of the reference system error and the predictor system error, and its purpose is to improve system stability.
[0117] (2) Reference system dynamics function with time-delay compensation function:
[0118] in
[0119] in
[0120] a ref , b ref τ is the reference state constant gain and input constant gain, and τ is time-waiting time.
[0121] (3) Predictor system dynamic function:
[0122] in
[0123] a prd is the predictor state constant gain.
[0124] (4) (actual system-reference system) dynamic function:
[0125] in
[0126] e=xx a
[0127] is the ideal adaptive gain.
[0128] (5) (Actual system-predictor system) dynamic function:
[0129] in
[0130]
[0131] Reference now Figure 6B , further showing Fig. 6A 666. The example reference actuation output 661 is summed with the example actuation action 666 by a summing circuit 667. The summation result is output as a control error 669 to an extended MRAC feedback gain system 670. The example predicted actuation action 681 is summed with the example actuation action 666 by a summing circuit 662. The summation result is output as a predicted error 668 to an MRAC adaptive gain system 670. The MRAC adaptive gain system 670 generates an adaptive gain 671 so that the MRAC feedback controller can adjust the control error 669 at the next iteration t. n+1 =t n+Δt, where Δt is the time increment. The time increment can be determined or limited by the actual inner loop iteration bandwidth. If the free-running inner loop iteration time is between 3 and 5 milliseconds (ms), the inner loop iteration time can be simplified to performing the next iteration when the previous iteration is completed. In an embodiment, the time increment of the inner loop iteration can be fixed, such as 5ms or 10ms. The result of applying the adaptive gain 671 from the extended MRAC adaptive gain system 670 to the wire control actuation action 666 produces an actuation signal 659 with a reduced error to perform the next iteration of the extended MRAC adaptive gain system 670 and the MRAC feedback controller 655.
[0132] Figure 7 7 is a block diagram showing the processing flow of an automatic parameter adjustment framework 700 for a controller used in an autonomous driving vehicle (ADV) according to one embodiment. The server 104 may include an ADV driving simulator. The driving simulator may simulate the actual driving of one or more types of ADVs. The parameters for the ADV type 711 may include a list of adjustable parameters for the ADV type, and the ADV type that can be simulated in the driving simulator. The type of ADV may include a small ADV, a sports utility vehicle (SUV), a truck, a van, or other physical types of ADVs. The autonomous driving for each type of ADV may be controlled by one or more controllers or subsystem controllers. The controller of the ADV may include logic for running a portion of a planned vehicle path, which guides the ADV along the planned vehicle path by controlling control subsystems such as steering, braking, and throttle. Each controller or subsystem controller (collectively referred to as a "controller") may include one or more adjustable parameters that affect the operation of the ADV having the ADV type. The controller includes a power controller, such as a linear quadratic regulator (LQR) or other power controller (e.g., a "bicycle model"). The subsystem controllers include a model reference adaptive controller (MRAC) that optimizes actuation of subsystems (e.g., steering, brakes, and throttle) based on latency in the subsystem actuators. In an embodiment, each subsystem actuator may have its own instance of the MRAC controller. The server 104 may have logic that implements the automatic parameter tuning framework to tune the values of the adjustable parameters for each controller or subsystem controller using a driving simulator.
[0133] Automatic parameter tuning framework 700 (APTF 700) includes tuner component 710, simulation service 720 and cost calculation service 730. APTF 700 can be implemented on a server system, such as Figure 1 servers 103 and / or 104.
[0134] To achieve high efficiency, the adjuster component 710 supports a parallel evaluation process by spawning multiple worker threads to simultaneously sample different sets of parameter values in the configuration space of one or more controllers of the selected ADV type. The sampling method can be customized based on the parameter optimizer 712 and the sampling strategy. The parameter optimizer 712 can be a Bayesian global optimizer. The Bayesian global optimizer can utilize multiple surrogate models for approximating the probability model of the objective function, including Gaussian process regression (GPR) and tree structured Parzen estimation (TPE), etc.
[0135] These samples are sent to the cost calculation service 730. Each parameter value set 715 is combined with a pre-selected training scenario set 722 to produce a task, where each task is a unique combination of a parameter value set 715 and a training scenario 722. Tasks are managed and scheduled by the task assignment 724 logic. The cost calculation service 730, the task assignment 724 logic, sends a request to the simulation service 720 to run the task. Since the tasks are independent of each other, another round of efficiency improvement is achieved in the simulation service 720 by running all tasks in parallel and returning the run records independently to the cost calculation service 730.
[0136] As each run record is received, the cost calculation service 730 calculates a score 720 for the task based on the range of metrics associated with the controller being tuned. (See Tables I, II, III, and IV above.) A weighted average score 735 is also obtained for a particular set of parameter values 715 across all training scenarios 722. This average score is fed back to the tuner component 710 to be optimized by the parameter optimizer 712 in the next iteration.
[0137] The tuner component 710 may include a database 711 of vehicle types and adjustable parameters of the ADV type for one or more controllers of the ADV type. The simulator may use the one or more controllers to simulate driving of an ADV having the ADV type, and the values for each of the one or more adjustable parameters 715 are provided by the parameter optimizer 712.
[0138] The parameter optimizer 712 receives a selection of an ADV type (e.g., car, van, truck, etc.) and a plurality of m adjustable parameters (a "sampled new parameter set") 715 for the ADV type, using parameters from the ADV type database 711. In an embodiment, the plurality of m adjustable parameters 715 include one or more of the following parameters: (1) time constants and adaptive gain parameters for a model reference adaptive gain controller (optimizing actuation of the steering, braking, and / or throttle control subsystems); (2) a plurality of lateral dynamic parameters in a state weighting matrix of a linear quadratic regulator (LQR) of the ADV; (3) low speed and high speed proportional gain parameters; (4) low speed and high speed integral gain parameters; and (5) a station error parameter for an LQR or other dynamic model controller (e.g., a "bicycle model" controller) of the ADV. For each of the m adjustable parameters in the sampled new parameter set 715, the parameter optimizer 712 selects an initial ("first") value. In an embodiment, the initial value of each adjustable parameter 715 may be randomly selected within the value range space of the adjustable parameter. The parameter optimizer 712 references Figure 7 The described data flow iterates a predetermined fixed number of times. Each iteration produces a single weighted score 735, which is used by the parameter optimizer 712 as a target to modify the sampling parameters 715 for the next iteration of the optimizer. When the fixed number of iterations have been performed, the parameter optimizer 712 determines an optimal value for each of the plurality of adjustable parameters 715. In subsequent iterations, the parameter optimizer 712 may modify the values of the plurality of adjustable parameters in each iteration of the optimization operation described herein. In an embodiment, the parameter optimizer 712 may use the weighted scores 735 to modify the values of the plurality of adjustable parameters for the next iteration of the parameter optimizer 712.
[0139] The parameter optimizer 712 may be configured to optimize a predetermined fixed amount of adjustable parameter sets 715 (also referred to as "sampled new parameters 715"), such as sampled new parameter sets 715A..715C. Each set of sampled new parameters 715A..715C may be optimized simultaneously, in parallel, and independently of each other. The optimization may include repeated Figure 7 The predetermined fixed number of optimizer iterations may be the same number of optimizer iterations for each of the sampled new parameters 715A..715C, such that when each set of sampled new parameters 715A..715C completes its fixed number of optimization iterations, the parameter optimizer 712 may select a best set of sampled new parameters 715A..715C using the weighted scores 735A..735C of each set of sampled new parameters 715A..715C completing the fixed number of iterations.
[0140] The parameter optimizer 712 generates one or more sampled new parameters 715A..715C ("plurality of tunable parameters") and passes the sampled new parameters 715A..715C to the task assignment 724 of the cost calculation service 730. There are m tunable parameters in the sampled new parameter set 715A..715C, and each of the m tunable parameters has a value optimized by the parameter optimizer 712. The terms "value of optimized parameter" and "optimized parameter" are used interchangeably herein. The goal of the parameter optimizer 712 is to find the optimal value for each of the m tunable parameters.
[0141] The cost calculation service 730 may include a database of training scenarios 722. The training scenarios 722 may include thousands of different driving scenarios. For purposes of illustration and not limitation, a small subset n of the driving scenarios in the training scenarios 722 will be used to describe the operation of the automatic parameter adjustment framework for the controller used in the ADV 700. In an embodiment, a plurality of driving scenarios may include: high-speed left turn; low-speed left turn; high-speed right turn; low-speed right turn; high-speed U-turn; low-speed U-turn; serpentine continuous side pass. Serpentine continuous side pass refers to a driving scenario in which an autonomous driving vehicle (ADV) follows another vehicle in a first lane, and the ADV uses a second lane (to the right or left of the other vehicle) to overtake and pass the other vehicle, and the ADV returns to the first lane. When viewed from above, the shape of the ADV driving path is serpentine. The passage of the other vehicle is continuous, because the ADV changes from the first lane to the second lane, then the ADV overtakes (passes) the other vehicle, and then the ADV changes back to the first lane from the other lane. Each of these driving scenarios can be simulated with smooth driving actions and sharp driving actions. Smooth driving and hard driving may be expressed in terms of ADV speed and steering angle. High speed and low speed may be configured for each type of ADV. Thus, for a total of m=fourteen (14) driving scenarios, two (2) different driving styles are used to simulate each of the seven (7) exemplary driving scenarios. A selection or number of driving scenarios may be selected that is different from the exemplary driving scenarios used to describe the automatic parameter tuning framework for the controller used in the ADV 700.
[0142] The cost calculation service 730 may also include task allocation 724 logic. Task allocation 724 receives one or more sampled new parameter sets 715A..715C, and for each of these sampled new parameter sets 715A..715C, task allocation 724 receives a plurality of driving ("training") scenarios 722, such as the fourteen (14) driving scenarios described above. For each of the sampled new parameter sets 715A..715C, task allocation 724 manages the generation and scheduling of simulations 725A..725C for each of the selected driving scenarios 722. In the example, there may be three (3) sampled new parameter sets 715, labeled 715A, 715B, and 715C, respectively. Each sampled new parameter set 715A..715C is used to run a simulation for each of the fourteen (14) driving scenarios 722. Therefore, task allocation 724 will generate and schedule n simulations 725A1..725A14 for sampled new parameter set 725A, n simulations 725B1..725B14 for sampled new parameter set 725B, and n simulations 725C1..725C14 for sampled new parameter set 725C.
[0143] For each of the simulations scheduled by the task assignment 724, the simulation service 720 will perform the simulation tasks 725. For each of the scheduled simulations (e.g., 1 to 14), for each of the sampled new parameter sets 715A..715C, the cost calculation service 730 will generate a score 732 as to how well the ADV simulation 725 performed using the sampled new parameter sets 715 ranked according to a number of metrics (see Tables I, II, III, and IV above). Thus, for the sampled new parameter set 715A, the cost calculation service 730 will provide a score calculation for each of the simulations 725A1..725A14, resulting in scores 732A1..732A14. The cost calculation service 730 will also provide a single weighted score 735A representing the ADV performance for the values of the sampled new parameter set 715A in one or more controllers of the simulated ADV for all fourteen (14) simulations. In an embodiment, the weights used to generate the weighted score 735 reflect the higher or lower relative importance of certain metrics in the multiple metrics used to generate the score calculation 732. For example, the station end point error of the driving scenario may be weighted higher than the average speed error. The safety error may be weighted higher than the passenger comfort error, and the passenger comfort error may be weighted higher than the frequency of use of the control (such as braking, steering or throttle). The foregoing weights are exemplary and non-limiting. Those skilled in the art may select different weights in the metric group (control, safety, comfort, use), and / or select different weights in the metrics within the metric group.
[0144] Cost calculation service 730 provides weighted scores 735A..735C to parameter optimizer 712. Parameter optimizer 712 may use weighted scores 735A to modify sampled new parameters 715A for the next iteration ("iteration") of the optimizer to find the optimal value for sampled new parameters 715A. Similarly, parameter optimizer 712 may use weighted scores 735B to modify sampled new parameters 715B for the next iteration of the optimizer to find the optimal value for sampled new parameters 715B. Additionally, parameter optimizer 712 may use weighted scores 735C to modify sampled new parameters 715C for the next iteration of parameter optimizer 712 to find the optimized value for sampled new parameters 715C. In an embodiment, sampled new parameters 715A..715C may all be for the same type of ADV (e.g., a compact car, a truck, a van, etc.). In an embodiment, at the end of a configurable, predetermined fixed number of iterations of the parameter optimizer 712, the best new sampled parameter set 715 may be selected from the three (3) sampled new parameter sets 715A..715C, and the best set 715 of sampled new parameters may be downloaded to a physical real-world ADV having an ADV type for the sampled new parameters 715A..715C to navigate the ADV having the ADV type. In an embodiment, each of the sampled new parameters 715A..715C may be used for a different ADV type. At the completion of the fixed number of iterations of the parameter optimizer 712, each sampled new parameter set is optimized. Each of the optimized sampled new parameter sets 715A..715C may be downloaded to a physical real-world ADV of the ADV type for the sampled new parameter set, and each ADV of the physical real-world ADV may be navigated using the values of the optimized set of sampled new parameters for the ADV type. For each sampled new parameter set 715, the best value set for the sampled new parameter set may be one or more of: (1) the parameter values in the sampled new parameter set 715 at the end of a fixed number of iterations of the parameter optimizer 712, (2) the parameter values in the sampled new parameter set 715 modified by the parameter optimizer 712 at the end of the fixed number of iterations if there are one or more iterations of the parameter optimizer 712, or (3) the parameter values in the sampled new parameter set 715 after an iteration of the parameter optimizer 712 if the difference between the weighted score 735 of the current iteration of the parameter optimizer 712 and the weighted score 735 of the previous iteration is less than a predetermined threshold amount. In an embodiment where the sampled new parameter sets 715A..715C all involve the same type of ADV, then after the optimization of each of the sampled new parameter sets 715A..715C is completed, the best value in the sampled new parameter sets 715A..715C may be the sampled new parameter set 715 having the best weighted score 735.
[0145] Figure 8is a method 800 for automatic parameter adjustment of a controller used in an ADV according to one embodiment. The method 800 may be referenced above. Figure 1 The method 800 is described as being implemented on, for example, server 104. Server 104 may include parallel processing and / or multiple processors and / or one or more processors with multiple cores, so that multiple instances of method 800 may be implemented simultaneously on server 104 or on multiple servers (e.g., servers 103 and 104).
[0146] In operation 801 , an optimizer (eg, a Bayesian global optimizer) may generate a first value for each of a plurality of adjustable parameters of one or more controllers for an ADV.
[0147] In operation 802, for each of a plurality of driving scenarios: a simulation of each driving scenario may be run using a first value for each of a plurality of adjustable parameters. In an embodiment, each value of the adjustable parameter may be randomly selected. A score may be generated for the driving scenario using the first values of the plurality of adjustable parameters. The score for each driving scenario indicates how well the ADV performs on the set of metrics, as described in Tables I, II, III, and IV above.
[0148] In operation 803, a single weighted score is calculated from the scores for each of the plurality of driving scenarios. In an embodiment, the weights in the weighted score may weight safety performance higher than control performance (accuracy of stations, etc.), and control performance higher than comfort performance. The weights for each of the performance metrics may be independently configured. In an embodiment, the weights for each of the performance metric types (e.g., control performance, safety performance, comfort performance, and control subsystem usage performance (e.g., steering, throttle, brakes)) may be independently configured.
[0149] In operation 804, the optimizer may receive a single weighted score for the plurality of driving scenarios and may use the single weighted score as a new target for selecting a second value for each of the plurality of adjustable parameters, and then rerun optimization 801 to 804 with the second or subsequent values of the plurality of adjustable parameters. Operations 801 to 804 may be repeated a fixed number of times. The fixed number of times may be configurable.
[0150] In operation 805, the optimized values for each of the plurality of adjustable parameters may be incorporated into one or more controllers of the physical ADV. In an embodiment, the optimized values are the values of the plurality of adjustable parameters used in a previous iteration of operations 801 to 804. In an embodiment, the optimized values are the values of the plurality of adjustable parameters selected by the optimizer for the next iteration of operations 801 to 804, although the next iteration is not run after completing the fixed number of iterations. The physical ADV is navigated using the one or more controllers updated with the optimized values of the plurality of adjustable parameters.
[0151] Fig. 9A and Fig. 9B A method 900 for automatic parameter adjustment of a controller used in an autonomous vehicle is provided according to one embodiment.
[0152] In operation 901, a Bayesian global optimizer generates a first value for each of a plurality of adjustable parameters of one or more controllers of a simulated ADV of a particular type (e.g., SUV, truck, van, compact car, etc.). Operations 901 to 905 are repeated a specified predetermined number of times. In a first iteration of operations 901 to 905, a value for each of a plurality of adjustable parameters may be randomly selected within a range of values for the adjustable parameters from low to high. In an embodiment, each of the adjustable parameters in the adjustable parameter set may be normalized to a range of, for example, 0.000 to 1.000, or other normalized ranges. The multiple adjustable parameters include one or more of the following parameters: (1) time constants and adaptive gain parameters for a model reference adaptive gain controller (optimizing actuation of the steering, braking, and throttle subsystems); and (2) multiple lateral dynamic parameters in a state weighting matrix of a linear quadratic regulator (LQR) of an autonomous vehicle (ADV); (3) low-speed and high-speed proportional gain parameters; (4) low-speed and high-speed integral gain parameters; and (5) a station error parameter of the LQR or other dynamic model controller (e.g., a "bicycle model") of the ADV.
[0153] In operation 902, for each of a plurality of driving scenarios, a simulation of the driving scenario is run using first values of a plurality of adjustable parameters, and a score is generated for the driving scenario indicating performance of one or more controllers during the simulation of the driving scenario. The plurality of driving scenarios may include: (1) high speed left turn, (2) low speed left turn, (3) high speed right turn, (4) low speed right turn, (5) high speed U-turn, (6) low speed U-turn, and (7) serpentine continuous side pass.
[0154] In operation 903, a single weighted score is calculated from the scores for each of the plurality of driving scenarios. In an embodiment, the weights in the weighted score may weight safety performance higher than control performance (accuracy of stations, etc.), and control performance higher than comfort performance. The weights for each of the performance metrics may be independently configured. In an embodiment, the weights for each of the performance metric types (e.g., control performance, safety performance, comfort performance, and control subsystem usage performance (e.g., steering, throttle, brakes)) may be independently configured.
[0155] In operation 904, the optimizer may receive a single weighted score for the plurality of driving scenarios, and may use the single weighted score as a new target for selecting a second value for each of the plurality of adjustable parameters, and operations 901 to 904 may then be rerun using the second or subsequent values for the plurality of adjustable parameters. Operations 901 to 904 may be repeated a fixed number of times. The fixed number of times may be configurable. In an embodiment, operations 901 to 904 may be repeated, using the first weighted score from each repetition as a target for the optimizer to generate a next second value for each of the plurality of adjustable parameters, until a predetermined fixed number of repetitions have been performed, or until the weighted score of the current repetition is less than the weighted score of the previous repetition by a predetermined threshold amount.
[0156] Operations 901 to 904 are a first instance of optimizing a first set of values for a plurality of tunable parameters. In operation 905, a second independent instance of operations 901 to 904 is run on a second set of values for a plurality of tunable parameters.
[0157] In operation 906, the optimized values for each of the plurality of adjustable parameters may be incorporated into one or more controllers of the physical ADV. In an embodiment, the optimized values are the values of the plurality of adjustable parameters used in a previous iteration of operations 901 through 904, or the set of optimized values for the plurality of adjustable parameters of a second independent instance of operations 901 through 904. The ADV is navigated using the one or more controllers updated with the optimized values for the plurality of adjustable parameters.
[0158] 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 the present 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 a corresponding driving program and / or 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 can be accessed by a software component through one or more specific instructions.
[0159] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0160] 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 is generally considered herein to be a self-consistent sequence of operations leading to a desired result. These operations are those requiring physical manipulation of physical quantities.
[0161] 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 otherwise expressly indicated in the above discussion, it should be understood that throughout the 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 the 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.
[0162] Embodiments of the present disclosure also relate to devices for performing the operations 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., a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory device).
[0163] The processes or methods depicted in the foregoing figures may be performed by processing logic including 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 some 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.
[0164] The embodiments of the present disclosure are not described with reference to any particular programming language. It should be appreciated that the teachings of the embodiments of the present disclosure as described herein may be implemented using a variety of programming languages. In the above description, the embodiments of the present disclosure have been described with reference to specific exemplary embodiments of the present disclosure. It will be apparent that various modifications may be made to the present invention without departing from the broader spirit and scope of the present disclosure set forth in the appended claims. Therefore, this specification and the accompanying drawings should be understood in an illustrative sense rather than a restrictive sense.
Claims
1. A computer-implemented method for automatically adjusting one or more controllers of an autonomous vehicle control system, comprising: For each of the multiple driving scenarios, Running a simulation of the driving scenario using a first value for each of a plurality of adjustable parameters to control one or more controllers of the autonomous vehicle; the plurality of adjustable parameters comprising: a time constant parameter and an adaptive gain parameter for a model reference adaptive gain controller and a plurality of lateral dynamic parameters in a state weighting matrix of a linear quadratic regulator of the autonomous vehicle; and generating a score for the simulation of the driving scenario, the score indicative of performance of the one or more controllers during the simulation of the driving scenario; calculating a first weighted score from the scores generated for the simulation of each of the plurality of driving scenarios; and The values of the plurality of adjustable parameters are optimized by iteratively performing the operations of running a simulation, generating a score, and calculating a first weighted score, using the first weighted score for each iteration as a target to generate a second value for each of the plurality of adjustable parameters, wherein the optimized values of the plurality of adjustable parameters are used by the one or more controllers of the autonomous vehicle to navigate the autonomous vehicle, wherein the iterative operations are repeated until the difference between the second weighted score and the first weighted score of the previous iteration is less than a predetermined threshold amount or a predetermined fixed number of iterations have been performed.
2. The method according to claim 1, wherein: In a first iteration, the first value for each of the plurality of tunable parameters is randomly selected and the optimizer is a Bayesian global optimizer.
3. The method according to claim 1, wherein: The model reference adaptive gain controller optimizes the actuation of the steering control subsystem, the braking control subsystem, and the throttle control subsystem of the autonomous vehicle.
4. The method according to claim 1, wherein: The multiple adjustable parameters include: Low speed and high speed proportional gain parameters; Low-speed and high-speed integral gain parameters; and Station error parameters.
5. The method according to claim 1, wherein: The driving scenarios include: Turn left at high speed; Turn left at low speed; Turn right at high speed; Turn right at low speed; High-speed U-turn; Slow-speed U-turns; and Serpentine continuous side pass.
6. The method according to claim 1, wherein: Generating the first weighted score and the second weighted score are each calculated using a weight profile, the weight profile comprising: The error in heading is weighted more heavily than the error in speed; and The weight of the terminal station error is higher than the weight of the terminal lateral error.
7. A non-transitory machine-readable medium storing instructions, which, when executed by a processor, cause the processor to perform operations comprising: For each of the multiple driving scenarios, running a simulation of the driving scenario using first values for each of a plurality of adjustable parameters to control one or more controllers of the autonomous vehicle, the plurality of adjustable parameters comprising: a time constant parameter and an adaptive gain parameter for a model reference adaptive gain controller and a plurality of lateral dynamic parameters in a state weighting matrix of a linear quadratic regulator of the autonomous vehicle; and generating a score for the simulation of the driving scenario, the score indicative of performance of the one or more controllers during the simulation of the driving scenario; calculating a first weighted score from the scores generated for the simulation of each of the plurality of driving scenarios; and The values of the plurality of adjustable parameters are optimized by iteratively performing the operations of running a simulation, generating a score, and calculating a first weighted score, using the first weighted score for each iteration as a target to generate a second value for each of the plurality of adjustable parameters, wherein the optimized values of the plurality of adjustable parameters are used by the one or more controllers of the autonomous vehicle to navigate the autonomous vehicle, wherein the iterative operations are repeated until the difference between the second weighted score and the first weighted score of the previous iteration is less than a predetermined threshold amount or a predetermined fixed number of iterations have been performed.
8. The machine-readable medium of claim 7, wherein: In a first iteration, the first value for each of the plurality of tunable parameters is randomly selected and the optimizer is a Bayesian global optimizer.
9. The machine-readable medium of claim 7, wherein: The model reference adaptive gain controller optimizes the actuation of the steering control subsystem, the braking control subsystem, and the throttle control subsystem of the autonomous vehicle.
10. The machine-readable medium of claim 7, wherein: The multiple adjustable parameters include: Low speed and high speed proportional gain parameters; Low-speed and high-speed integral gain parameters; and Station error parameters.
11. The machine-readable medium of claim 7, wherein: The driving scenarios include: Turn left at high speed; Turn left at low speed; Turn right at high speed; Turn right at low speed; High-speed U-turn; Slow-speed U-turns; and Serpentine continuous side pass.
12. The machine-readable medium of claim 7, wherein: Generating the first weighted score and the second weighted score are each calculated using a weight profile, the weight profile comprising: The error in heading is weighted more heavily than the error in speed; and The weight of the terminal station error is higher than the weight of the terminal lateral error.
13. A data processing system comprising: 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: For each of the multiple driving scenarios, running a simulation of the driving scenario using first values for each of a plurality of adjustable parameters to control one or more controllers of the autonomous vehicle, the plurality of adjustable parameters comprising: a time constant parameter and an adaptive gain parameter for a model reference adaptive gain controller and a plurality of lateral dynamic parameters in a state weighting matrix of a linear quadratic regulator of the autonomous vehicle; and generating a score for the simulation of the driving scenario, the score indicative of performance of the one or more controllers during the simulation of the driving scenario; calculating a first weighted score from the scores generated for the simulation of each of the plurality of driving scenarios; and The values of the plurality of adjustable parameters are optimized by iteratively performing the operations of running a simulation, generating a score, and calculating a first weighted score, using the first weighted score for each iteration as a target to generate a second value for each of the plurality of adjustable parameters, wherein the optimized values of the plurality of adjustable parameters are used by the one or more controllers of the autonomous vehicle to navigate the autonomous vehicle, wherein the iterative operations are repeated until the difference between the second weighted score and the first weighted score of the previous iteration is less than a predetermined threshold amount or a predetermined fixed number of iterations have been performed.
14. The system according to claim 13, wherein: In a first iteration, the first value for each of the plurality of tunable parameters is randomly selected and the optimizer is a Bayesian global optimizer.
15. The system of claim 13, wherein: The model reference adaptive gain controller optimizes the actuation of the steering control subsystem, the braking control subsystem, and the throttle control subsystem of the autonomous vehicle.
16. The system of claim 13, wherein: The multiple adjustable parameters include: Low speed and high speed proportional gain parameters; Low-speed and high-speed integral gain parameters; and Station error parameters.
17. The system of claim 13, wherein: The driving scenarios include: Turn left at high speed; Turn left at low speed; Turn right at high speed; Turn right at low speed; High-speed U-turn; Slow-speed U-turns; and Serpentine continuous side pass.
18. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
