• Marus Documentation
Show / Hide Table of Contents
  • Marus
    • BoatPhysics
    • BoatPhysicsMath
    • DebugPhysics
    • ModifyBoatMesh
    • SlammingForceData
    • TriangleData
  • Marus.Actuators
    • AUVRosController
    • PwmThruster
    • PwmThruster.AllowedVoltages
    • ThrusterController
  • Marus.Actuators.Datasheets
    • T200ThrusterDatasheet
  • Marus.Communications
    • RangeReading
  • Marus.Communications.Acoustics
    • AcousticDevice
    • AcousticDevice<T>
    • AcousticMedium
    • AcousticMediumHelper
    • AcousticMessage
    • AcousticReceiver
    • AcousticTranciever
    • AcousticTransmiter
    • AcousticTransmiterParams
    • MediumBase
    • Nanomodem
    • NanomodemMessage
    • NanomodemROS
    • TransmitionType
  • Marus.Communications.Rf
    • LoraDevice
    • LoraDeviceRos
    • LoraDummyTransmitter
    • LoraMessage
    • LoraRanging
    • LoraRangingRos
    • RfDevice
    • RfDevice<T>
    • RfMediumHelper
    • RfMessage
    • RfReceiver
    • RfTranciever
    • RfTransmiter
    • RfTransmitterParams
    • TransmitionType
  • Marus.Controllers
    • DiverGuidanceController
    • FishController
    • VesselForceController
    • VesselVelocityController
  • Marus.Core
    • GeographicFrame
    • GeoPoint
    • PauseMenu
    • TfExtensions
    • TimeHandler
  • Marus.CustomInspector
    • ConditionalHideAttribute
    • ConditionalHideInInspectorAttribute
    • HideInRuntimeInspectorAttribute
  • Marus.Logger
    • DataLogger
    • DataLoggerUtilities
    • GameObjectLogger
    • GameObjectLogger<T>
    • LogRecord
    • LogRecord<T>
  • Marus.Networking
    • MessageExtensions
    • ParamServerHandler
    • RosConnection
    • ServerStreamer<T>
    • ServerStreamer<T>.MessageHandleMode
    • ServiceCaller
    • TfHandler
    • VisualizationROS
  • Marus.NoiseDistributions
    • AlfaBeta
    • Gaussian
    • INoise
    • Noise
    • NoiseParameters
  • Marus.ObjectAnnotation
    • CameraObjectDetectionSaver
    • ClassObjects
    • ObjectRecord
    • PointCloudSegmentationSaver
  • Marus.Ocean
    • WaterHeightSampler
  • Marus.Quest
    • QuestControl
    • QuestWaypoint
  • Marus.ROS
    • TfStreamerROS
  • Marus.Sensors
    • CameraSensor
    • CameraSensorROS
    • LidarConfig
    • LidarReading
    • RaycastJobHelper
    • RaycastJobHelper<T>
    • RaycastJobHelper<T>.CreateRaycastCommandsJob
    • RaycastJobHelper<T>.ReadbackDataJob
    • RaycastLidar
    • RaycastLidarPointCloud2ROS
    • RaycastLidarROS
    • RayDefinitionType
    • RayInterval
    • SensorBase
    • SensorCallback
    • SensorSampler
    • SensorStreamer<TClient, TMsg>
    • Sonar2D
    • Sonar3D
    • SonarReading
  • Marus.Sensors.AIS
    • AISClassType
    • AisDevice
    • AisManager
    • AisMessage
    • AISMessageType
    • AisSensor
    • AisSensorROS
    • ManeuverIndicator
    • MMSIGenerator
    • NavigationStatus
    • PositionAccuracy
    • PositionReportClassA
    • Raim
    • TimeIntervals
  • Marus.Sensors.Core
    • CameraFrustum
    • ComputeBufferDataExtractor<T>
    • DepthCameras
    • DepthCameras.BufferPrecision
    • LidarMessage
    • PointField
    • SphericalProjectionFilter
  • Marus.Sensors.Primitive
    • DepthSensor
    • DvlSensor
    • GnssSensor
    • ImuROS
    • ImuSensor
    • PoseSensor
    • PoseSensorROS
    • RangeSensor
    • Sonar2DROS
    • Sonar3DROS
    • SonarPrimitive
    • SonarPrimitiveROS
  • Marus.Sensors.ROS
    • DepthSensorROS
    • DvlROS
    • GnssROS
  • Marus.StatisticsUI
    • MousePointToImagePointController
    • PathRecordingsVisualization
    • ScrollViewController
    • StatisticsEntry
    • StatisticsUIController
  • Marus.UI
    • Compass
    • Depth
  • Marus.Utils
    • Helpers
    • PCDLoader
    • PCDSaver
    • PointCloud
    • Singleton<T>
  • Marus.Visualization
    • ArrowVisualController
    • LineVisualController
    • LiveMovementVisualizer
    • ObjectBoundingBoxVisualizer
    • PathRecorder
    • PathVisualController
    • PointCloudManager
    • PointCloudRosVisualizer
    • PointVisualController
    • TransformVisualController
    • Visualizer
    • Visualizer.FilterValues
  • Marus.Visualization.Primitives
    • Arrow
    • Line
    • Path
    • Point
    • PointcloudMesh
    • Transform
    • VisualElement
  • TestUtils
    • ParameterServerMock
    • PingMock
    • TestClient
    • TfMock
    • Utils
  • UniColliderInterpolator
    • BoundsDivider
    • ColliderInterpolator
  • UnityStandardAssets.Characters.ThirdPerson
    • ThirdPersonSwimmer
    • ThirdPersonSwimmerController

Class AisManager

This class serves as a radio medium for AIS purposes. Script should be attached to a GameObject so no singleton is needed.

Inheritance
System.Object
AisManager
Namespace: Marus.Sensors.AIS
Assembly: cs.temp.dll.dll
Syntax
public class AisManager : Singleton<AisManager>

Constructors

AisManager()

Declaration
protected AisManager()

Fields

Name

Declaration
public string Name
Field Value
Type Description
System.String

RegisteredDevices

Declaration
public List<AisDevice> RegisteredDevices
Field Value
Type Description
List<AisDevice>

Methods

Broadcast(AisMessage)

Broadcasts message to all registered objects

Declaration
public virtual void Broadcast(AisMessage msg)
Parameters
Type Name Description
AisMessage msg

Message object to be sent.

DistanceFromTo(AisDevice, AisDevice)

Declaration
public float DistanceFromTo(AisDevice deviceA, AisDevice deviceB)
Parameters
Type Name Description
AisDevice deviceA
AisDevice deviceB
Returns
Type Description
System.Single

Initialize()

Declaration
protected override void Initialize()

Register(AisDevice)

Registers devices so messages can be broadcast to them.

Declaration
public virtual void Register(AisDevice device)
Parameters
Type Name Description
AisDevice device

Transmit(AisMessage, AisDevice)

Transmit message to single other object. Message will only be sent if other object is in range of the sender device. Method assumes distance and range are of the same unit and magnitude. Default is meters (m).

Declaration
public virtual Boolean Transmit(AisMessage msg, AisDevice receiver)
Parameters
Type Name Description
AisMessage msg

Message object to be sent.

AisDevice receiver

Object which message is sent to.

Returns
Type Description
Boolean

True if transmission succeeded, false if not (not in range).

In This Article
Back to top Generated by DocFX