Code Monkey home page Code Monkey logo

Comments (8)

dbuse avatar dbuse commented on May 31, 2024

Hi @serapergun,

I am having some trouble understanding precisely what your problem is.
What I understand is: You want to modify the omnetpp.ini configuration file (e.g., using a different application type) but the simulation appears unchanged.

Maybe, you are having issues with how configuration overwriting works in OMNeT++ (best match wins) see the manual.

For debugging, it might be helpful to run the Veins/OMNeT++ simulation separately and with the QtEnv GUI enabled, so you can inspect the details. See the Readme of veins-gym on how to do that.
Aside from that, I would need more description or (even better) an example of a changed omnetpp.ini file to understand what might be the issue.

Best,
Dominik

from serpentine-env.

serapergun avatar serapergun commented on May 31, 2024

Hi @dbuse,
Firstly, thank you for quick replay.
You understood me exactly right.
I wrote a new application type about decision making and a new car module.I want to use them.

For example I changes as follow:

network = HeteroScenario
*.manager.moduleType = "serpentine.HeteroGenericNode"
.node[].applType = "DecisionMakerApp"
*.gym_connection.action_space = "gym.spaces.Discrete(2)"

In random_agent file, I added this line:
"user_interface": "Qtenv",

thanks to this line, I saw GUI perfectly. And also the results of rewards and observations in Console.

However, I could not see the effects of my added files.

Regards,
Serap

from serpentine-env.

dbuse avatar dbuse commented on May 31, 2024

So the simulation still uses the previous network/moduleType/applType/etc.?
Did you change the lines in the omnetpp.ini file or add your own at the bottom (potentially in a different config)?

Maybe providing the full diff of the omnetpp.ini file or pushing your changes to github could help. There is many places where these issues may be coming from.

from serpentine-env.

serapergun avatar serapergun commented on May 31, 2024

@dbuse

I just changed the 4 lines in the omnetpp.ini file (in the previous comment) which is under serpentine-env/scenario.

I add project reference as SimulTE. And I used the nodes from there by importing as:
import lib.veins.src.veins.nodes.HeteroNodeCar;
Screenshot from 2022-06-17 15-56-49

from serpentine-env.

dbuse avatar dbuse commented on May 31, 2024

So in the GUI, if you clock on the node[0] element in the canvas and check its configuration in the explorer on the left, its applType is still the default and not your "DecisionMakerApp"?

Again, this is hard do tell from what and how you have posted it.

Though this seems to be a problem located only within the Veins/OMNeT++ side of the system. So you could run your Veins scenario without an agent and inspect/debug it to investigate the error.

from serpentine-env.

andresq99 avatar andresq99 commented on May 31, 2024

Hello
I am trying to replicate the serpentine-env code using Ubuntu 18.04 virtual machine. The requirements installed were Sumo 1.6.0, Omnet++ 5.6.2, and protoc version libprotoc 3.5.0. I have some problems with protoc version. The message is "This file was generated by an older version of protoc which is". Can you tell me the protoc version that you use to test and implement the serpentine env.

Regards, Andres

from serpentine-env.

dbuse avatar dbuse commented on May 31, 2024

Hi @andresq99
for our demo environment in the docker container, we successfully used the following version

$ docker run -it --rm  ghcr.io/tkn-tub/veins-gym:0.3.3 protoc --version
libprotoc 3.6.1

from serpentine-env.

serapergun avatar serapergun commented on May 31, 2024

I forgot to write here.
Whenever I made a change in ini file about gym, I figure out that it should be run snakemake -jall to set environment.
I'm sharing it in case if there is someone who needs it and lost their months like me.
Thanks,

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.