I'm facing some problem when trying to add more RSU node on veins example code. Here's the code I added in RSUExampleScenario.ned
rsu[2]: RSU {
@display("p=162,140;i=veins/sign/yellowdiamond;is=vs");
}
And more codes in .ini
*.rsu[1].mobility.x = 1800
*.rsu[1].mobility.y = 1800
*.rsu[1].mobility.z = 2
When I try to start the simulation,error message says
Error: Name 'rsu' is not unique within its component
I'd really appreciate with some help to solve this problem
The example is a bit confusing here. You should not add this code, but rather replace rsu[1]
with rsu[n]
, where n is the amount of nodes you want. You can then specify the location of each in the omnetpp.ini as you're doing here. Check out this part of the OMNeT++ tutorial for more details. This has the following example:
network Tictoc10
{
submodules:
tic[6]: Txc10;
Here we created 6 modules as a module vector...