Removes debug prints
This commit is contained in:
parent
4052fa4be6
commit
a66906d153
|
@ -328,12 +328,8 @@ bool ALSM::IsVehicleStuck(const ActorId& actor_id) {
|
|||
if (idle_time.find(actor_id) != idle_time.end()) {
|
||||
double delta_idle_time = current_timestamp.elapsed_seconds - idle_time.at(actor_id);
|
||||
TrafficLightState tl_state = simulation_state.GetTLS(actor_id);
|
||||
if (!tl_state.at_traffic_light && tl_state.tl_state != TLS::Red && delta_idle_time >= BLOCKED_TIME_THRESHOLD) {
|
||||
std::cout << "Destroying not at Red TL" << std::endl;
|
||||
return true;
|
||||
}
|
||||
else if (delta_idle_time >= RED_TL_BLOCKED_TIME_THRESHOLD) {
|
||||
std::cout << "Destroying at Red TL" << std::endl;
|
||||
if ((!tl_state.at_traffic_light && tl_state.tl_state != TLS::Red && delta_idle_time >= BLOCKED_TIME_THRESHOLD)
|
||||
|| (delta_idle_time >= RED_TL_BLOCKED_TIME_THRESHOLD)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue