How to Use --ns2config-output and --ns2activity-output Files Generated by SUMO's traceExporter.py in ns-3

41 views
Skip to first unread message

pi fade

unread,
Nov 23, 2024, 11:17:14 PMNov 23
to ns-3-users
Hi, all.

I am working on integrating SUMO mobility traces into ns-3 for vehicular network simulations. Specifically, I used the `traceExporter.py` tool provided by SUMO to generate trace files for ns-2 using the following command:

```bash
python /path/to/traceExporter.py --fcd-input <input.sumo.xml> \
--ns2mobility-output mobility.tcl \
--ns2config-output config.tcl \
--ns2activity-output activity.tcl
```

While I was able to use `Ns2MobilityHelper` to handle the `mobility.tcl` file successfully, I am unsure how to:

* Use the `--ns2config-output` file (`config.tcl`) to configure ns-3 parameters (e.g., simulation area, protocol, etc.).
* Utilize the `--ns2activity-output` file (`activity.tcl`) in ns-3 for scheduling node actions or behaviors.

I have reviewed quite a lot of materials but haven't found a solution. What I want to know is whether this means I need to write code myself to parse these files, or if ns-3 provides support similar to `Ns2MobilityHelper`.
Reply all
Reply to author
Forward
0 new messages