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,