Class NavSatStatusMsg
ROS sensor_msgs/NavSatStatus message.
Implements
Inherited Members
Namespace: Unity.SimulationPro.Foundation.SensorMessages
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
[Serializable]
public class NavSatStatusMsg : IMessage
Constructors
NavSatStatusMsg()
Initializes a new instance with default values.
Declaration
public NavSatStatusMsg()
NavSatStatusMsg(sbyte, ushort)
Initializes a new instance with default values.
Declaration
public NavSatStatusMsg(sbyte status, ushort service)
Parameters
| Type | Name | Description |
|---|---|---|
| sbyte | status | Status information. |
| ushort | service | ROS service name. |
Fields
SERVICE_COMPASS
Constant value for SERVICE_COMPASS.
Declaration
public const ushort SERVICE_COMPASS = 4
Field Value
| Type | Description |
|---|---|
| ushort |
SERVICE_GALILEO
Constant value for SERVICE_GALILEO.
Declaration
public const ushort SERVICE_GALILEO = 8
Field Value
| Type | Description |
|---|---|
| ushort |
SERVICE_GLONASS
Constant value for SERVICE_GLONASS.
Declaration
public const ushort SERVICE_GLONASS = 2
Field Value
| Type | Description |
|---|---|
| ushort |
SERVICE_GPS
Bits defining which Global Navigation Satellite System signals were used by the receiver.
Declaration
public const ushort SERVICE_GPS = 1
Field Value
| Type | Description |
|---|---|
| ushort |
STATUS_FIX
Constant value for STATUS_FIX.
Declaration
public const sbyte STATUS_FIX = 0
Field Value
| Type | Description |
|---|---|
| sbyte |
STATUS_GBAS_FIX
Constant value for STATUS_GBAS_FIX.
Declaration
public const sbyte STATUS_GBAS_FIX = 2
Field Value
| Type | Description |
|---|---|
| sbyte |
STATUS_NO_FIX
Navigation Satellite fix status for any Global Navigation Satellite System. Whether to output an augmented fix is determined by both the fix type and the last time differential corrections were received. A fix is valid when status >= STATUS_FIX.
Declaration
public const sbyte STATUS_NO_FIX = -1
Field Value
| Type | Description |
|---|---|
| sbyte |
STATUS_SBAS_FIX
Constant value for STATUS_SBAS_FIX.
Declaration
public const sbyte STATUS_SBAS_FIX = 1
Field Value
| Type | Description |
|---|---|
| sbyte |
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 = "sensor_msgs/NavSatStatus"
Field Value
| Type | Description |
|---|---|
| string |
service
Service field.
Declaration
public ushort service
Field Value
| Type | Description |
|---|---|
| ushort |
status
Status field.
Declaration
public sbyte status
Field Value
| Type | Description |
|---|---|
| sbyte |
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 NavSatStatusMsg from the given deserializer.
Declaration
public static NavSatStatusMsg Deserialize(IMessageDeserializer deserializer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageDeserializer | deserializer | The deserializer. |
Returns
| Type | Description |
|---|---|
| NavSatStatusMsg | A new NavSatStatusMsg 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. |