2026-08-03 22:14:37 +08:00
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace EMPlannerVerificationHost;
|
|
|
|
|
|
|
|
|
|
internal static class Program
|
|
|
|
|
{
|
|
|
|
|
private static int Main(string[] args)
|
|
|
|
|
{
|
2026-08-03 22:49:05 +08:00
|
|
|
if (args.Length != 1 || (args[0] != "foundation" && args[0] != "segmentation" && args[0] != "frenet" &&
|
|
|
|
|
args[0] != "corridor" && args[0] != "all-foundation"))
|
2026-08-03 22:14:37 +08:00
|
|
|
{
|
2026-08-03 22:49:05 +08:00
|
|
|
Console.Error.WriteLine("Usage: EMPlannerVerificationHost foundation|segmentation|frenet|corridor|all-foundation");
|
2026-08-03 22:14:37 +08:00
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
2026-08-03 22:49:05 +08:00
|
|
|
if (args[0] == "foundation" || args[0] == "all-foundation")
|
2026-08-03 22:27:00 +08:00
|
|
|
{
|
|
|
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.FoundationChecks.Run();
|
|
|
|
|
Console.WriteLine("PASS foundation");
|
|
|
|
|
}
|
2026-08-03 22:49:05 +08:00
|
|
|
if (args[0] == "segmentation" || args[0] == "all-foundation")
|
2026-08-03 22:27:00 +08:00
|
|
|
{
|
|
|
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.SegmentationChecks.Run();
|
|
|
|
|
Console.WriteLine("PASS segmentation");
|
|
|
|
|
}
|
2026-08-03 22:49:05 +08:00
|
|
|
if (args[0] == "frenet" || args[0] == "all-foundation")
|
2026-08-03 22:43:39 +08:00
|
|
|
{
|
|
|
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.FrenetChecks.Run();
|
|
|
|
|
Console.WriteLine("PASS frenet");
|
|
|
|
|
}
|
2026-08-03 22:49:05 +08:00
|
|
|
if (args[0] == "corridor" || args[0] == "all-foundation")
|
|
|
|
|
{
|
|
|
|
|
MultiWheelC.TrajectoryPlanning.EMPlanner.CorridorChecks.Run();
|
|
|
|
|
Console.WriteLine("PASS corridor");
|
|
|
|
|
}
|
2026-08-03 22:14:37 +08:00
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception exception)
|
|
|
|
|
{
|
|
|
|
|
Console.Error.WriteLine(exception);
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|