docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LogMsg

    ROS rosgraph_msgs/Log message.

    Inheritance
    object
    LogMsg
    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.RosgraphMessages
    Assembly: Unity.SimulationPro.Foundation.dll
    Syntax
    [Serializable]
    public class LogMsg : IMessage

    Constructors

    LogMsg()

    Initializes a new instance with default values.

    Declaration
    public LogMsg()

    LogMsg(HeaderMsg, sbyte, string, string, string, string, uint, string[])

    Initializes a new instance with the specified values.

    Declaration
    public LogMsg(HeaderMsg header, sbyte level, string name, string msg, string file, string function, uint line, string[] topics)
    Parameters
    Type Name Description
    HeaderMsg header

    ROS message header containing timestamp and coordinate frame identifier.

    sbyte level

    Severity or diagnostic level.

    string name

    Identifying name or label.

    string msg

    The message instance.

    string file

    Source file name.

    string function

    Source function name.

    uint line

    Source line number.

    string[] topics

    Array of ROS topic names.

    Fields

    DEBUG

    Severity level constants

    Declaration
    public const sbyte DEBUG = 1
    Field Value
    Type Description
    sbyte

    ERROR

    Constant value for ERROR.

    Declaration
    public const sbyte ERROR = 8
    Field Value
    Type Description
    sbyte

    FATAL

    Constant value for FATAL.

    Declaration
    public const sbyte FATAL = 16
    Field Value
    Type Description
    sbyte

    INFO

    Constant value for INFO.

    Declaration
    public const sbyte INFO = 2
    Field Value
    Type Description
    sbyte

    WARN

    Constant value for WARN.

    Declaration
    public const sbyte WARN = 4
    Field Value
    Type Description
    sbyte

    file

    file the message came from

    Declaration
    public string file
    Field Value
    Type Description
    string

    function

    function the message came from

    Declaration
    public string function
    Field Value
    Type Description
    string

    header

    Fields

    Declaration
    public HeaderMsg header
    Field Value
    Type Description
    HeaderMsg

    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 = "rosgraph_msgs/Log"
    Field Value
    Type Description
    string

    level

    Level field.

    Declaration
    public sbyte level
    Field Value
    Type Description
    sbyte

    line

    line the message came from

    Declaration
    public uint line
    Field Value
    Type Description
    uint

    msg

    message

    Declaration
    public string msg
    Field Value
    Type Description
    string

    name

    name of the node

    Declaration
    public string name
    Field Value
    Type Description
    string

    topics

    topic names that the node publishes

    Declaration
    public string[] topics
    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 LogMsg from the given deserializer.

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

    The deserializer.

    Returns
    Type Description
    LogMsg

    A new LogMsg 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)