I'm a beginner in Omnet++ & SUMO. I have successfully created my python script using the Traci library from SUMO. So, now I am currently trying to run my python script inside OMNET++ but I do not have any idea on how to do it. Can anyone guide me regarding this?
Asked
Active
Viewed 188 times
-1
-
Welcome to SO! Your question is too broad for SO. You're asking us to write a tutorial which is off-topic. Instead identify a specific problem and ask about that. – the Tin Man Jan 31 '22 at 21:30
-
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Jan 31 '22 at 21:30
2 Answers
1
pybind11 makes it easy to call python constructs in c++. I did install pybind11 in debian and successfuly invoked a python script. How to use pybind11 in omnet++ projects like veins This is another way of calling python from c++.

Pasha M.
- 340
- 1
- 12
0
OMNeT++ uses C++ so you should look for an answer to the question: "How to call Python script from C++". There are many answers to this question, for example that.
Moreover, if you are beginner in OMNeT++
, I strongly suggest to look at Tic Toc Tutorial to understand NED and C++ API.

Jerzy D.
- 6,707
- 2
- 16
- 22