public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (position_ == null) { position_ = new global::Apollo.Common.Point3D(); } input.ReadMessage(position_); break; } case 18: { if (orientation_ == null) { orientation_ = new global::Apollo.Common.Quaternion(); } input.ReadMessage(orientation_); break; } } } }
public void MergeFrom(Pose other) { if (other == null) { return; } if (other.position_ != null) { if (position_ == null) { position_ = new global::Apollo.Common.Point3D(); } Position.MergeFrom(other.Position); } if (other.orientation_ != null) { if (orientation_ == null) { orientation_ = new global::Apollo.Common.Quaternion(); } Orientation.MergeFrom(other.Orientation); } }
public void MergeFrom(Transform other) { if (other == null) { return; } if (other.translation_ != null) { if (translation_ == null) { translation_ = new global::Apollo.Common.Point3D(); } Translation.MergeFrom(other.Translation); } if (other.rotation_ != null) { if (rotation_ == null) { rotation_ = new global::Apollo.Common.Quaternion(); } Rotation.MergeFrom(other.Rotation); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (position_ == null) { position_ = new global::Apollo.Common.PointENU(); } input.ReadMessage(position_); break; } case 18: { if (orientation_ == null) { orientation_ = new global::Apollo.Common.Quaternion(); } input.ReadMessage(orientation_); break; } case 26: { if (linearVelocity_ == null) { linearVelocity_ = new global::Apollo.Common.Point3D(); } input.ReadMessage(linearVelocity_); break; } case 34: { if (linearAcceleration_ == null) { linearAcceleration_ = new global::Apollo.Common.Point3D(); } input.ReadMessage(linearAcceleration_); break; } case 42: { if (angularVelocity_ == null) { angularVelocity_ = new global::Apollo.Common.Point3D(); } input.ReadMessage(angularVelocity_); break; } case 49: { Heading = input.ReadDouble(); break; } case 58: { if (linearAccelerationVrf_ == null) { linearAccelerationVrf_ = new global::Apollo.Common.Point3D(); } input.ReadMessage(linearAccelerationVrf_); break; } case 66: { if (angularVelocityVrf_ == null) { angularVelocityVrf_ = new global::Apollo.Common.Point3D(); } input.ReadMessage(angularVelocityVrf_); break; } case 74: { if (eulerAngles_ == null) { eulerAngles_ = new global::Apollo.Common.Point3D(); } input.ReadMessage(eulerAngles_); break; } } } }
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); } }