Comments (3)
Yes, the location of your new NED files needs to be included so OMNeT++ finds them during runtime.
from artery.
Hi! !
I'm recently trying to create a custom service with my own scenario. Thanks to the documentations on the official website and example scenarios, I am currently be able to create new service to vehicle nodes. However, when it comes to stationary nodes, I will encounter the following error:
(NED module type "RSUService" not found (fully qualified type name expected) -- in module (artery::StationaryMiddleware) World.rsuRSU_0.middleware (id=34), at t=0.548813502304s, event #2)
Here's my service setting:
- Create the stationary points with RSUs.xml
<RSUs> <rsu id="RSU_0" positionX="103.0" positionY="100.0"> <antenna direction="-1.5707963267948966"/> <antenna direction="0"/> </rsu> </RSUs>
- Define separate rsuservices.xml
<?xml version="1.0" encoding="utf-8"?> <services> <service type="RSUService"> <listener port="8001" /> </service> </services>
The RSUService.ned/.h/.cc are all located in the same scenario folder.
- Set service.xml in omnetpp.ini
*.staticNodes.nodes = xmldoc("RSUs.xml") *.node[*].middleware.services = xmldoc("services.xml") *.rsu*.middleware.datetime = "2018-03-19 10:00:00" *.rsu*.middleware.services = xmldoc("rsuservices.xml")
The vehicle nodes will use the services.xml which is separate with rsuservice.xml
- Following the guideline to create the CMakeLists.txt
add_artery_feature(junctionservice VehicleService.cc RSUService.cc) generate_opp_message(Blockagestatus.msg TARGET junctionservice DIRECTORY junctionservice_msgs) add_opp_run(junctiontest CONFIG omnetpp.ini)
If I use services from application directory such as RsuCaService in the rsuservice.xml, there'll be no problem. So, I'm wondering that maybe something wrong with the CMakelist that it didn't account my RSUService.xml for stationary nodes.
Could anybody help me?
I now change the run setting in CMakelist.txt to:
'''
add_opp_run(junctiontest NED_FOLDERS ${CMAKE_CURRENT_SOURCE_DIR} CONFIG omnetpp.ini)
'''
Got no more error described above. Is this solution right?
from artery.
Thank you very much for the reply and your time!!
from artery.
Related Issues (20)
- Connecting to Sumo server by TraCi HOT 9
- Artery build error HOT 6
- 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
- Creating messages HOT 1
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.