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

时间:2023-12-19 19:10:32

修饰器 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/toctopics/zh-cn_topic_0000001673584245.html