Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-dev] Is vehicle behavior handled in a different location once you start calling TraCI functions?

Hello,
the function ignoreRed checks whether the a red light should be ignored.
In the very first line it checks whether a speedMode was set that ignores red lights. In that case the function aborts early (MSVehicle.cpp:5875) and thus your print statement which I suppose comes later, is not executed.
For details, see https://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#speed_mode_.280xb3.29 (bit4)
regards,
Jakob

Am Mi., 22. Mai 2019 um 23:57 Uhr schrieb Ryan Hamamoto <rkhamamo@xxxxxxxx>:
Dear SUMO developers,

There is this function in SUMO_HOME/src/microsim/MSVehicle.cpp called ignoreRed(). I put a print statement there for testing purposes. I have a TraCI script running that calls traci.vehicle.setSpeedMode() only after simulation step 500. I discovered that the ignoreRed() function gets called continuously, while running a simulation with TraCI, UNTIL you call traci.vehicle.setSpeedMode() in your TraCI script. Suddenly, after step 500, my print statement no longer prints, the function ignoreRed() is no longer called, and any changes I made to it are now invalid. Where does the program go? Is vehicle behavior handled in a different location once you start calling TraCI functions?

Best,
Ryan
_______________________________________________
sumo-dev mailing list
sumo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-dev

Back to the top