Skip to content

Commit

Permalink
using vehicle ids in warning for better locating in sumo-gui refs #14543
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Oct 15, 2024
1 parent b3a271d commit 4c47d32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/microsim/traffic_lights/MSRailSignalControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ MSRailSignalControl::haveDeadlock(const SUMOVehicle* veh) const {
if (!constraints.empty() && oc.getBool("time-to-teleport.remove-constraint")) {
resolved = constraints.front();
if (newDeadlock) {
std::vector<std::string> tripIDs;
std::vector<std::string> vehicles;
for (auto item : list) {
tripIDs.push_back(item.foe->getParameter().getParameter("tripId", item.foe->getID()));
vehicles.push_back(item.foe->getID());
}
WRITE_WARNINGF("Deactivating constraint to resolve deadlock between tripIds % at time %.", toString(tripIDs), time2string(SIMSTEP));
WRITE_WARNINGF("Deactivating constraint to resolve deadlock between vehicles % at time %.", toString(vehicles), time2string(SIMSTEP));
resolved->setActive(false);
resolvedUnblocked = constraintBlocked.front();
resolvedSignal = constraintSignals.front();
Expand Down

0 comments on commit 4c47d32

Please sign in to comment.