-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscenario.py
40 lines (20 loc) · 964 Bytes
/
scenario.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class NPC:
def __init__(self, road_id: int, init_s: float, init_t: float, init_speed: float):
pass
def speedAction(self, target_speed: float, rate: float, trigger_time: float):
pass
def laneChangeAction(self, relative_target_lane: int, target_lane_offset: float, lane_change_time: float, trigger_time: float):
pass
def laneOffsetAction(self, offset_distance: float, max_lateral_acc: float, trigger_time: float):
pass
class Road:
def __init__(self, curv_start: float, curv_end: float, length: float, lane_num: int, lane_width: float):
pass
def contract(self, start_position: float, deformation_length: float):
pass
def expand(self, start_position: float, deformation_length: float):
pass
def merge(self, start_position: float, curvature: float, lanes: int):
pass
def split(self, start_position: float, curvature: float, lanes: int):
pass