feat: add bounded visualization snapshots

This commit is contained in:
梁薄云
2026-08-06 09:27:58 +08:00
parent 55d8e1eebf
commit ab8e4010f8
6 changed files with 269 additions and 0 deletions
@@ -0,0 +1,21 @@
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace TrajectoryPlanningVisualization;
public static class VisualizationJson
{
private static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
{
ContractResolver = new CamelCasePropertyNamesContractResolver(),
Culture = CultureInfo.InvariantCulture,
DateFormatHandling = DateFormatHandling.IsoDateFormat,
Formatting = Formatting.None
};
public static string Serialize(object value)
{
return JsonConvert.SerializeObject(value, Settings);
}
}