Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to perform the simulation with a python script? #56

Open
WytheC opened this issue Mar 7, 2022 · 1 comment
Open

How to perform the simulation with a python script? #56

WytheC opened this issue Mar 7, 2022 · 1 comment

Comments

@WytheC
Copy link

WytheC commented Mar 7, 2022

Hello!
In the example "rl-tcp", the details and steps of the simulation are defined in "sim.cc". Can I write a python script to do the simulation? I tried to generate the python bindings for opengym module but it ended up with failure. Do you have some suggestions? Thank you so much!

@carlee0
Copy link

carlee0 commented May 3, 2022

I don't think this repo provides a way to build python bindings. ns3 allows writing simulation scripts in python (e.g. examples/tutorial/first.py) and run by waf --pyrun, but not in ns3-gym I am afraid. If you figured out how to do that, I would be very happy to know. :)
The only two ways to start the simulation (that I know of) are either using waf --run or using a gym environment to start a simulation script like in the scratch examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants