更新时间:2024-05-13 GMT+08:00
分享

修饰器 position

用途:设定动作主体actor 所处的车道.可以修饰初始动作assign_init_position .

参数

表1 position参数

Parameter

Type

Mandatory

Description

distance

length

no

A target length value including a length unit. The distance is calculated using the route-based s-coordinate.

ahead_of

entity

no

specified by the lane-parameter.

behind

entity

no

When behind is specified, the actor must be behind the entity by the specified value.

代码样例

cut_in_vehicle.assign_init_position() with:
    lane(lane: raletive_lane_id, side_of: ego, side: left)
    position(distance: 85.0m, behind: ego)
分享:

    相关文档

    相关产品