首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在静脉模拟中看不到相扑多边形

在静脉模拟中看不到相扑多边形
EN

Stack Overflow用户
提问于 2021-08-17 16:50:37
回答 1查看 135关注 0票数 0

我正在创建一个“T”交叉口,周围有一些建筑物。相扑图形用户界面中的仿真效果非常好。当我在静脉中导入模拟并使用一些定制的应用程序运行它时,当我运行.ini文件时,这些建筑物不会出现在静脉仿真中。我试着模拟我的实验,类似于静脉--给出的例子,但似乎没有效果。

下面我附加了几个文件,这样一些文件可以帮助我调试。

omnetpp.ini

代码语言:javascript
复制
 network = WirelessNetwork
 sim-time-limit = 120s
 debug-on-errors = true
 cmdenv-express-mode = true
 image-path = ../../../../images
 **.cmdenv-log-level = info
 print-undisposed = true
 **.scalar-recording = true
 **.vector-recording = true

 *.playgroundSizeX = 200m
 *.playgroundSizeY = 200m
 *.playgroundSizeZ = 50m

 # UDPBasicApp
 *.node[*].numApps = 1
 *.node[*].app[0].typename = "vanet.veins_inet.VeinsInetSampleApplication


 *.rsu[*].numApps = 1
 *.rsu[*].app[*].typename = "vanet.veins_inet.VeinsInetSampleApplicationRSU"


 # Ieee80211Interface

 *.node[*].wlan[0].opMode = "p"
 *.node[*].wlan[0].radio.bandName = "5.9 GHz"
  *.node[*].wlan[0].radio.channelNumber = 3
 *.node[*].wlan[0].radio.transmitter.power = 20mW
 *.node[*].wlan[0].radio.bandwidth = 10 MHz

 **.analogModel.ignorePartialInterference = true

 # RSUIeee80211Interface

 *.rsu[*].wlan[0].opMode = "p"

 *.rsu[*].wlan[0].radio.bandName = "5.9 GHz"
 *.rsu[*].wlan[0].radio.channelNumber = 3
 *.rsu[*].wlan[0].radio.transmitter.power = 20mW
 *.rsu[*].wlan[0].radio.bandwidth = 10 MHz

 # HostAutoConfigurator
 *.node[*].ipv4.configurator.typename = "HostAutoConfigurator"
 *.node[*].ipv4.configurator.interfaces = "wlan0"
 *.node[*].ipv4.configurator.mcastGroups = "224.0.0.1"
 *.rsu[*].ipv4.configurator.typename = "HostAutoConfigurator"
 *.rsu[*].ipv4.configurator.interfaces = "wlan0"
 *.rsu[*].ipv4.configurator.mcastGroups = "224.0.0.1"

 # VeinsInetMobility
 *.node[*].mobility.typename = "VeinsInetMobility"
 *.rsu[*].mobility.typename = "VeinsInetMobilityRSU"

 # VeinsInetManager
 *.manager.updateInterval = 0.1s
 *.manager.host = "localhost"
 *.manager.port = 9999
 *.manager.autoShutdown = true
 *.manager.launchConfig = xmldoc("t_intersection.launchd.xml")
*.manager.moduleType = "vanet.veins_inet.VeinsInetCar"

*.obstacles.obstacles = xmldoc("config.xml","//AnalogueModel[@type='SimpleObstacleShadowing']/obstacles")

网络的.ned

代码语言:javascript
复制
network WirelessNetwork
{
    parameters:
        double playgroundSizeX @unit(m); // x size of the area the nodes are in (in meters)
        double playgroundSizeY @unit(m); // y size of the area the nodes are in (in meters)
        double playgroundSizeZ @unit(m); // z size of the area the nodes are in (in meters)
        @display("bgb=$playgroundSizeX,$playgroundSizeY");
    submodules:
        radioMedium: Ieee80211ScalarRadioMedium {
            @display("p=3782.8613,2242.5125");
        }
        manager: VeinsInetManager {
            @display("p=2290.3037,2246.1887");
        }
        configurator: Ipv4NetworkConfigurator {
            @display("p=1382.27,2246.1887");
        }
        
        roadsCanvasVisualizer: RoadsCanvasVisualizer {
            @display("p=3308.625,2246.1887");
        }
        
        node[0]: VeinsInetCar {
            @display("p=1044.055,2246.1887");
        }
        rsu[1]: VeinsInetRSU {
            @display("p=1661.665,2246.1887");
            
        }
        obstacles: ObstacleControl {
            @display("p=182.832,147.672");
        }
        world: BaseWorldUtility {
            parameters:
                playgroundSizeX = playgroundSizeX;
                playgroundSizeY = playgroundSizeY;
                playgroundSizeZ = playgroundSizeZ;
                @display("p=30,0;i=misc/globe");
        }

.poly.xml

代码语言:javascript
复制
<shapes>
    <poly id="poly_0" type="building" color="1.00,0.00,0.00" fill="1" layer="4" shape="38.460000,9.800000 77.690000,9.800000 77.690000,4.770000 38.460000,4.770000 38.460000,9.800000"/>
    <poly id="poly_1" type="building" color="1.00,0.00,0.00" fill="1" layer="4" shape="80.630000,10.220000 103.100000,10.220000 103.100000,4.770000 80.210000,4.770000 80.350000,10.360000"/>
    <poly id="poly_2" type="building" color="1.00,0.00,0.00" fill="1" layer="4" shape="32.330000,-6.740000 52.440000,-6.740000 52.440000,-23.630000 32.190000,-23.630000 32.190000,-6.880000 32.190000,-6.880000"/>
    
</shapes>

.sumo.cfg

代码语言:javascript
复制
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd">

    <input>
        <net-file value="t_intersection.net.xml"/>
        <route-files value="t_intersection.rou.xml"/>
        <additional-files value="t_intersection.poly.xml"/>
    </input>

    <time>
        <begin value="0"/>
        <end value="1000"/>
        <step-length value="0.1"/>
    </time>

    <report>
        <xml-validation value="never"/>
        <xml-validation.net value="never"/>
        <no-step-log value="true"/>
    </report>

    <gui_only>
        <start value="true"/>
    </gui_only>

</configuration>

相扑模拟看起来就像

关于静脉的看法看上去

有人能帮我解决这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2022-02-21 18:46:22

*.annotations.draw =真

您需要在omnetpp.ini中添加这个

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68821251

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档