36 lines
938 B
C#
36 lines
938 B
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"))
|
|
{
|
|
Console.Error.WriteLine("Usage: EMPlannerVerificationHost foundation|segmentation");
|
|
return 2;
|
|
}
|
|
|
|
try
|
|
{
|
|
if (args[0] == "foundation")
|
|
{
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.FoundationChecks.Run();
|
|
Console.WriteLine("PASS foundation");
|
|
}
|
|
else
|
|
{
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.SegmentationChecks.Run();
|
|
Console.WriteLine("PASS segmentation");
|
|
}
|
|
return 0;
|
|
}
|
|
catch (Exception exception)
|
|
{
|
|
Console.Error.WriteLine(exception);
|
|
return 1;
|
|
}
|
|
}
|
|
}
|