Removes debug prints

This commit is contained in:
Jacopo Bartiromo 2020-10-20 16:18:43 +02:00 committed by bernat
parent 4052fa4be6
commit a66906d153
1 changed files with 2 additions and 6 deletions

View File

@ -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;
}
}