Skip to content

Error with Regions of Interest #305

@akhilsimha

Description

@akhilsimha

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions