riebl / artery

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

Error while adding sensors to road side units(RSU) to realize CPM transmission #221

Closed MengGao-MG closed 3 years ago

MengGao-MG commented 3 years ago

Hi @riebl,

I have an issue while using RSU and sensor. Furthermore, I have added sensor to the RSU to send CPM to avoid collision between two vehicles. In my scenario: an intersection, two vehicles and a RSU.

I initialized the RSU following the rsu_grid example scenario.I'm using network = artery.envmod.World network and inside omnetpp.ini, I have

image

The rsusensor.xml contains image

I have added sensor to the RSU, but the errors are as follows:

no valid object of type 'N5traci17VehicleControllerE' registered -- in module (artery::RadarSensor) World.rsu[0].environmentModel.FrontRadar (id=273), during network initialization.

My questions are : Is the Front Sensor supposed to be used only with vehicles? And is there a use case for adding sensors to RSU ? How do I modify it?

Regards

riebl commented 3 years ago

Currently, all entities of the environment model need to exist in SUMO. However, the RSUs are usually only defined in OMNeT++. I agree that many use cases exist where RSUs equipped with sensors are valuable. I will try to relax the environment model's dependency on SUMO entities.

riebl commented 3 years ago

You can now equip RSUs with sensors since commit bc7013066c2f00aa84324d71cf0a9e9ffdf07b00. I have added an example to the rsu_grid scenario as well based on your modifications.