From 3cbaf3b3b9e7a1e1844d4c31e050ca7c7e4ed20b Mon Sep 17 00:00:00 2001 From: weizhihong Date: Wed, 6 Sep 2023 10:26:26 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=94=BE=E5=BC=80=E5=9D=A1=E5=BA=A6?= =?UTF-8?q?=E6=9B=B2=E5=BA=A6=E6=B3=A8=E9=87=8A=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ats/verify/simulation/simulation_manage.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ats/verify/simulation/simulation_manage.go b/ats/verify/simulation/simulation_manage.go index 81fa645..43c9941 100644 --- a/ats/verify/simulation/simulation_manage.go +++ b/ats/verify/simulation/simulation_manage.go @@ -236,6 +236,28 @@ func buildLineBaseInfo(vs *memory.VerifyStructure) *dynamics.LineBaseInfo { BRelTurnoutPoint: bPort, }) } + for _, slope := range vs.SlopeModelMap { + id, _ := strconv.Atoi(slope.Index) + slopes = append(slopes, &dynamics.Slope{ + ID: int32(id), + StartLinkId: slope.StartLinkIndex, + StartLinkOffset: slope.StartLinkOffset, + EndLinkId: slope.EndLinkIndex, + EndLinkOffset: slope.EndLinkOffset, + DegreeTrig: slope.DegreeTrig, + }) + } + for _, curve := range vs.CurveModelMap { + id, _ := strconv.Atoi(curve.Index) + curves = append(curves, &dynamics.Curve{ + ID: int32(id), + StartLinkId: curve.StartLinkIndex, + StartLinkOffset: curve.StartLinkOffset, + EndLinkId: curve.EndLinkIndex, + EndLinkOffset: curve.EndLinkOffset, + Curvature: curve.Curvature, + }) + } return &dynamics.LineBaseInfo{ LinkList: links, SlopeList: slopes,