feat: validate EM planner requests
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
namespace MultiWheelC.TrajectoryPlanning.EMPlanner;
|
||||
|
||||
public sealed class SolverConfiguration
|
||||
{
|
||||
public int MaximumOuterIterations { get; set; }
|
||||
public int MaximumOsqpIterations { get; set; }
|
||||
public double AbsoluteTolerance { get; set; }
|
||||
public double RelativeTolerance { get; set; }
|
||||
public double StrictResidualTolerance { get; set; }
|
||||
public bool WarmStart { get; set; }
|
||||
public bool Polish { get; set; }
|
||||
public bool NativeVerbose { get; set; }
|
||||
|
||||
internal SolverConfiguration Copy()
|
||||
{
|
||||
return new SolverConfiguration
|
||||
{
|
||||
MaximumOuterIterations = MaximumOuterIterations,
|
||||
MaximumOsqpIterations = MaximumOsqpIterations,
|
||||
AbsoluteTolerance = AbsoluteTolerance,
|
||||
RelativeTolerance = RelativeTolerance,
|
||||
StrictResidualTolerance = StrictResidualTolerance,
|
||||
WarmStart = WarmStart,
|
||||
Polish = Polish,
|
||||
NativeVerbose = NativeVerbose,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user