riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
202 stars 128 forks source link

Error with Regions of Interest #305

Open akhilsimha7 opened 10 months ago

akhilsimha7 commented 10 months ago

I am trying to use the regions of interest feature in the Luxembourg SUMO Traffic (LuST) Scenario (https://github.com/lcodeca/LuSTScenario). I just selected a region in the map and then included in the regions_of_interest.xml as below:

<?xml version="1.0" encoding="UTF-8"?>
<regions>
    <!-- define regions of interest (RoI) here.
    Only vehicles entering a RoI will be equipped with a middelware.
    When leaving the RoI the middlewares are removed again.
    Leave regions empty to consider the whole scenario as RoI.
    -->
    <polygon name="center_junction">
        <point x="6560.00" y="7460.00" />
        <point x="6560.00" y="5400.00" />
        <point x="8060.00" y="5400.00" />
        <point x="8060.00" y="7460.00" />
    </polygon>

</regions>

I have included the .xml file in the omnetpp.ini file as below:

*.traci.nodes.typename = "RegionOfInterestNodeManager"
*.traci.nodes.regionsOfInterest = xmldoc("regions_of_interest.xml")

But after the simulations start, an error is thrown:

ASSERT: Condition 'mObjects.size() == mObjectRtree.size()' does not hold in function 'addVehicle' at /home/user/artery/src/artery/envmod/GlobalEnvironmentModel.cc:123 -- in module (traci::Core) World.traci.core (id=7), at t=1141s, event #972432

My queries are:

  1. How can I rectify this error?
  2. What does center_junction and spawn signify in the .xml file? Is it just a name given to the region?
riebl commented 10 months ago

Hi @akhilsimha7,

this error message belongs to our environment model and is thus unrelated to the ROI feature. I will check if there is a bug when both are employed. However, I am currently abroad and can only check after my return.