hust-diangroup / ns3-ai

Enable the interaction between ns-3 and popular frameworks using Python, which mean you can train and test your AI algorithms in ns-3 without changing any frameworks you are using now!
GNU General Public License v2.0
220 stars 80 forks source link

Executing Python Scripts from C++ Simulation Script #99

Open luk3rr opened 11 months ago

luk3rr commented 11 months ago

I am using version 1.2.0 of your framework in a university project. I would like to know if there is a possibility to have the Python script executed by the C++ simulation script because we intend to have a Python process running for each node in the simulation. I ask this because whenever I try to execute the Python script through the C++ script, the values of my shared variables are always equal to zero.

I would appreciate it if you could shed some light on this :')