Struct MessageMetadata
Carries contextual information about a received message, including the topic it arrived on and the time of receipt.
Inherited Members
Namespace: Unity.SimulationPro.Foundation.Visualizations
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public readonly struct MessageMetadata
Constructors
MessageMetadata(string, float, DateTime)
Initializes a new MessageMetadata with the specified topic, frame time, and timestamp.
Declaration
public MessageMetadata(string topic, float frameTime, DateTime timestamp)
Parameters
| Type | Name | Description |
|---|---|---|
| string | topic | The ROS topic name. |
| float | frameTime | The Unity engine frame time. |
| DateTime | timestamp | The wall-clock timestamp. |
Fields
FrameTime
The Unity engine frame time (time) at the moment the message was processed.
Declaration
public readonly float FrameTime
Field Value
| Type | Description |
|---|---|
| float |
Timestamp
The wall-clock timestamp at the moment the message was processed.
Declaration
public readonly DateTime Timestamp
Field Value
| Type | Description |
|---|---|
| DateTime |
Topic
The ROS topic name the message was received on.
Declaration
public readonly string Topic
Field Value
| Type | Description |
|---|---|
| string |