Veins : TraCIMobility::getSignals() method information

117 views Asked by At

Good afternoon.

I'm using Veins v4.4 and Sumo 0.25 with Omnet++ v4.6.

I was trying to get information about brakes and blinkers: I've found the VehicleSignal field in TraCISCenarioManager.h and the getSignals() method in TraCIMobility.h , but as soon as I call this function in my code, it runs in exception since I suppose the variable is never updated. Shouldn't it be updated runtime from Sumo?

Thanks for helping

1

There are 1 answers

0
Christoph Sommer On BEST ANSWER

You found some functionality that was never fully implemented in Veins 4.4. As a quick hack, you can make this work by changing line 891 of TraCIScenarioManager.cc to also update each vehicle's signal field, e.g., as follows:

mm->nextPosition(p, edge, speed, angle, VehicleSignal(signals));