public void MergeFrom(Subsignal other) { if (other == null) { return; } if (other.id_ != null) { if (id_ == null) { id_ = new global::Apollo.Hdmap.Id(); } Id.MergeFrom(other.Id); } if (other.Type != 0) { Type = other.Type; } if (other.location_ != null) { if (location_ == null) { location_ = new global::Apollo.Common.PointENU(); } Location.MergeFrom(other.Location); } }
public void MergeFrom(CurveSegment other) { if (other == null) { return; } if (other.S != 0D) { S = other.S; } if (other.startPosition_ != null) { if (startPosition_ == null) { startPosition_ = new global::Apollo.Common.PointENU(); } StartPosition.MergeFrom(other.StartPosition); } if (other.Heading != 0D) { Heading = other.Heading; } if (other.Length != 0D) { Length = other.Length; } switch (other.CurveTypeCase) { case CurveTypeOneofCase.LineSegment: LineSegment = other.LineSegment; break; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { global::Apollo.Hdmap.LineSegment subBuilder = new global::Apollo.Hdmap.LineSegment(); if (curveTypeCase_ == CurveTypeOneofCase.LineSegment) { subBuilder.MergeFrom(LineSegment); } input.ReadMessage(subBuilder); LineSegment = subBuilder; break; } case 49: { S = input.ReadDouble(); break; } case 58: { if (startPosition_ == null) { startPosition_ = new global::Apollo.Common.PointENU(); } input.ReadMessage(startPosition_); break; } case 65: { Heading = input.ReadDouble(); break; } case 73: { Length = input.ReadDouble(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (id_ == null) { id_ = new global::Apollo.Hdmap.Id(); } input.ReadMessage(id_); break; } case 16: { type_ = (global::Apollo.Hdmap.Subsignal.Types.Type)input.ReadEnum(); break; } case 26: { if (location_ == null) { location_ = new global::Apollo.Common.PointENU(); } input.ReadMessage(location_); break; } } } }
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); } }