LifeofBob
LifeofBob

Reputation: 37

Veins/Omnett retrieve Traffic Light information

I am new to Veins and omnett and am working on a project that will use traffic lights to map out intersections. http://www.sumo.dlr.de/wiki/TraCI/Traffic_Lights_Value_Retrieval#Command_0xa2:_Get_Traffic_Lights_Variable shows that ID List can be retrieved but I am having trouble getting that information. I tried using the command: trafficlight(1).idlists; I included #include "veins/modules/mobility/traci/TraCICommandInterface.h". The error is showing up as "trafficlight was not declared in this scope". I am trying to call this function in BaseWaveAppLayer.cc. Any help would be great. Thanks!

Upvotes: 1

Views: 346

Answers (2)

Pasha M.
Pasha M.

Reputation: 340

The latest version of veins supports traffic light access and control.

Upvotes: 1

Christoph Sommer
Christoph Sommer

Reputation: 6943

The command you mention is implemented in SUMO, but not in Veins 4.4.

You will need to write your own method. For inspiration, you can refer to similar commands and how they are implemented.

Upvotes: 0

Related Questions