【问题标题】:how can I set the vehicle to drive at a constant speed in sumo file?如何在相扑文件中设置车辆以恒定速度行驶?
【发布时间】:2020-10-26 08:51:42
【问题描述】:

如何设置车辆以恒定速度行驶?我发现车辆的速度首先增加,然后在相扑中以 14.5 到 14.7 m/s 的速度行驶。但我希望汽车在相扑中以恒定速度行驶。我该怎么办?

helloWorld.net.xml

<net version="1.3" junctionCornerDetail="5" limitTurnSpeed="5.50" >
    <location netOffset="0.00,0.00" convBoundary="-300.00,0.00,300.00,0.00" origBoundary="10000000000.00,10000000000.00,-10000000000.00,-10000000000.00" projParameter="!"/>
    <edge id=":1_0" function="internal">
        <lane id=":1_0_0" index="0" speed="13.89" length="0.10" shape="0.00,-1.60 0.00,-1.60"/>
    </edge>
    <edge id="gneE0" from="0" to="1" priority="-1">
        <lane id="gneE0_0" index="0" speed="13.89" length="300.00" shape="-300.00,-1.60 0.00,-1.60"/>
    </edge>
    <edge id="gneE1" from="1" to="3" priority="-1">
        <lane id="gneE1_0" index="0" speed="13.89" length="300.00" shape="0.00,-1.60 300.00,-1.60"/>
    </edge>
    <junction id="0" type="dead_end" x="-300.00" y="0.00" incLanes="" intLanes="" shape="-300.00,0.00 -300.00,-3.20"/>
    <junction id="1" type="priority" x="0.00" y="0.00" incLanes="gneE0_0" intLanes=":1_0_0" shape="0.00,0.00 0.00,-3.20 0.00,0.00">
        <request index="0" response="0" foes="0" cont="0"/>
    </junction>
    <junction id="3" type="dead_end" x="300.00" y="0.00" incLanes="gneE1_0" intLanes="" shape="300.00,-3.20 300.00,0.00"/>
    <connection from="gneE0" to="gneE1" fromLane="0" toLane="0" via=":1_0_0" dir="s" state="M"/>
    <connection from=":1_0" to="gneE1" fromLane="0" toLane="0" dir="s" state="M"/>
</net>

hello.rou.xml

<routes >
    <route edges="gneE0 gneE1" color="yellow" id="route_0"/>
    <vehicle id="vehicle_0" depart="0.00" color="red" route="route_0"/>
</routes>

【问题讨论】:

    标签: sumo


    【解决方案1】:

    您需要通过将 sigma 设置为 0 来禁用随机磨合,并以最大速度开始。为此,您需要定义车辆类型:

    <routes>
        <vType sigma="0" id="t1"/>
        <route edges="gneE0 gneE1" color="yellow" id="route_0"/>
        <vehicle id="vehicle_0" depart="0.00" color="red" route="route_0" departSpeed="max" type="t1"/>
    </routes>
    

    【讨论】:

    • 如果我想让车辆以一定的减速度减速,我该怎么办?
    • 对于在线车辆行为变化,请查看 traci:sumo.dlr.de/docs/TraCI.html
    猜你喜欢
    • 2022-12-22
    • 2018-11-04
    • 2018-09-23
    • 2020-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多