Esempio n. 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (waypointSamplerConfig_ == null)
                    {
                        waypointSamplerConfig_ = new global::Apollo.Planning.WaypointSamplerConfig();
                    }
                    input.ReadMessage(waypointSamplerConfig_);
                    break;
                }

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

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

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

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

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

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

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

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

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

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

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

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

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

                case 121: {
                    PathEndLCost = input.ReadDouble();
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(DpPolyPathConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.waypointSamplerConfig_ != null)
     {
         if (waypointSamplerConfig_ == null)
         {
             waypointSamplerConfig_ = new global::Apollo.Planning.WaypointSamplerConfig();
         }
         WaypointSamplerConfig.MergeFrom(other.WaypointSamplerConfig);
     }
     if (other.EvalTimeInterval != 0D)
     {
         EvalTimeInterval = other.EvalTimeInterval;
     }
     if (other.PathResolution != 0D)
     {
         PathResolution = other.PathResolution;
     }
     if (other.ObstacleIgnoreDistance != 0D)
     {
         ObstacleIgnoreDistance = other.ObstacleIgnoreDistance;
     }
     if (other.ObstacleCollisionDistance != 0D)
     {
         ObstacleCollisionDistance = other.ObstacleCollisionDistance;
     }
     if (other.ObstacleRiskDistance != 0D)
     {
         ObstacleRiskDistance = other.ObstacleRiskDistance;
     }
     if (other.ObstacleCollisionCost != 0D)
     {
         ObstacleCollisionCost = other.ObstacleCollisionCost;
     }
     if (other.PathLCost != 0D)
     {
         PathLCost = other.PathLCost;
     }
     if (other.PathDlCost != 0D)
     {
         PathDlCost = other.PathDlCost;
     }
     if (other.PathDdlCost != 0D)
     {
         PathDdlCost = other.PathDdlCost;
     }
     if (other.PathLCostParamL0 != 0D)
     {
         PathLCostParamL0 = other.PathLCostParamL0;
     }
     if (other.PathLCostParamB != 0D)
     {
         PathLCostParamB = other.PathLCostParamB;
     }
     if (other.PathLCostParamK != 0D)
     {
         PathLCostParamK = other.PathLCostParamK;
     }
     if (other.PathOutLaneCost != 0D)
     {
         PathOutLaneCost = other.PathOutLaneCost;
     }
     if (other.PathEndLCost != 0D)
     {
         PathEndLCost = other.PathEndLCost;
     }
 }