# US 2020/0349057 A1 · Using divergence to conduct log-based simulations

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0349057 A1
- Document ID: US20200349057A1
- Status: Published application
- Kind: A1
- Application number: 16/879,424
- Filed: 2020-05-20
- Published: 2020-11-05
- Earliest claimed: 2018-08-07
- Assignees: Waymo LLC
- Applicants: Waymo LLC
- Inventors: Carl Nygaard; Yiwen Xu; James Stout
- Web page: https://patentgrep.com/patent/US20200349057A1

## CPC

- G06F 11/3692: {for test results analysis}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3696: {Methods or tools to render software testable}
- G06F 11/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure relates to testing software for operating an autonomous vehicle. For instance, a first simulation may be run using log data and the software to control a first simulated vehicle. During this, one or more characteristics of the simulated vehicle may be compared with one or more characteristics of a vehicle from the log data. The comparison may be used to determine a divergence point for starting a timer. In addition, a second simulation may be run using the log data and the software to control a second simulated vehicle. The divergence point may be used to determine a handover time to allow the software to take control of the second simulated vehicle. Whether the software is able to continue through the first simulation before the timer expires without a particular type of event occurring and/or the second simulation without the particular type of event occurring is determined.

## Claims

### Claim 1

A system for testing software for operating a vehicle in an autonomous driving mode, the system comprising one or more processors configured to:
run a first simulation using log data collected by a vehicle operating in an autonomous driving mode, wherein the first simulation is run using the software to control a first simulated vehicle;
compare one or more characteristics of the first simulated vehicle with one or more characteristics of the vehicle from the log data in order to determine a divergence point;
use the divergence point to determine a handover time for a second simulation, the handover time corresponding to a time in the second simulation at which the software is allowed to take control of a second simulated vehicle of the second simulation;
run the second simulation using the log data, wherein the second simulation is run using the handover time and the software to control the second simulated vehicle; and
determine whether the software is able to complete the second simulation without a particular type of event occurring in the second simulation.

### Claim 2 (depends on 1)

The system of claim 1, wherein the particular type of event is a collision, and the one or more processors are further configured to flag the second simulation for further review when a collision is determined to have occurred.

### Claim 3 (depends on 1)

The system of claim 1, wherein, as a part of determining the divergence point, the one or more processors are further configured to compare a planned trajectory of the first simulated vehicle with a planned trajectory of the vehicle from the log data.

### Claim 4 (depends on 3)

The system of claim 3, wherein, as a part of determining the divergence point, the one or more processors are further configured to determine when one or more of a location, speed or change in speed of the planned trajectory of the first simulated vehicle and the planned trajectory of the vehicle from the log data diverge more than some threshold amount over some period of time.

### Claim 5 (depends on 1)

The system of claim 1, wherein, as a part of determining the divergence point, the one or more processors are further configured to determine when a location of the first simulated vehicle and a location of the vehicle from the log data diverge more than a threshold amount.

### Claim 6 (depends on 1)

The system of claim 1, wherein, as a part of determining the divergence point, the one or more processors are further configured to determine when a location of the first simulated vehicle and a location of the vehicle from the log data diverge more than a threshold amount in a lateral direction relative to a direction of traffic in a lane in which the simulated vehicle is traveling in the first simulation.

### Claim 7 (depends on 1)

The system of claim 1, wherein, as a part of determining the divergence point, the one or more processors are further configured to determine when a location of the first simulated vehicle and a location of the vehicle from the log data diverge more than a threshold amount in a longitudinal direction relative to a direction of traffic in a lane in which the simulated vehicle is traveling in the first simulation.

### Claim 8 (depends on 7)

The system of claim 7, wherein, as a part of determining the divergence point, the one or more processors are further configured to determine when the location of the first simulated vehicle and the location of the vehicle from the log data diverge more than a threshold amount in a lateral direction relative to the direction of traffic in the lane.

### Claim 9 (depends on 1)

The system of claim 1, wherein the one or more processors are further configured to:
at the divergence point in the first simulation, start a timer that expires during the first simulation; and
flag the first simulation for review when the particular type of event occurs before the timer expires.

### Claim 10 (depends on 9)

The system of claim 9, wherein the one or more processors are further configured to not flag the first simulation for review if the particular type of event only occurs during the first simulation after the timer expires.

### Claim 11 (depends on 9)

The system of claim 9, wherein the particular type of event is a collision between the first simulated vehicle and an object in the first simulation.

### Claim 12 (depends on 9)

The system of claim 9, wherein the particular type of event includes the simulated vehicle exhibiting a particular type of maneuvering behavior.

### Claim 13

A system for testing software for operating a vehicle in an autonomous driving mode, the system comprising one or more processors configured to:
run a simulation using log data collected by a vehicle operating in an autonomous driving mode, wherein the simulation is run using the software to control a simulated vehicle;
compare one or more characteristics of the simulated vehicle with one or more characteristics of the vehicle from the log data in order to determine a divergence point;
at the divergence point in the simulation, start a timer that expires during the simulation; and
determine whether the software is able to continue through the simulation without a particular event occurring in the simulation prior to the timer expiring.

### Claim 14 (depends on 13)

The system of claim 13, wherein the particular event is a collision between the simulated vehicle and an object in the simulation.

### Claim 15 (depends on 13)

The system of claim 13, wherein the one or more processors are further configured to flag the simulation for review if the particular event occurs before the timer expires.

### Claim 16 (depends on 13)

The system of claim 13, wherein the one or more processors are further configured to not flag the simulation for review if the particular event only occurs during the simulation after the timer expires.

### Claim 17 (depends on 15)

The system of claim 15, wherein the particular event is a collision between the simulated vehicle and an object in the simulation.

### Claim 18 (depends on 13)

The system of claim 13, wherein the particular event includes the simulated vehicle exhibiting a particular type of maneuvering behavior.

### Claim 19 (depends on 13)

The system of claim 13, wherein, as a part of determining the divergence point, the one or more processors are further configured to determine when a location of the simulated vehicle and a location of the vehicle from the log data diverge more than a threshold amount.

### Claim 20 (depends on 13)

The system of claim 13, wherein, as a part of determining the divergence point, the one or more processors are further configured to determine when a location of the simulated vehicle and a location of the vehicle from the log data diverge more than a threshold amount in at least one of a lateral direction or a longitudinal direction relative to a direction of traffic in a lane in which the simulated vehicle is traveling in the simulation.
