Obstacles in Veins_Inet

39 views
Skip to first unread message

Erston Outway

unread,
Jun 20, 2022, 6:51:01 AM6/20/22
to OMNeT++ Users
Hi guys,
I'm working on my application using Veins-Inet and it does run, however the obstacles (buildings etc.) from the *.poly.xml file are not being displayed, maybe not even loaded in, not sure. If I compare my files with the Veins example (where the contents of the poly file are displayed) I see that my project is missing the "*.annotations.draw = true" line, including it leads to the warning "Unused entry (does not match any parameters)" and no buildings are displayed when running.

Anybody got any ideas on this? Thanks in advance!

Surya Pusapati

unread,
Jun 20, 2022, 12:55:16 PM6/20/22
to OMNeT++ Users
Hello,

I think you missed importing the following module into your network definition file (.NED).

import org.car2x.veins.modules.world.annotations.AnnotationManager;

annotations: AnnotationManager {
            @display("p=100,100");
        }

Without the above module "*.annotations.draw = true" will not work.

Regards,
Surya

Erston Outway

unread,
Jun 21, 2022, 5:56:59 AM6/21/22
to OMNeT++ Users
Hi Surya,
thanks for the answer. I imported the module and the warning disappeared. Sadly the obstacles were stll not shown when runnning my simulation again. I tried both the poly file automatically generated by the OSMWebWizard and a file that was slightly adjusted, so that it had the <shapes> tag instead of the original <additional> tags around the <poly> and <poi> tags. I checked again and the poly file is properly mentioned within the sumocfg and launchd files. I attempted to use the poly file from the veins example but the objects in there were also not displayed. Since the location of the veins example is very far awy from the location of the rest of the simulation I cannot say whether that is the reason nothing is displayed or the poly file is not to blame and the source of the issue lies somewhere else. Any other ideas on the source of the issue?

Surya Pusapati

unread,
Jun 21, 2022, 11:23:43 AM6/21/22
to OMNeT++ Users
Please verify that you have added *.poly.xml file name into  *.launchd.xml and  *.sumocfg using the following codes:

In *.launchd.xml
        <copy file="*.poly.xml" />

In *.sumocfg under <input>
        <additional-files value="*.poly.xml"/>

Without this veins can load your obstacles.


Surya

Erston Outway

unread,
Jun 21, 2022, 2:04:52 PM6/21/22
to OMNeT++ Users
As mentioned in the previous post and shown in the images below the launchd and somocfg files both contain the poly just as you described, as far as I can see.
In the square example in Veins_inet there is  a *.poly.xml file containing a single building. If I execute that file I also seem to not get that building to appear, only the square from the obstacles file. The objects from the erlangen.poly in the veins example seem to be displayed correctly though. Is that visible for you?
I wonder if the issue lies within the OSMWebWizard, I'll test a *.poly file created without it. Thanks for the answer!
launchd.pngsumocfg.png

Erston Outway

unread,
Jun 23, 2022, 9:41:39 AM6/23/22
to OMNeT++ Users
I've taken a closer look at the entire problem and it seems to be an issue with veins_inet, if I use any set  of sumo files in the veins_inet example the contents of the poly file are not displayed, inserting  the previously discussed code regarding the annotations in this example will not change anything. Ive taken the sumo files form the veins example (erlangen) and inserted them into the veins_inet example, adjusted it, so they would be recognized by the .ini file and started the simulation, the roads were displayed but not the objects form the poly file.

I've been comparing the .ned and .ini files between the veins example where the contents of the poly file are displayed and the veins_inet example where they aren't displayed anymore without any success in fixing the issue. Am I the only one who has that issue or is that a general bug in veins_inet?
Reply all
Reply to author
Forward
0 new messages