自动驾驶云服务 OCTOPUS-straight城区直行
straight城区直行
- 用途:创建straight城区直行的静态场景(地图)
- 参数:参数如下表.
表1 straight城区直行参数 Parameter
Type
Mandatory
Description
lane_width
length
yes
每个车道宽度.
left_lane_num
int
yes
左侧车道数量.
right_lane_num
int
yes
右侧车道数量.
bikeway
bool
yes
是否有自行车道.
sidewalk
bool
yes
是否有人行道.
main_speed
speed
yes
主路的限速值.
road_length
length
yes
主路的长度.
- 参数取值范围:
lane_width: length = [3m..4m] left_lane_num: int = [0, 1, 2, 3, 4] right_lane_num: int = [1, 2, 3, 4] bikeway: bool = [true, false] sidewalk: bool = [true, false] main_speed: speed = [40kph..60kph] road_length: length = [150m..500m]
my_straight: straight with: keep(it.lane_width == 3m) keep(it.left_lane_num == 0) keep(it.right_lane_num == 3) keep(it.bikeway == false) keep(it.sidewalk == false) keep(it.main_speed == 60kph) keep(it.road_length == 500m)
create创建
my_straight: straight = scenery.create_straight(lane_width: 3m, left_lane_num: 0, right_lane_num: 3, bikeway: false, sidewalk: false, main_speed: 60kph, road_length: 500m)