自动驾驶云服务 OCTOPUS-修饰器 position

时间:2024-09-06 18:25:52

修饰器 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)
support.huaweicloud.com/usermanual-octopus/octopus-13-0036.html