Hello everyone,
I'm using SUMO 0.23, NS 3.21 and Traci in my research. I need to write a code in c++ in ns3 to communicate with sumo through ns3 using traci. I am facing a problem how to write a code in ns3 to communicate with sumo, is there any documentation or steps. Please provide me. Thanks in advance. On Fri, Oct 2, 2015 at 2:02 AM, Jakob Erdmann <[email protected]> wrote: > Hi, > - if you can see the coordinates in the output, it means the vehicles are > on the > road in that timestep (if you cannot find the vehicles, try the 'locate > vehicles' menu. If they exist in the locator list but you cannot see them, > update your openGL drivers > - vehicles are only inserted once there is enough space on the road where > they > try to depart (otherwise they are inserted in a later step). To better > distribute the vehicles on the road, add attribute departPos="free" to your > <flow> (see > > http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#departPos > ) > - if you distribute the vehicles correctly (and the road is long enough) > they > should all be there in the first 6s. You can check this by right-clicking > on the > simulation background and check the number of running vehicles in the > 'parameters' dialog. > > regards, > Jakob > > On 10/01/2015 06:52 PM, Fatma Marzouk wrote: > > Hi! > > > > I am really new to sumo. I intended to simulate with ns3 and sumo 600 > > vehicles running over a 1.3 km of highway snippet. But, I want all my 600 > > nodes to start sending paquetsin an interval of time [1 - 6s] (I do that > > with a loop in the ns3 script). After trying to simulate this and to > > examinen the generated mobility.tcl with sumo (tracexporter) I had some > > questions related to mobility simulation: > > > > -In the tcl I can see the initial coordinates (X,Y,Z) for each nodes , > does > > this imply that they all exist at time 0 and so they really all starts > > sending as I wish in the [1-6] second interval even though not visible on > > the highway ? > > > > -Also, in the flow.xml I set the time for inserting vehicles in the flow > > as follows: begin="0" end="6" no="600", I don't understand why I see > > vehicles that were inserted at times later than 6s. > > > > -Finally, If I want the highway to contain always the same number of > > vehicles, I know I can use the rerouter. The question is how can I know > the > > time at which the number of vehicles converged to a fixed number and how > to > > determine that number. > > > > Thanks in advance ! > > > > Best Regards > > > > F > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > sumo-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > > ------------------------------------------------------------------------------ > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Full-scale, agent-less Infrastructure Monitoring from a single dashboard Integrate with 40+ ManageEngine ITSM Solutions for complete visibility Physical-Virtual-Cloud Infrastructure monitoring from one console Real user monitoring with APM Insights and performance trend reports Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140 _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
