Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
#TODO: maybe add aditional tasks ( NO dynamic obstacles for instace !)
class TestSuite(ExperimentSuite):
def __init__(self):
super(TestSuite, self).__init__('Town02')
@property
def train_weathers(self):
return [1]
@property
def test_weathers(self):
return [1]
def _poses(self):
return [[[19, 66], [79, 14]]]
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
# TODO: maybe add aditional tasks ( NO dynamic obstacles for instace !)
class ExredTraining(ExperimentSuite):
def __init__(self):
super(ExredTraining, self).__init__('Town01')
@property
def train_weathers(self):
return [1]
@property
def test_weathers(self):
return []
@property
def collision_as_failure(self):
return True
def _poses(self):
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
class ECCVGeneralization(ExperimentSuite):
def __init__(self):
super(ECCVGeneralization, self).__init__('Town02')
@property
def train_weathers(self):
return []
@property
def test_weathers(self):
return [14]
def _poses(self):
return [[[19, 66], [79, 14], [19, 57], [23, 1],
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
# TODO: maybe add aditional tasks ( NO dynamic obstacles for instace !)
class ExredNewWeather(ExperimentSuite):
def __init__(self):
super(ExredNewWeather, self).__init__('Town01')
@property
def train_weathers(self):
return []
@property
def test_weathers(self):
return [14]
@property
def collision_as_failure(self):
return True
def _poses(self):
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
class ExredNewWeatherTown(ExperimentSuite):
def __init__(self):
super(ExredNewWeatherTown, self).__init__('Town02')
@property
def train_weathers(self):
return []
@property
def test_weathers(self):
return [14]
@property
def collision_as_failure(self):
return True
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
class LongNewWeatherTown(ExperimentSuite):
def __init__(self):
super(LongNewWeatherTown, self).__init__('Town02')
@property
def train_weathers(self):
return []
@property
def test_weathers(self):
return [4, 14]
@property
def collision_as_failure(self):
return True
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
# TODO: maybe add aditional tasks ( NO dynamic obstacles for instace !)
class OracleTrain(ExperimentSuite):
def __init__(self):
super(OracleTrain, self).__init__('Town01')
@property
def train_weathers(self):
return [1]
@property
def test_weathers(self):
return []
def _poses(self):
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
# TODO: maybe add aditional tasks ( NO dynamic obstacles for instace !)
class ClutNewWeather(ExperimentSuite):
def __init__(self):
super(ClutNewWeather, self).__init__('Town01')
@property
def train_weathers(self):
return [4, 14]
@property
def test_weathers(self):
return []
@property
def collision_as_failure(self):
return True
def _poses(self):
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
class PANewTown(ExperimentSuite):
def __init__(self):
super(PANewTown, self).__init__('Town02')
@property
def train_weathers(self):
return [1, 3, 6, 8]
@property
def test_weathers(self):
return []
def _poses(self):
# This work is licensed under the terms of the MIT license.
# For a copy, see .
# CORL experiment set.
from __future__ import print_function
from carla.driving_benchmark.experiment import Experiment
from carla.sensor import Camera
from carla.settings import CarlaSettings
from carla.driving_benchmark.experiment_suites.experiment_suite import ExperimentSuite
class LongNewTown(ExperimentSuite):
def __init__(self):
super(LongNewTown, self).__init__('Town02')
@property
def train_weathers(self):
return [1, 3, 6, 8]
@property
def test_weathers(self):
return []
@property
def collision_as_failure(self):
return True