Can the coordinates generated by SUMO be scaled? I think that the problem might 
be that NetAnim does not support more than 2 decimals and SUMO generates 4 , 
with variability in the last 2 of them.

Have anyone used SUMO, NS3 and NetAnim and can help me in getting this 
simulation running in NetAnim?

Thanks in advance,

Víctor Caballero ([email protected]<mailto:[email protected]>)
Ph.D. Student at La Salle Barcelona - Ramon Llull University

On 23 Oct 2017, at 10:26, Víctor Caballero Codina 
<[email protected]<mailto:[email protected]>> wrote:

Thanks Jakob,

I have managed to simulate via NS3 the exact number of nodes as you suggested. 
But the nodes don't seem to move in the simulation via NetAnim. In fact, the 
simulation appears to run correctly ("sim" image) but nodes don't seem to move 
in NetAnim ("netanim" image), do you know what can be happening here? I don't 
know if this question relates to your field of expertise (I think it's not) but 
I'll be grateful if you could point me to semeone how can help me with this 
issue.


<netanim.png><sim.png>

Víctor Caballero ([email protected]<mailto:[email protected]>)
Ph.D. Student at La Salle Barcelona - Ramon Llull University

On 20 Oct 2017, at 10:37, Jakob Erdmann 
<[email protected]<mailto:[email protected]>> wrote:

Hello,
then randomTrips tools with the mentioned parameters -p 1.4 -e 1000 generates 
ceil(1000/1.4) = 715 vehicle trips.
If your network is fully connected then all of these trips are valid so this is 
the number of vehicle you will see (not all at the same time, however).
The warning regarding nodes without mobility results from trips that are 
invalid (which likely happens when picking origin and destination randomly). 
Thus the sequence of ids in the rou.xml file is not continuous. To find out the 
total number, either run sumo with the option --verbose (which will list the 
total number of vehicles) or run 'grep -c "<vehicle " cars.rou.xml'

If you need a fixed number of vehicles in your simulation, see 
http://sumo.dlr.de/wiki/FAQ#How_do_I_maintain_a_constant_number_of_vehicles_in_the_net.3F

regards,
Jakob

2017-10-20 9:54 GMT+02:00 Víctor Caballero Codina 
<[email protected]<mailto:[email protected]>>:
Hello,

I have followed this example to generate random trips 
https://www.youtube.com/watch?v=Mh4WnY4KY4Y . In this example, there are two 
commands that generate trips, one of them is: python sumo/tools/randomTrips.py 
--n Munich.net.xml -r cars.rou.xml -t "type=\"car\" departSpeed=\"max\" 
departLine=\"best\"" -c passenger --additional-files car.add.xml -p 1.4 -e 1000 
-l .

Then, I'm trying to import the generated simulation file (after running sumo) 
in NS3 via ns2-mobility-trace.cc<http://ns2-mobility-trace.cc/> and generate a 
file for NetAnim. I am concerned by the following:
- I have to specify the total number of nodes. The only way I am aware of 
knowing the number of total nodes is doing a tail cars.rou.xml , where I will 
see the last id. How can I specify it at generation step?
- I have added "AnimationInterface anim("animation.xml")" before the simulation 
starts, but at the end of the simulation, NetAnim outputs warnings like 
"AnimationInterface WARNING:Node:1 Does not have a mobility model. Use set 
constant position if it is stationary.". Do I need to set a mobility model? The 
traces are already generated by SUMO, aren't they? How can I fix that?
- Visualizing the generated "animation.xml" file via NetAnim shows nodes at 
constant position. I guess that by fixing the problem explained above this will 
be fixed.

Thanks in advance.


Víctor Caballero ([email protected]<mailto:[email protected]>)
Ph.D. Student at La Salle Barcelona - Ramon Llull University


_______________________________________________
sumo-user mailing list
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to