Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Regions of Interest #305

Open
akhilsimha7 opened this issue Aug 28, 2023 · 1 comment
Open

Error with Regions of Interest #305

akhilsimha7 opened this issue Aug 28, 2023 · 1 comment

Comments

@akhilsimha7
Copy link

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
Copy link
Owner

riebl commented Aug 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants