Interface IMessage
Base interface for all ROS-compatible messages in Simulation Pro.
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public interface IMessage
Remarks
All generated and hand-written message types implement this interface. Messages are registered in MessageTypeRegistry at runtime initialization.
Properties
MessageTypeId
Gets the type identifier that describes the ROS message type name and disambiguator.
Declaration
MessageTypeId MessageTypeId { get; }
Property Value
| Type | Description |
|---|---|
| MessageTypeId |
Methods
WriteTo(IMessageSerializer)
Serializes the message fields to the provided serializer.
Declaration
void WriteTo(IMessageSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageSerializer | serializer | The serializer that writes the message payload. |