Architecture for Distributed Systems Simulation

By splitting the nodes in the distributed processing system into small nodes and executing them serially on a single thread, combined with the use of a simulation clock, the non-deterministic problem in the simulation environment in the existing technology is solved, and deterministic simulation and high efficiency are achieved. task management.

CN113728310BActive Publication Date: 2024-09-20BEIJING VOYAGER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980091292.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-12-28
Filing Date
2019-12-26
Publication Date
2024-09-20
Estimated Expiration
2039-12-26

AI Technical Summary

Technical Problem

Existing distributed processing systems have non-deterministic problems in the simulation environment, resulting in different outputs and operation sequences under the same input, affecting the accuracy of problem identification and test solutions.

Method used

Use small nodes (nodelets) to replace complex multi-threaded nodes, limit their execution in separate processes, and execute them serially on a single thread. Reduce latency through in-process communication. Use the simulation clock to schedule tasks in a deterministic manner to ensure that the simulation during serial execution.

Benefits of technology

Deterministic simulation is realized, competition conditions and non-deterministic problems in asynchronous distributed systems are avoided, and the reliability and consistency of the simulation process are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113728310B_ABST
    Figure CN113728310B_ABST
Patent Text Reader

Abstract

Systems and methods for deterministic simulation of distributed systems, such as vehicle-based processing systems, are provided. The distributed system can be represented as multiple subsystems or "small nodes" that are executed using a single process of a computing device during simulation. These small nodes can communicate using intra-process communication. A task scheduler can schedule the small nodes to execute individually in frames that occur serially. A simulation clock can be used to mitigate variability in timestamp data that may be caused by delay or jitter.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Incorporation by reference into any priority application

[0002] Any and all applications, if any, claiming foreign or domestic priority as identified in the Application Data Sheet for this application are incorporated herein by reference in their entirety pursuant to 37 CFR 1.57.

[0003] Copyright Notice

[0004] A portion of the disclosure of this patent document contains material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document and / or the patent disclosure, as it appears in the U.S. Patent and Trademark Office files and / or records, but otherwise reserves all copyright rights whatsoever. Background Art

[0005] Vehicles—such as vehicles used for ride-sharing purposes, vehicles providing driver assistance functions, and / or autonomous vehicles (AVs)—can acquire and process sensor data using an onboard data processing system to perform a wide variety of functions. For example, the functions may include determining and / or displaying a navigation route, recognizing road signs, detecting objects and / or road obstacles, controlling vehicle operation, and / or the like.

[0006] The on-board processing system can process sensor data received from vehicle sensors during vehicle operation. Furthermore, the on-board processing system can be tested without the vehicle being in operation or sensors being used during testing. For example, the on-board processing system can be tested using previously received and stored sensor data, and / or sensor data generated for use in a test-specific scenario. Summary of the invention

[0007] The following provides a simplified summary of one or more aspects to provide a basic understanding of these aspects. This summary is not an extensive overview of all conceivable aspects, and is neither intended to define the key or critical elements of all aspects, nor to define the scope of any or all aspects. Its core purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the detailed implementation section presented later.

[0008] One aspect includes systems, methods, and / or non-transitory computer-readable media that provide features for simulating a distributed system. These features include loading a plurality of subsystems into a portion of a computer-readable memory allocated to a single process, wherein the plurality of subsystems are configured to operate in a first operating mode in which the plurality of subsystems execute only serially to process simulated sensor data and in a second operating mode in which two or more of the plurality of subsystems execute simultaneously to process sensor data. Scheduling the plurality of subsystems to execute in the first operating mode. Establishing a channel for communicating with a first subsystem of the plurality of subsystems. Sending in-process data to the first subsystem using the channel, wherein the in-process data is generated by a second subsystem of the plurality of subsystems based at least in part on the simulated sensor data, and wherein the channel copies the in-process data from a first location in the portion of the computer-readable memory allocated to the process to a second location in the computer-readable memory allocated to the portion of the process.

[0009] Another aspect includes providing a system, method and / or non-transient computer readable medium for features of distributed system execution using a serial timeline. These features include receiving input data that simulates the output of a vehicle-based sensor. A first small node of a vehicle-based processing system including a plurality of executable small nodes uses these input data to perform a first operation. A second small node of the vehicle-based processing system uses the input data to perform a second operation, wherein the second small node is configured to operate independently of the first small node. The first small node is scheduled to perform a first operation during a first time period, wherein other small nodes in the plurality of executable small nodes are not allowed to execute during the first time period. The second small node is scheduled to perform a second operation during a second time period, wherein other small nodes in the plurality of executable small nodes are not allowed to execute during the second time period. The first small node is executed to perform a first operation during the first time period, wherein the first operation generates output data processed by a third small node in the plurality of executable small nodes. The third small node is scheduled to perform a third operation during a third time period after the second time period. The second small node is executed to perform the second operation during the second time period. In addition, the third small node is executed to perform a third operation during the third time period.

[0010] Another aspect includes systems, methods, and / or non-transient computer-readable media that provide features for distributed system task management using a simulation clock. These features include loading an input data item from an input data set that includes simulated sensor data. Determining a time represented by a first timestamp associated with the input data item. Setting a simulation clock to the time represented by the first timestamp. Determining one of a plurality of subsystems for processing the input data item. Executing the subsystem, wherein a period of time passes during execution of the subsystem, wherein the simulation clock remains static during execution of the subsystem, and wherein the subsystem uses the simulation clock to generate a second timestamp associated with an output message.

[0011] BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1A A block diagram of a connected vehicle environment is shown, in which one or more vehicles and / or one or more user devices interact with a server via a network, according to certain aspects of the present disclosure.

[0013] Figure 1B According to some aspects of the present disclosure Figure 1A The vehicle is connected to one or more other vehicles and / or Figure 1A Block diagram of server communication.

[0014] Figure 2 A block diagram of a computational graph for processing sensor data is shown according to one embodiment.

[0015] Figure 3 A block diagram of a computational graph for processing simulated sensor data is shown according to one embodiment.

[0016] Figure 4 A block diagram of a subgraph with various nodelets and channels is shown according to one embodiment.

[0017] Figure 5A A block diagram of a memory space with multiple processes communicating using inter-process communication is shown according to one embodiment.

[0018] Figure 5B A block diagram of a memory space having multiple portions of a single process communicating using intra-process communication is shown according to one embodiment.

[0019] Figure 6 A block diagram of various components of a deterministic simulation system configured to perform a simulation process using a nodelet-based computational graph according to one embodiment is shown.

[0020] Figure 7A flowchart of a program for scheduling small nodes to process tasks according to one embodiment is shown.

[0021] Figure 8 A timeline of nodelet execution scheduled by a task scheduler using a simulated clock according to one embodiment is shown.

[0022] Fig. 9 A flowchart for executing a program of a small node according to one embodiment is shown.

[0023] Fig.10 A block diagram of a computing system configured to implement aspects of the present disclosure is shown, according to one embodiment. DETAILED DESCRIPTION

[0024] The present disclosure is directed to simulating the operation of a distributed processing system in a synchronous and deterministic manner. The distributed processing system may have multiple executable components, also referred to as "nodes," that communicate using a publish-subscribe messaging protocol. Data input into the system may be processed by some nodes, which publish subscriptions to other nodes for data to perform additional processing, and so on.

[0025] Some conventional distributed processing systems are executed in an asynchronous manner, allowing nodes to execute in completely different threads or processes. The terms "thread" and "process" are used herein according to their common and customary meanings in the field of computer technology. For example, the term process can be used to refer to an instance of a computer program being executed by a computing device, which includes a computer memory portion storing executable code and specific data of the instance (e.g., a call stack, a heap or other data structure of a variable value, etc.). The term "thread" can be used to refer to a sequence of operations performed within a process. Multiple threads can exist in a process, executing and sharing resources such as memory (e.g., executable code, values ​​of dynamically allocated variables, etc.) simultaneously. However, the operating system of the computing device may prohibit direct communication between processes. In these cases, different processes may need to communicate using defined inter-process communication mechanisms, such as those under the control of the operating system.

[0026] Executing nodes in different threads or different processes can produce a sequence of operations that may vary due to different factors (e.g., when a single node is first started, variable delays affecting cross-process communication, etc.). Although the system may be designed to take into account such variability, variability may lead to inconsistencies when using simulation to test the system. For example, even if a given input or set of inputs remains constant throughout all simulations, the input or set of inputs may still be processed by nodes that run in different sequences from simulation to simulation. This non-deterministic nature of simulation can interfere with identifying problems, testing solutions, etc. Distributed asynchronous systems can benefit from using simulations that are deterministic (e.g., a single input or set of inputs always causes the system to perform the same operations in the same sequence and produce the same outputs) to test them.

[0027] Some aspects of the present disclosure relate to replacing complex multi-threaded nodes designed to execute in separate processes with a smaller set of subsystems (also referred to as "nodelets"). Compared to complex nodes, subgraphs of nodelets can provide the same functionality while also providing the flexibility to run in multi-threaded or single-threaded operating modes. Therefore, subgraphs can provide the performance required for production systems (e.g., in multi-threaded mode) while also providing the deterministic processing required to run simulations (e.g., in single-threaded mode). In addition, all nodelets may also execute within the same process, and communication between nodelets therefore occurs within a single process space in system memory. The degree of latency encountered by these in-process communications is different from the cross-process communication required in a system where nodes execute in different process spaces in system memory.

[0028] Additional aspects of the present disclosure relate to scheduling the operation of small nodes so that individual small nodes only run within a defined time frame (also referred to as a "frame" for convenience) that occurs serially. The task scheduler can intersperse the frames of multiple small nodes within a single thread so that the small nodes run in a serial manner according to a single timeline. In some embodiments, only one small node can be executed in any given frame, so only one small node is active in the system at any given time. For example, a small node can perform an operation in the first frame, and then stop or "sleep" when one or more small nodes perform operations in one or more subsequent frames. Ultimately, if the first small node is to perform additional operations (for example, the first small node is to process another input, the first small node has requested a callback, etc.), the task scheduler can schedule another frame within the serial timeline of the frame. The first small node can perform its additional operations during this additional frame. By scheduling the operations of all small nodes to occur in separate frames that occur serially, certain problems (for example, race conditions) that occur in asynchronous distributed systems can be avoided. Therefore, interspersed frames in a single serial timeline contribute to deterministic execution during simulation.

[0029] Some further aspects of the present disclosure relate to the use of a simulation clock, rather than a continuously advanced system clock, to facilitate deterministic operation of the system during simulation. The simulation clock may be set by the task scheduler at the beginning of each frame. In addition, the time indicated by the simulation clock may not change until the task scheduler increments or otherwise sets the simulation clock to another time of a subsequent frame. Therefore, the time given by the simulation clock will not continuously move during the execution process, but will jump from one value to another at the beginning of a new frame. Therefore, according to the simulation clock, the data of the timestamp generated at any time point during a given frame will be timestamped to the same value, regardless of when the data of the timestamp is generated within the frame. Therefore, jitters and delays that differ from one another between simulations, which usually affect the amount of time that passes between events and affect the data of the timestamps in other aspects, will not affect the simulation using the simulation clock.

[0030] A detailed description and examples of systems and methods according to one or more illustrative embodiments of the present disclosure may be found in at least the document entitled Deterministic simulation architecture and execution and the section entitled Example Embodiments Parts and this article Figure 2-10 Furthermore, the components and functions of the deterministic simulation of distributed systems can be configured and / or incorporated into the Figure 1A-1B In the described connected vehicle environment 100 .

[0031] Various embodiments described herein are closely related to, implemented by, and dependent upon vehicles and / or computer technology. For example, the systems and methods for deterministic simulation of distributed processing systems described herein with reference to various embodiments cannot reasonably be performed by a human alone without the vehicles and / or computer technology that implement them.

[0032] ■ Connected vehicle environment

[0033] Figure 1A A block diagram of a connected vehicle environment 100 is shown, in accordance with certain aspects of the present disclosure, in which one or more vehicles 120 and / or one or more user devices 102 interact with a server 130 via a network 110. For example, a vehicle 120 may be equipped to provide ride-sharing and / or other location-based services to assist a driver in controlling vehicle operation (e.g., through various driver assistance features such as adaptive and / or conventional cruise control, adaptive headlight control, anti-lock braking, automatic parking, night vision, blind spot monitoring, collision avoidance, crosswind stabilization, driver fatigue detection, driver monitoring system, emergency driver assistance, intersection assistance, hill descent control, intelligent speed adaptation, lane centering, lane departure warning, front, rear and / or side parking sensors, pedestrian detection, rain sensors, surround view systems, tire pressure monitors, traffic sign recognition, steering assistance, wrong-way driving warnings, traffic condition alerts, etc.) and / or to fully control vehicle operation. Thus, the vehicle 120 may be a conventional gasoline, natural gas, biofuel, electric, hydrogen, etc. fueled vehicle, configured to provide ride-sharing and / or other location-based services, a vehicle providing driver assistance functionality (e.g., one or more of the driver assistance features described herein), and / or an automated or autonomous vehicle (AV). The vehicle 120 may be a car, truck, van, bus, motorcycle, scooter, bicycle, and / or any other motor vehicle.

[0034] The server 130 may communicate with the vehicle 120 to obtain vehicle data, such as route data, sensor data, perception data, vehicle 120 control data, vehicle 120 component failure and / or fault data, etc. The server 130 may process and store such vehicle data for use in other operations performed by the server 130 and / or another computing system (not shown). Such operations may include running diagnostic models for identifying operational problems of the vehicle 120 (e.g., causes of vehicle 120 navigation errors, abnormal sensor readings, unrecognized objects, vehicle 120 component failures, etc.); running models for simulating the performance of the vehicle 120 given a set of variables; identifying objects that were not recognized by the vehicle 120, generating control instructions and / or similar instructions that, when executed by the vehicle 120, cause the vehicle 120 to drive and / or maneuver in a certain manner along a specified path.

[0035] The server 130 can also transmit data to the vehicle 120. For example, the server 130 may transmit map data, firmware and / or software updates, vehicle 120 control instructions, identification of objects that the vehicle 120 otherwise could not recognize, passenger pickup information, traffic data, and / or the like.

[0036] In addition to communicating with one or more vehicles 120, the server 130 can also communicate with one or more user devices 102. Specifically, the server 130 can provide network services to enable users to request location-based services (e.g., transportation services, such as shared travel services) via applications running on the user device 102. For example, the user device 102 may correspond to a computing device that communicates with the server 130 via the network 110, such as a smart phone, tablet computer, laptop computer, smart watch, or other device. In this embodiment, the user device 102 executes an application such as a mobile application, and the user operating the user device 102 can use the application to interact with the server 130. For example, the user device 102 can communicate with the server 130 to provide location data and / or queries to the server 130, receive map-related data and / or directions from the server 130, and / or similar operations.

[0037] The server 130 may process the request and / or other data received from the user device 102 to identify a service provider (e.g., a driver of the vehicle 120) to provide the requested service to the user. In addition, the server 130 may receive data, such as user trip pickup or destination data, user location query data, etc., based on which the server 130 identifies areas, addresses, and / or other locations associated with various users. The server 130 may then use the identified location to provide directions to the determined pickup location to the service provider and / or user.

[0038] The application running on the user device 102 may be created and / or made available by the same entity responsible for the server 130. Alternatively, the application running on the user device 102 may be a third-party application (e.g., an application programming interface or software development kit) that contains features that enable communication with the server 130.

[0039] For simplicity and ease of explanation, Figure 1AA single server 130 is illustrated in FIG. 1 . However, it should be understood that server 130 may be a single computing device, or may include multiple different computing devices that are logically or physically combined together to operate together as a server system. The components of server 130 may be implemented in dedicated hardware (e.g., a server computing device with one or more ASICs) so that software is not required, or as a combination of hardware and software. In addition, the modules and components of server 130 may be combined on a single server computing device, or each may be separated or grouped on multiple server computing devices. In some embodiments, server 130 may include more than one server computing device. Figure 1A More or fewer components than shown.

[0040] The network 110 includes any wired network, wireless network or a combination thereof. For example, the network 110 may be a personal area network, a local area network, a wide area network, an air broadcast network (e.g., for broadcasting or television), a wired network, a satellite network, a cellular telephone network or a combination thereof. As another example, the network 110 may be a publicly accessible network linking networks, which may be operated by various different institutions, such as the Internet. In some embodiments, the network 110 may be a private or semi-private network, such as a company or university intranet. The network 110 may include one or more wireless networks, such as a global system for mobile communications (GSM) network, a code division multiple access (CDMA) network, a long term evolution (LTE) network or any other type of wireless network. The network 110 may use protocols and components to communicate through the Internet or any other type of network described above. For example, the protocols used by the network 110 may include a hypertext transfer protocol (HTTP), a hypertext transfer secure protocol (HTTPS), a message queue telemetry transmission (MQTT), a restricted application protocol (CoAP), etc. The protocols and components used for communicating via the Internet or any other communication network of the above-mentioned type are well known to those skilled in the art and will not be described in further detail here.

[0041] The server 130 may include a navigation unit 140, a vehicle data processing unit 145, and a data storage 150. The navigation unit 140 may assist in location-based services. For example, the navigation unit 140 may help a user (also referred to herein as a "driver") transport another user (also referred to herein as a "rider") and / or an object (e.g., food, a package, etc.) from a first location (also referred to herein as a "pickup location") to a second location (also referred to herein as a "destination location"). The navigation unit 140 may facilitate user and / or object transport by providing maps and / or navigation instructions to an application running on the rider's user device 102, to an application running on the driver's user device 102, and / or to a navigation system running on the vehicle 120.

[0042] As an example, the navigation unit 140 may include a matching service (not shown) that pairs a rider requesting a trip from a pickup location to a destination location with a driver who can complete the trip. The matching service may interact with an application running on the rider's user device 102 and / or an application running on the driver's user device 102 to establish the rider's trip and / or process payment from the rider to the driver.

[0043] The navigation unit 140 may also communicate with an application running on the driver's user device 102 during the trip to obtain trip location information from the user device 102 (e.g., by coupling to and / or embedding a global positioning system (GPS) component in the user device 102) and provide navigation directions to the application that assist the driver in traveling from the current location to the destination location. The navigation unit 140 may also indicate a plurality of different geographic locations or points of interest to the driver, regardless of whether the driver is picking up a ride-share passenger.

[0044] The vehicle data processing unit 145 may be configured to support driver assistance features and / or support automated driving for the vehicle 120. For example, the vehicle data processing unit 145 may generate and / or transmit map data to the vehicle 120, run diagnostic models for identifying operational issues with the vehicle 120, run models for simulating the performance of the vehicle 120 given a set of variables, use vehicle data provided by the vehicle 120 to identify objects and transmit the identification of the objects to the vehicle 120, generate and / or transmit vehicle 120 control instructions to the vehicle 120, and / or type operations.

[0045] The data storage 150 may store various types of data used by the navigation unit 140, the vehicle data processing unit 145, the user device 102, and / or the vehicle 120. For example, the data storage 150 may store user data 152, map data 154, search data 156, and log data 158.

[0046] User data 152 may include information about some or all users registered with the location-based service, such as drivers and riders. This information may include, for example, usernames, passwords, names, addresses, billing information, data associated with previous trips taken or provided by the user, user ratings information, user loyalty program information, and / or the like.

[0047] The map data 154 may include high-definition (HD) maps generated from sensors (e.g., LiDAR sensors, RADAR sensors, infrared cameras, visible light cameras, stereo cameras, inertial measurement units (IMUs), etc.), satellite images, optical character recognition (OCR) performed on captured street images (e.g., identifying street names, identifying street sign text, identifying point of interest names, etc.), etc.; information for calculating routes; information for rendering two-dimensional and / or three-dimensional graphic maps; and / or similar information. For example, the map data 154 may include elements such as the layout of streets and intersections, bridges (e.g., including information about the height and / or width of overpasses), exit ramps, buildings, parking structure entrances and exits (e.g., including information about the height and / or width of vehicle entrances and / or exits), the location of street signs and stop lights, emergency turnouts, points of interest (e.g., parks, restaurants, gas stations, attractions, landmarks, etc. and associated names), road markings (e.g., centerline markings separating opposing lanes, lane markings, stop lines, left turn guides, right turn guides, crosswalks, bus lane markings, bicycle lane markings, refuge island markings, pavement text, highway exit and entrance markings, etc.), curbs, rail lines, waterways, turning radii and / or angles for left and right turns, distances and sizes of road features, locations of dividers between two-way traffic, and / or similar elements, along with geographic locations (e.g., geographic coordinates) associated with such elements. The map data 154 may also include reference data, such as real-time and / or historical traffic information, current and / or predicted weather conditions, road operation information, information regarding laws and regulations (e.g., speed limits, whether right turns at red lights are allowed or prohibited, whether U-turns are allowed or prohibited, permitted directions of travel, and / or similar information), news events, and / or similar information.

[0048] Although the map data 154 is shown as being stored in the data store 150 of the server 130, this is not meant to be limiting. For example, the server 130 may transmit the map data 154 to the vehicle 120 for storage therein (eg, in the data store 129 as described below).

[0049] The search data 156 may include searches entered in the past by a number of different users. For example, the search data 156 may include text searches for pickup and / or destination locations. The searches may be for specific addresses, geographic locations, names associated with geographic locations (e.g., names of parks, restaurants, gas stations, attractions, landmarks, etc.), etc.

[0050] The log data 158 may include vehicle data provided by one or more vehicles 120. For example, the vehicle data may include route data, sensor data, perception data, vehicle 120 control data, vehicle 120 component failure and / or fault data, and the like.

[0051] Figure 1B The block diagram shown shows an embodiment of the present invention according to certain aspects of the present invention. Figure 1A 120 vehicles and Figure 1A One or more other vehicles 170A-N and / or the server 130 communicate. Figure 1B As shown, the vehicle 120 may include a variety of components and / or data storage. For example, the vehicle 120 may include a sensor array 121, a communication array 122, a data processing system 123, a communication system 124, an internal interface system 125, a vehicle control system 126, an operating system 127, a map engine 128, and / or a data storage 129.

[0052] Communications 180 may be sent and / or received between the vehicle 120, one or more vehicles 170A-N, and / or the server 130. The server 130 may transmit and / or receive data from the vehicle 120, as described above in connection with Figure 1A As described. For example, the server 130 may transmit vehicle control instructions or commands to the vehicle 120 (e.g., as communication 180). The vehicle control instructions may be received by a communication array 122 (e.g., an array of one or more antennas configured to transmit and / or receive wireless signals), which is operated by a communication system 124 (e.g., a transceiver). The communication system 124 may transmit the vehicle control instructions to a vehicle control system 126, which may operate the acceleration, steering, braking, lighting, signaling, and other operating systems 127 of the vehicle 120 in order to drive and / or manipulate the vehicle 120 and / or assist the driver in driving and / or maneuvering the vehicle 120 through road traffic to a destination location specified by the vehicle control instructions.

[0053] As an example, the vehicle control instructions may include route data 163, which may be processed by the vehicle control system 126 to steer the vehicle 120 and / or assist the driver in steering the vehicle 120 along a given route (e.g., an optimized route calculated by the server 130 and / or the map engine 128) to a specified destination location. When processing the route data 163, the vehicle control system 126 may generate control commands 164 for the operating system 127 to execute (e.g., accelerate, steer, brake, maneuver, reverse, etc.) to drive the vehicle 120 along the route to the destination location, and / or assist the driver in steering the vehicle 120 along the route to the destination location.

[0054] The destination location 166 may be specified by the server 130 based on a user request (e.g., a pickup request, a delivery request, etc.) transmitted by an application running on the user device 102. Alternatively or additionally, the rider and / or driver of the vehicle 120 may provide a destination location 166 by providing user input 169 through the internal interface system 125 (e.g., a vehicle navigation system). In some embodiments, the vehicle control system 126 may transmit the input destination location 166 and / or the current location of the vehicle 120 (e.g., as a GPS data packet) as a communication 180 to the server 130 via the communication system 124 and the communication array 122. The server 130 (e.g., the navigation unit 140) may use the current location of the vehicle 120 and / or the input destination location 166 to perform an optimization operation to determine an optimal route for the vehicle 120 to travel to the destination location 166. Route data 163 including the optimal route may be transmitted from the server 130 to the vehicle control system 126 via the communication array 122 and the communication system 124. Due to the receipt of the route data 163, the vehicle control system 126 can enable the operating system 127 to control the vehicle 120 to drive through traffic along the optimal route to the destination location 166, assist the driver in controlling the vehicle 120 to drive through traffic along the optimal route to the destination location 166, and / or enable the internal interface system 125 to display and / or present instructions for controlling the vehicle 120 to drive through traffic along the optimal route to the destination location 166.

[0055] Alternatively or additionally, the route data 163 includes an optimal route, and the vehicle control system 126 automatically inputs the route data 163 into the map engine 128. The map engine 128 can generate map data 165 using the optimal route (e.g., generate a map showing the optimal route and / or instructions to take the optimal route) and provide the map data 165 to the internal interface system 125 (e.g., via the vehicle control system 126) for display. The map data 165 can include information derived from the map data 154 stored in the data store 150 on the server 130. The displayed map data 165 can indicate an estimated time of arrival and / or display the progress of the vehicle 120 along the optimal route. The displayed map data 165 can also include indicators, such as re-route orders, emergency notifications, road work information, real-time traffic data, current weather conditions, information about laws and regulations (e.g., speed limits, whether right turns are allowed or prohibited at red lights, where U-turns are allowed or prohibited, permitted directions of travel, etc.), news events, and / or similar information.

[0056] The user input 169 may also be a request to access a network (e.g., network 110). In response to such a request, the internal interface system 125 may generate an access request 168, which may be processed by the communication system 124 to configure the communication array 122 to send and / or receive data corresponding to a user interaction with the internal interface system 125 and / or an interaction with a user device 102 communicating with the internal interface system 125 (e.g., a user device 102 connected to the internal interface system 125 via a wireless connection). For example, the vehicle 120 may include an onboard Wi-Fi that a passenger and / or driver may access to send and / or receive emails and / or text messages, stream audio and / or video content, browse content pages (e.g., web pages, website pages, etc.), and / or access applications that use network access. Based on the user interaction, the internal interface system 125 may receive content 167 via the network 110, the communication array 122, and / or the communication system 124. The communication system 124 may dynamically manage network access to avoid or minimize interruptions in the transmission of content 167.

[0057] The sensor array 121 may include any number of one or more types of sensors, such as satellite radio navigation systems (e.g., GPS), LiDAR sensors, landscape sensors (e.g., radar sensors), inertial measurement units (IMUs), cameras (e.g., infrared cameras, visible light cameras, stereo cameras, etc.), Wi-Fi detection systems, cellular communication systems, vehicle-to-vehicle communication systems, road sensor communication systems, feature sensors, proximity sensors (e.g., infrared, electromagnetic, photoelectric, etc.), distance sensors, depth sensors, and / or the like. The satellite radio navigation system may calculate the current position of the vehicle 120 (e.g., within a range of 1-10 meters) based on analysis of signals received from a satellite constellation.

[0058] A LiDAR sensor, a radar sensor, and / or any other similar type of sensor may be used to detect the surroundings of the vehicle 120 when the vehicle 120 is in motion or is about to begin motion. For example, a LiDAR sensor may be used to reflect multiple laser beams from approaching objects to assess their distance and provide accurate 3D information about the surroundings. The data obtained from the LiDAR sensor may be used to perform object recognition, motion vector determination, collision prediction, and / or implement accident avoidance processing. Optionally, the LiDAR sensor may use a rotating scanning mirror assembly to provide a 360° viewing angle. The LiDAR sensor may optionally be mounted on the roof of the vehicle 120.

[0059] The IMU may include gyroscopes and / or accelerometers in X, Y, and Z orientations. The IMU provides data about the rotational and linear motion of the vehicle 120 , which can be used to calculate the motion and position of the vehicle 120 .

[0060] The cameras may be used to capture visual images of the environment surrounding the vehicle 120. Depending on the configuration and number of cameras, the cameras may provide a 360° view around the vehicle 120. The images from the cameras may be used to read road markings (e.g., lane markings), read street signs, detect objects, and / or the like.

[0061] The Wi-Fi detection system and / or the cellular communication system may be used to triangulate Wi-Fi hotspots or cellular towers, respectively, to determine the location of the vehicle 120 (optionally in conjunction with a satellite radio navigation system).

[0062] The inter-vehicle communication system (which may include a Wi-Fi detection system, a cellular communication system and / or a communication array 122) can be used to receive and / or transmit data to other vehicles 170A-N, such as the current speed and / or position coordinates of the vehicle 120, the time and / or position coordinates corresponding to the planned deceleration and the planned deceleration rate, the time and / or position coordinates of the planned stopping operation, the time and / or position coordinates of the planned lane change and the direction of the lane change, the time and / or position coordinates of the planned turning operation, the time and / or position coordinates of the planned parking operation and / or the like.

[0063] A road sensor communication system (which may include a Wi-Fi detection system and / or a cellular communication system) may be used to read information from road sensors (e.g., indicating traffic speed and / or traffic congestion) and / or from traffic control devices (e.g., traffic lights).

[0064] When a user requests a pick-up (e.g., via an application running on user device 102), the user may specify a specific destination location. The initial location may be the current location of vehicle 120, which may be determined using a satellite radio navigation system installed in the vehicle (e.g., GPS, Galileo, BeiDou / COMPASS, DORIS, GLONASS, and / or other satellite radio navigation systems), a Wi-Fi positioning system, cellular tower triangulation, and / or the like. Alternatively, the initial location may be specified by the user via a user interface provided by vehicle 120 (e.g., internal interface system 125) or via user device 102 running the application. Alternatively, the initial location may be automatically determined based on location information obtained from user device 102. In addition to the initial location and the destination location, one or more waypoints may be specified, thereby enabling multiple destination locations.

[0065] Raw sensor data 161 from the sensor array 121 may be processed by the onboard data processing system 123. Processed data 162 may then be transmitted by the data processing system 123 to the vehicle control system 126, and optionally to the server 130 via the communication system 124 and the communication array 122.

[0066] Data store 129 may store map data (e.g., map data 154) and / or a subset of map data 154 (e.g., a portion of map data 154 corresponding to the general area in which vehicle 120 is currently located). In some embodiments, vehicle 120 may record updated map data along a travel route using sensor array 121 and transmit the updated map data to server 130 via communication system 124 and communication array 122. Server 130 may then transmit the updated map data to one or more of vehicles 170A-N and / or further process the updated map data.

[0067] The data processing system 123 can provide continuously or nearly continuously processed data 162 to the vehicle control system 126 in response to point-to-point activity in the environment surrounding the vehicle 120. The processed data 162 can include a comparison between the raw sensor data 161 - representing the operating environment of the vehicle 120 and continuously collected by the sensor array 121 - and the map data stored in the data storage 129. In one example, the data processing system 123 is programmed with machine learning or other artificial intelligence capabilities to enable the vehicle 120 to identify and respond to conditions, events, and / or potential hazards. In a variation, the data processing system 123 can continuously or nearly continuously compare the raw sensor data 161 with the stored map data to perform positioning to continuously or nearly continuously determine the position and / or direction of the vehicle 120. The positioning of the vehicle 120 may enable the vehicle 120 to know the instantaneous position and / or direction of the vehicle 120 as compared to stored map data to maneuver the vehicle 120 through traffic on a street block, and / or assist the driver in maneuvering the vehicle 120 through traffic on a street block and identifying and responding to potential hazards (e.g., pedestrians) or local conditions, such as weather or traffic conditions.

[0068] Furthermore, positioning may enable the vehicle 120 to tune or beam steer the communication array 122 to maximize the quality of the communication link and / or minimize interference with other communications from other vehicles 170A-N. For example, the communication system 124 may beam steer the radiation pattern of the communication array 122 in response to a network configuration command received from the server 130. The data store 129 may store current network source map data identifying network base stations and / or other network sources that provide network connectivity. The network source map data may indicate the locations of base stations and / or available network types (e.g., 3G, 4G, LTE, Wi-Fi, etc.) in the area where the vehicle 120 is located.

[0069] Although Figure 1B Certain operations are described as being performed by either the vehicle 120 or the server 130, but this is not meant to be limiting. Operations described herein as being performed by the vehicle 120 and the server 130 may be performed by either entity. For example, certain operations that are typically performed by the server 130 (e.g., transmitting updated map data to the vehicles 170A-N) may be performed by the vehicle 120 for load balancing purposes (e.g., reducing the processing load on the server 130, utilizing idle processing power on the vehicle 120, etc.).

[0070] Furthermore, any of the vehicles 170A-N may include some or all of the components of the vehicle 120 described herein. For example, the vehicles 170A-N may include a communication array 122 to communicate with the vehicle 120 and / or the server 130.

[0071] ■ Deterministic simulation architecture and execution

[0072] Figure 2 A block diagram of a distributed processing system implemented using a distributed execution and communication architecture 200 is shown. The distributed execution and communication architecture 200 may also be referred to as a "computational graph," or simply a "graph" for convenience. In some embodiments, various components or subsystems of the vehicle 120 may be implemented using such a computational graph 200. For example, the data processing system 123, the vehicle control system 126, other components, combinations thereof, and the like may be implemented using a computational graph 200. In one specific, non-limiting embodiment, the computational graph 200 may be implemented as a Robotic Operating System ("ROS") graph.

[0073] Although the computing graph 200 is described herein in conjunction with specific example implementations of a vehicle-based system, these examples are merely illustrative and are not intended to be limiting. In some embodiments, the computing graph 200 can be used to implement other vehicle-based systems, non-vehicle-based systems, combinations thereof, and the like.

[0074] The computational graph 200 may receive input from the sensor array 121, which may include a variety of sensors, such as a lidar sensor 210, a radar sensor 212, a camera sensor 214, and an inertial sensor 216. The computational graph 200 may process the input from these sensors and generate outputs. For example, the outputs may represent detected obstacles, direction changes to be performed, speed adjustments to be performed, and similar information.

[0075] The computational graph 200 includes several individual executable components, also referred to as nodes, that perform data processing operations, communications, and / or other functions. Generally speaking, a node is a program that performs operations for a subset of a system (e.g., a portion of the vehicle 120). Each node can run as a separate process on a computing device executing the computational graph 200. In addition, the nodes can run synchronously or asynchronously.

[0076] In some embodiments, as shown, nodes can be logically grouped by function, such as perception 202, mapping 204, and planning / control 206. In these logical groupings, there can be any number of separate nodes dedicated to specific functions. For example, the perception 202 node may include a lidar perception node 220, a radar perception node 222, a camera perception node 224, an inertial perception node 226, and / or a detection node 228. The mapping 204 node may include a positioning node 240 and / or a high-definition (HD) map node 242. The planning / control 206 node may include a planning node 260, a control node 262, and / or a gateway node 264.

[0077] Nodes can communicate with each other by passing messages. Messages can be routed via an inter-process communication ("IPC") system with publish / subscribe semantics. In some embodiments, messages are published to specific message queues or "topics." As long as the nodes are configured to generate messages of a specific type (e.g., data structures) for a given topic, the nodes can publish messages to one or more topics. Similarly, as long as the nodes are configured to consume messages of a specific type for a given topic, the nodes can subscribe to one or more topics. The publisher does not need to know which nodes are subscribed to the topic, and the subscriber does not need to know which nodes are publishing to the topic. A proxy subsystem can be used to manage the distribution of messages to nodes that subscribe to a specific topic.

[0078] In an illustrative example, the lidar sensing node 220 may receive an input message from the lidar sensor 210. The lidar sensing node 220 may perform processing on the input message and generate an output message (e.g., an analysis of data from the lidar sensor 210). The lidar sensing node 220 may publish an output message on a LiDAR sensing topic. Any number of other nodes of the graph 200 may subscribe to messages on the LiDAR sensing topic. For example, the HD map node 242 and the planning node 260 may both subscribe to messages on the LiDAR sensing topic. When the lidar sensing node 220 publishes a message on the LiDAR sensing topic, the proxy may determine that the HD map node 242 and the planning node 260 are subscribers to the topic and provide the message to the subscribing nodes.

[0079] Graph 200 does not necessarily need to receive input directly from real-time sensors in sensor array 121. Instead, as long as the input data is properly constructed (e.g., provided using the data structure and data type expected by the subscribing node), graph 200 is able to process the input. This feature of graph 200 can be used to run simulations. For example, a developer may want to test the effect that certain changes to graph 200 will have on the output of graph 200. By running simulations using the same input, the developer can observe the effect of individual changes to graph 200 on the processing performed by graph 200 and its output.

[0080] In some embodiments, the input to the simulation may be serialized data from the sensor array 121. For example, the sensor array 121 may be used to generate sensor data about real-world observations, such as those occurring during use of the vehicle 120. The sensor data may be serialized into a form that can be persistently stored. The serialized data may then be input into the graph 200 during one or more simulations to troubleshoot problems, test changes to the graph 200, and the like.

[0081] Figure 3 Shows Figure 2 304. A block diagram of a computational graph 200 that accepts stored input data rather than data directly from a sensor array 121. As shown, the output from the sensor array 121 may be serialized or otherwise processed into a format that allows for persistent storage in a data store 304. When a simulation is to be run, the serialized simulation data 302 may be loaded from the data store 304 and processed by the graph 200. The output data from the graph 200 may also be serialized into a form that allows for persistent storage. Thus, the output data from multiple different simulations may be analyzed to determine the effect of certain changes to the graph 200 on the output produced from the same input data 302, the effect of changes to the input data 302 on the output produced from the same graph 200, and so on.

[0082] The distributed nature of the graph 200 provides robustness (e.g., a single node may fail and restart without causing the entire graph 200 to fail) and efficient processing (e.g., two or more nodes can execute simultaneously). However, the distributed nature of the graph 200 also results in a non-deterministic system that may produce different outputs between simulations and / or follow different sequences of operations between simulations, even when using exactly the same input data 302. For example, if a single node is started at slightly different times in different simulations (e.g., due to different degrees of system delay), the node may also begin publishing and subscribing to topics at different times. This may cause the node to lose messages during certain simulations, receive messages in different sequences between simulations, etc. As another example, different hardware may execute nodes at different speeds, which may also cause the problems discussed previously, etc. As yet another example, jitter and communication delays may cause different timestamps to be used for timestamped output data between simulations, even when the same input data 302 is processed by the same graph 200 on the same hardware. Each of these problems stems, at least in part, from the non-deterministic nature of the graph 200.

[0083] In order to solve the problems discussed above, a variety of features can be implemented to help achieve deterministic execution of simulation. In some embodiments, the individual nodes in the graph 200 can be split into sub-graphs of smaller and simpler nodes, called small nodes. Similar to nodes, each small node can be an object that can be executed independently of each other small node in the graph. However, unlike nodes, small nodes may be limited to a single thread. By limiting the operation of individual small nodes to a single thread, the entire graph can also be executed on one thread in a serial manner. In addition, the entire graph can be executed in a single process of a computing device. Therefore, it is possible to avoid non-deterministic problems that occur in multi-threaded asynchronous systems, thereby helping to achieve deterministic simulation. In addition, because these individual small nodes can be executed independently of each other, when such execution is required (for example, when running in an active vehicle 120) or when deterministic execution is not required, a graph composed of these small nodes can also be executed in a multi-threaded asynchronous manner. Therefore, a single graph composed of small nodes as described in this article can operate in at least two different modes: a first operating mode or "production mode", in which the small nodes are asynchronously executable, and a second operating mode or "simulation mode", in which the small nodes are executed serially within a single thread according to a single timeline managed by the simulation system.

[0084] Figure 4An example subgraph 400 of small nodes implementing the functionality of a single node from graph 200 is shown. In the example shown, subgraph 400 implements the functionality of lidar perception node 220 as a subgraph of four small nodes: conversion nodelet 402, object detection nodelet 404, obstacle detection nodelet 406, and post-processing nodelet 408. The implementation of multiple single-threaded nodelets enables subgraph 400 itself to execute on a single thread within a single process. Because individual nodelets may all execute in the same process, they can communicate without the overhead and latency of cross-process communication. Therefore, in-process communication between nodelets can further help achieve deterministic execution.

[0085] As shown, the scan conversion nodelet 402 can receive input 410. For example, the input 410 can be scan data generated by the lidar sensor 210. The input 410 can be issued from the lidar sensor 210 and received by the scan conversion nodelet 402 (for example, when the nodelet 402 is executed in the vehicle 120), or the input 410 can be obtained from the serialized sensor data 302 (for example, during simulation, when the nodelet 402 is executed on a computing device separate from the vehicle 120). In either case, the scan conversion nodelet 402 can perform operations on the input data 410, such as converting it into a form that can be used by other nodelets of the subgraph 400. The scan conversion nodelet 402 can then provide its output to other nodelets of the subgraph 400. For example, the scan conversion nodelet 402 can send its output to one or more scan channels 420, 422.

[0086] Compared to the publishing method used by nodes running in separate processes, sending and receiving data via the scan channels 420, 422 of the subgraph 400 can be more efficient and introduce less communication delay. For example, when the small nodes 402, 404, 406 and 408 are all executed within a single process of the computing device, they can communicate with each other in a more direct manner than nodes that execute in separate processes and require cross-process communication. Figure 5A and 5B Some differences between inter-process communication and intra-process communication are shown.

[0087] Figure 5AThe memory 500 of a computing device is shown during the execution of a computational graph 200 with nodes in different processes. A first portion 502 of the memory 500 is reserved for a process executed therein by a first node 512. A second portion 504 of the memory 500 is reserved for a process executed therein by a second node 514. A third portion 506 of the memory 500 is reserved for a process executed therein by an agent (e.g., an operating system and / or a component executed by an operating system) 516. When a first node 512 publishes a message 510 about a particular topic to which a second node 514 subscribes, a cross-process communication process occurs to provide the message to the subscriber. As shown, the message 510 is first serialized at 520 and copied to the third portion 506 of the memory 500 in which the agent 516 executes. The agent 516 determines the topic to which the second node 514 subscribes to which the message 510 belongs. The message 510 is then copied to the second portion 504 of the memory 500 in which the second node 514 executes at 522. This process for cross-process communication may introduce delays into the execution of the graph 200. Furthermore, when there are thousands or millions (or more) of individual messages issued during operation of graph 200 , performing cross-process communication for each message may potentially introduce highly varying amounts of latency between simulations.

[0088] Figure 5B Memory 550 of a computing device such as computing device 1000 is shown, which uses different nodelets in a single process to execute subgraph 400. A portion 560 of memory 550 is reserved for the process in which the entire subgraph 400 is executed, the process including a first nodelet 562 and a second nodelet 564. The mechanism for transmitting messages between nodelets 562, 564 in a process can be called a channel. Figure 5B The process space 560 shown includes a channel 580. When the first nodelet 562 generates a message 570 to be received by the second nodelet 564, the message 570 may be sent via the channel 580 using in-process communication. The channel 580 may be directly accessed by the second nodelet 564 using in-process communication.

[0089] Channels can provide communication of specific types of data (e.g., data that meets specific structural requirements), and different channels can transmit different types of data. Therefore, channels can be used as typed pipelines for asynchronous in-process communication. Messages sent to a specific channel can be stored in a queue. When the queue is full, the oldest message can be deleted when a new message is sent to the channel. In some embodiments, new messages may not be written to the channel until there is space in the queue. Since messages are transmitted within a single process, there is no need for a separate process as a pipeline for communication between processes. In addition, the in-process communication used by the channel avoids the additional overhead caused by out-of-process communication (e.g., serialization, marshalling, context switching, etc.).

[0090] Back to Figure 4 , the sub-graph 400 has four channels: the first and second scan channels 420, 422, which are used to send pre-processed scan data from the scan conversion small node 402 to other small nodes; the object channel 424, which is used to send data about detected objects from the object detection small node 404 to the post-processing small node 408; and the obstacle channel 426, which is used to send data about detected obstacles from the obstacle detection small node 406 to the post-processing small node 408.

[0091] As discussed above, any given node of graph 200 may be implemented as a subgraph of small nodes that can be executed serially within a single thread when desired. Figure 2 and Figure 3 The graph 200 shown can be implemented as a collection of several sub-graphs, which can be collectively referred to as graph 200 for convenience. Graph 200 is implemented using small nodes that can be executed serially within a single thread, helping to achieve deterministic execution of graph 200, which is desired when running a simulation. Additional features can also be implemented to help achieve deterministic execution of the simulation. For example, the task scheduler can interleave the operations of multiple small nodes so that these individual small nodes are executed within discrete and serial execution frames (also referred to as "frames"), and then wait for the task scheduler node to assign the next frame. In addition, the task scheduler can use the simulation system clock to schedule individual frames and ensure that any timestamp data generated during a frame will be timestamped at the same time between simulations, regardless of any delays or jitters that may be inherent in the system. In contrast to the asynchronous execution of graph 200 where there are nodes, cross-process communication, real-time continuous overdue system clocks, etc., this combination of features together enables the simulation to be executed in a deterministic manner.

[0092] Figure 6An illustrative embodiment of a deterministic simulation system 600 is shown, in which a computational graph can be executed in a deterministic manner to perform simulations. The system 600 can be configured to execute an instance of the same vehicle-based processing system (or its components) executed by the vehicle 120. Therefore, testing the vehicle-based processing system can be performed using any number of simulations, by making any number of modifications to the input data and / or subsystems, without necessarily requiring the use or access to the vehicle 120 and the sensor array 121 to perform the simulations. In some embodiments, as shown, the system 600 includes a task scheduler or manager 602 with a simulation system clock 604, and an instance of a computational graph 606 composed of multiple small nodes configured to operate serially in a single thread. The system 600 accepts input 610, such as serialized sensor data, and produces output 612. Because the system 600 is deterministic, it can be used to run simulations, in which individual changes to the input 610, the graph 606, and / or the hardware in which the system 600 is executed, can be combined with the analysis of the impact that the change may have on the generated output 610.

[0093] Figure 7 is a flow chart of an illustrative procedure 700 for scheduling small node processing during simulation. A task scheduler, such as Figure 6 The task scheduler 602 shown may execute program 700 to manage the simulation of the graph 606 processing input data 610. Advantageously, the task scheduler 602 may schedule operations to be performed by small nodes of the graph 606 in a synchronous manner to occur within discrete and serially occurring frames of the execution timeline. Figure 8 Describing procedure 700, Figure 8 is a block diagram showing a timeline for serially scheduling and executing nodelet operations in discrete frames.

[0094] The process 700 begins at block 702. The process 700 may begin in response to an event, such as when a simulation is scheduled to begin, when the task scheduler 602 is started, when input data 610 is obtained, etc. When the process 700 is started, an executable program instruction set stored on one or more non-transitory computer-readable media (e.g., a hard drive, flash memory, removable media, etc.) may be loaded into a memory (e.g., random access memory, RAM) of a computing device, such as Fig.10 The executable instructions may then be executed by a hardware-based computer processor (eg, central processing unit, CPU) of the computing device.

[0095] At box 704, input can be loaded into one or more channels from input data 610. Input data 610 may include messages previously generated by sensors of sensor array 121, messages generated for simulating output of sensor array 121, and some combination thereof, etc. These messages may be timestamped or arranged in sequence so that they can be processed by graph 606 and published to channels in a specific sequence. In some embodiments, a program or small node may be implemented to load messages from input data 610 into a variety of channels according to the timestamps of the messages to simulate the operation of sensor array 121. Task scheduler 602 may determine the timestamp associated with the messages loaded into the channel and set simulation clock 604 to the time corresponding to the timestamp. Simulation clock 604 may then remain at that time until task scheduler 602 sets simulation clock 604 to a different value.

[0096] Figure 8 Timeline 800 is shown starting at time T. At time T, a message 802 is sent to a particular channel. Thus, time T may correspond to a timestamp of message 802. In the example shown, message 802 is a LiDAR scan message, and is sent in a channel used to communicate to a nodelet (e.g., scan conversion nodelet 402) that receives such messages.

[0097] Back to Figure 7 , at decision block 706, task scheduler 602 may determine whether there is a small node to process the recently generated message 802. For example, task scheduler 602 may determine whether one or more small nodes receive the message via one of the channels to which message 802 is sent. If so, then procedure 700 may proceed to block 708. Otherwise, procedure 700 may proceed to block 712. In this example, task scheduler 602 may determine that small node 402 is to receive and process message 802. Therefore, procedure 700 proceeds to block 708.

[0098] At block 708, the small node may perform an operation in response to the message. In this example, small node 402 may be executed. The execution of small node 402 may be responsive to a callback from task scheduler 602, notifying small node 402 of message 802. Task scheduler 602 may increase simulation clock 604 to T+x, where x is an increment used by task scheduler 602 to assign serially occurring frames to individual small nodes. Figure 8In the example shown, no small nodes are executing during the frame starting at T+x except small node 402. In some embodiments, simulation clock 604 is advanced after all small nodes that are to process message 802 have completed processing, or after some other event occurs. In these cases, even though simulation clock 604 may not be advanced for every frame, the frames can still be scheduled serially and only one small node can be executed during any given frame.

[0099] At block 710, the currently executing nodelet may generate a message or other output to return to the task scheduler 602 so that another nodelet may perform operations on the serial timeline. Figure 8 In the example shown, small node 402 may generate messages 804 and 806. Messages 804 and 806 may illustratively be sent to scan channels 420 and 422, respectively, of subgraph 400. Process 700 may then return to decision block 706 to determine whether message 802 has been sent to any other channels.

[0100] At decision block 712, task scheduler 602 may determine whether there are any small nodes that have requested a callback based on a particular schedule. For example, some small nodes may perform a discrete unit of work and then wait for a predetermined or dynamically determined time period before performing another discrete unit of work. When these small nodes are to "wake up" and perform work, they may request a callback from task scheduler 602. If task scheduler 602 determines that there are any small nodes that have requested a callback at the current value or previous value of the simulation clock, program 700 may proceed to block 714. Otherwise, program 700 may proceed to decision block 718. Figure 8 In the example shown, a different nodelet 430 may have requested a callback during a time corresponding to the current value of the simulated clock 604 (eg, at a time at or before the current time represented by the simulated clock 604 ).

[0101] In frame 714, small node can be in response to the callback from task scheduler 602 and carry out operation.In this example, small node 430 can be performed to process the message previously received or generated, and / or perform some other operations.Task scheduler 602 can increase simulation clock 604 to T+2x.In this example, during the frame period that time T+2x begins, only small node 430 can be running.In certain embodiments, simulation clock 604 is not until arranged at time T+x or all callbacks that occur before place have finished processing, or just be advanced after some other events occur.

[0102] At block 716 , the currently executing small node may generate a message or other output to return to the task scheduler so that another small node may perform operations on the serial timeline. In this example, small node 430 may generate message 808 .

[0103] At decision block 718, task scheduler 602 may determine whether the channel has pending messages to process (e.g., messages sent to the channel at blocks 710 and / or 716) during the current iteration of process 700. If so, process 700 may proceed to block 720 to process the message.

[0104] At block 720, task scheduler 602 may execute a subroutine for each channel to which messages have been added during the current iteration of process 700, including blocks 706 through 720 as necessary. Block 720 may be executed iteratively and / or recursively as necessary until all messages generated during the current iteration of process 700 have been processed or until some other event occurs. In this example, a task scheduler 602 may execute a subroutine for each channel to which messages have been added during the current iteration of process 700, including blocks 706 through 720 as necessary. Block 720 may be executed iteratively and / or recursively as necessary until all messages generated during the current iteration of process 700 have been processed or until some other event occurs. Figure 8 Each of the messages 804, 806, and 808 shown in and described above executes block 720. Illustratively, other small nodes of subgraph 400 may process messages 804 and 806 to generate lidar perception output data 412, such as data about detected objects, pedestrians, vehicles, etc. The output itself may be sent to a channel where it is provided to other small nodes and block 720 may be executed on the channel as needed.

[0105] At decision block 722, task scheduler 602 may determine whether there are any additional input messages to load. If so, process 700 may return to block 704. Otherwise, process 700 may terminate at block 724.

[0106] The illustrative procedure 700 is an example of a process performed by the system 600 during simulation and is not intended to be exhaustive or limiting. In some embodiments, certain blocks of the procedure 700 may be performed in a different order, repeated, replaced, or eliminated.

[0107] Fig. 9 is a flow chart of an illustrative program 900 performed by a nodelet. Program 900 may be contained in executable program instructions stored on one or more non-transitory computer-readable media (e.g., a hard drive, flash memory, removable media, etc.). When program 900 is executed (or when graph 606 is executed, or when system 600 begins emulation, or in response to some other event), these executable instructions may be loaded into a memory (e.g., random access memory, RAM) of a computing device, such as Fig.10The executable instructions are executed by a hardware-based computer processor of the computing device.

[0108] Procedure 900 begins at block 902. Procedure 900 may begin in response to an event, such as when a callback to a small node is executed. For example, procedure 900 may be executed by a small node executed during blocks 708 and / or 714 of procedure 700.

[0109] At box 904, the small node can read the message for processing. The message may have been written directly to a memory location for storing the input, output and / or state data of the small node. The memory location may be in a portion of the memory space allocated to the process in which the graph 606 is executed. Illustratively, the message may have been generated by another small node of the graph 606 and transmitted using a channel. In some embodiments, the read operation may be a blocking operation. For example, as long as the message is being written, and as long as the small node is reading the storage space, the portion of the message from the channel in the storage space can be locked. Therefore, if data is being written to the memory portion, the execution of the small node may stop for a period of time.

[0110] At box 906, the small node can perform one or more operations. These operations may vary from small node to small node. For example, object detection small node 404 can perform processing and detection functions different from obstacle detection small node 406, and two small nodes can perform functions different from post-processing small node 408. During the simulation performed by the deterministic simulation system 600, during the time when a small node is performing the operation at box 906, no other small node is allowed to execute. However, during production use (for example, when the graph 606 is executed in the vehicle 120 to process data from the sensor array 121), any number of other small nodes can execute program 900 or multiple parts thereof, while another small node is executing box 906. In some embodiments, during the processing of box 906, a small node may be allowed to use multiple threads (for example, "derive" one or more threads). However, in order to ensure the deterministic characteristics of the graph 606 during simulation, the small node may not be allowed to end execution and produce the next small node until all threads have been completed and execution has been completely returned to the main thread where the small node is executed. This requirement can help prevent execution of another nodelet from starting while the operation of a previous nodelet is still executing, which would be possible if the nodelet could spawn a thread and stop execution before the spawned thread completes.

[0111] At frame 908, the small node can write the message to the channel or otherwise generate output. The message can be written to the memory location for storing the input, output and / or state data of different small nodes. In some embodiments, the write operation can be a blocking operation. For example, as long as the message is being written, and as long as other small nodes are reading the storage space, the part of the message for sending to the channel can be locked in the storage space. Therefore, if data is being written to this memory portion or read from this memory portion, the execution of the small node can be stopped for a period of time.

[0112] At decision block 910, the small node can determine whether an error has occurred, or whether some other stop events have occurred. For example, a processing error or a data access error may occur, and the small node may not be able to recover from the error while keeping the deterministic mode of simulation. As another example, task scheduler 602 can indicate that the small node stops executing. If no such event occurs, program 900 can turn back to frame 904 to read the next message (if any) from the channel. Otherwise, if a stop event has occurred, program 900 can terminate at 912.

[0113] Fig.10 Components of an illustrative computing device 1000 configured to implement aspects of the present disclosure are shown. In some embodiments, as shown, the computing device 1000 may include: one or more computer processors 1002, such as a physical central processing unit ("CPU"); one or more network interfaces 1004, such as a network interface card ("NIC"); one or more computer-readable media drives 1006, such as a high-density disk ("HDD"), a solid-state hard drive ("SDD"), a flash drive, and / or other persistent non-transient computer-readable media; and one or more computer-readable memories 1008, such as random access memory ("RAM") and / or other volatile non-transient computer-readable media. The computer-readable memory 1008 may include computer program instructions executed by the computer processor 1002 to implement one or more embodiments. For example, the computer-readable memory 1008 may store an operating system 1010 that provides computer program instructions for use by the computer processor 1002 in general management and operation of the computing device 1000. The computer-readable memory 1008 may also include task scheduler instructions 1112 for implementing the task scheduler 602. Computer readable memory 1008 may also include simulation clock instructions 1014 for implementing simulation clock 604. Computer readable memory 1008 may also include computational graph instructions 1116 for implementing computational graph 606. In some embodiments, configuration management system 104 may also include or be in communication with a variety of other computing devices, data stores, and the like.

[0114] With regard to the accompanying drawings described herein, other embodiments are also possible, so that the components, steps, frames, operations and / or messages / requests / queries / instructions cited above are arranged, sorted, subdivided, organized and / or merged in different ways. In some embodiments, different components can initiate or perform a given operation.

[0115] ■ Example Embodiments

[0116] Some example enumerated embodiments are referenced in this section in the form of methods, systems, and non-transitory computer-readable media and in a non-limiting manner.

[0117] One aspect of the present disclosure provides a system for deterministic simulation of distributed processing. The system includes a computer-readable memory and one or more processors in communication with the computer-readable memory. The one or more processors are configured to perform at least the following operations: load a computational graph including multiple executable small nodes into a portion of a computer-readable memory assigned to a single process, wherein the multiple executable small nodes are configured to execute in simulation mode, in which the multiple executable small nodes are executed serially to process simulation data representing outputs of one or more sensors, and wherein the multiple executable small nodes are also configured to execute in production mode, in which two or more of the multiple executable small nodes are executed in parallel to process sensor data received from the one or more sensors; schedule the execution of the multiple executable small nodes in the simulation mode, wherein the multiple executable small nodes are scheduled to be executed serially; establish a channel for intra-process communication to a first small node among the multiple executable small nodes; and use the channel to send intra-process data to the first small node, wherein the intra-process data is generated by a second small node at least in part based on the simulation data, and wherein the channel copies the intra-process data from a first location in the computer-readable memory assigned to the portion of the process to a second location in the computer-readable memory assigned to the portion of the process.

[0118] The system of the preceding paragraph may include any subcombination of the following features: wherein the computational graph includes at least a portion of a vehicle control system; wherein the one or more sensors include at least one of the following sensors: a LiDAR sensor, a RADAR sensor, an inertial sensor, or a camera; wherein the one or more processors are further configured to at least determine that a new in-process communication will be sent using the channel, determine during the production mode that a queue associated with the channel is full, and overwrite the oldest in-process communication in the queue with the new in-process communication; wherein the one or more processors are further configured to at least determine that a new in-process communication will be sent using the channel, determine during the simulation mode that a queue associated with the channel is full, and delay sending the new in-process communication; Communications are added to the queue until there is room in the queue for the new in-process communication; wherein each of the plurality of executable nodes is configured to receive in-process data using at least one of the plurality of channels of the computational graph; and wherein the one or more processors are further configured to load at least an input data item from the simulation data, determine a first timestamp associated with the input data item, set a simulation clock to a time represented by the first timestamp, and schedule execution of a second nodelet based at least in part on the time, wherein the simulation clock maintains the time represented by the first timestamp during execution of the second nodelet, and wherein the second nodelet uses the simulation clock to generate a second timestamp associated with the in-process communication generated by the second nodelet.

[0119] Another aspect of the present disclosure provides a computer-implemented method executed under the control of a computing system, the computing system including a computer processor configured to execute specific instructions. The computer-implemented method includes: loading multiple subsystems into a portion of a computer-readable memory allocated to a single process, wherein the multiple subsystems are configured to operate in a first operating mode, in which the multiple subsystems execute only serially to process simulated sensor data, and in a second operating mode, in which two or more of the multiple subsystems execute in parallel to process sensor data; scheduling the execution of the multiple subsystems in the first operating mode; establishing a channel for communicating with a first subsystem in the multiple subsystems; and using the channel to send in-process data to the first subsystem, wherein the in-process data is generated by a second subsystem in the multiple subsystems at least in part based on the simulated sensor data, and wherein the channel copies the in-process data from a first location of the portion of the computer-readable memory allocated to the process to a second location of the portion of the computer-readable memory allocated to the process.

[0120] The computer-implemented method of the preceding paragraph may include any subset of the following features: determining that a new in-process communication will be sent using the channel, determining during a first operating mode that a queue associated with the channel is full, and delaying adding the new in-process communication to the queue until there is room in the queue for the new in-process communication; determining that a new in-process communication will be sent using the channel, determining during a second operating mode that a queue associated with the channel is full, and overwriting the oldest in-process communication in the queue with the new in-process communication; loading an input data item from simulation data, determining a first timestamp associated with the input data item, and setting a simulation clock to a time represented by the first timestamp; and scheduling execution of a second subsystem based at least in part on the time, wherein the simulation clock maintains the time represented by the first timestamp during execution of the second subsystem, and wherein the second subsystem uses the simulation clock to generate a second timestamp associated with the in-process data generated by the second subsystem.

[0121] Another aspect of the present disclosure provides a system, which includes a computer-readable memory and one or more processors in communication with the computer-readable memory. The one or more processors are configured to at least: load multiple subsystems into a portion of the computer-readable memory assigned to a single process, wherein the multiple subsystems are configured to operate in a first operating mode, in which the multiple subsystems execute only serially to process simulated sensor data, and in a second operating mode, in which two or more of the multiple subsystems execute in parallel to process sensor data; schedule execution of the multiple subsystems in the first operating mode; establish a channel for communicating with a first subsystem in the multiple subsystems; and use the channel to send in-process data to the first subsystem, wherein the in-process data is generated by a second subsystem in the multiple subsystems at least in part based on the simulated sensor data, and wherein the channel copies the in-process data from a first location of the portion of the computer-readable memory assigned to the process to a second location of the portion of the computer-readable memory assigned to the process.

[0122] The system in the preceding paragraph may include any subcombination of the following features: wherein the multiple subsystems include at least a portion of a vehicle control system; wherein the sensor data is generated by at least one of the following: a LiDAR sensor, a RADAR sensor, an inertial sensor, or a camera; wherein each of the multiple subsystems is configured to use at least one of a plurality of channels to receive in-process data; wherein the one or more processors are further configured to at least determine that a new in-process communication will be sent using the channel, determine during a first operating mode that a queue associated with the channel is full, and delay adding the new in-process communication to the queue until there is room in the queue for the new in-process communication; wherein the one or more processors are further configured to: is configured to at least determine that a new in-process communication will be sent using the channel, determine during a second operating mode that a queue associated with the channel is full, and overwrite the oldest in-process communication in the queue with the new in-process communication; wherein the one or more processors are also configured to at least load an input data item from the simulation data, determine a first timestamp associated with the input data item, and set a simulation clock to a time represented by the first timestamp; wherein the one or more processors are also configured to at least schedule execution of a second subsystem based at least in part on the time, wherein the simulation clock maintains the time represented by the first timestamp during execution of the second subsystem, and wherein the second subsystem uses the simulation clock to generate a second timestamp associated with the in-process data generated by the second subsystem.

[0123] Yet another aspect of the present disclosure provides a system comprising a first computing device comprising a first instance of a vehicle-based processing system. The first computing device is configured to at least: receive sensor data from one or more sensors coupled to the first computing device; identify at least a first subsystem and a second subsystem of a plurality of subsystems of the first instance of the vehicle-based processing system that are to be executed based at least in part on the received sensor data; and simultaneously execute the first subsystem and the second subsystem, wherein the first subsystem generates a first output based at least in part on the sensor data, and wherein the second subsystem generates a second output based at least in part on the sensor data. The system also comprises a second computing device comprising a second instance of the vehicle-based processing system. The second computing device is configured to at least: receive simulated sensor data representing data generated by one or more sensors; identify at least a third subsystem and a fourth subsystem of a plurality of subsystems of a second instance of the vehicle-based processing system that are to be executed based at least in part on receiving the simulated sensor data; and schedule execution of the third subsystem and the fourth subsystem, wherein the third subsystem is required to complete execution before execution of the fourth subsystem is initiated, wherein the third subsystem generates a third output based at least in part on the simulated sensor data, and wherein the fourth subsystem generates a fourth output based at least in part on the simulated sensor data.

[0124] The system of the preceding paragraph may include any subcombination of the following features: wherein the first computing device includes an onboard computing device of a vehicle, and wherein the second computing device includes a user device separate from the vehicle; wherein the user device is configured to execute a second instance of a vehicle-based processing system as a deterministic simulation of a first instance of a vehicle-based processing system executed on the onboard computing device of the vehicle; wherein a first subsystem of the first instance corresponds to a third subsystem of the second instance, and wherein a second subsystem of the first instance corresponds to a fourth subsystem of the second instance; wherein the simulated sensor data includes a copy of the sensor data.

[0125] Another aspect of the present disclosure provides a computer-implemented method that is executed under the control of a computing system configured to execute specific instructions. The computer-implemented method includes receiving input data that simulates the output of a vehicle-based sensor; determining that a first small node of a vehicle-based processing system will use these input data to perform a first operation, the vehicle-based processing system including multiple executable small nodes; determining that a second small node of the vehicle-based processing system will use these input data to perform a second operation, wherein the second small node is configured to operate independently of the first small node; scheduling the first small node to perform the first operation during a first time period, wherein other small nodes in the multiple executable small nodes are not allowed to execute during the first time period; scheduling the second small node to perform the second operation during a second time period after the first time period, wherein any other small node in the multiple executable small nodes is not allowed to execute during the second time period; executing the first small node to perform the first operation during the first time period, wherein the first operation generates output data to be processed by a third small node in the multiple executable small nodes; scheduling the third small node to perform a third operation during a third time period after the second time period; executing the second small node to perform the second operation during the second time period; and executing the third small node to perform the third operation during the third time period.

[0126] The computer-implemented method of the preceding paragraph may include any sub-combination of the following features: setting a time of a simulation clock based on input data, wherein the simulation clock remains static during execution of a first small node, and advancing the time of the simulation clock based at least in part on completion of execution of the first small node, wherein the simulation clock remains static during execution of a second small node; setting a time of a simulation clock based on the input data, wherein the simulation clock remains static during execution of both the first small node and the second small node; wherein the first small node, the second small node, and the third small node are executed on a single thread; wherein executing the first small node includes using a second thread to execute a function initiated by the first small node, wherein execution of the first small node is not allowed to end until the function is completed on the second thread; copying output data from a first memory location associated with the first small node to a second memory location associated with the third small node, wherein the first memory location and the second memory location are both located in a memory portion allocated to a single process of the computing system; and wherein receiving input data for simulating a vehicle-based sensor output includes receiving data representing a message previously generated by one of the following: a lidar sensor, a radar sensor, an inertial sensor, or a camera.

[0127] Another aspect of the present disclosure provides a system including a computer-readable memory and one or more processors in communication with the computer-readable memory. The one or more processors are configured to at least: receive input data simulating a vehicle-based sensor output; determine that a first subsystem of a vehicle-based processing system will use the input data to perform a first operation, the vehicle-based processing system comprising a plurality of subsystems; determine that a second subsystem of the vehicle-based processing system will use the input data to perform a second operation, wherein the second subsystem is configured to operate independently of the first subsystem; schedule the first subsystem to perform the first operation during a first time period, wherein any other subsystem of the plurality of subsystems is not allowed to execute during the first time period; schedule the second subsystem to perform the second operation during a second time period after the first time period, wherein any other subsystem of the plurality of subsystems is not allowed to execute during the second time period; execute the first subsystem during the first time period; and execute the second subsystem during the second time period.

[0128] The system of the preceding paragraph may include any subcombination of the following features: wherein the one or more processors are further configured to schedule at least a third subsystem of the plurality of subsystems to perform a third operation during a third time period after the second time period, wherein the first operation generates output data to be processed by the third subsystem, and the third subsystem is executed during the third time period; wherein the one or more processors are further configured to copy at least the output data from a first memory location associated with the first subsystem to a second memory location associated with the third subsystem, wherein both the first memory location and the second memory location are located in a memory portion allocated to a single process; wherein the input data simulates the output of one of the following: a laser range finder (LiDAR) sensor, a radar (RADAR) sensor, an inertial sensor, or a camera ; wherein the one or more processors are further configured to set the time of a simulation clock based at least on the input data, wherein the simulation clock remains static during execution of the first subsystem, and advance the time of the simulation clock based at least in part on completion of execution of the first subsystem, wherein the simulation clock remains static during execution of the second subsystem; wherein the one or more processors are further configured to set the time of the simulation clock based at least on the input data, wherein the simulation clock remains static during execution of both the first subsystem and the second subsystem; wherein the first subsystem and the second subsystem execute on a single thread; and wherein executing the first subsystem includes using the second thread to execute a function initiated by the first subsystem, wherein execution of the first subsystem is not allowed to end until the function completes execution on the second thread.

[0129] Another aspect of the present disclosure provides a system, the system comprising a first computing device, the first computing device being configured to at least: execute a first instance of a vehicle-based processing system, the vehicle-based processing system comprising a plurality of subsystems; receive sensor data from one or more sensors coupled to the first computing device; identify at least a first subset of the plurality of subsystems, wherein the first subset will process the sensor data; and execute the first subset to process the sensor data, wherein a system clock of the first computing device is advanced during execution of the first subset, and wherein a first timestamp is generated based at least in part on a value of the system clock during execution of the first subset. The system also comprises a second computing device, the second computing device being configured to at least: execute a second instance of the vehicle-based processing system; receive simulated sensor data representing data generated by the one or more sensors; identify at least a second subset of the plurality of subsystems, wherein the second subset will process the simulated sensor data; set the simulated clock to a simulated time; and execute the second subset to process the simulated sensor data, wherein the simulated sensor data remains static during execution of the second subset, and wherein a second timestamp is generated based at least in part on the simulated clock during execution of the second subset.

[0130] The system in the preceding paragraph may include any sub-combination of the following features: wherein the first computing device includes an onboard computing device of a vehicle, and wherein the second computing device includes a user device separate from the vehicle; wherein the sensor data is generated by at least one of the following: a LiDAR sensor, a RADAR sensor, an inertial sensor, or a camera; wherein the vehicle-based processing system includes a computing graph of executable small nodes, wherein individual executable small nodes include executable instructions, wherein the computing graph is configured to execute in a simulation mode, in which the executable small nodes are executed serially to process simulated sensor data, and wherein the computing graph is also configured to execute in a production mode, in which the executable small nodes are executed serially to process simulated sensor data. wherein two or more small nodes in the plurality of subsystems are executed concurrently to process sensor data received from one or more sensors; wherein the second computing device is also configured to, at least during the execution of the second subset, determine that a callback to one of the plurality of subsystems will be executed, and delay the execution of the callback to the subsystem until the simulation time represented by the simulation clock is changed, wherein the execution of the callback to the subsystem occurs after the execution of the second subset is completed; and wherein the first computing device is also configured to, at least during the execution of the first subset on the first thread, determine that a callback to one of the plurality of subsystems will be executed, and execute the callback to the subsystem on the second thread, wherein during the execution of the callback to the subsystem on the second thread, the execution of the first subset continues on the first thread.

[0131] Another aspect of the present disclosure provides a computer-implemented method executed under the control of a computing system, the computing system including a computer processor configured to execute specific instructions. The computer-implemented method includes: loading an input data item from an input data set including simulated sensor data; determining a time represented by a first timestamp associated with the input data item; setting a simulation clock to the time represented by the first timestamp; determining that a subsystem of a plurality of subsystems will process the input data item; and executing the subsystem, wherein a period of time passes during execution of the subsystem, wherein the simulation clock remains static during execution of the subsystem, and wherein the subsystem uses the simulation clock to generate a second timestamp associated with an output message.

[0132] The computer-implemented method of the preceding paragraph may include any subcombination of the following features: executing a second subsystem of the multiple subsystems to process the output message, wherein the simulation clock remains static during execution of the second subsystem, and wherein the second subsystem uses the simulation clock to generate a third timestamp associated with the second output message; increasing the simulation clock by a predetermined amount between execution of the subsystem and execution of the second subsystem; during execution of the subsystem, determining that a callback to a second subsystem of the multiple subsystems will be executed, and delaying execution of the callback to the second subsystem until the time represented by the simulation clock is changed, wherein execution of the callback to the second subsystem occurs after execution of the subsystem is completed; advancing the simulation clock to a second time, determining that a callback to a second subsystem of the multiple subsystems will be executed based at least in part on the second time, and executing the callback to the second subsystem; determining that a second subsystem of the multiple subsystems will be executed to process an input data item, and executing the second subsystem after execution of the subsystem is completed, wherein the simulation clock remains static during execution of the subsystem and the second subsystem.

[0133] Another aspect of the present disclosure provides a system comprising a computer readable memory and one or more processors in communication with the computer readable memory. The one or more processors are configured to at least: load an input data item from an input data set comprising simulated sensor data; determine a time represented by a first timestamp associated with the input data item; set a simulation clock to the time represented by the first timestamp; determine that a subsystem of a plurality of subsystems will process the input data item; and execute the subsystem, wherein a period of time passes during the execution of the subsystem, wherein the simulation clock remains static during the execution of the subsystem, and wherein the subsystem uses the simulation clock to generate a second timestamp associated with an output message.

[0134] The system in the foregoing paragraph may include any subcombination of the following features: wherein the one or more processors are also configured to execute at least a second subsystem among the multiple subsystems to process an output message, wherein the simulation clock remains static during execution of the second subsystem, and wherein the second subsystem uses the simulation clock to generate a third timestamp associated with a second output message; wherein the one or more processors are also configured to increase the simulation clock by a predetermined amount between execution of the subsystem and execution of the second subsystem; wherein the simulation clock remains static throughout the execution of the subsystem and the second subsystem; wherein the one or more processors are also configured to load a second input data item from an input data set, determine a time represented by a third timestamp associated with the second input data item, set the simulation clock to the time represented by the third timestamp, determine that a third subsystem among the multiple subsystems will process the second input data item, and execute the third subsystem, wherein during execution of the third subsystem a second time period having passed between the two time periods, and wherein the simulation clock remains static during execution of the third subsystem; wherein the one or more processors are further configured to determine, at least during execution of the subsystem, that a callback to a second subsystem among the plurality of subsystems will be executed, and delay execution of the callback to the second subsystem until the time represented by the simulation clock is changed, wherein execution of the callback to the second subsystem occurs after execution of the subsystem is completed; wherein the one or more processors are further configured to at least advance the simulation clock to a second time, determine, at least in part based on the second time, that a callback to a second subsystem among the plurality of subsystems will be executed, and execute the callback to the second subsystem; and wherein the one or more processors are further configured to at least: determine that a second subsystem among the plurality of subsystems will be executed to process an input data item, and execute the second subsystem after execution of the subsystem is completed, wherein the simulation clock remains static during execution of the subsystem and the second subsystem.

[0135] In other embodiments, one or more systems may operate according to one or more of the methods and / or computer readable media cited in the preceding paragraphs. In still other embodiments, one or more methods may operate according to one or more of the systems and / or computer readable media cited in the preceding paragraphs. In still other embodiments, a computer readable medium or media, excluding transient propagating signals, may enable one or more computing devices having one or more processors and non-transient computer readable memory to operate according to one or more of the systems and / or methods cited in the preceding paragraphs.

[0136] ■ the term

[0137] Conditional language, such as "can," "might," "may," or "may," unless specifically stated otherwise or otherwise understood in the context of use, is generally intended to convey that some embodiments include, while other embodiments do not include, certain features, elements, and / or steps. Thus, such conditional language is generally not intended to imply that features, elements, and / or steps are in any way required for one or more embodiments, or that one or more embodiments necessarily include logic for deciding, with or without user input or prompting, whether to include or perform such features, elements, and / or steps in any particular embodiment.

[0138] Unless the context clearly requires otherwise, in the specification and claims, the words "including", "comprising", etc. should be interpreted as inclusive, rather than exclusive or exhaustive, i.e., "including but not limited to". As used herein, the terms "connected", "coupled" or any variation thereof refer to any direct or indirect connection or coupling between two or more elements; the coupling or connection between elements may be physical, logical, or a combination thereof. In addition, the words "herein", "above", "below", and words of similar meaning used in this application refer to the entirety of this application rather than any particular part of this application. Where the context permits, words used in the singular or plural may also include the plural or singular, respectively. When combined with a list of two or more items, the word "or" covers all of the following interpretations of the word: any one of the items in the list, all of the items in the list, and any combination of the items in the list. Similarly, when combined with a list of two or more items, the term "and / or" covers all of the following interpretations of the word: any one of the items in the list, all of the items in the list, and any combination of the items in the list.

[0139] In some embodiments, certain operations, actions, events, or functions of any algorithm described herein may be performed in a different order, may be added, combined, or excluded entirely (e.g., not all are essential to implementing the algorithm). In some embodiments, operations, actions, functions, or events may be performed simultaneously, for example, via multithreading, interrupt handling, or multiple processors or processor cores or on other parallel architectures, rather than sequentially.

[0140] System and module described herein can comprise software, firmware, hardware or be suitable for any combination of software, firmware or hardware of described purpose.Software and other modules can reside on server, workstation, personal computer, computerized tablet computer, PDA and other computing devices suitable for purpose described herein and execute thereon.Software and other modules can be accessed by local computer storage, network, browser or other modes suitable for purpose described herein.Data structure described herein can comprise computer file, variable, programming array, programming structure or any electronic information storage scheme or method or any combination thereof suitable for purpose described herein.User interface element described herein can comprise the element from graphical user interface, interactive voice response, command line interface and other suitable interface.

[0141] Furthermore, the processing of the various components of the system shown can be distributed on multiple machines, networks and other computing resources. Two or more components of a system can be combined into fewer components. The various components of the system shown can be implemented in one or more virtual machines rather than in a dedicated computer hardware system and / or computing device. Equally, the data repository shown can represent physical and / or logical data storage, including, for example, a storage area network or other distributed storage systems. In addition, in some embodiments, the connection between the components shown represents the possible path of the data flow, rather than the actual connection between the hardware. Although some examples of possible connections are shown, in multiple implementations, any subset of the components shown can communicate with each other.

[0142] Embodiments are also described above in conjunction with flowcharts and / or block diagrams for methods, devices (systems) and computer program products. Each frame of the flowchart and / or block diagram and the combination of the frames in the flowchart and / or block diagram can be implemented by computer program instructions. Such instructions can be provided to a processor or other programmable data processing device of a general-purpose computer, a special-purpose computer, a special configuration computer (e.g., including a high-performance database server, a graphics subsystem, etc.) to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device constitute a device for implementing the action specified in one or more frames of the flowchart and / or block diagram. These computer program instructions can also be stored in a non-transient computer-readable memory, and these computer program instructions can instruct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory constitute a manufactured product including an instruction device for implementing the action specified in one or more frames of the flowchart and / or block diagram. These computer program instructions can also be loaded onto a computing device or other programmable data processing device to perform operations on the computing device or other programmable device to produce a computer-implemented process, so that the instructions executed on the computing device or other programmable device provide steps for implementing the action specified in one or more frames of the flowchart and / or block diagram.

[0143] Any patents and applications and other references mentioned above, including any content that can be listed in the attached submission documents, can be incorporated into this article by reference. If necessary, multiple aspects of one or more embodiments can be modified to adopt the systems, functions and concepts of the above-mentioned multiple references. These and other changes can be made according to the detailed description above. Although certain examples are described above, and the best way to be conceivable is described, different embodiments can be implemented in many aspects no matter how detailed the text is presented. The details of the system may be significantly changed in its specific implementation. As mentioned above, the specific terms used when describing certain features should not be interpreted as implying that the term is redefined in this article to be limited to any specific characteristics and features associated with the term. In general, the terms used in the following claims should not be interpreted as limiting the scope of the specific examples disclosed in this specification, unless such terms are explicitly defined in the above-mentioned specific implementation section. Therefore, the actual scope includes not only the disclosed examples, but also all equivalent ways of implementing or realizing the claims.

[0144] In order to reduce the number of claims, certain aspects of the disclosure are set forth in certain claims below, but applicants may envision other aspects of the disclosure in any number of claim forms. For example, although only one aspect of the disclosure is cited as a means-plus-function claim pursuant to 35 U.S.C sec. 112(f) (AIA), other aspects may likewise be implemented as means-plus-function claims, or in other forms, such as in a computer-readable medium. Any claim intended to be processed pursuant to 35 U.S.C. § 112(f) will begin with the phrase "for", but the use of "for" in any other context does not mean that it is referenced for processing pursuant to 35 U.S.C. § 112(f). Therefore, applicants reserve the right to add additional claims to this application or a subsequent application after filing this application.

Claims

1. A system for deterministic simulation of distributed processing, the system include: computer readable memory; as well as one or more processors in communication with the computer-readable memory and configured to at least: loading a computational graph comprising a plurality of executable nodelets into a portion of the computer-readable memory allocated to a single process, wherein the plurality of executable nodelets are configured to execute in a simulation mode, in which the plurality of executable nodelets are executed serially within a single thread of the single process to process simulation data, the simulation data representing outputs of one or more sensors; and wherein the plurality of executable nodelets are further configured to execute in a production mode, in which two or more of the plurality of executable nodelets are respectively executed simultaneously in different threads of the single process to process sensor data received from the one or more sensors; Scheduling the execution of the plurality of executable small nodes in the simulation mode, wherein the plurality of executable small nodes are scheduled to be executed serially; Establishing a channel for in-process communication with a first nodelet among the plurality of executable nodelets; and Using the channel, in-process data is sent to the first nodelet, wherein the in-process data is generated by a second nodelet at least in part based on the simulation data, and wherein the channel copies the in-process data from a first location in the computer-readable memory that is allocated to the portion of the process to a second location in the computer-readable memory that is allocated to the portion of the process.

2. The system according to claim 1, in, The computational graph includes at least a portion of a vehicle control system.

3. The system according to claim 1, in, The one or more sensors are generated by at least one of a LiDAR sensor, a RADAR sensor, an inertial sensor, or a camera.

4. The system according to claim 1, in, The one or more processors are further configured to at least: determining that a new in-process communication will be sent using the channel; During the production mode, determining that a queue associated with the channel is full; and The oldest in-process communication in the queue is overwritten with the new in-process communication.

5. The system according to claim 1, in, The one or more processors are further configured to at least: determining that a new in-process communication will be sent using the channel; During the simulation mode, determining that a queue associated with the channel is full; and Adding the new in-process communication to the queue is delayed until there is room in the queue for the new in-process communication.

6. The system according to claim 1, in, Each of the plurality of executable nodelets is configured to receive in-process data using at least one channel of a plurality of channels of the computation graph.

7. The system of claim 1, wherein the one or more processors are further configured to at least: loading input data items from the simulation data; determining a first timestamp associated with the input data item; Setting a simulation clock to the time indicated by the first timestamp; and scheduling execution of the second nodelet based at least in part on the time, in, The simulation clock maintains the time represented by the first timestamp during execution of the second small node, and wherein the second small node uses the simulation clock to generate a second timestamp associated with the in-process communication generated by the second small node.

8. A computer-implemented method, include: Under the control of a computing system including a computer processor configured to execute specific instructions, loading a plurality of subsystems into a portion of a computer-readable memory allocated to a single process, wherein the plurality of subsystems are configured to operate in a first operating mode in which the plurality of subsystems execute serially only within a single thread of the single process to process simulated sensor data, and wherein the plurality of subsystems are configured to operate in a second operating mode in which two or more of the plurality of subsystems execute simultaneously within different threads of the single process to process sensor data; scheduling execution of the plurality of subsystems in a first operating mode; establishing a channel for communicating with a first subsystem of the plurality of subsystems; and In-process data is sent to the first subsystem using the channel, wherein the in-process data is generated by a second subsystem of the plurality of subsystems based at least in part on the simulated sensor data, and wherein the channel copies the in-process data from a first location in the computer-readable memory that is allocated to the portion of the process to a second location in the computer-readable memory that is allocated to the portion of the process.

9. The computer-implemented method of claim 8, further comprising: include: determining that a new in-process communication will be sent using the channel; during the first mode of operation, determining that a queue associated with the channel is full; as well as Adding the new in-process communication to the queue is delayed until there is room in the queue for the new in-process communication.

10. The computer-implemented method of claim 8, further comprising: include: determining that a new in-process communication will be sent using the channel; during the second mode of operation, determining that a queue associated with the channel is full; as well as The oldest in-process communication in the queue is overwritten with the new in-process communication.

11. The computer-implemented method of claim 8, further comprising: include: loading input data items from said simulated data; determining a first timestamp associated with the input data item; as well as The simulation clock is set to the time represented by the first timestamp.

12. The computer-implemented method of claim 11 , further comprising scheduling execution of the second subsystem based at least in part on the time, in, The simulation clock maintains the time represented by the first timestamp during execution of the second subsystem, and wherein the second subsystem uses the simulation clock to generate a second timestamp associated with the in-process data generated by the second subsystem.

13. A system for deterministic simulation of distributed processing, include: computer readable memory; as well as one or more processors in communication with the computer-readable memory and configured to at least: loading a plurality of subsystems into a portion of a computer-readable memory allocated to a single process, wherein the plurality of subsystems are configured to operate in a first operating mode in which the plurality of subsystems execute serially only within a single thread of the single process to process simulated sensor data, and wherein the plurality of subsystems are configured to operate in a second operating mode in which two or more of the plurality of subsystems execute simultaneously within different threads of the single process to process sensor data; scheduling execution of the plurality of subsystems in a first operating mode; establishing a channel for communicating with a first subsystem of the plurality of subsystems; and Sending in-process data to the first subsystem using the channel, wherein the in-process data is generated by a second subsystem of the plurality of subsystems based at least in part on the simulated sensor data, and wherein the channel copies the in-process data from a first location in the computer-readable memory that is allocated to the portion of the process to a second location in the computer-readable memory that is allocated to the portion of the process.

14. The system according to claim 13, in, The plurality of subsystems comprises at least a portion of a vehicle control system.

15. The system according to claim 13, in, The sensor data is generated by at least one of a LiDAR sensor, a radar sensor, an inertial sensor, or a camera.

16. The system according to claim 13, in, Each subsystem of the plurality of subsystems is configured to receive in-process data using at least one channel of the plurality of channels.

17. The system according to claim 13, in, The one or more processors are further configured to at least: determining that a new in-process communication will be sent using the channel; During the first mode of operation, determining that a queue associated with the channel is full; and Adding the new in-process communication to the queue is delayed until there is room in the queue for the new in-process communication.

18. The system according to claim 13, in, The one or more processors are further configured to at least: determining that a new in-process communication will be sent using the channel; During the second mode of operation, determining that a queue associated with the channel is full; and The oldest in-process communication in the queue is overwritten with the new in-process communication.

19. The system according to claim 13, in, The one or more processors are further configured to at least: loading input data items from said simulated data; determining a first timestamp associated with the input data item; and The simulation clock is set to the time represented by the first timestamp.

20. The system according to claim 19, in, The one or more processors are also configured to schedule execution of at least the second subsystem based at least in part on the time, wherein the simulation clock maintains the time represented by the first timestamp during execution of the second subsystem, and wherein the second subsystem uses the simulation clock to generate a second timestamp associated with the in-process data generated by the second subsystem.