Comments (7)
The environment model is only enabled in the "envmod" configuration of the highway-police scenario, see
artery/scenarios/highway-police/omnetpp.ini
Lines 20 to 22 in a313146
You should be able to run this configuration without modifications.
Side note:β―This scenario has been created for the chapter about Artery in a soon-to-be-published book "Recent Advances in Network Simulation".
from artery.
Thanks for your reply!
Maybe I explained myself unclear: The highway-police scenario is running, and the option WITH_ENVMOD is enabled. Just I do not get where the environmental model is used at all, i.e., how I can use its information. Functions from PoliceServiceEnvmod are never called and it does not matter how the services-envmod.xml file looks like (I conclude from that, that it is not used at all).
If I change the PoliceService in services.xml to PoliceServiceEnvmod, then the initialization function is called, but no LocalEnvironmentModel can be found. As far as I understand, there is somewhere a mFacilities.register_const() needed, e.g., in src/artery/application/Middleware.cc, else the call in the initialization function of PoliceServiceEnvmod will fail...
from artery.
artery.envmod.Car
is an artery.inet.Car
with an additional LocalEnvironmentModel
. This model registers itself at the middleware's facilities, see LocalEnvironmentModel::initialize
.
I have just run the envmod configuration of highway-police and PoliceServiceEnvmod
is working as intended on my system. I have verified this by setting a breakpoint in gdb: break PoliceServiceEnvmod.cc:20 if objects.size() > 0
from artery.
artery.envmod.Car
is anartery.inet.Car
with an additionalLocalEnvironmentModel
. This model registers itself at the middleware's facilities, seeLocalEnvironmentModel::initialize
.
ok thank you, that seems now to be clear.
I have just run the envmod configuration of highway-police and
PoliceServiceEnvmod
is working as intended on my system. I have verified this by setting a breakpoint in gdb:break PoliceServiceEnvmod.cc:20 if objects.size() > 0
I tried it with gdb and even with terminal outputs, but both functions are never called. So my question:
What do you mean by running the "envmod configuration of highway-police"? Do I have to set an additional parameter? Probably I missed something there...
I have attached a screenshot of the running example. From my point of view, both local and global environment are not initialized (localEnvironmentModule and globalEnvironmentModule):
from artery.
You are not using the envmod configuration. Please select "envmod" from the drop-down box in the dialog shown at OMNeT++ GUI's startup.
from artery.
Many thanks @riebl for your fast support. Problem solved.
As I would like to work more with artery, is there a dedicated channel to discuss ongoing development, e.g., IRC?
from artery.
@rtobi Feel free join https://gitter.im/omnetpp for this purpose.
from artery.
Related Issues (20)
- run into problems while trying `vagrant up` on my Ubuntu 22.04 machine HOT 6
- CAM and DENM messages HOT 2
- DEN use cases HOT 1
- connecting artery simulation scenario with the external v2x device HOT 3
- Traffic Lights management HOT 1
- Problem with adding new files to INET (<!> Error: Cannot load library) HOT 3
- adding RSU to simuLTE probleme cars veins HOT 5
- Difficulty Implementing External Service Message Transmission and Enabling Network Participants to Edit Messages in Artery HOT 6
- Integrating MQTT protocol with artery HOT 13
- Segementation fault (core dumps) in artery::FovSensor::refreshDisplay HOT 1
- ASSERT: Condition 'mController' does not hold in function 'getVehicleController' HOT 14
- Equip services to vehicles HOT 1
- Protobuff transmission using cPacket and request
- Problems running CAM Fixed and Dynamic with the same scenario HOT 5
- about a cmake error HOT 6
- UPER encoded DecentralizedEnvironmentalNotificationMessage(DENM) structure
- Regarding creating a new service to stationary nodes(rsu) HOT 3
- Creating messages HOT 1
- Ask for help! How do I use 'CollectivePerceptionMockService' in Artery? HOT 1
- Sending CPM messages from Artery on a real physical interfaces HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artery.