feat: optimize lateral paths with SQP

This commit is contained in:
梁薄云
2026-08-04 08:46:24 +08:00
parent f5c69c252b
commit f19df53f73
5 changed files with 583 additions and 5 deletions
@@ -0,0 +1,20 @@
using System;
using System.Threading;
namespace MultiWheelC.TrajectoryPlanning.EMPlanner;
/// <summary>Public lateral-planning entry point backed by the solver-neutral SQP optimizer.</summary>
public sealed class LateralPlanner
{
private readonly SequentialConvexOptimizer _optimizer;
public LateralPlanner(IQpSolver qpSolver)
{
_optimizer = new SequentialConvexOptimizer(qpSolver ?? throw new ArgumentNullException(nameof(qpSolver)));
}
public LateralPlanningResult Plan(LateralPlanningInput input, CancellationToken cancellationToken)
{
return _optimizer.Optimize(input, cancellationToken);
}
}