'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!



Solution 1:[1]

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

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pasha M.
Solution 2 Christoph Sommer