The use of SUMO in ns3

1,200 views
Skip to first unread message

El Kinani Youssef

unread,
May 31, 2016, 12:37:34 PM5/31/16
to ns-3-users
Hi everybody,

I used SUMO to create a MAP for my VANET simulation. I extracted the MAP with openstreetmap and I'm confused with the number of nodes specified in the "*.rou.xml" file. I found 99 vehicles, and I don't know if I have to tune this number or rather I have to specify it in my ns3 simulation.

Thanks in advance
Youssef

Tommaso Pecorella

unread,
May 31, 2016, 12:49:56 PM5/31/16
to ns-3-users
Hi,

the number of nodes you create in ns-3 must not be greater than the ones in the SUMO traces. If you create less nodes, only the first ones will be picked.

Hope this helps,

T.

El Kinani Youssef

unread,
May 31, 2016, 12:58:08 PM5/31/16
to ns-3-users
Yes this is what wanted to know, thank you. What if I wanted to add more nodes in the sumo traces? I didn't find how to do it in the sumo tutorial or I'm missing it.

El Kinani Youssef

unread,
May 31, 2016, 1:08:12 PM5/31/16
to ns-3-users
I wanted to ask another question about enabling lte_traces. I'm getting this error: 

msg="Incompatible types. (feed to "c++filt -t" if needed)
got=CallbackImpl<void,std::string,unsigned int,unsigned int,unsigned short,unsigned char,unsigned short>
expected=CallbackImpl<void,std::string,unsigned int,unsigned int,unsigned short,unsigned char,unsigned short,unsigned char>"
, file=./ns3/callback.h, line=1440
msg
="when connecting to /NodeList/4/DeviceList/0/LteEnbMac/UlScheduling", file=./ns3/traced-callback.h, line=280




Le mardi 31 mai 2016 17:49:56 UTC+1, Tommaso Pecorella a écrit :

Tommaso Pecorella

unread,
May 31, 2016, 6:38:31 PM5/31/16
to ns-3-users
Hi,

no idea about how to use SUMO, I never did it. I guess that there is something in its manual. Else you can try asking to the SUMO devs.

About the error, you're trying to connect a function with the wrong signature to a TracedCallback (apparently your function has an extra param at the end).
Another possibility is that you did modify the sources and/or that the bindings have to be regenerated.
Before rebuilding the bindings I'd double check the other possibilities.

T.

Dpk Rohilla

unread,
Jun 3, 2018, 10:15:06 AM6/3/18
to ns-3-users
Hi Youssef,
I need your help in implementation of some another map extracted from Open street map and use it with Vanet-routing-compare example in ns3.

I got this error

deepak@deepak-Inspiron-15-3567:~/Documents/ns-allinone-3.26/ns-3.26$ ./waf --run "vanet-routing-compare --scenario=2" --vis
Waf: Entering directory `/home/deepak/Documents/ns-allinone-3.26/ns-3.26/build'
[2619/2631] Linking build/src/wave/examples/ns3.26-vanet-routing-compare-debug
Waf: Leaving directory `/home/deepak/Documents/ns-allinone-3.26/ns-3.26/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (3.331s)
msg="Could not open trace file mobility.ns for reading, aborting here
", file=../src/mobility/helper/ns2-mobility-helper.cc, line=189
terminate called without an active exception

Command ['/home/deepak/Documents/ns-allinone-3.26/ns-3.26/build/src/wave/examples/ns3.26-vanet-routing-compare-debug', '--scenario=2', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

Kindly help
thanks
dpk

Arka Bhattacharjee

unread,
Aug 28, 2018, 9:56:30 AM8/28/18
to ns-3-users
Hi Dpk Rohilla,
have you find any solution for the problem? I am also getting the same error.


Thanks and Regards,
Arka
Reply all
Reply to author
Forward
0 new messages