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

Method _run_route

scenario_runner/scenario_runner.py:437–458  ·  view source on GitHub ↗

Run the route scenario

(self)

Source from the content-addressed store, hash-verified

435 return result
436
437 def _run_route(self):
438 """
439 Run the route scenario
440 """
441 result = False
442
443 if self._args.route:
444 routes = self._args.route[0]
445 scenario_file = self._args.route[1]
446 single_route = None
447 if len(self._args.route) > 2:
448 single_route = self._args.route[2]
449
450 # retrieve routes
451 route_configurations = RouteParser.parse_routes_file(routes, scenario_file, single_route)
452
453 for config in route_configurations:
454 for _ in range(self._args.repetitions):
455 result = self._load_and_run_scenario(config)
456
457 self._cleanup()
458 return result
459
460 def _run_openscenario(self):
461 """

Callers 1

runMethod · 0.95

Calls 3

_cleanupMethod · 0.95
parse_routes_fileMethod · 0.45

Tested by

no test coverage detected