Esempio n. 1
0
 public void MergeFrom(PolyStSpeedConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TotalPathLength != 0D)
     {
         TotalPathLength = other.TotalPathLength;
     }
     if (other.TotalTime != 0D)
     {
         TotalTime = other.TotalTime;
     }
     if (other.PreferredAccel != 0D)
     {
         PreferredAccel = other.PreferredAccel;
     }
     if (other.PreferredDecel != 0D)
     {
         PreferredDecel = other.PreferredDecel;
     }
     if (other.MaxAccel != 0D)
     {
         MaxAccel = other.MaxAccel;
     }
     if (other.MinDecel != 0D)
     {
         MinDecel = other.MinDecel;
     }
     if (other.SpeedLimitBuffer != 0D)
     {
         SpeedLimitBuffer = other.SpeedLimitBuffer;
     }
     if (other.SpeedWeight != 0D)
     {
         SpeedWeight = other.SpeedWeight;
     }
     if (other.JerkWeight != 0D)
     {
         JerkWeight = other.JerkWeight;
     }
     if (other.ObstacleWeight != 0D)
     {
         ObstacleWeight = other.ObstacleWeight;
     }
     if (other.UnblockingObstacleCost != 0D)
     {
         UnblockingObstacleCost = other.UnblockingObstacleCost;
     }
     if (other.stBoundaryConfig_ != null)
     {
         if (stBoundaryConfig_ == null)
         {
             stBoundaryConfig_ = new global::Apollo.Planning.StBoundaryConfig();
         }
         StBoundaryConfig.MergeFrom(other.StBoundaryConfig);
     }
 }
Esempio n. 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 9: {
                    TotalPathLength = input.ReadDouble();
                    break;
                }

                case 17: {
                    TotalTime = input.ReadDouble();
                    break;
                }

                case 25: {
                    PreferredAccel = input.ReadDouble();
                    break;
                }

                case 33: {
                    PreferredDecel = input.ReadDouble();
                    break;
                }

                case 41: {
                    MaxAccel = input.ReadDouble();
                    break;
                }

                case 49: {
                    MinDecel = input.ReadDouble();
                    break;
                }

                case 57: {
                    SpeedLimitBuffer = input.ReadDouble();
                    break;
                }

                case 65: {
                    SpeedWeight = input.ReadDouble();
                    break;
                }

                case 73: {
                    JerkWeight = input.ReadDouble();
                    break;
                }

                case 81: {
                    ObstacleWeight = input.ReadDouble();
                    break;
                }

                case 89: {
                    UnblockingObstacleCost = input.ReadDouble();
                    break;
                }

                case 98: {
                    if (stBoundaryConfig_ == null)
                    {
                        stBoundaryConfig_ = new global::Apollo.Planning.StBoundaryConfig();
                    }
                    input.ReadMessage(stBoundaryConfig_);
                    break;
                }
                }
            }
        }
Esempio n. 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 9: {
                    TotalPathLength = input.ReadDouble();
                    break;
                }

                case 17: {
                    TotalTime = input.ReadDouble();
                    break;
                }

                case 24: {
                    MatrixDimensionS = input.ReadInt32();
                    break;
                }

                case 32: {
                    MatrixDimensionT = input.ReadInt32();
                    break;
                }

                case 41: {
                    SpeedWeight = input.ReadDouble();
                    break;
                }

                case 49: {
                    AccelWeight = input.ReadDouble();
                    break;
                }

                case 57: {
                    JerkWeight = input.ReadDouble();
                    break;
                }

                case 65: {
                    ObstacleWeight = input.ReadDouble();
                    break;
                }

                case 73: {
                    ReferenceWeight = input.ReadDouble();
                    break;
                }

                case 81: {
                    GoDownBuffer = input.ReadDouble();
                    break;
                }

                case 89: {
                    GoUpBuffer = input.ReadDouble();
                    break;
                }

                case 97: {
                    DefaultObstacleCost = input.ReadDouble();
                    break;
                }

                case 105: {
                    DefaultSpeedCost = input.ReadDouble();
                    break;
                }

                case 113: {
                    ExceedSpeedPenalty = input.ReadDouble();
                    break;
                }

                case 121: {
                    LowSpeedPenalty = input.ReadDouble();
                    break;
                }

                case 129: {
                    KeepClearLowSpeedPenalty = input.ReadDouble();
                    break;
                }

                case 161: {
                    AccelPenalty = input.ReadDouble();
                    break;
                }

                case 169: {
                    DecelPenalty = input.ReadDouble();
                    break;
                }

                case 241: {
                    PositiveJerkCoeff = input.ReadDouble();
                    break;
                }

                case 249: {
                    NegativeJerkCoeff = input.ReadDouble();
                    break;
                }

                case 321: {
                    MaxAcceleration = input.ReadDouble();
                    break;
                }

                case 329: {
                    MaxDeceleration = input.ReadDouble();
                    break;
                }

                case 402: {
                    if (stBoundaryConfig_ == null)
                    {
                        stBoundaryConfig_ = new global::Apollo.Planning.StBoundaryConfig();
                    }
                    input.ReadMessage(stBoundaryConfig_);
                    break;
                }
                }
            }
        }
Esempio n. 4
0
 public void MergeFrom(DpStSpeedConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TotalPathLength != 0D)
     {
         TotalPathLength = other.TotalPathLength;
     }
     if (other.TotalTime != 0D)
     {
         TotalTime = other.TotalTime;
     }
     if (other.MatrixDimensionS != 0)
     {
         MatrixDimensionS = other.MatrixDimensionS;
     }
     if (other.MatrixDimensionT != 0)
     {
         MatrixDimensionT = other.MatrixDimensionT;
     }
     if (other.SpeedWeight != 0D)
     {
         SpeedWeight = other.SpeedWeight;
     }
     if (other.AccelWeight != 0D)
     {
         AccelWeight = other.AccelWeight;
     }
     if (other.JerkWeight != 0D)
     {
         JerkWeight = other.JerkWeight;
     }
     if (other.ObstacleWeight != 0D)
     {
         ObstacleWeight = other.ObstacleWeight;
     }
     if (other.ReferenceWeight != 0D)
     {
         ReferenceWeight = other.ReferenceWeight;
     }
     if (other.GoDownBuffer != 0D)
     {
         GoDownBuffer = other.GoDownBuffer;
     }
     if (other.GoUpBuffer != 0D)
     {
         GoUpBuffer = other.GoUpBuffer;
     }
     if (other.DefaultObstacleCost != 0D)
     {
         DefaultObstacleCost = other.DefaultObstacleCost;
     }
     if (other.DefaultSpeedCost != 0D)
     {
         DefaultSpeedCost = other.DefaultSpeedCost;
     }
     if (other.ExceedSpeedPenalty != 0D)
     {
         ExceedSpeedPenalty = other.ExceedSpeedPenalty;
     }
     if (other.LowSpeedPenalty != 0D)
     {
         LowSpeedPenalty = other.LowSpeedPenalty;
     }
     if (other.KeepClearLowSpeedPenalty != 0D)
     {
         KeepClearLowSpeedPenalty = other.KeepClearLowSpeedPenalty;
     }
     if (other.AccelPenalty != 0D)
     {
         AccelPenalty = other.AccelPenalty;
     }
     if (other.DecelPenalty != 0D)
     {
         DecelPenalty = other.DecelPenalty;
     }
     if (other.PositiveJerkCoeff != 0D)
     {
         PositiveJerkCoeff = other.PositiveJerkCoeff;
     }
     if (other.NegativeJerkCoeff != 0D)
     {
         NegativeJerkCoeff = other.NegativeJerkCoeff;
     }
     if (other.MaxAcceleration != 0D)
     {
         MaxAcceleration = other.MaxAcceleration;
     }
     if (other.MaxDeceleration != 0D)
     {
         MaxDeceleration = other.MaxDeceleration;
     }
     if (other.stBoundaryConfig_ != null)
     {
         if (stBoundaryConfig_ == null)
         {
             stBoundaryConfig_ = new global::Apollo.Planning.StBoundaryConfig();
         }
         StBoundaryConfig.MergeFrom(other.StBoundaryConfig);
     }
 }
Esempio n. 5
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 9: {
                    TotalTime = input.ReadDouble();
                    break;
                }

                case 17: {
                    TotalS = input.ReadDouble();
                    break;
                }

                case 24: {
                    NumTLayers = input.ReadInt32();
                    break;
                }

                case 32: {
                    OnlineNumVLayers = input.ReadInt32();
                    break;
                }

                case 40: {
                    MatrixDimS = input.ReadInt32();
                    break;
                }

                case 49: {
                    OnlineMaxAcc = input.ReadDouble();
                    break;
                }

                case 57: {
                    OnlineMaxDec = input.ReadDouble();
                    break;
                }

                case 65: {
                    OnlineMaxSpeed = input.ReadDouble();
                    break;
                }

                case 72: {
                    OfflineNumVLayers = input.ReadInt32();
                    break;
                }

                case 81: {
                    OfflineMaxAcc = input.ReadDouble();
                    break;
                }

                case 89: {
                    OfflineMaxDec = input.ReadDouble();
                    break;
                }

                case 97: {
                    OfflineMaxSpeed = input.ReadDouble();
                    break;
                }

                case 104: {
                    NumEvaluatedPoints = input.ReadInt32();
                    break;
                }

                case 113: {
                    SamplingUnitV = input.ReadDouble();
                    break;
                }

                case 121: {
                    MaxSamplingUnitV = input.ReadDouble();
                    break;
                }

                case 130: {
                    if (stBoundaryConfig_ == null)
                    {
                        stBoundaryConfig_ = new global::Apollo.Planning.StBoundaryConfig();
                    }
                    input.ReadMessage(stBoundaryConfig_);
                    break;
                }
                }
            }
        }
Esempio n. 6
0
 public void MergeFrom(PolyVTSpeedConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TotalTime != 0D)
     {
         TotalTime = other.TotalTime;
     }
     if (other.TotalS != 0D)
     {
         TotalS = other.TotalS;
     }
     if (other.NumTLayers != 0)
     {
         NumTLayers = other.NumTLayers;
     }
     if (other.OnlineNumVLayers != 0)
     {
         OnlineNumVLayers = other.OnlineNumVLayers;
     }
     if (other.MatrixDimS != 0)
     {
         MatrixDimS = other.MatrixDimS;
     }
     if (other.OnlineMaxAcc != 0D)
     {
         OnlineMaxAcc = other.OnlineMaxAcc;
     }
     if (other.OnlineMaxDec != 0D)
     {
         OnlineMaxDec = other.OnlineMaxDec;
     }
     if (other.OnlineMaxSpeed != 0D)
     {
         OnlineMaxSpeed = other.OnlineMaxSpeed;
     }
     if (other.OfflineNumVLayers != 0)
     {
         OfflineNumVLayers = other.OfflineNumVLayers;
     }
     if (other.OfflineMaxAcc != 0D)
     {
         OfflineMaxAcc = other.OfflineMaxAcc;
     }
     if (other.OfflineMaxDec != 0D)
     {
         OfflineMaxDec = other.OfflineMaxDec;
     }
     if (other.OfflineMaxSpeed != 0D)
     {
         OfflineMaxSpeed = other.OfflineMaxSpeed;
     }
     if (other.NumEvaluatedPoints != 0)
     {
         NumEvaluatedPoints = other.NumEvaluatedPoints;
     }
     if (other.SamplingUnitV != 0D)
     {
         SamplingUnitV = other.SamplingUnitV;
     }
     if (other.MaxSamplingUnitV != 0D)
     {
         MaxSamplingUnitV = other.MaxSamplingUnitV;
     }
     if (other.stBoundaryConfig_ != null)
     {
         if (stBoundaryConfig_ == null)
         {
             stBoundaryConfig_ = new global::Apollo.Planning.StBoundaryConfig();
         }
         StBoundaryConfig.MergeFrom(other.StBoundaryConfig);
     }
 }