Code Monkey home page Code Monkey logo

Comments (2)

dbuse avatar dbuse commented on May 31, 2024 1

Hi @yzy26353520
the OMNeT++ GUI gets "stuck" after running ./run in the scenario directory, because it is waiting for an agent to connect to it.

When you only run the Veins/OMNeT++ portion (via the ./run script), there is no agent to perform any action. In contrast, when you run a veins gym environment from python (e.g., via ./random_agent.py), it both launches the Veins/OMNeT++ simulation (normally without a GUI) and runs the agent, which connects to it and sends actions.

Please check https://github.com/tkn-tub/veins-gym#starting-veins-simulations-separately for how to connect an agent to a separately started Veins simulation.

from serpentine-env.

yzy26353520 avatar yzy26353520 commented on May 31, 2024 1

Thank you. It works well. Change random_agent.py 's kwargs and run:

david@david-PC:~/workspace/serpentine-env-master/scenario$ ./run 
david@david-PC:~/workspace/serpentine-env-master/scenario$ ./run -u Cmdenv '--*.gym-connection.port=5555'
david@david-PC:~/workspace/serpentine-env-master/examples$ python3.8 random_agent.py 

from serpentine-env.

Related Issues (17)

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.