feat: 迁入 MiGu.Server、平台前端与车辆列表 reflection 回退
从 Simple-FR 拆出 Platform.Server 并重命名为 MiGu.Server;frontends 源码与构建脚本迁入本仓库。地图监控在 projection/cars 失败或为空时回退 reflection 车辆列表;Simple 仓库已移除旧 Platform.Server。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
namespace MiGu.Server.Configs;
|
||||
|
||||
public record AvoidanceRule(string Id, string ZoneId, string Rule);
|
||||
public record ZoneSpeedLimit(string ZoneId, double MaxSpeedMps);
|
||||
|
||||
public record RoutingPolicy(
|
||||
string Algorithm,
|
||||
Dictionary<string, double> Weights,
|
||||
List<AvoidanceRule> Avoidance,
|
||||
List<ZoneSpeedLimit> ZoneSpeedLimits)
|
||||
{
|
||||
public static RoutingPolicy Default() => new(
|
||||
Algorithm: "astar",
|
||||
Weights: new Dictionary<string, double>
|
||||
{
|
||||
["distance"] = 1.0,
|
||||
["congestion"] = 0.5,
|
||||
["turnPenalty"] = 0.2
|
||||
},
|
||||
Avoidance: new List<AvoidanceRule> { new("AV1", "Z-NORTH", "no-entry-while-loading") },
|
||||
ZoneSpeedLimits: new List<ZoneSpeedLimit> { new("Z-NARROW", 0.5) });
|
||||
}
|
||||
Reference in New Issue
Block a user