Beispiel #1
0
 public void MergeFrom(PredictionObstacle other)
 {
     if (other == null)
     {
         return;
     }
     if (other.perceptionObstacle_ != null)
     {
         if (perceptionObstacle_ == null)
         {
             perceptionObstacle_ = new global::Apollo.Perception.PerceptionObstacle();
         }
         PerceptionObstacle.MergeFrom(other.PerceptionObstacle);
     }
     if (other.Timestamp != 0D)
     {
         Timestamp = other.Timestamp;
     }
     if (other.PredictedPeriod != 0D)
     {
         PredictedPeriod = other.PredictedPeriod;
     }
     trajectory_.Add(other.trajectory_);
     if (other.intent_ != null)
     {
         if (intent_ == null)
         {
             intent_ = new global::Apollo.Prediction.ObstacleIntent();
         }
         Intent.MergeFrom(other.Intent);
     }
     if (other.priority_ != null)
     {
         if (priority_ == null)
         {
             priority_ = new global::Apollo.Prediction.ObstaclePriority();
         }
         Priority.MergeFrom(other.Priority);
     }
     if (other.IsStatic != false)
     {
         IsStatic = other.IsStatic;
     }
 }