Class AddDiagnosticsRequest
ROS diagnostic_msgs/AddDiagnostics message.
Implements
Inherited Members
Namespace: Unity.SimulationPro.Foundation.DiagnosticMessages
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
[Serializable]
public class AddDiagnosticsRequest : IMessage
Constructors
AddDiagnosticsRequest()
Initializes a new instance with default values.
Declaration
public AddDiagnosticsRequest()
AddDiagnosticsRequest(string)
Initializes a new instance with default values.
Declaration
public AddDiagnosticsRequest(string load_namespace)
Parameters
| Type | Name | Description |
|---|---|---|
| string | load_namespace | Namespace to load the map into. |
Fields
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 = "diagnostic_msgs/AddDiagnostics"
Field Value
| Type | Description |
|---|---|
| string |
load_namespace
This service is used as part of the process for loading analyzers at runtime, and should be used by a loader script or program, not as a standalone service. Information about dynamic addition of analyzers can be found at http://wiki.ros.org/diagnostics/Tutorials/Adding%20Analyzers%20at%20Runtime The load_namespace parameter defines the namespace where parameters for the initialization of analyzers in the diagnostic aggregator have been loaded. The value should be a global name (i.e. /my/name/space), not a relative (my/name/space) or private (~my/name/space) name. Analyzers will not be added if a non-global name is used. The call will also fail if the namespace contains parameters that follow a namespace structure that does not conform to that expected by the analyzer definitions. See http://wiki.ros.org/diagnostics/Tutorials/Configuring%20Diagnostic%20Aggregators and http://wiki.ros.org/diagnostics/Tutorials/Using%20the%20GenericAnalyzer for examples of the structure of yaml files which are expected to have been loaded into the namespace.
Declaration
public string load_namespace
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 AddDiagnosticsRequest from the given deserializer.
Declaration
public static AddDiagnosticsRequest Deserialize(IMessageDeserializer deserializer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageDeserializer | deserializer | The deserializer. |
Returns
| Type | Description |
|---|---|
| AddDiagnosticsRequest | A new AddDiagnosticsRequest 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. |