Giter Club home page Giter Club logo

veins_python's Introduction

veins_python

Sample combination of Veins and Python

Supported program versions

Supported platforms

  • Windows 10
  • Debian 12
  • macOS 10.15

Setup

First, make sure that you are using compatible program versions (see above) on a compatible platform (see above).

Make sure that Veins is set up and working from the command line by opening an OMNeT++ shell, navigating to the Veins directory, and executing ./configure followed by make. Change to the examples/veins subdirectory and run ./run to confirm Veins is working. Use the same command line window for entering any of the following commands.

In the command line window, change to the veins_python directory.

Configure the build system by running (assuming you built Veins in ../veins)

./configure --with-veins=../veins
  • If you receive errors about Python.h not being found, make sure that you have installed Python along with its headers (e.g., on Debian Linux you might need to install libpython3.11-dev or similar)
  • The configure script adopts settings from the Python interpreter it is running under. If you want to use a different Python interpreter, execute the script as, e.g., python3.11 ./configure.

Build veins_python by running

make

Try out veins_python by running

cd examples/veins_python
./run -u Cmdenv

You should see the following output (amidst other OMNeT++ output):

[INFO] General:0@t=1 Scenario.manager(veins_python/ApplicationLayerTest.cc:48): Veins2py testfun returning 42
Veins2py testfun returned 42
[INFO] General:0@t=1 Scenario.manager(veins_python/ApplicationLayerTest.cc:148): Py2veins funtest returned 24

Bugs

  • Probably many

License

Veins is composed of many parts. See the version control log for a full list of contributors and modifications. Each part is protected by its own, individual copyright(s), but can be redistributed and/or modified under an open source license. License terms are available at the top of each file. Parts that do not explicitly include license text shall be assumed to be governed by the "GNU General Public License" as published by the Free Software Foundation -- either version 2 of the License, or (at your option) any later version (SPDX-License-Identifier: GPL-2.0-or-later). Parts that are not source code and do not include license text shall be assumed to allow the Creative Commons "Attribution-ShareAlike 4.0 International License" as an additional option (SPDX-License-Identifier: GPL-2.0-or-later OR CC-BY-SA-4.0). Full license texts are available with the source distribution.

veins_python's People

Contributors

sommer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.