AmitranOutput

Amitran 轨迹输出包含有关每辆车的类型、当前速度和加速度的信息,其模式位于 https://sumo.dlr.de/xsd/amitran/trajectories.xsd

在仿真中实例化#

使用选项 --amitran-output <FILE> 强制仿真生成此输出。<FILE> 是 输出将被写入的文件名。任何同名的其他文件都将被覆盖,目标文件夹必须存在。

生成的输出#

生成的 XML 文件如下所示:

<trajectories xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://sumo.dlr.de/xsd/amitran/trajectories.xsd" timeStepSize="1000">
    <actorConfig id="0" vehicleClass="Passenger" fuel="Gasoline" emissionClass="Euro0" ref="DEFAULT_VEHTYPE"/>
    <vehicle id="0" actorConfig="0" startTime="100000" ref="always_left.0"/>
    <motionState vehicle="0" speed="0" time="100000" acceleration="0"/>
    <vehicle id="1" actorConfig="0" startTime="100000" ref="always_right.0"/>
    <motionState vehicle="1" speed="0" time="100000" acceleration="0"/>
    <vehicle id="2" actorConfig="0" startTime="100000" ref="horizontal.0"/>
    <motionState vehicle="2" speed="0" time="100000" acceleration="0"/>
    <motionState vehicle="0" speed="144" time="101000" acceleration="1442"/>
    ...
</trajectories>

actorConfig 元素直接对应于 SUMO 的车辆类型,而 vehicle 元素直接引用 SUMO 的车辆。每个车辆的 actorConfig 将在写入车辆之前定义。车辆及其 motionState 也是如此。

Note

所有数字和 ID 都是整数,其中所有时间单位为毫秒。速度以 cm/s 为单位,加速度值以 mm/s^2 为单位。有关类型和详细信息,请参见模式 https://sumo.dlr.de/xsd/amitran/trajectories.xsd>。

Seventh Framework Programme AMITRAN project SUMO 的这一部分是在 "AMITRAN" 项目中开发、重构或扩展的,该项目由欧盟委员会在 第七框架计划 内共同资助。