MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / __init__

Method __init__

scenario_runner/srunner/scenarios/freeride.py:25–37  ·  view source on GitHub ↗

Setup all relevant parameters and create scenario

(self, world, ego_vehicles, config, randomize=False, debug_mode=False, criteria_enable=True,
                 timeout=10000000)

Source from the content-addressed store, hash-verified

23 """
24
25 def __init__(self, world, ego_vehicles, config, randomize=False, debug_mode=False, criteria_enable=True,
26 timeout=10000000):
27 """
28 Setup all relevant parameters and create scenario
29 """
30 # Timeout of scenario in seconds
31 self.timeout = timeout
32 super(FreeRide, self).__init__("FreeRide",
33 ego_vehicles,
34 config,
35 world,
36 debug_mode,
37 criteria_enable=criteria_enable)
38
39 def _setup_scenario_trigger(self, config):
40 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected