You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
363 lines
11 KiB
363 lines
11 KiB
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: robot_data.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 1591, 0612, 3021, 8981
|
|
#region Designer generated code
|
|
|
|
using pb = global::Google.Protobuf;
|
|
using pbc = global::Google.Protobuf.Collections;
|
|
using pbr = global::Google.Protobuf.Reflection;
|
|
using scg = global::System.Collections.Generic;
|
|
/// <summary>Holder for reflection information generated from robot_data.proto</summary>
|
|
public static partial class RobotDataReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for robot_data.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static RobotDataReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChByb2JvdF9kYXRhLnByb3RvImIKCURhdGFUcmFucxIVCg1SRl9BbmdsZV9S",
|
|
"b2xsGAEgASgFEhYKDlJGX0FuZ2xlX1BpdGNoGAIgASgFEhQKDFJGX0FuZ2xl",
|
|
"X1lhdxgDIAEoBRIQCghSRl9EZXB0aBgEIAEoBUIqCiZjb20uZXhhbXBsZS5y",
|
|
"ZW1vdmVtYXJpbmVhbmltYWxzLm1vZGVsc1AAYgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::DataTrans), global::DataTrans.Parser, new[]{ "RFAngleRoll", "RFAnglePitch", "RFAngleYaw", "RFDepth" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class DataTrans : pb::IMessage<DataTrans>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<DataTrans> _parser = new pb::MessageParser<DataTrans>(() => new DataTrans());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<DataTrans> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::RobotDataReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public DataTrans() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public DataTrans(DataTrans other) : this() {
|
|
rFAngleRoll_ = other.rFAngleRoll_;
|
|
rFAnglePitch_ = other.rFAnglePitch_;
|
|
rFAngleYaw_ = other.rFAngleYaw_;
|
|
rFDepth_ = other.rFDepth_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public DataTrans Clone() {
|
|
return new DataTrans(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "RF_Angle_Roll" field.</summary>
|
|
public const int RFAngleRollFieldNumber = 1;
|
|
private int rFAngleRoll_;
|
|
/// <summary>
|
|
///横滚角
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int RFAngleRoll {
|
|
get { return rFAngleRoll_; }
|
|
set {
|
|
rFAngleRoll_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "RF_Angle_Pitch" field.</summary>
|
|
public const int RFAnglePitchFieldNumber = 2;
|
|
private int rFAnglePitch_;
|
|
/// <summary>
|
|
///俯仰角
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int RFAnglePitch {
|
|
get { return rFAnglePitch_; }
|
|
set {
|
|
rFAnglePitch_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "RF_Angle_Yaw" field.</summary>
|
|
public const int RFAngleYawFieldNumber = 3;
|
|
private int rFAngleYaw_;
|
|
/// <summary>
|
|
///航向角
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int RFAngleYaw {
|
|
get { return rFAngleYaw_; }
|
|
set {
|
|
rFAngleYaw_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "RF_Depth" field.</summary>
|
|
public const int RFDepthFieldNumber = 4;
|
|
private int rFDepth_;
|
|
/// <summary>
|
|
///海洋深度
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int RFDepth {
|
|
get { return rFDepth_; }
|
|
set {
|
|
rFDepth_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as DataTrans);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(DataTrans other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (RFAngleRoll != other.RFAngleRoll) return false;
|
|
if (RFAnglePitch != other.RFAnglePitch) return false;
|
|
if (RFAngleYaw != other.RFAngleYaw) return false;
|
|
if (RFDepth != other.RFDepth) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (RFAngleRoll != 0) hash ^= RFAngleRoll.GetHashCode();
|
|
if (RFAnglePitch != 0) hash ^= RFAnglePitch.GetHashCode();
|
|
if (RFAngleYaw != 0) hash ^= RFAngleYaw.GetHashCode();
|
|
if (RFDepth != 0) hash ^= RFDepth.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (RFAngleRoll != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(RFAngleRoll);
|
|
}
|
|
if (RFAnglePitch != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(RFAnglePitch);
|
|
}
|
|
if (RFAngleYaw != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(RFAngleYaw);
|
|
}
|
|
if (RFDepth != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(RFDepth);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (RFAngleRoll != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(RFAngleRoll);
|
|
}
|
|
if (RFAnglePitch != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(RFAnglePitch);
|
|
}
|
|
if (RFAngleYaw != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(RFAngleYaw);
|
|
}
|
|
if (RFDepth != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(RFDepth);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (RFAngleRoll != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RFAngleRoll);
|
|
}
|
|
if (RFAnglePitch != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RFAnglePitch);
|
|
}
|
|
if (RFAngleYaw != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RFAngleYaw);
|
|
}
|
|
if (RFDepth != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RFDepth);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(DataTrans other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.RFAngleRoll != 0) {
|
|
RFAngleRoll = other.RFAngleRoll;
|
|
}
|
|
if (other.RFAnglePitch != 0) {
|
|
RFAnglePitch = other.RFAnglePitch;
|
|
}
|
|
if (other.RFAngleYaw != 0) {
|
|
RFAngleYaw = other.RFAngleYaw;
|
|
}
|
|
if (other.RFDepth != 0) {
|
|
RFDepth = other.RFDepth;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
RFAngleRoll = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
RFAnglePitch = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
RFAngleYaw = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
RFDepth = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 8: {
|
|
RFAngleRoll = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
RFAnglePitch = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
RFAngleYaw = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
RFDepth = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
#endregion Designer generated code
|
|
|