namespace MultiWheelC.TrajectoryPlanning.EMPlanner; /// /// 纵向 QP 目标函数的权重快照;权重只改变偏好而不放宽硬约束。 /// public sealed class LongitudinalWeights { /// /// 惩罚偏离参考速度的权重;无量纲,默认值 10,必须为非负有限值。 /// public double ReferenceSpeed { get; set; } /// /// 惩罚纵向加速度的权重;无量纲,默认值 1,必须为非负有限值。 /// public double Acceleration { get; set; } /// /// 惩罚纵向加加速度的权重;无量纲,默认值 10,必须为非负有限值。 /// public double Jerk { get; set; } /// /// 惩罚偏离上一条轨迹速度解的权重;无量纲,默认值 5,必须为非负有限值。 /// public double PreviousTrajectory { get; set; } /// /// 惩罚末端加速度的权重;无量纲,默认值 1,必须为非负有限值。 /// public double TerminalAcceleration { get; set; } /// /// 复制当前纵向权重;输入为当前五个标量,输出为无共享可变状态的标量快照,不对数值作校验且不产生失败状态。 /// internal LongitudinalWeights Copy() { return new LongitudinalWeights { ReferenceSpeed = ReferenceSpeed, Acceleration = Acceleration, Jerk = Jerk, PreviousTrajectory = PreviousTrajectory, TerminalAcceleration = TerminalAcceleration, }; } }