Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (positionStdDev_ != null)
            {
                hash ^= PositionStdDev.GetHashCode();
            }
            if (orientationStdDev_ != null)
            {
                hash ^= OrientationStdDev.GetHashCode();
            }
            if (linearVelocityStdDev_ != null)
            {
                hash ^= LinearVelocityStdDev.GetHashCode();
            }
            if (linearAccelerationStdDev_ != null)
            {
                hash ^= LinearAccelerationStdDev.GetHashCode();
            }
            if (angularVelocityStdDev_ != null)
            {
                hash ^= AngularVelocityStdDev.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 public void MergeFrom(Uncertainty other)
 {
     if (other == null)
     {
         return;
     }
     if (other.positionStdDev_ != null)
     {
         if (positionStdDev_ == null)
         {
             positionStdDev_ = new global::Apollo.Common.Point3D();
         }
         PositionStdDev.MergeFrom(other.PositionStdDev);
     }
     if (other.orientationStdDev_ != null)
     {
         if (orientationStdDev_ == null)
         {
             orientationStdDev_ = new global::Apollo.Common.Point3D();
         }
         OrientationStdDev.MergeFrom(other.OrientationStdDev);
     }
     if (other.linearVelocityStdDev_ != null)
     {
         if (linearVelocityStdDev_ == null)
         {
             linearVelocityStdDev_ = new global::Apollo.Common.Point3D();
         }
         LinearVelocityStdDev.MergeFrom(other.LinearVelocityStdDev);
     }
     if (other.linearAccelerationStdDev_ != null)
     {
         if (linearAccelerationStdDev_ == null)
         {
             linearAccelerationStdDev_ = new global::Apollo.Common.Point3D();
         }
         LinearAccelerationStdDev.MergeFrom(other.LinearAccelerationStdDev);
     }
     if (other.angularVelocityStdDev_ != null)
     {
         if (angularVelocityStdDev_ == null)
         {
             angularVelocityStdDev_ = new global::Apollo.Common.Point3D();
         }
         AngularVelocityStdDev.MergeFrom(other.AngularVelocityStdDev);
     }
 }