将rsu放在特定的边缘

问题描述 投票:1回答:1

我想在特定的边缘放置一个rsu。

我通过SUMO GUI找到了感兴趣边缘的id和坐标。

我不知道如何翻译找到的坐标,在以下语句中:

*.rsu[1].mobility.x = XXX
*.rsu[1].mobility.y = YYY
*.rsu[1].mobility.z = ZZZ

这是优势:

<edge id="23228228" from="251300048" to="256334009" priority="4" type="highway.residential" spreadType="center" shape="278.66,377.02 282.88,384.13 302.23,407.49">
        <lane id="23228228_0" index="0" disallow="tram rail_urban rail rail_electric ship" speed="13.89" length="28.20" shape="282.57,383.59 282.88,384.13 300.47,405.37"/>
    </edge>

omnet++ veins sumo
1个回答
0
投票

您可以使用TraCICommandInterface的Lane :: getShape方法。它将为您提供给定车道定义的坐标列表(即,起点和终点以及任何中点)。

© www.soinside.com 2019 - 2024. All rights reserved.