LibCarla/source/carla/trafficmanager/TrafficManager.h
void SetGlobalDistanceToLeadingVehicle(const float distance) {
    TrafficManagerBase* tm_ptr = GetTM(_port);
    if(tm_ptr != nullptr){
      tm_ptr->SetGlobalDistanceToLeadingVehicle(distance);
    }
  }
/// Method to Set Global distance to Leading vehicle
Method to Set Global distance to Leading vehicle
Method to Set Global distance to Leading vehicle
void SetGlobalDistanceToLeadingVehicle(const float distance) {
    TrafficManagerBase* tm_ptr = GetTM(_port);
    if(tm_ptr != nullptr){
      tm_ptr->SetGlobalDistanceToLeadingVehicle(distance);
    }
  }
void SetGlobalDistanceToLeadingVehicle ( const float distance ) { TrafficManagerBase * tm_ptr = GetTM ( _port ) ; if ( tm_ptr != nullptr ) { tm_ptr -> SetGlobalDistanceToLeadingVehicle ( distance ) ; } }
Method to Set Global distance to Leading vehicle
Method to Set Global distance to Leading vehicle