Regenerating Python binding in NR-V2X

117 views
Skip to first unread message

Kelvin Tsang

unread,
Aug 7, 2021, 3:32:45 PM8/7/21
to 5G-LENA-users
I would like to use ns3-ai together with NR-V2X, thereby Python binding is essential. However, according to the instructions in https://gitlab.com/cttc-lena/nr/-/tree/5g-lena-v2x-v0.1.y, I have to disable python before compiling the code.

I have followed the instructions in https://www.nsnam.org/docs/manual/html/python.html. I installed ns3-dev using Bake and try to regenerate Python binding, but it doesn't work. Is there anyone know how to do it?

Gabriel Arrobo

unread,
Aug 7, 2021, 11:55:03 PM8/7/21
to 5G-LENA-users
Python bindings are NOT needed to use ns3-ai with other ns-3 modules (e.g., nr module)

Kelvin Tsang

unread,
Aug 8, 2021, 9:10:39 AM8/8/21
to 5G-LENA-users
Thank you for your reply! But, how to use ns3-ai without python bindings? For example, the reinforcement learning examples in ns3-ai, the machine learning codes are written in Python with libraries (tensorflow, pytorch...) and then communicate with the environment written in ns3. So the data have to be sent from Python to ns3, and from ns3 back to python by memory sharing. Is there any way I could use ns3-ai with Python binding turned on?

Gabriel Arrobo

unread,
Aug 8, 2021, 1:52:15 PM8/8/21
to 5G-LENA-users
Read the ns3-ai (https://github.com/hust-diangroup/ns3-ai) documentation, examples and paper. That will help you understand how it works.
Reply all
Reply to author
Forward
0 new messages