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

动作 lane_offset

  • 动作主体:车辆vehicle
  • 结束时间:当动作主体actor 到达目标偏移offset 处时,动作结束.
  • 是否支持modifier:否
  • 参数:参数如下表,支持位置参数和关键字参数.参数target 非必选项,不设置target 时采用绝对偏移,设置target 时采用相对偏移.
表1 lane_offset参数

Parameter

Type

Mandatory

Description

offset

length

yes

Signed number in meters the vehicle should respect as an offset from the center of the current lane.

rate_peak

speed

yes

Target value for the peak lateral velocity that must be achieved during the action.

dynamics_shape

dynamics_shape

yes

Geometrical shape of the LaneOffsetAction's dynamics.

target

entity

no

Reference entity.

  • offset值不能超出当前所在lane的宽度范围.

绝对偏移

m_shape: dynamics_shape = step
Ego.lane_offset(0.8m, 0.5mps, m_shape)

相对偏移

m_shape: dynamics_shape = linear
side_vehicle.lane_offset(offset:1.0m, rate_peak: 1.5mps, dynamics_shape:m_shape, target: Ego)
分享:

    相关文档

    相关产品