Objects (e.g., vehicles, robots) may be directly used by people, as well as via automation. To ensure the object operates/navigates safely and/or correctly, it may be necessary to verify that the proper sensing and control algorithms are used. Traditional simulations may not adequately provide such verification.
In one example implementation, a method, performed by one or more computing devices, may include but is not limited to configuring a stochastic simulation scenario, wherein the stochastic simulation scenario may include one or more variables, wherein at least a portion of the one or more variables may include agent behavior, and wherein the stochastic simulation scenario may be randomized and digital. The stochastic simulation scenario may be executed to generate one or more results of the stochastic simulation scenario. At least a portion of the one or more variables may be optimized using one or more optimization metrics on the one or more results of the stochastic simulation scenario, wherein at least the portion of the one or more variables may be modified based on game theory.
One or more of the following example features may be included. The stochastic simulation scenario may include one or more variables without a complete probability distribution. Optimization may be performed on a numerical metric established for statistics on results of the stochastic simulation scenario. The stochastic simulation scenario may include a simulation about a robot, wherein the robot is at least one of an industrial and manufacturing robot. The stochastic simulation scenario may include at least one of an autonomous land vehicle, an autonomous air vehicle, and an autonomous water vehicle. The metric may combine at least one of a kinematic and a dynamic property of the one or more optimization metrics. Multiple independent optimizations may be performed over different optimization metrics on the one or more results, wherein at least a portion of the optimizations may start with at least a portion of the one or more results generated from a prior optimization, and wherein the one or more results are at least one of competing and cooperating influences. The stochastic simulation scenario may include the robot proximate to at least one of an orbit, an asteroid, a comet, a planet, and a moon. One or more of the optimizations may be performed in one of sequentially and in parallel. The stochastic simulation scenario may combine digital and physical components. The robot may be used in a military application, wherein the military application includes at least one of conflict, logistical support, and reconnaissance. The stochastic simulation scenario may include a design of at least one of a mechanical component, a control method, and robot kinematics. The stochastic simulation scenario may include a model of human behavior. The stochastic simulation scenario may include one or more sensors, wherein the one or more sensors may include at least one of LIDAR, an accelerometer, an encoder, a camera, a radar, a GPS, acoustic, and magnetic sensors. The stochastic simulation scenario may be executed using one or more Graphical Processing Units. At least the portion of the one or more results may be displayed using three-dimensional graphical rendering. Randomization and optimization of the stochastic simulation scenario may be configured using a graphical user interface. At least the portion of the one or more results may be transmitted during the stochastic simulation using one or more computing devices connected via a network. Optimizing may be based upon, at least in part, optimization of simulation validation metrics comparing simulation behavior with physical test results. A mass and a first moment of inertia of one or more rigid objects in the stochastic simulation may be randomized using variations calculated using a second moment of inertia.
In another example implementation, a computing system may include one or more processors and one or more memories configured to perform operations that may include but are not limited to configuring a stochastic simulation scenario, wherein the stochastic simulation scenario may include one or more variables, wherein at least a portion of the one or more variables may include agent behavior, and wherein the stochastic simulation scenario may be randomized and digital. The stochastic simulation scenario may be executed to generate one or more results of the stochastic simulation scenario. At least a portion of the one or more variables may be optimized using one or more optimization metrics on the one or more results of the stochastic simulation scenario, wherein at least the portion of the one or more variables may be modified based on game theory.
One or more of the following example features may be included. The stochastic simulation scenario may include one or more variables without a complete probability distribution. Optimization may be performed on a numerical metric established for statistics on results of the stochastic simulation scenario. The stochastic simulation scenario may include a simulation about a robot, wherein the robot is at least one of an industrial and manufacturing robot. The stochastic simulation scenario may include at least one of an autonomous land vehicle, an autonomous air vehicle, and an autonomous water vehicle. The metric may combine at least one of a kinematic and a dynamic property of the one or more optimization metrics. Multiple independent optimizations may be performed over different optimization metrics on the one or more results, wherein at least a portion of the optimizations may start with at least a portion of the one or more results generated from a prior optimization, and wherein the one or more results are at least one of competing and cooperating influences. The stochastic simulation scenario may include the robot proximate to at least one of an orbit, an asteroid, a comet, a planet, and a moon. One or more of the optimizations may be performed in one of sequentially and in parallel. The stochastic simulation scenario may combine digital and physical components. The robot may be used in a military application, wherein the military application includes at least one of conflict, logistical support, and reconnaissance. The stochastic simulation scenario may include a design of at least one of a mechanical component, a control method, and robot kinematics. The stochastic simulation scenario may include a model of human behavior. The stochastic simulation scenario may include one or more sensors, wherein the one or more sensors may include at least one of LIDAR, an accelerometer, an encoder, a camera, a radar, a GPS, acoustic, and magnetic sensors. The stochastic simulation scenario may be executed using one or more Graphical Processing Units. At least the portion of the one or more results may be displayed using three-dimensional graphical rendering. Randomization and optimization of the stochastic simulation scenario may be configured using a graphical user interface. At least the portion of the one or more results may be transmitted during the stochastic simulation using one or more computing devices connected via a network. Optimizing may be based upon, at least in part, optimization of simulation validation metrics comparing simulation behavior with physical test results. A mass and a first moment of inertia of one or more rigid objects in the stochastic simulation may be randomized using variations calculated using a second moment of inertia.
In another example implementation, a computer program product may reside on a computer readable storage medium having a plurality of instructions stored thereon which, when executed across one or more processors, may cause at least a portion of the one or more processors to perform operations that may include but are not limited to configuring a stochastic simulation scenario, wherein the stochastic simulation scenario may include one or more variables, wherein at least a portion of the one or more variables may include agent behavior, and wherein the stochastic simulation scenario may be randomized and digital. The stochastic simulation scenario may be executed to generate one or more results of the stochastic simulation scenario. At least a portion of the one or more variables may be optimized using one or more optimization metrics on the one or more results of the stochastic simulation scenario, wherein at least the portion of the one or more variables may be modified based on game theory.
One or more of the following example features may be included. The stochastic simulation scenario may include one or more variables without a complete probability distribution. Optimization may be performed on a numerical metric established for statistics on results of the stochastic simulation scenario. The stochastic simulation scenario may include a simulation about a robot, wherein the robot is at least one of an industrial and manufacturing robot. The stochastic simulation scenario may include at least one of an autonomous land vehicle, an autonomous air vehicle, and an autonomous water vehicle. The metric may combine at least one of a kinematic and a dynamic property of the one or more optimization metrics. Multiple independent optimizations may be performed over different optimization metrics on the one or more results, wherein at least a portion of the optimizations may start with at least a portion of the one or more results generated from a prior optimization, and wherein the one or more results are at least one of competing and cooperating influences. The stochastic simulation scenario may include the robot proximate to at least one of an orbit, an asteroid, a comet, a planet, and a moon. One or more of the optimizations may be performed in one of sequentially and in parallel. The stochastic simulation scenario may combine digital and physical components. The robot may be used in a military application, wherein the military application includes at least one of conflict, logistical support, and reconnaissance. The stochastic simulation scenario may include a design of at least one of a mechanical component, a control method, and robot kinematics. The stochastic simulation scenario may include a model of human behavior. The stochastic simulation scenario may include one or more sensors, wherein the one or more sensors may include at least one of LIDAR, an accelerometer, an encoder, a camera, a radar, a GPS, acoustic, and magnetic sensors. The stochastic simulation scenario may be executed using one or more Graphical Processing Units. At least the portion of the one or more results may be displayed using three-dimensional graphical rendering. Randomization and optimization of the stochastic simulation scenario may be configured using a graphical user interface. At least the portion of the one or more results may be transmitted during the stochastic simulation using one or more computing devices connected via a network. Optimizing may be based upon, at least in part, optimization of simulation validation metrics comparing simulation behavior with physical test results. A mass and a first moment of inertia of one or more rigid objects in the stochastic simulation may be randomized using variations calculated using a second moment of inertia.
The details of one or more example implementations are set forth in the accompanying drawings and the description below. Other possible example features and/or possible example advantages will become apparent from the description, the drawings, and the claims. Some implementations may not have those possible example features and/or possible example advantages, and such possible example features and/or possible example advantages may not necessarily be required of some implementations.
Like reference symbols in the various drawings indicate like elements.
System Overview:
In some implementations, the present disclosure may be embodied as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware implementation, an entirely software implementation (including firmware, resident software, micro-code, etc.) or an implementation combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, the present disclosure may take the form of a computer program product on a computer-usable storage medium having computer-usable program code embodied in the medium.
In some implementations, any suitable computer usable or computer readable medium (or media) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-usable, or computer-readable, storage medium (including a storage device associated with a computing device or client electronic device) may be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable medium may include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a digital versatile disk (DVD), a static random access memory (SRAM), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, a media such as those supporting the internet or an intranet, or a magnetic storage device. Note that the computer-usable or computer-readable medium could even be a suitable medium upon which the program is stored, scanned, compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory. In the context of the present disclosure, a computer-usable or computer-readable, storage medium may be any tangible medium that can contain or store a program for use by or in connection with the instruction execution system, apparatus, or device.
In some implementations, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. The computer readable program code may be transmitted using any appropriate medium, including but not limited to the internet, wireline, optical fiber cable, RF, etc. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
In some implementations, computer program code for carrying out operations of the present disclosure may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Java®, Smalltalk, C++ or the like. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. However, the computer program code for carrying out operations of the present disclosure may also be written in conventional procedural programming languages, such as the “C” programming language, PASCAL, or similar programming languages, as well as in scripting languages such as Javascript, PERL, or Python. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the internet using an Internet Service Provider). In some implementations, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGAs) or other hardware accelerators, micro-controller units (MCUs), or programmable logic arrays (PLAs) may execute the computer readable program instructions/code by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.
In some implementations, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus (systems), methods and computer program products according to various implementations of the present disclosure. It will be understood that each block in the flowchart and/or block diagrams, and combinations of blocks in the flowchart and/or block diagrams, may represent a module, segment, or portion of code, which comprises one or more executable computer program instructions for implementing the specified logical function(s)/act(s). These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program instructions, which may execute via the processor of the computer or other programmable data processing apparatus, create the ability to implement one or more of the functions/acts specified in the flowchart and/or block diagram block or blocks or combinations thereof. It should be noted that, in some alternative implementations, the functions noted in the block(s) may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
In some implementations, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks or combinations thereof.
In some implementations, the computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed (not necessarily in a particular order) on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions/acts (not necessarily in a particular order) specified in the flowchart and/or block diagram block or blocks or combinations thereof.
Referring now to the example implementation of
In some implementations, as will be discussed below in greater detail, an SD process, such as SD process 10 of
In some implementations, the instruction sets and subroutines of SD process 10, which may be stored on storage device, such as storage device 16, coupled to computer 12, may be executed by one or more processors (not shown) and one or more memory architectures included within computer 12. In some implementations, storage device 16 may include but is not limited to: a hard disk drive; a flash drive, a tape drive; an optical drive; a RAID array (or other array); a random access memory (RAM); and a read-only memory (ROM).
In some implementations, network 14 may be connected to one or more secondary networks (e.g., network 18), examples of which may include but are not limited to: a local area network; a wide area network; or an intranet, for example.
In some implementations, computer 12 may include a data store, such as a database (e.g., relational database, object-oriented database, triplestore database, etc.) and may be located within any suitable memory location, such as storage device 16 coupled to computer 12. In some implementations, data, metadata, information, etc. described throughout the present disclosure may be stored in the data store. In some implementations, computer 12 may utilize any known database management system such as, but not limited to, DB2, in order to provide multi-user access to one or more databases, such as the above noted relational database. In some implementations, the data store may also be a custom database, such as, for example, a flat file database or an XML database. In some implementations, any other form(s) of a data storage structure and/or organization may also be used. In some implementations, SD process 10 may be a component of the data store, a standalone application that interfaces with the above noted data store and/or an applet/application that is accessed via client applications 22, 24, 26, 28. In some implementations, the above noted data store may be, in whole or in part, distributed in a cloud computing topology. In this way, computer 12 and storage device 16 may refer to multiple devices, which may also be distributed throughout the network.
In some implementations, computer 12 may execute a simulation application (e.g., simulation application 20), examples of which may include, but are not limited to, e.g., a stochastic simulation application, a game theory framework application, or other application that allows for evaluation and solving of game theory over one or more agents. In some implementations, SD process 10 and/or simulation application 20 may be accessed via client applications 22, 24, 26, 28. In some implementations, SD process 10 may be a standalone application, or may be an applet/application/script/extension that may interact with and/or be executed within simulation application 20, a component of simulation application 20, and/or one or more of client applications 22, 24, 26, 28. In some implementations, simulation application 20 may be a standalone application, or may be an applet/application/script/extension that may interact with and/or be executed within SD process 10, a component of SD process 10, and/or one or more of client applications 22, 24, 26, 28. In some implementations, one or more of client applications 22, 24, 26, 28 may be a standalone application, or may be an applet/application/script/extension that may interact with and/or be executed within and/or be a component of SD process 10 and/or simulation application 20. Examples of client applications 22, 24, 26, 28 may include, but are not limited to, e.g., a stochastic simulation application, a game theory framework application, or other application that allows for evaluation and solving of game theory over one or more agents, a robot device application, a standard and/or mobile web browser, an email application (e.g., an email client application), a textual and/or a graphical user interface, a customized web browser, a plugin, an Application Programming Interface (API), or a custom application. In some implementations, example client applications may include, e.g., SolidWorks, Mathematica, Matlab, Actin toolkit from Energid Technologies of Cambridge, Mass., etc. The instruction sets and subroutines of client applications 22, 24, 26, 28, which may be stored on storage devices 30, 32, 34, 36, 30a, 32a, 34a, 36a, coupled to client electronic devices 38, 40, 42, 44 and/or robot devices 64, 66, 68, 70, may be executed by one or more processors and one or more memory architectures incorporated into client electronic devices 38, 40, 42, 44 and/or robot devices 64, 66, 68, 70.
In some implementations, examples of robot devices 64, 66, 68, 70 may include, but are not limited to, e.g., a geo-based land, air, and water vehicle (e.g., car, truck, boat, plane, quadcopters, drones, other manned or unmanned air vehicles, etc.), a space exploration vehicle (e.g., lunar roving vehicle, robotic roving vehicles, etc.), an orbiting vehicle (e.g., satellite, rocket, etc.), and industrial robotic manipulator (e.g., multi-degree of freedom arm), or any other object capable of movement (autonomous or otherwise) via SD process 10. In some implementations, robot devices 64, 66, 68, 70 may be capable of autonomous movement in orbit, on an asteroid, comet, planet, or moon.
In some implementations, storage devices 30, 32, 34, 36, 30a, 32a, 34a, 36a, may include but are not limited to: hard disk drives; flash drives, tape drives; optical drives; RAID arrays; random access memories (RAM); and read-only memories (ROM). Examples of client electronic devices 38, 40, 42, 44 (and/or computer 12) may include, but are not limited to, a personal computer (e.g., client electronic device 38), a laptop computer (e.g., client electronic device 40), a smart/data-enabled, cellular phone (e.g., client electronic device 42), a notebook computer (e.g., client electronic device 44), a tablet (not shown), a server (not shown), a television (not shown), a smart television (not shown), a media (e.g., video, photo, etc.) capturing device (not shown), and a dedicated network device (not shown). Additionally/alternatively, client electronic devices 38, 40, 42, 44 may include a robot device (e.g., robot devices 64, 66, 68, 70). Client electronic devices 38, 40, 42, 44 may each execute an operating system, examples of which may include but are not limited to, Android™, Apple® iOS®, Mac® OS X®; Red Hat® Linux®, or a custom operating system. SD process 10 may interface over a variety of network protocols, such as TCP, UDP, or others.
In some implementations, one or more of client applications 22, 24, 26, 28 may be configured to effectuate some or all of the functionality of SD process 10 (and vice versa). Accordingly, in some implementations, SD process 10 may be a purely server-side application, a purely client-side application, or a hybrid server-side/client-side application that is cooperatively executed by one or more of client applications 22, 24, 26, 28 and/or SD process 10.
In some implementations, one or more of client applications 22, 24, 26, 28 may be configured to effectuate some or all of the functionality of simulation application 20 (and vice versa). Accordingly, in some implementations, simulation application 20 may be a purely server-side application, a purely client-side application, or a hybrid server-side/client-side application that is cooperatively executed by one or more of client applications 22, 24, 26, 28 and/or simulation application 20. As one or more of client applications 22, 24, 26, 28, SD process 10, and simulation application 20, taken singly or in any combination, may effectuate some or all of the same functionality, any description of effectuating such functionality via one or more of client applications 22, 24, 26, 28, SD process 10, simulation application 20, or combination thereof, and any described interaction(s) between one or more of client applications 22, 24, 26, 28, SD process 10, simulation application 20, or combination thereof to effectuate such functionality, should be taken as an example only and not to limit the scope of the disclosure.
In some implementations, users 46, 48, 50, 52 and/or robot devices 64, 66, 68, 70 may access computer 12 and SD process 10 (e.g., using one or more of client electronic devices 38, 40, 42, 44) directly through network 14 or through secondary network 18. Further, computer 12 may be connected to network 14 through secondary network 18, as illustrated with phantom link line 54. SD process 10 may include one or more user interfaces, such as browsers and textual or graphical user interfaces, through which users 46, 48, 50, 52 may access SD process 10 and/or robot devices 64, 66, 68, 70.
In some implementations, the various client electronic devices and/or robot devices 64, 66, 68, 70 may be directly or indirectly coupled to network 14 (or network 18). For example, personal computer 38 and robot device 64 are shown directly coupled to network 14 via a hardwired network connection. Further, notebook computer 44 and robot device 70 are shown directly coupled to network 18 via a hardwired network connection. Laptop computer 40 and robot device 66 are shown wirelessly coupled to network 14 via wireless communication channels 56a and 56b respectively established between laptop computer 40 and wireless access point (i.e., WAP) 58 and between robot device 66 and WAP 58, which is shown directly coupled to network 14. WAP 58 may be, for example, an IEEE 802.11a, 802.11b, 802.11g, Wi-Fi®, and/or Bluetooth™ (including Bluetooth™ Low Energy) device that is capable of establishing wireless communication channel 56a between laptop computer 40 and WAP 58 and wireless communication channel 56b between robot device 66 and WAP 58. Additionally/alternatively, a robot device (e.g., robot device 66) may be directly (and/or wirelessly) coupled to a client electronic device (e.g., client electronic device 40) as illustrated with phantom link line 55. Thus, information may be communicated from a robot device (e.g., robot device 66) to a client electronic device (e.g., client electronic device 40), where the information may be communicated, e.g., to computer 12 via, e.g., a network (e.g., network 14). Smart phone 42 and robot device 68 are shown wirelessly coupled to network 14 via wireless communication channels 60a and 60b respectively established between smart phone 42 and cellular network/bridge 62 and robot device 68 and cellular network/bridge 62, which is shown directly coupled to network 14.
In some implementations, some or all of the IEEE 802.11x specifications may use Ethernet protocol and carrier sense multiple access with collision avoidance (i.e., CSMA/CA) for path sharing. The various 802.11x specifications may use phase-shift keying (i.e., PSK) modulation or complementary code keying (i.e., CCK) modulation, for example. Bluetooth™ (including Bluetooth™ Low Energy) is a telecommunications industry specification that allows, e.g., mobile phones, computers, smart phones, and other electronic devices (e.g., robot devices 64, 66, 68, 70) to be interconnected using a short-range wireless connection. Other forms of interconnection (e.g., Near Field Communication (NFC)) may also be used.
Referring also to the example implementation of
In some implementations, client electronic device 38 may include a processor and/or microprocessor (e.g., microprocessor 200) configured to, e.g., process data and execute the above-noted code/instruction sets and subroutines. Microprocessor 200 may be coupled via a storage adaptor (not shown) to the above-noted storage device(s) (e.g., storage device 30). An I/O controller (e.g., I/O controller 202) may be configured to couple microprocessor 200 with various devices, such as keyboard 206, pointing/selecting device (e.g., touchpad, touchscreen, mouse 208, etc.), custom device (e.g., device 215), USB ports (not shown), and printer ports (not shown). A display adaptor (e.g., display adaptor 210) may be configured to couple display 212 (e.g., touchscreen monitor(s), plasma, CRT, or LCD monitor(s), etc.) with microprocessor 200, while network controller/adaptor 214 (e.g., an Ethernet adaptor) may be configured to couple microprocessor 200 to the above-noted network 14 (e.g., the Internet or a local area network).
As discussed above and referring also at least to the example implementations of
Objects (e.g., vehicles, robots, etc.) may be directly (or indirectly) used by people, as well as via automation. For instance, self-driving cars may be available that may not rely upon user control. To enable the design of effective control algorithms, it may be necessary to simulate varied and uncertain system and environmental parameters. Traditional simulations may not adequately provide such capability. Design and validating large-vehicle automation completely to the point of enabling fielding may present challenges. For example, due to the level of confidence needed, there should be no runaway large vehicles, and may require thoroughness that may not be immediately practical using traditional hardware facilities alone. Some simulations, even Monte Carlo simulation, may fail to completely address this issue. For complex scenarios, it may use imperfect probability distributions for unknown parameters. For example problems with high dimensionality, the simulation may inadequately sample these parameters, which may yield incorrect statistics.
However, as will be discussed in greater detail, SD process 10 may implement a game theory technique for convoy algorithm design. In some implementations, SD process 10 may execute a technique to actively seek out and identify (e.g., algorithmically) anomalies and corner cases that may cause system failure. In some implementations, simulation-based testing may be cast as a game theory problem over one or more agents. By finding equilibrium conditions, parameters that may give anomalous behavior may be found and near optimal control configurations determined. In some implementations, simultaneously optimizing performance for driver-model parameters may give realistic results. In some implementations, SD process 10 may (e.g., via simulation application 20) make use of high fidelity vehicle dynamics and terrain simulation, as well as Graphical Processing Units (GPU)- or CPU-based sensor simulations. In some implementations, SD process 10 may be useful, e.g., for use in validating algorithms, with results that may be supported through module and system validation.
In some implementations, SD process 10 may be used generally with, e.g., large or small robotics and/or autonomous objects (e.g., vehicle types such as commercial, military, mining, agricultural, and transport vehicles, associated convoys such as large-scale functional convoys, etc.). In some implementations, the stochastic simulation scenario may include a simulation about a robot, wherein the robot may be at least one of an industrial and manufacturing robot. In some implementations, the stochastic simulation scenario may include a robot may be used in a military application, wherein the military application may include at least one of conflict, logistical support, and reconnaissance. It will be appreciated that while one or more implementations may be described using a convoy or other autonomous object, the present disclosure may be applied equally to large or small robots, or other objects that may benefit from the use of SD process 10. As such, any description of a convoy of other autonomous object should be taken as an example only and not to limit the scope of the disclosure. Thus, as used herein, the terms “vehicle,” “robot,” and “object” may be used interchangeably in the examples as appropriate.
Convoy operations may be complex, with factors such as numbers and types of vehicles, the nature of the cargo, the time of the convoy (e.g., day or night), the traveled surface, the surrounding terrain, and the operation mechanics (e.g., splitting and merging), to list a few. Despite the challenges, convoys may offer compelling automation. For example, the task requirements may be limited, control of one vehicle following another may be tractable, and there may be opportunity for human facilitation by selective introduction of drivers. While the disclosure may include examples of use with large autonomous military vehicles organized into convoys, it will be appreciated that other example vehicles, number of vehicles, objects (e.g., robots) and sizes may be used without departing from the scope of the disclosure.
It may be appreciated that very few vehicles, if any, are actually fielded with “full” autonomy. Instead, autonomous vehicles may generally be carefully watched and guided by a user. For example, some companies may have monitors in the cab, may restrict application, have passive drivers, and may be tested in cleared and walled areas. General autonomy algorithms may not be sufficiently robust, and the consequences of failure, e.g., a runaway multi-ton vehicle, may be too high.
Typically, researchers may attempt to address design evaluation through hardware testing. For instance, systems may be run through exercises and studies in the field. However, it may be difficult to reproduce the great variety of events that a fielded autonomous system may encounter over its life. In some implementations, SD process 10 may be associated with digital simulation (e.g., via simulation application 20). Simulation may support many more hours of testing in a greater variety of situations at a lower cost, and may be scaled to more and larger computers, run day and night, and may be 100% safe.
As will be discussed below, in some implementations, the stochastic simulation scenario may include combined digital and physical components. For instance, SD process 10 may use a hardware-in-the-loop architecture associated with the stochastic simulation scenario. For example, digital simulation may be combined with hardware components (e.g., a hardware-in-the-loop approach) to add reality and incorporate proprietary algorithms (such as those in sensors and autopilots). Known sensor simulations include, e.g., cameras, LIDAR, GPS, radar, as well as simulation of vehicles and terrain.
In some implementations, SD process 10 may use sensor modeling techniques to leverage GPU programming to speed calculation and quality. In some implementations, SD process 10 may be implemented in parallel across multiple computers, each with multiple graphics cards, to create a faster computer environment for simulation. Digital simulation, through, e.g., parametric and Monte Carlo studies, generally have not offered adequate coverage of the situations and environments that may lead to failure. For instance, the corner cases that may fail, in the real world, may appear as vanishing probability events in most simulation models. In some implementations, this may be due to inaccurate probability distributions being applied to Monte Carlo simulation parameters.
For example, many probability distributions are not even knowable, e.g., they may depend on unstudied phenomena, human activities, or one-time events. Generally, variables not even having probability distributions are regarded as “profoundly unknown.” In some implementations, it may be the neglect of profoundly unknown variables that may drive many simulations to discredit and disuse, as they may not provide results that are accurate enough, based on wise assessment from subject matter experts, to support precise system design, mission planning and execution.
In some implementations, as will be discussed in greater detail below, SD process 10 may configure 300, by a computing device, a stochastic simulation scenario, wherein the stochastic simulation scenario may include one or more variables, wherein at least a portion of the one or more variables may include agent behavior, and wherein the stochastic simulation scenario may be randomized and digital. In some implementations, SD process 10 may be used to address these technical issues through, e.g., a stochastic optimizing autonomy Safety Testing Environment (STE) (e.g., via simulation application 20).
In some implementations, SD process 10 (e.g., via simulation application 20) may include a stochastic and/or game theory framework, including example modules for simulation of sensors, complex articulated mechanisms, vehicle terrain interactions, and representative environments. In some implementations, simulation application 20 may include a plugin framework that may support integrating third party algorithms and software for sensor simulation, vehicle models, autonomy, etc. In some implementations, the plugins may communicate with each other through a publish-and-subscribe paradigm implemented using the Data Distribution Services (DDS) standard. In some implementations the publish-and-subscribe communication protocol may conform to RSJPO interoperability profiles. This may enable others to quickly contribute new functionality through the plugin model, including, e.g., the autonomy and convoy control algorithms. It will be appreciated that services other than DDS that may or may not conform to RSJPO interoperability profiles may be used.
In some implementations, SD process 10 may apply these tools within a game theory framework (e.g., via simulation application 20). In some implementations, to address the issues of profoundly unknown simulation parameters and the desire to specifically find corner cases, SD process 10 may apply the concept of simultaneously randomly simulating and optimizing performance, where the optimization may be performed over sample distributions coming from the randomization. For instance, an example and non-limiting starting architecture 400A, 400B, and 400C for randomizing-optimization may be seen in
In some implementations, starting architecture 400A and 400B may be used to optimize a metric on a sampled distribution over a set of variables. Using this example architecture, SD process 10 may formally configure 300 and define algorithms, parameter distributions and simulation modules that may be configured and exchanged.
In some implementations, multiple metrics, which may be independent and/or competing, may be provided by SD process 10 and may be optimized over subsets of the unknown parameters. In some implementations, this multi-optimization, which can be implemented by retaining the simulation but sequentially changing the optimization parameters in
In some implementations, the above-noted software architecture may rely on, e.g., extensible markup language (XML) for the definition and configuration 300 of some or all of the simulation scenario. For instance, an XML configuration file may describe, e.g., the vehicles, sensors, actuators, environment, and other components applicable to the particular simulation desired. In some implementations, SD process 10 may include plugins to import a solid model and joint definitions, add sensors, and define actuators on the device (e.g., robot device 66) to assist in creating the XML configuration file. In some implementations, as the XML file is read into the system, each object defined within it may be instantiated within SD process 10 itself. In some implementations, this may be accomplished by having SD process 10 have knowledge of the XML token for the object and the corresponding function or method to call to create a new instance of the object. This may enable a new type of object to be defined via a run-time dynamic library, and instantiated via the XML system without requiring the software toolkit to be recompiled. It will be appreciated that languages other than XML may be used for the definition and configuration of the simulation.
In some implementations, as will be discussed below, SD process 10 may execute 302 the stochastic simulation scenario to generate one or more results of the stochastic simulation scenario, and SD process 10 may optimize 304 at least a portion of the one or more unknown variables using one or more optimization metrics on the one or more results of the stochastic simulation scenario, wherein at least the portion of the one or more variables may be modified based on game theory. In some implementations, at least a portion of the one or more results may be transmitted during the stochastic simulation using one or more computing devices connected via a network (e.g., network 14/18 in
In some implementations, the simulation scenario may be randomized and digital. For instance, SD process 10 may include a randomizer algorithm for use in the above-noted digital simulation. In some implementations, the randomizer of SD process 10 may be responsible for running (e.g., a Monte Carlo) experiment on the simulation scenario, given a set of example input variables (labeled x1 in
As shown in example
In some implementations, the software architecture components (e.g., vehicle and vehicle convoy components) may help fulfill two example purposes, e.g.: 1) enable easy storage and simulation of vehicles and vehicle convoys and 2) enable a user (e.g., via SD process 10) to easily swap in a new implementation of control algorithms and vehicle component models.
In some implementations, the stochastic simulation scenario may include the robot proximate to at least one of an orbit, an asteroid, a comet, a planet, and a moon. In some implementations, the stochastic simulation scenario includes at least one of an autonomous land vehicle, an autonomous air vehicle, and an autonomous water vehicle. In some implementations, the stochastic simulation scenario may include an autonomous convoy. For instance, in software, a convoy object may act as both an easily configurable and storable representation of the convoy, and as an interface class between the randomizing-optimizing framework control system of SD process 10 and the simulation backend. The convoy object (e.g., via SD process 10) may be responsible for storing descriptions of the convoy and individual vehicle configurations. For instance, and referring at least to
In some implementations, the stochastic simulation scenario may include a design of a mechanical component. In some implementations, each vehicle in the simulation may contain its own drivetrain model, which may be responsible for calculating (e.g., via SD process 10) the individual wheel torques generated by the engine and transferred through differentials. This may enable users to chain together multiple components, such as internal combustion engines, differentials, gearboxes, wheels, etc., to form a model of the complete vehicle drivetrain for the scenario. In some implementations, this may be achieved as an additional layer on top of the dynamic model. An example drivetrain topology 700 is shown in
In some implementations, the stochastic simulation scenario include a design of a control method. For ease of explanation, a basic convoy control system built on virtual linkages between vehicles will be discussed, however, it will be appreciated that various convoy control systems may be used. In the example, the basic convoy control system may include one or more components, e.g., the convoy controller, and the individual vehicle control. In the example, each vehicle may be assumed to have a virtual tow-bar, with a configurable length, attached to the front and back end. In the example, the desired position of the vehicle may then be calculated based on these lengths, with the example assumption that the virtual tow-bars are rigidly mounted to the vehicles at a specified angle (typically parallel to the longitudinal axis). This general example formulation 800 for a virtual tow-bar convoy controller is summarized in
In some implementations, the stochastic simulation scenario may include a model of human behavior. In some implementations, a basic human driver model may be used for simulation. This example parameterized model, which may be based on the work of Macadam, may be included as part of either the input or randomized variables. In the example, the basic human driver model may use, e.g., sensory-motor transport delay, dynamic capabilities, and preferred driving behaviors. In some implementations, the basic human driver model may include modeling of the transport time delay between a stimulus and the control response. In some implementations, this delay may represent the time necessary for the driver to sense a stimulus, process it, determine the best corrective action, and respond. The basic human driver model may also include a speed control model with an absolute maximum vehicle speed (e.g., the maximum speed of the vehicle, the speed a driver is not comfortable exceeding, etc.) and a cornering aggressiveness measure to reduce the speed based on the turning radius. In the example, this may replicate the tendency of drivers to slow down through a turn, as shown via driver cornering aggressiveness modeling graph 900 in example
In some implementations, the dynamics of how a human may respond to stimuli may be included in the human driver model, which may include, e.g., a metric of how aggressively the driver brakes and accelerates. In some implementations, an aggressive driver may be modeled as one who applies very high control inputs to achieve the desired vehicle speeds, while a conservative driver may use more gradual control inputs. In some implementations, this may be modeled using a PID controller, with the input being controlled to the desired value. In some implementations, by increasing the gains on this controller, the aggressiveness of the driver may be increased. The integral control action may allow a driver to be modeled as providing accurate control inputs, without significantly impacting their aggressiveness.
In some implementations, the simulation shown in
In some implementations, dynamic simulation may require SD process 10 calculating the force response to impacts between bodies. For instance, the force response may be modeled as, e.g., a function of material type, object positions, and object velocities, etc. A physics-based force response model may return a force as a function of these properties. Since several models may be employed (and with customers possibly desiring to add their own), the architecture may be extendable. Any number of force processors may be used within the simulation, and they may be selected (e.g., via SD process 10) using the surface properties of the objects in contact within the simulated environment. For example, in some implementations, a spring displacement model may be used for the collision response implemented using knowledge of the penetration distance between two intersecting physical extents. It will be appreciated that other variations may be used without departing from the scope of the disclosure.
In some implementations, SD process 10 may use a friction force calculation using an example static and kinetic Coulomb friction model to give realistic forces in the convoy environment. The friction model may appropriately model, for example, the process by which a moving vehicle comes to rest. In some implementations, this technique may be based on the concept of a breaking spring. For example, the friction force may be calculated (e.g., via SD process 10) as a function of the relative position x and velocity {dot over (x)}. In the example, the friction model may be assigned two modes (e.g., kinetic and static). The determination of mode may be made using a virtual spring that when stretched past a prescribed position signals kinetic mode and otherwise signals static mode, with appropriate force models used in each mode.
In some implementations, SD process 10 may use an example articulated-body algorithm for simulation to give Order(N) runtime. This algorithm may enable very fast simulation of very complex mechanisms. For example, an articulated body may be a collection of connected articulating links, such as suspension components, axles, and wheels. An example articulated body 1000 is shown in example
In some implementations, a mass and a first moment of inertia of one or more rigid objects in the stochastic simulation may be randomized using variations calculated using a second moment of inertia. For example, in some implementations, vehicle mass properties may consist of a mass (one scalar), a first moment of inertia (three scalars), and a second moment of inertia (six scalars). These values may be interrelated—when Monte Carlo simulating a scenario, increasing mass tends to increase the elements of the first moment. When simulating vehicles with limited data on mass-property variation, SD process 10 may find a way to estimate the variation of the first moment of inertia as a function of a known variation in scalar mass. The variation in mass may be easier to estimate based on historical data that may be taken with a scale. A possible approach to doing this, is presented below.
In the general sense, assume for example purposes only that the integration of a zero-mean random variable χ over a 3D volume V is established as follows:
Here, {right arrow over (r)} is a 3D point within the volume V.
The constraint imposed on this integral may be that it may be consistent with discrete approximation. These properties 1700 used to define equation 1 are shown in example
In the example, given the above, assume for example purposes only that some function of 3D position {right arrow over (r)} over the volume V is f({right arrow over (r)}), and let the random variable F be defined as follows:
Let the standard deviation of X be σX. With reasonable constraints on f and χ as a function of {right arrow over (r)}, the standard deviation of F may be approximated by
Where V is the measure of volume V.
The mass of rigid body defined over volume V may be given by
where ρ is the mass density for the differential volume dV. To describe the variability of the density, let it be represented as
ρ=(1+χ)
where
Let
be the nominal mass, and
be the random variation, so that
m=
Because
In general, SD process 10 may generally assume that it knows σm for the rigid body being modeled (not σχ).
The first moment may be given by
This may give
Let
And let {tilde over (h)} be the random variation,
Representing {right arrow over (r)} as {right arrow over (r)}=[x y z]T, and substituting into (3) gives
Substituting in (14) gives
This gives a formula for the standard deviation of the first moment of inertia of a rigid body as a function of the standard deviation of its mass. A useful approximation may result if the nominal mass density
This gives
which can be expressed as
where Ixx, Iyy, and Izz are the diagonal elements of the standard moment of inertia tensor, given by
The example formula in (19) gives the standard deviation of the first moment of a rigid body as a function of the standard deviation of the mass and the nominal second moments of inertia (which are standard mass properties). The relationship of the standard deviation in first moment to the nominal values of the second moment is an interesting result.
In some implementations, associated with a handle may be a 6×6 articulated-body inertia IA that may satisfy the following example equation for a physically realizable frame acceleration (6×1) A:
F=IAA+B. (1)
Here, F is the 6×1 frame force that must be applied to the articulated body to achieve 6×1 frame acceleration A. (For vector force {right arrow over (f)}, moment {right arrow over (n)}, linear acceleration {right arrow over (a)}, and angular acceleration {right arrow over (α)}, represented as 3×1 column vectors, F=[{right arrow over (f)}T {right arrow over (n)}T]T and A=[{right arrow over (a)}T {right arrow over (α)}T]T.) The 6×1 frame force B is a bias force that is a function of external forces on the links, internal forces on the links, gravity, and link velocities. B represents all contributors to the force on the link except acceleration A. It is the force required to produce no acceleration of the handle. Iterative formulas may be used for SD process 10 to calculate IA and B to give an efficient algorithm.
In some implementations, SD process 10 may use an example automotive radar simulation, using, e.g., an OpenGL-based rendering approach to model the field of view of the sensor, render a depth image of the scene, and identify targets using object detection applied to the depth image. Referring at least to example
In some implementations, the radar simulation portion of SD process 10 may use a rendering engine (e.g., of simulation application 20) to generate a depth image of the scene from the view perspective of the modeled radar sensor. SD process 10 may process this to detect coherent blobs (objects) from which the simulation backend (e.g., via SD process 10) may be queried to estimate each object's size, position and velocity, as shown in the example radar simulation 1200 in example
In some implementations, a LIDAR simulation may be used by SD process 10, with an example focus on a Velodyne HDL-32E. This example LIDAR may have 32 lasers mounted vertically on a rotating head. The head may rotate at 600 rpm providing angular resolution of 0.16 degree in the horizontal and 1.33 degrees in the vertical. The unit may return 700,000 points per second in the range of 1 to 70 meters from the head with 360 degree horizontal by 40 degree vertical field of view. An example LIDAR simulation 1300 is shown in example
In some implementations, the LIDAR simulation may be optimized by SD process 10. For instance, SD process 10 may render the LIDAR views with multithreaded render camera objects and enable OpenGL context sharing. In this way, the LIDAR view may be rendered using a graphics context that may be shared with all other views of the scene graph. As a result, latency may be eliminated and/or reduced from frequent graphics context switching. In some implementations, the LIDAR simulation may be multithreaded and utilize one thread per active OpenGL view, plus a thread to process the returned depth images and publish the data.
In some implementations, SD process 10 may include a sensor configuration plugin to enable a user to, e.g., load sensor simulation libraries, add sensors to vehicles, and configure each sensor graphically. An example sensor configuration dialog user interface 1400 of SD process 10 is shown in example
In some implementations, SD process 10 may include a model conversion process to convert commercially available military convoy vehicle models (e.g., intended for high fidelity renderings) into high quality, efficient simulation models. Examples of models 1500 that may be included are shown in example
In some implementations, the conversion may enable SD process 10 to simplify the geometry of the original model for use in real-time simulation and rendering, configure the model to include all required parameters for dynamic simulation, and set bounding volumes used for collision handling. In some implementations, at least a portion of the one or more results may be displayed using three-dimensional graphical rendering. The models may come in various formats, such as a 3ds (via 3D studio max) or obj (via Wavefront) format. In some implementations, SD process 10 may read these directly or after processing in third-party software for geometry and texture cleanup.
In some implementations, graphical tools may be used (e.g., via SD process 10) to configure properties related to both the physical components (e.g., mass, actuator, and surface friction properties) and numerical algorithms (e.g., bounding volumes, integration scheme, and time step). An example of simplified geometry models 1600 are shown in
In some implementations, and referring at least to the example path optimization results 1800 of
In some implementations, the one or more optimization metrics may include a threshold measure of variance. For instance, to investigate convoy stability with respect to the lead vehicle's path, the randomizer-optimizer may be used to find the path that leads the convoy into a failure state defined as a threshold on the variance in the distance between the first and last vehicle. This failure state metric may provide a rough measure of how effectively the controller managed the convoy. In the example, the path may be generated by SD process 10 as a sum of sinusoidal components, using a Fourier series. For a path travelling in the X-Z plane, in the positive X direction, this path may be calculated as
Here, Ci is the coefficient on the i-th component, ωi is its frequency, and ϕi is its phase. C0 is calculated such that z(0)=0, to ensure the path aligns with the starting position of the vehicle.
In some implementations, the number of components may be varied to provide more extensive control of the path shape and number of constituent frequencies. For the example demonstration, three components were used (yielding nine total degrees of freedom in the input to the function). This provided a reasonable compromise between the run time of the analysis, and the flexibility of the path generator. It will be appreciated that more or less components, as well as differing components, may be used without departing from the scope of the disclosure.
In the example, the rear tow-bar on each vehicle is 5 m, and the front tow-bar is 2 m, giving a nominal vehicle following distance of 7 m. The human driver model may be a basic PI controller based on vehicle position and the desired path to be followed. In some implementations, to simulate basic human driving behavior, the maximum commanded speed of the vehicle may be reduced in direct proportion to the steering angle. The randomizing-optimizer of SD process 10 may be configured to maximize the variance of the distance between the leading and tailing vehicles using, e.g., Nelder and Mead's algorithm, over the domain of the frequencies, phases and coefficients of the sinusoidal path components. In some implementations, the mass of each vehicle may be randomized with a standard deviation of, e.g., 7% of the nominal mass, with 30 randomized trials being performed for each Monte Carlo experiment set. More or less standard deviation and randomized trials may be used.
As noted above, this example scenario may be run using the randomizing-optimizing framework. In some implementations, the end result may be a set of “worst case” input variables defining a desired vehicle path (e.g., in the rear vehicles). This path, along with the initial condition path showing stable convoy following behavior, is shown in
In some implementations, SD process 10 may identify a failure that may occur, e.g., when the collision avoidance system of the simulation commands a rapid braking maneuver to avoid collision. An example of the associated collision control logic 1900 of SD process 10 is shown in example
In some implementations, the collision avoidance logic may be based on feedback from a simulated radar sensor mounted on the autonomous vehicle, as illustrated in
In some implementations, the domain variables may be chosen (e.g., via SD process 10) to be the braking slope and maximum braking range defined above. The randomized variables may be chosen (e.g., via SD process 10) as the vehicle payload mass and the stiffness of the suspension system (e.g., both front and rear). The output variable may be selected (e.g., via SD process 10) as the distance between the autonomous vehicle and the obstacle. The distribution metric may be chosen (e.g., via SD process 10) to be the variance of the output distance.
In some implementations, the above-noted randomizing-optimizer may be run using the example scenario shown in
In some implementations, testing may be extended using the technique in
Instead, SD process 10 may focus on approximating the solution quickly. For example, SD process 10 may find the best algorithm in a class, while finding the worst-case level of randomization of points for that best solution method. In some implementations, the two optimizations 304 may be, e.g., 1) best solution method, and 2) worst point randomization. In some implementations, to define the family of distributions, 100 points may be selected (e.g., via SD process 10) by offsetting 100 points in a 10×10 grid each with a random x-value and a random y-value selected from a Normal distribution with standard deviation σ. That is, each point pi,j with i and j varying from 0 to 9, may be calculated using the following equation:
An example distribution of the terrain visitation points 2100 is shown in example
In some implementations, compressing the points along the x-axis may have the benefit of guiding the algorithm into row motions, which may improve overall efficiency. Improvement through this method may increase when the points are closer to the nominal grid values (that is, σ is small). To model the cost of traversal and the benefit of liberty in selecting points, let the total cost of any tour of the points be given by the following:
μ=P−100σ, (4)
where P is the path length and a is the standard deviation defining the selection of the points. This may model that there is a benefit to more precisely specifying points even if the path length increases. The tradeoff in the example is chosen as 100 (which may be arbitrary for this example).
With this, SD process 10 may use randomizing-optimizing simulation to find the best algorithm as defined by λ that may counter the worst-case point distribution as defined by σ. This may require optimizing λ to reduce μ as defined above while at the same time optimizing σ to increase μ. To do this, SD process 10 may score a set of σ and λ by executing 302 M tour calculations over N instances of points, which may then be optimized 304 using, e.g., the Nelder-Mead algorithm. The result may be a pair of {σ, λ} values of {0.0136811, 0.626622}. Thus, the optimal scaling factor λ for the greedy algorithm given a standard deviation σ that is the most effective adversary is 0.6266.
In some implementations, and referring at least to
In some implementations, the core randomizing-optimizing system architecture of SD process 10 discussed with regard to
In some implementations, many variables and parameters associated with a simulation may not be continuous. In some implementations, certain control methods may be either on or off, a vision system may use images from camera 1, 2 or 3, etc. or a drive system may be in either a low or high gear. Including support for these discretely-valued variables may provide a fully functional framework.
In some implementations, many variables may have fundamental or practical limits that should not be exceeded. For example, the mass of a vehicle or a coefficient of friction may both be greater than zero. By incorporating an additional cost function into the optimization metric, the optimizer of SD process 10 may be driven away from exceeding these limits.
In some implementations, the user may have flexibility to define the convoy's mission, with easy, interactive interfaces and menus for SD process 10. For example, a user may be able to define a lead vehicle's path by simply specifying the desired final position and intermediate waypoints via an interactive visual interface of SD process 10 to define the scenario in which the stochastic optimizing framework may search for a failure.
In some implementations, the architecture shown in
In some implementations, this concept may be combined with the randomizing-optimizing shown in
In some implementations, it may be established by combining the randomizing-optimizer from
In some implementations, the above-noted vehicle builder tool of SD process 10 may be extended to allow specification and configuration of drivetrain components, sensors, dynamic simulation properties, environmental parameters such as day/night, and vehicle controllers. The above-noted convoy scenario builder tool may be extended to allow full configuration of the simulation and randomizing-optimizer including setting the validity conditions and variable randomizers and setting convoy behavior such as splitting and merging.
In some implementations, SD process 10 may include a set of interface classes with multiple specialized implementations of each. The following table provides a non-limiting example list of the interfaces and specializations.
In some implementations, the graphical user interface(s) of SD process 10 may build on the object tree to provide intuitive means of configuring the simulation. An example GUI element may include a custom dialog for loading and selecting the optimization algorithm, variable randomizers, vehicle controllers, convoy controller, and variable validation conditions. To aid in performance evaluation of the randomizing-optimizer, a new iteration statistic plotting view may be added to show the progress of the optimizer toward extrema. The iteration statistics plotted may include the objective metric value, output parameter values and user defined simulation parameters such as average vehicle speed and mean convoy separation distance.
In some implementations, the vehicle, the convoy, the environment (e.g., terrain and environmental objects), and randomizing-optimizer may be represented in an XML tree that may contain a significant number of parameters that may be changed by manually editing the XML. In some implementations, randomization and optimization of the stochastic simulation scenario may be configured using a graphical user interface. For example, in some implementations, to improve usability, SD process 10 may include a user interface to graphically modify these objects through an object tree and property editor 2500, as shown in example
In some implementations, the object tree may be coupled with automatic property editor dialog generation. When an object in the tree is selected, the property editor dialog may be opened, allowing the user (e.g., via SD process 10) to edit the parameters of this object. In some implementations, this may involve a C++ decorator pattern used to derive an XML property editor GUI class from each XML object, giving the property editor GUI a direct path to modify the XML member variables of the object.
In some implementations the sensor configuration tool may be extended to allow user configuration (e.g., via SD process 10) of some or all sensor parameters and expanded to include vehicle controller and drivetrain configuration. It may include the ability to load libraries of new sensors, controllers, and drivetrain components at runtime. To configure the vehicle, the user (e.g., via SD process 10) may simply “right click on (or otherwise select) the rendered model and edit the object through, e.g., a pop-up context menu. The vehicle configuration changes may be synched with the above-noted object tree, giving multiple paths to modify a vehicle's configuration. A GUI-based configuration system for the vehicle and convoy controls may also be developed.
In some implementations, user interface components of SD process 10 may be implemented to adapt to newly defined components. In some implementations, user interface elements may be built using Qt. To allow an extensible interface system, an XML to Qt converter 2600 shown in
In some implementations, SD process 10 may include the ability to load general GIS terrain databases including the GeoTIFF (.tif, .tiff) format into the convoy simulation environment. SD process 10 may leverage osgEarth and Virtual Planet Builder tools (or others), which are based on the open source toolkit OpenSceneGraph, for terrain tile creation and paging. The height field data of terrain tiles in contact with each vehicle may be paged into memory and used to calculate collision forces at a speed compatible with the needs of Monte Carlo simulation, which is shown by example in example terrain GIS database loading 2700 in
In some implementations, SD process 10 may fully implement a suite of example sensors, including LIDAR, Automotive Radar, Stereo Cameras and GPS, shown in
In some implementations, SD process 10 may include a next-generation GPU-optimized radar sensor simulator that may be created using the OpenGL shading language and incorporated into, e.g., the OpenSceneGraph rendering engine of SD process 10. In some implementations, each radar sensor simulator may leverage the rendering engine to generate a depth map of the simulated scene from the point of view of the sensor, taking into account, e.g., the sensor resolution, field of view and range. A noise model may account for the surface property dependence of the radar sensor returns. The radar simulator may run in real-time through, e.g., a GLSL shader that may capture the depth image, perturbs the depth values based on the surface properties of the target object stored in a vertex mapped texture. The simulator (e.g., via SD process 10) may return a list of targets including, e.g., range, velocity and size for each.
In some implementations, SD process 10 may include a graphics hardware accelerated 3D LIDAR simulator. It may model, e.g., the high fidelity Velodyne HDL-64E LIDAR sensor, or other LIDAR sensor. This LIDAR unit may have 64 lasers mounted vertically on a rotating head. The LIDAR head may rotate at 5 to 15 Hz providing 1.3M points per second in the range of 1 to 100 meters with 360 degree horizontal by 26.8 degree vertical field of view. To simulate each 360 degree scan, and referring at least to
In some implementations, the non-linear scan pattern of the HDL-64E may be taken into account. The linear OpenGL view projection may be distorted based on mapping the scan azimuth (θ) and elevation (φ) to depth image pixel space using spherical projection of the laser rays onto the image plane. The mapping between scan azimuth and elevation to image pixel space [u, v] may be given by the following equations:
The 3D LIDAR simulation may be optimized to run on graphics hardware using the OpenGL shading language (GLSL). The first optimization may be to render the LIDAR views with multithreaded render camera objects and enable OpenGL context sharing. In this way, the LIDAR view may be rendered using a graphics context that is shared with all other views of the scene graph, which may decrease the memory footprint and eliminate latency from graphics context switching. This may be implemented in a GLSL shader to further improve runtime performance.
In some implementations, SD process 10 may include a GPS sensor simulator that may be based on converting the projected coordinates, Universal Transverse Mercator (UTM), of imported GeoTiff terrain files to geographic coordinates of latitude (φ) and longitude (λ). The sensor simulator may publish the latitude and longitude as well as the GPS based velocity estimate. The GPS reading may be perturbed by a noise model that may include, e.g., a user defined offset, Gaussian noise, and low frequency drift. The coordinate system origin of the simulation may be defined by a fixed point in the UTM zone.
In some implementations, the suspension model may have three degrees of freedom for the sprung mass of the vehicle body and the vertical stiffness of each unsprung wheel. SD process 10 may focus on the vehicle body degrees of freedom roll (ϕ), pitch (θ), and bounce. In some implementations, SD process 10 may optionally assume that yaw (ψ) dynamics due to suspension are negligible. In some implementations, SD process 10 may combine the wheel stiffness with the suspension spring-damper models or may be modeled separately. The example AMK23 has six independent suspensions modeled with independent spring-dampers, as is shown by example in example
In some implementations, and referring at least to
In some implementations, SD process may include a more detailed model for engine dynamics. For example, if the target is a digital control, then relatively low order models in discrete time and quasi-linear may be desired. SD process 10 may include design models of two inputs and two outputs with transfer functions of first order and second order with delay. In some implementations, SD process 10 may model the internal combustion engines with independent transfer functions according to the following matrix:
Where Kij are the system gains, τi is the system delay in seconds and τa, τb, τc, τd are the time constants of the drivetrain subsystems. SD process 10 inputs may be, e.g., the percentage of throttle opening (% Opening(s)) and the duty cycle of the PWM of the magnetic brake (% Brake(s)), and the outputs are the engine speed (Rpm(s)) and torque (Torque(s)). In addition to a more detailed engine model, additional types of drivetrain components may be included in SD process 10, such as, e.g., transmissions (such as the Allison HD4000 series found in M915 family of vehicles), as well as additional types of differentials.
In some implementations, SD process 10 may extend a single-point contract model for fast simulation with rigid terrain surfaces to include multiple points to implement a quasi-rigid contact model 3200 for wheel interaction, as shown in example
In some implementations, to simulate complex but important terrain-wheel interactions such as sinkage, slippage, and terrain deformation, SD process 10 may include a particle model that may complement the quasi-rigid model discussed above. This may also model terrain deformation 3300 as shown in example
F=Fn+FT=(knδn−cnvn)+(kTδT−cTvT) (8)
The spring constants and damping coefficients in the contact normal and tangential directions may be derived according the Hertz-Mindlin model. Estimates for the soil DEM particle properties may be used. To simulate the formation of ruts in soil, three rotational degrees of freedom may be included in the particle model. 3D rotation may provide higher fidelity through inclusion of rolling and torsional friction, which may translate to more realistic macro properties such as particle heaping, friction angles and granular flow.
In some implementations, SD process 10 may include a bond element model for brittle cohesive soil types including, e.g., clays and cemented sands. The bond element may be essentially a link between particles that resists shear (Fs), torsion (TT), bending (Tb), tension and compression (Fn). This bond model may allow the terrain surface to maintain form under stresses applied by a vehicle wheel until the critical stress is reached, providing a realistic breakup of the soil and rut formation.
In some implementations, to reduce the number of particles needed, the sliding particle domain shown in
In some implementations, multiple particle-packing strategies may be used to convert the terrain mesh entering the interaction zone, effectively recycling the portion of particle bed that exited. SD process 10 may accomplish this recycling of particles without memory allocation and preventing non-physical perturbations to the particle bed at the boundaries. The shear and normal stress profiles in the particle bed may be used as the heuristic to define the depth of the zone of influence beneath the vehicle. A metric based on the velocity distribution of particles may be used by SD process 10 to set the radius of the volume given the speed of the vehicle.
In some implementations, SD process 10 may optimize link shapes stored as polygon meshes for collision detection by enclosing them in object bounding volumes. Desirable properties for bounding volumes may include, e.g., inexpensive intersection tests, tight fitting, inexpensive to compute, easy to rotate and transform, and efficient storage. In some implementations, SD process 10 may use additional bounding volume shapes to enable a higher level of fidelity in collision detection for vehicle systems. These new shapes 3500 (e.g., Box-lozenge, cylinder-lozenge, tetrahedral lozenge, and conical lozenge) are shown in example
In some implementations, bounding volume shapes may be parametric. For example, a sphere may be specified by its center and radius. Users (e.g., via SD process 10) may use two GUI draggers to specify a sphere. A capsule may be specified by a line segment and radius. Users (e.g., via SD process 10) may use three draggers to specify a capsule. Similarly, all shape primitives may be specified using a minimum set of draggers. In some implementations, SD process 10 may include a shape primitive plugin to provide information to the user such as completeness, e.g., whether the bounding volumes fully bound the link, and tightness, e.g., the largest distance between the polygon physical extent and its bounding volumes. SD process 10 may finish the bounding volume generation for tetrahedron, cylinder, cone, and lozenges using the principle axes and iterative refinement methods similar to the approach for capsules, circular and triangular-lozenges.
In some implementations, SD process 10 may check the axis-aligned bounding boxes (AABBs) of two shapes before checking collision of the two shapes to speed up collision detection. If the AABBs do not intersect, then checking collision between the two shapes may not be necessary. However, the AABB checking may only be done at the link level. If the shape of a link is a shape union and needs to be checked for collision, all shape primitives in the shape union may be checked. In some implementations, SD process 10 may extend the AABB checking deeper into the shape union level for simple shape unions (e.g., with a small number of shape primitives). For a shape union with a large number of shape primitives, since the relative positions of those shape primitives are fixed, it may be possible to construct spatial partitions such as octrees or k-d trees 3600 shown in example
In some implementations, as vehicle speeds are increased, the drag force due to wind resistance (Fd) may increase according to the relation below
where ρ is the density of the air, v is the magnitude of the forward velocity, CD is the drag coefficient and A is the wetted area (the area of the vehicle projected onto a plane normal to the direction of v). Here, both the coefficient of drag and the wetted area may depend on the angle of the velocity relative to the axes of the vehicle. For example, a vehicle navigating a turn may exhibit a different value for these components when compared to a vehicle traveling straight. To account for this, the drag model of SD process 10 may be implemented as a lookup table, with the relative wind angle being used to lookup the product of CDA. The vehicle speed and ambient conditions may then be used to calculate the drag force. This approach may yield an accurate result, without requiring significant computational overhead (such as may be associated with a computational fluid-dynamics approach). As the lookup tables may vary from vehicle to vehicle, they may be stored as a part of each vehicle model.
In some implementations, an overall control architecture may be developed that divides the problem of convoy control into one or more parts: the high level control of the convoy, which may determine where each vehicle should be positioned given the location of all other vehicles, and vehicle control, which may determine what the control inputs should be set to in order to move a single vehicle to its desired position. Thus, for a twelve vehicle convoy, there would be one convoy controller, and twelve individual vehicle controllers. In some implementations, SD process 10 may provide two pathways that may enable third-party algorithms to be used within the stochastic optimizing framework. For example, the first, and possibly most direct method may be to compile the algorithm into a dynamically linked library (DLL), in a class that inherits from EcVehicleController or EcConvoyController. This library may then be selectable at runtime via either XML, or the graphical user interface. This example approach 3700 is shown in example
In some implementations, SD process 10 may include a fully functional simulation system that may include both dynamic and kinematic simulation, which may include, e.g., joint friction, actuator simulation, collision detection, and impact dynamics. In some implementations, the stochastic simulation scenario may include a design of robot kinematics. Example simulation environments that may be used with SD process 10 may include, e.g., ANVEL, Chrono, and TruckSim. SD process 10 may include the capability to integrate the multi-optimization framework with other simulation environments. This capability may utilize the Data Distribution Service (DDS) protocol to pass information between the main software instance and the remote simulation environment 3800, as shown in example
In some implementations, users (e.g., via SD process 10) may develop a wrapper class that may translate DDS messages published by SD process 10 into a form that can be utilized in the new simulation environment. This class may also translate the calculated state of the simulation into a form understandable by SD process 10.
In some implementations, SD process 10 may enable users to replace or augment individual algorithms within the simulation environment. For example, a user may wish to utilize a new tire traction model to simulation road/tire interaction, or an alternative method of modeling the forces produced by the drivetrain. The replacement or addition of a given algorithm may be accomplished in a manner similar to that used to integrate new control algorithms described above. For example, first, the user (e.g., via SD process 10) may compile the algorithm (derived from the appropriate base class) into a DLL, then select it for use in the simulation with the XML framework.
In some implementations, SD process 10 may identify model optimization problems for validation of the fully implemented randomizing-optimizer and multi-optimization architecture. In some implementations, problems may be designed or selected from the literature of sufficient complexity to exercise some or all components of the architecture, and may have an alternative solution method for comparison. Metrics may be developed to validate the implementation's rate of convergence, solution error, and computational resource utilization.
In some implementations, SD process 10 may use empirical data when available to validate the system models.
In some implementations, optimizing may be based upon, at least in part, optimization of simulation validation metrics comparing simulation behavior with physical test results.
In some implementations, the radar and LIDAR simulators may be based on an OpenGL rasterization pipeline. This approach may provide a way to achieve real-time sensor simulation but may not necessarily reach the level of fidelity provided by ray-tracing. In some implementations, SD process 10 may include a ray tracing module to validate the radar and LIDAR simulators. The validation metric for the radar and LIDAR simulator may be based on the Euclidian distance from the rasterization generated scan point to the true ray-traced scan point.
In some implementations, a convoy may be led by a human driver who tries to maintain the convoy stability. There may be adversarial agents also present in the environment who intentionally or unintentionally want to achieve competing goals, such as an opponent vehicle who tries to disrupt the convoy or bad terrain and/or weather conditions that can interfere with control and sensor readings. In some implementations, SD process 10 may use the multi-optimization framework to find the best human control strategy while the adversarial agents attempt to achieve their best disruptive strategy. For example, SD process 10 may use the improved vehicle dynamics, traction and suspension models, terradynamics, sensor simulation, and integrated control algorithms to provide realistic simulation results. These may be leveraged by the multi-optimization framework to provide results that, as closely as possible, may replicate real-world results. In some implementations, the simulation results may be tuned by SD process 10 to match sensor data, and the multi-optimization framework may be used by SD process 10 to seek out and reproduce the failure mode observed during testing.
It will be appreciated that other various adaptations of the disclosure may be made without departing from the scope of the disclosure. For example, in some implementations, space may be one of the domains used in the stochastic simulation scenario, as well as one or more of a land vehicle, an air vehicle, and a water vehicle fixed base articulated robot arms and/or one or more mobile articulated robot arms mounted on at least one of the land vehicle, the air vehicle, and the water vehicle as a component of the simulation. An example articulated robotic arm 4000 is shown in example
The terminology used herein is for the purpose of describing particular implementations only and is not intended to be limiting of the disclosure. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. As used herein, the language “at least one of A, B, and C” (and the like) should be interpreted as covering only A, only B, only C, or any combination of the three. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps (not necessarily in a particular order), operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps (not necessarily in a particular order), operations, elements, components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents (e.g., of all means or step plus function elements) that may be in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present disclosure has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the disclosure in the form disclosed. Many modifications, variations, substitutions, and any combinations thereof will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The implementation(s) were chosen and described in order to explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure for various implementation(s) with various modifications and/or any combinations of implementation(s) as are suited to the particular use contemplated.
Having thus described the disclosure of the present application in detail and by reference to implementation(s) thereof, it will be apparent that modifications, variations, and any combinations of implementation(s) (including any modifications, variations, substitutions, and combinations thereof) are possible without departing from the scope of the disclosure defined in the appended claims.
This invention was made with Government support under contract number W56HZV-14-C-0199 awarded by the U.S. Army Contracting Command and contract number W56HZV-15-C-0171 awarded by the U.S. Army Contracting Command. The Government has certain rights in this invention.
Number | Name | Date | Kind |
---|---|---|---|
7769502 | Herman | Aug 2010 | B2 |
8484146 | Movellan | Jul 2013 | B2 |
20170235862 | Fukuda | Aug 2017 | A1 |
20170269561 | Wood | Sep 2017 | A1 |
Number | Date | Country | |
---|---|---|---|
20180060459 A1 | Mar 2018 | US |