Veins VehicleObstacleShadowing Analogue model

179 views
Skip to first unread message

Lantao Li

unread,
Aug 18, 2022, 6:11:00 AM8/18/22
to OMNeT++ Users
Hi guys,

I'm working on my V2V application using Veins and it does run smoothly even with a lot of modifications. However error popped out when trying the VehicleObstacleShadowing analogue model as shown in the attached pictures.

After checking the source code and different versions of the Veins, it seems that all other analogue models all work smoothly except this particular one. This error can trace back to PhyLayer80211p.cc and VehicleObstacleControl.h within Veins, and further into OMNet++ files like csimulation.h and cmodule.h. It seems that the wanted scenario just could not find the path of vehicleObstacles, which is extremely confusing.

Anybody got any ideas on how to resolve this issue? Thanks in advance!

VehicleObstacleShadow_setting.png 
VehicleObstacleShadowing_issue.png

phylayer.pngvehicleobstaclecontrol.png

Hanadi Darwisho

unread,
Aug 19, 2022, 4:56:21 AM8/19/22
to omn...@googlegroups.com

Hello,you must change type id =building in config.xml file according to type id =? in your poly.xml file that belong to your map.and obstacles line =config.xml ...must be found in omnetpp.ini .thanks

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/46d71ef3-7a8f-449b-a263-0f3abee1d69en%40googlegroups.com.

Lantao Li

unread,
Aug 19, 2022, 5:33:23 AM8/19/22
to OMNeT++ Users
Hi, many thanks for the help.

If I understand your answer correctly, those configurations in config.xml are all related to SimpleObstacleShadowing analogue model, which is about static obstacles like buildings (described in the poly.xml). This analogue model is all good in my simulation.

However, the issue I encountered is VehicleObstacleShadowing analogue model, which is about dynamic obstacles (i.e., vehicles themselves as obstacles, and be managed to calculate signal loss when signal passes vehicles in this particular signal's path). in the  VehicleObstacleControl.h file, it shows that this model function does not need any parameters input. And the instance of the scenario simulation just cannot load this module, do you have any clue on that?

It would be so much appreciated if any tips could be given on this issue, since I noticed someone asked the same question on Stack Overflow and no answer is given yet.

Anyway, thanks again for your answer.

On Friday, August 19, 2022 at 4:56:21 PM UTC+8 darwish...@gmail.com wrote:

Hello,you must change type id =building in config.xml file according to type id =? in your poly.xml file that belong to your map.and obstacles line =config.xml ...must be found in omnetpp.ini .thanks

On Aug 18, 2022 1:11 PM, "'Lantao Li' via OMNeT++ Users" <omn...@googlegroups.com> wrote:
Hi guys,

I'm working on my V2V application using Veins and it does run smoothly even with a lot of modifications. However error popped out when trying the VehicleObstacleShadowing analogue model as shown in the attached pictures.

After checking the source code and different versions of the Veins, it seems that all other analogue models all work smoothly except this particular one. This error can trace back to PhyLayer80211p.cc and VehicleObstacleControl.h within Veins, and further into OMNet++ files like csimulation.h and cmodule.h. It seems that the wanted scenario just could not find the path of vehicleObstacles, which is extremely confusing.

Anybody got any ideas on how to resolve this issue? Thanks in advance!

VehicleObstacleShadow_setting.png 
VehicleObstacleShadowing_issue.png

phylayer.pngvehicleobstaclecontrol.png

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.

Lantao Li

unread,
Aug 23, 2022, 6:15:19 AM8/23/22
to OMNeT++ Users
Resolved by myself already. Forgot about checking those .ned files. 
Reply all
Reply to author
Forward
0 new messages