Class TF2ErrorMsg
ROS tf2_msgs/TF2Error message.
Implements
Inherited Members
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
WriteTo(IMessageSerializer)
Serializes this message to the given serializer.
Declaration
public void WriteTo(IMessageSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageSerializer | serializer | The serializer. |