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

动作 change_speed

  • 动作主体:车辆vehicle 或行人pedestrian .
  • 结束时间:当动作主体actor 达到目标速度target ,动作结束
  • 是否支持modifier:否
  • 参数:参数如下表,支持位置参数和关键字参数.
表1 change_speed参数

Parameter

Type

Mandatory

Description

reference

entity

no

Default=it.actor. Reference to the entity that is used to determine the target speed. If this argument is omitted, the actor itself is used as reference.

target

speed

yes

Target value for the speed at the end of the action.

rate_profile

dynamics_shape

yes

Assign a shape for the change of the speed variable. This profile affects the acceleration during action execution.

rate_peak

acceleration

yes

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

  • 目标速度不能超出所在道路的限速值.
  • 当rate_profile为step时,瞬间达到目标速度,不会受到rate_peak值的影响

样例

m_profile: dynamics_shape = sinusoidal
Ego.change_speed(reference: lead_vehicle, target: -5.0mps, rate_profile: m_profile, rate_peak: 2mpss)
分享:

    相关文档

    相关产品