docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TF2ErrorMsg

    ROS tf2_msgs/TF2Error message.

    Inheritance
    object
    TF2ErrorMsg
    Implements
    IMessage
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.SimulationPro.Foundation.Tf2Messages
    Assembly: Unity.SimulationPro.Foundation.dll
    Syntax
    [Serializable]
    public class TF2ErrorMsg : IMessage

    Constructors

    TF2ErrorMsg()

    Initializes a new instance with default values.

    Declaration
    public TF2ErrorMsg()

    TF2ErrorMsg(byte, string)

    Initializes a new instance with default values.

    Declaration
    public TF2ErrorMsg(byte error, string error_string)
    Parameters
    Type Name Description
    byte error

    Error information, if any.

    string error_string

    Human-readable error description.

    Fields

    CONNECTIVITY_ERROR

    Constant value for CONNECTIVITY_ERROR.

    Declaration
    public const byte CONNECTIVITY_ERROR = 2
    Field Value
    Type Description
    byte

    EXTRAPOLATION_ERROR

    Constant value for EXTRAPOLATION_ERROR.

    Declaration
    public const byte EXTRAPOLATION_ERROR = 3
    Field Value
    Type Description
    byte

    INVALID_ARGUMENT_ERROR

    Constant value for INVALID_ARGUMENT_ERROR.

    Declaration
    public const byte INVALID_ARGUMENT_ERROR = 4
    Field Value
    Type Description
    byte

    LOOKUP_ERROR

    Constant value for LOOKUP_ERROR.

    Declaration
    public const byte LOOKUP_ERROR = 1
    Field Value
    Type Description
    byte

    NO_ERROR

    Constant value for NO_ERROR.

    Declaration
    public const byte NO_ERROR = 0
    Field Value
    Type Description
    byte

    TIMEOUT_ERROR

    Constant value for TIMEOUT_ERROR.

    Declaration
    public const byte TIMEOUT_ERROR = 5
    Field Value
    Type Description
    byte

    TRANSFORM_ERROR

    Constant value for TRANSFORM_ERROR.

    Declaration
    public const byte TRANSFORM_ERROR = 6
    Field Value
    Type Description
    byte

    error

    Error field.

    Declaration
    public byte error
    Field Value
    Type Description
    byte

    error_string

    Error string field.

    Declaration
    public string error_string
    Field Value
    Type Description
    string

    k_MessageTypeId

    Identifier for this message type.

    Declaration
    public static readonly MessageTypeId k_MessageTypeId
    Field Value
    Type Description
    MessageTypeId

    k_MessageTypeName

    The ROS message type name string used for serialization and topic matching.

    Declaration
    public const string k_MessageTypeName = "tf2_msgs/TF2Error"
    Field Value
    Type Description
    string

    Properties

    MessageTypeId

    Gets the unique runtime identifier for this message type.

    Declaration
    public MessageTypeId MessageTypeId { get; }
    Property Value
    Type Description
    MessageTypeId

    MessageTypeName

    Gets the ROS message type name for this message.

    Declaration
    public string MessageTypeName { get; }
    Property Value
    Type Description
    string

    Methods

    Deserialize(IMessageDeserializer)

    Deserializes a TF2ErrorMsg from the given deserializer.

    Declaration
    public static TF2ErrorMsg Deserialize(IMessageDeserializer deserializer)
    Parameters
    Type Name Description
    IMessageDeserializer deserializer

    The deserializer.

    Returns
    Type Description
    TF2ErrorMsg

    A new TF2ErrorMsg instance.

    Register()

    Registers this message type with the MessageTypeRegistry.

    Declaration
    [InitializeOnLoadMethod]
    public static void Register()

    ToString()

    Returns a human-readable string representation of this message.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of this instance.

    Overrides
    object.ToString()

    WriteTo(IMessageSerializer)

    Serializes this message to the given serializer.

    Declaration
    public void WriteTo(IMessageSerializer serializer)
    Parameters
    Type Name Description
    IMessageSerializer serializer

    The serializer.

    Implements

    IMessage
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)