Autopilot strategy simulation under [the source] urban traffic simulation Mcity

640?wx_fmt=jpeg


Intelligent Transportation System (ITS) network is a typical physical system (the CPS), is controlled by monitoring the network and physical components, e.g. vehicle automatic interconnection (CAV).

An intelligent transportation systems (ITS) is a typical cyber-physical system (CPS) in which physical components, for example, Connected Automated Vehicles (CAVs), are monitored and controlled through a network of cyber and physical components. 


Therefore, such a system includes an event-driven dynamics and time-driven dynamics .

Such systems, therefore, contain event-driven dynamics along with time-driven dynamics. 


Based SimEvents discrete event and hybrid simulation framework helps security and performance evaluation tests of ITS and traffic simulation model Mcity test facility used.

The proposed discrete-event and hybrid simulation framework based on SimEvents facilitates testing for safety and performance evaluation of an ITS and has been used to build a traffic simulation model of the Mcity test facility. 


This code is designed specifically for testing CAV , it contains a variety of road / lane configuration and complete instrumentation system.

It is specifically designed for testing CAVs and contains various road/lane configurations and a complete instrumentation system. 


这使得用户能够在微观层面上研究交通,包括不同交通场景下CAV新控制算法的有效性、交通系统事件驱动方面以及通信延迟的影响。

This enables users to study traffic at the microscopic level, including the effectiveness of new control algorithms for CAVs under different traffic scenarios, the event-driven aspects of transportation systems, and the effects of communication delays. 


该框架跨越多个工具箱,包括MATLAB、Simulink和SimEvents。

The framework spans multiple toolboxes including MATLAB, Simulink, and SimEvents.


包括三种主要的不同场景:

1. CAV通过两个相邻的无信号交叉口,采用最优控制策略

2. 使用(i)最优控制(ii)控制屏障函数在高速公路入口匝道处融合CAV

3. 使用最优控制(CAV)和智能驾驶模型(非CAV)通过信号交叉口的CAV和/或非CAV


通过指定Matlab离散事件系统(MATLAB DES)的模块参数,可以在特定场景下尝试不同的控制器。例如,对于在高速公路入口匝道上的CAV合流,可以选择最优控制器或基于控制屏障功能的控制器。此外,如果您想研究排队行为,可以观察信号交叉口2的排队长度。根据您的研究目的,您可以自由编辑或创建自己的流量场景


Three major different scenarios are included: 

1. CAVs crossing two adjacent unsignalized intersections using optimal control 

2. CAVs merging at freeway on-ramp using (i) optimal control (ii) control barrier functions 

3. CAVs and/or non-CAVs crossing a signalized intersection using optimal control (CAVs) and the intelligent driver model (non-CAVs) 

By specifying the Block Parameters of the MATLAB Discrete-Event System (MATLAB DES), you may try different controllers given a particular scenario. For example, for CAVs merging at freeway on-ramp, you can select either an optimal controller or a control barrier function-based controller. In addition, you may observe the queue length of the signalized intersection 2 if you'd like to study the queueing behavior. Feel free to make edits or create your own traffic scenarios depending on your research purpose.


注意:

1. 在对某个场景(如信号交叉口1)进行仿真时,请将其他场景(如无信号交叉口、高速公路入口匝道等)的MATLAB离散事件系统模块设置为“xxx-Dummy”模式。


2. 如果CAV和INFO实体没有自动加载,双击初始化模块“init”


NOTE: 

1. When running simulation for a certain scenario, e.g., signalized intersection 1, please set the MATLAB Discrete-Event System blocks of other scenarios, e.g., unsignalized intersections, freeway on-ramp, etc., to "xxx_Dummy" mode. 

2. Double click the initialization block "init" if the CAV and INFO entities are not load automatically


Visualization is based on the original form. The ongoing work includes improved visualization and create a map for the entire city.

Visualization is primitive. Ongoing work includes improving the visualization and creating a map for the whole Mcity.


Download the complete source code, please click on the "read the original text"

Guess you like

Origin blog.csdn.net/weixin_42825609/article/details/91465108