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

Class RouteRecord

leaderboard/leaderboard/utils/statistics_manager.py:32–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 print("----------------Eval with Longest6, PENALTY_STOP=1.0")
31
32class RouteRecord():
33 def __init__(self):
34 self.route_id = None
35 self.index = None
36 self.status = 'Started'
37 self.infractions = {
38 'collisions_pedestrian': [],
39 'collisions_vehicle': [],
40 'collisions_layout': [],
41 'red_light': [],
42 'stop_infraction': [],
43 'outside_route_lanes': [],
44 'route_dev': [],
45 'route_timeout': [],
46 'vehicle_blocked': []
47 }
48
49 self.scores = {
50 'score_route': 0,
51 'score_penalty': 0,
52 'score_composed': 0
53 }
54
55 self.meta = {}
56
57
58def to_route_record(record_dict):

Callers 3

to_route_recordFunction · 0.85
set_routeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected