41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace EMPlannerVerificationHost;
|
|
|
|
internal static class Program
|
|
{
|
|
private static int Main(string[] args)
|
|
{
|
|
if (args.Length != 1 || (args[0] != "foundation" && args[0] != "segmentation" && args[0] != "frenet"))
|
|
{
|
|
Console.Error.WriteLine("Usage: EMPlannerVerificationHost foundation|segmentation|frenet");
|
|
return 2;
|
|
}
|
|
|
|
try
|
|
{
|
|
if (args[0] == "foundation")
|
|
{
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.FoundationChecks.Run();
|
|
Console.WriteLine("PASS foundation");
|
|
}
|
|
else if (args[0] == "segmentation")
|
|
{
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.SegmentationChecks.Run();
|
|
Console.WriteLine("PASS segmentation");
|
|
}
|
|
else
|
|
{
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.FrenetChecks.Run();
|
|
Console.WriteLine("PASS frenet");
|
|
}
|
|
return 0;
|
|
}
|
|
catch (Exception exception)
|
|
{
|
|
Console.Error.WriteLine(exception);
|
|
return 1;
|
|
}
|
|
}
|
|
}
|