| 30 | print("----------------Eval with Longest6, PENALTY_STOP=1.0") |
| 31 | |
| 32 | class 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 | |
| 58 | def to_route_record(record_dict): |
no outgoing calls
no test coverage detected