Beispiel #1
0
 public void MergeFrom(NavigationRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TimeStamp != 0D)
     {
         TimeStamp = other.TimeStamp;
     }
     if (other.position_ != null)
     {
         if (position_ == null)
         {
             Position = new global::Navigation.Vec3();
         }
         Position.MergeFrom(other.Position);
     }
     if (other.orientation_ != null)
     {
         if (orientation_ == null)
         {
             Orientation = new global::Navigation.Quaternion();
         }
         Orientation.MergeFrom(other.Orientation);
     }
     if (other.linearVelocity_ != null)
     {
         if (linearVelocity_ == null)
         {
             LinearVelocity = new global::Navigation.Vec3();
         }
         LinearVelocity.MergeFrom(other.LinearVelocity);
     }
     if (other.angularVelocity_ != null)
     {
         if (angularVelocity_ == null)
         {
             AngularVelocity = new global::Navigation.Vec3();
         }
         AngularVelocity.MergeFrom(other.AngularVelocity);
     }
     if (other.VesselName.Length != 0)
     {
         VesselName = other.VesselName;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #2
0
 public void MergeFrom(Pose other)
 {
     if (other == null)
     {
         return;
     }
     if (other.position_ != null)
     {
         if (position_ == null)
         {
             position_ = new global::Apollo.Common.PointENU();
         }
         Position.MergeFrom(other.Position);
     }
     if (other.orientation_ != null)
     {
         if (orientation_ == null)
         {
             orientation_ = new global::Apollo.Common.Quaternion();
         }
         Orientation.MergeFrom(other.Orientation);
     }
     if (other.linearVelocity_ != null)
     {
         if (linearVelocity_ == null)
         {
             linearVelocity_ = new global::Apollo.Common.Point3D();
         }
         LinearVelocity.MergeFrom(other.LinearVelocity);
     }
     if (other.linearAcceleration_ != null)
     {
         if (linearAcceleration_ == null)
         {
             linearAcceleration_ = new global::Apollo.Common.Point3D();
         }
         LinearAcceleration.MergeFrom(other.LinearAcceleration);
     }
     if (other.angularVelocity_ != null)
     {
         if (angularVelocity_ == null)
         {
             angularVelocity_ = new global::Apollo.Common.Point3D();
         }
         AngularVelocity.MergeFrom(other.AngularVelocity);
     }
     if (other.Heading != 0D)
     {
         Heading = other.Heading;
     }
     if (other.linearAccelerationVrf_ != null)
     {
         if (linearAccelerationVrf_ == null)
         {
             linearAccelerationVrf_ = new global::Apollo.Common.Point3D();
         }
         LinearAccelerationVrf.MergeFrom(other.LinearAccelerationVrf);
     }
     if (other.angularVelocityVrf_ != null)
     {
         if (angularVelocityVrf_ == null)
         {
             angularVelocityVrf_ = new global::Apollo.Common.Point3D();
         }
         AngularVelocityVrf.MergeFrom(other.AngularVelocityVrf);
     }
     if (other.eulerAngles_ != null)
     {
         if (eulerAngles_ == null)
         {
             eulerAngles_ = new global::Apollo.Common.Point3D();
         }
         EulerAngles.MergeFrom(other.EulerAngles);
     }
 }
Beispiel #3
0
 public void MergeFrom(Ins other)
 {
     if (other == null)
     {
         return;
     }
     if (other.header_ != null)
     {
         if (header_ == null)
         {
             header_ = new global::Apollo.Common.Header();
         }
         Header.MergeFrom(other.Header);
     }
     if (other.MeasurementTime != 0D)
     {
         MeasurementTime = other.MeasurementTime;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.position_ != null)
     {
         if (position_ == null)
         {
             position_ = new global::Apollo.Common.PointLLH();
         }
         Position.MergeFrom(other.Position);
     }
     if (other.eulerAngles_ != null)
     {
         if (eulerAngles_ == null)
         {
             eulerAngles_ = new global::Apollo.Common.Point3D();
         }
         EulerAngles.MergeFrom(other.EulerAngles);
     }
     if (other.linearVelocity_ != null)
     {
         if (linearVelocity_ == null)
         {
             linearVelocity_ = new global::Apollo.Common.Point3D();
         }
         LinearVelocity.MergeFrom(other.LinearVelocity);
     }
     if (other.angularVelocity_ != null)
     {
         if (angularVelocity_ == null)
         {
             angularVelocity_ = new global::Apollo.Common.Point3D();
         }
         AngularVelocity.MergeFrom(other.AngularVelocity);
     }
     if (other.linearAcceleration_ != null)
     {
         if (linearAcceleration_ == null)
         {
             linearAcceleration_ = new global::Apollo.Common.Point3D();
         }
         LinearAcceleration.MergeFrom(other.LinearAcceleration);
     }
     positionCovariance_.Add(other.positionCovariance_);
     eulerAnglesCovariance_.Add(other.eulerAnglesCovariance_);
     linearVelocityCovariance_.Add(other.linearVelocityCovariance_);
     angularVelocityCovariance_.Add(other.angularVelocityCovariance_);
     linearAccelerationCovariance_.Add(other.linearAccelerationCovariance_);
 }