Git Product home page Git Product logo

Comments (3)

riebl avatar riebl commented on September 26, 2024 1

Yes, the location of your new NED files needs to be included so OMNeT++ finds them during runtime.

from artery.

Chiqq avatar Chiqq commented on September 26, 2024

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) question1

Here's my service setting:

  1. 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>
  1. 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.

  1. 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

  1. 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.

Chiqq avatar Chiqq commented on September 26, 2024

Thank you very much for the reply and your time!!

from artery.

Related Issues (20)

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.