sihem sihem
2015-04-10 20:56:04 UTC
Hi,
Thanks for your response Michael
when i use the command
./traceExporter.py
--fcd-input sumoTrace.xml --ns2config-output sb.config.tcl
--ns2activity-output sbg.activity.tcl --ns2mobility-output
sbg.mobility.tcl --penetration 1 --begin 0 --end 100
There will be three output files: mobility file, activity file and config file.
config file :
# set number of nodes
set opt(nn) 90
# set activity file
set opt(af) $opt(config-path)
append opt(af) /sbg.activity.tcl
# set mobility file
set opt(mf) $opt(config-path)
append opt(mf) /sbg.mobility.tcl
# set start/stop time
set opt(start) 0.0
set opt(stop) 1000.0
# set floor size
set opt(x) 4822.44
set opt(y) 2545.67
set opt(min-x) 19.67
set opt(min-y) 3.9
mobility file: mouvment of the node
$node_(2) set X_ 4822.44
$node_(2) set Y_ 2532.94
$node_(2) set Z_ 0
$ns_ at 0.0 "$node_(2) setdest 4822.44 2532.94 0"
$ns_ at 0.1 "$node_(0) setdest 19.69 3.92 0"
$ns_ at 0.1 "$node_(1) setdest 4776.43 2545.64 0"
$ns_ at 0.1 "$node_(2) setdest 4822.43 2532.92 0"
.......
.........
activity file
$ns_ at 33.6 "$g(26) start"; # SUMO-ID: flow1.8
$ns_ at 67.4 "$g(26) stop"; # SUMO-ID: flow1.8
$ns_ at 37.9 "$g(26) start"; # SUMO-ID: flow1.9
$ns_ at 71.8 "$g(26) stop"; # SUMO-ID: flow1.9
$ns_ at 0.0 "$g(1) start"; # SUMO-ID: flow1.0
..................
...............
but the activity file i don't know how to use it in script file (.tcl) to execute and generate trace file (.tr and .nam) in ns2
also why velocity 0??? in mobility file
best regards
Thanks for your response Michael
when i use the command
./traceExporter.py
--fcd-input sumoTrace.xml --ns2config-output sb.config.tcl
--ns2activity-output sbg.activity.tcl --ns2mobility-output
sbg.mobility.tcl --penetration 1 --begin 0 --end 100
There will be three output files: mobility file, activity file and config file.
config file :
# set number of nodes
set opt(nn) 90
# set activity file
set opt(af) $opt(config-path)
append opt(af) /sbg.activity.tcl
# set mobility file
set opt(mf) $opt(config-path)
append opt(mf) /sbg.mobility.tcl
# set start/stop time
set opt(start) 0.0
set opt(stop) 1000.0
# set floor size
set opt(x) 4822.44
set opt(y) 2545.67
set opt(min-x) 19.67
set opt(min-y) 3.9
mobility file: mouvment of the node
$node_(2) set X_ 4822.44
$node_(2) set Y_ 2532.94
$node_(2) set Z_ 0
$ns_ at 0.0 "$node_(2) setdest 4822.44 2532.94 0"
$ns_ at 0.1 "$node_(0) setdest 19.69 3.92 0"
$ns_ at 0.1 "$node_(1) setdest 4776.43 2545.64 0"
$ns_ at 0.1 "$node_(2) setdest 4822.43 2532.92 0"
.......
.........
activity file
$ns_ at 33.6 "$g(26) start"; # SUMO-ID: flow1.8
$ns_ at 67.4 "$g(26) stop"; # SUMO-ID: flow1.8
$ns_ at 37.9 "$g(26) start"; # SUMO-ID: flow1.9
$ns_ at 71.8 "$g(26) stop"; # SUMO-ID: flow1.9
$ns_ at 0.0 "$g(1) start"; # SUMO-ID: flow1.0
..................
...............
but the activity file i don't know how to use it in script file (.tcl) to execute and generate trace file (.tr and .nam) in ns2
also why velocity 0??? in mobility file
best regards