omnet++/veins : connecting inet and veins : TraCIMobility error in TraCIScenarioManagerLaunchd -


i'm trying connect inet 3.4.0 , veins 4.4 tcp/ip support. i've followed instructions ( veins - inet compatibility ) , more, have error while trying run simulation : i'm not sure understand tracimobility function.

<!> error in module (veins::traciscenariomanagerlaunchd) simple_junction_notls_ipv4.manager (id=6) @ event #23, t=0.2: assert: condition lastupdate != simtime() false in function changeposition, veins/modules/mobility/traci/tracimobility.cc line 192.

here car module :

import inet.node.inet.adhochost; import org.car2x.veins.base.modules.*; import org.car2x.veins.modules.nic.nic80211p; import org.car2x.veins.base.modules.imobility;  module car extends adhochost {     parameters:     //string appltype; //type of application layer     int numwaveradios = default(1);               string nictype = default("nic80211p"); // type of network interface card     string veinsmobilitytype; //type of mobility module     string imobilitytype; //type of mobility module     @display("bgl=2"); gates:     input veinsradioin[numwaveradios] @directin; // gate senddirect  submodules:     nic[numwaveradios]: <nictype> org.car2x.veins.modules.nic.inic80211p {         parameters:             @display("p=661,287");     }      veinsmobility: <veinsmobilitytype> org.car2x.veins.base.modules.imobility {         parameters:             @display("p=163,242;i=block/cogwheel");     }     // optional mobility module. required if ieee80211p wireless cards present     imobility: <imobilitytype> org.car2x.veins.base.modules.imobility if (imobilitytype != ""){         parameters:             @display("p=53,200");     }   connections:     i=0..sizeof(veinsradioin)-1 {         veinsradioin[i] --> { @display("m=s"); } --> nic[i].radioin;         nic[i].upperlayerout --> networklayer.ifin++;         nic[i].upperlayerin <-- networklayer.ifout++;     }  } 

and here part of config file omnetpp.ini :

########################################################### ##                      mobility                          # ########################################################### *.node[*].veinsmobilitytype ="org.car2x.veins.modules.mobility.traci.tracimobility" *.node[*].imobilitytype = "tracimobility" *.node[*].imobilitytype.debug = true *.node[*].veinsmobilitytype.debug = true *.node[*].veinsmobility.x = 0 *.node[*].veinsmobility.y = 0 *.node[*].veinsmobility.z = 1.895 *.node[*].imobility.x = 0 *.node[*].imobility.y = 0 *.node[*].imobility.z = 1.895 

thank help! regards,

the veins repository on github includes sample subproject (veins_inet) runs inet framework (inet 3.4.0) simulation using veins nodes' mobility.

you can see necessary code (and, after clicking on browse files, can download .zip archive of complete project) on https://github.com/sommer/veins/commit/90d4586e


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -