57 virtual const char*
type()
const;
89 bool& contactInfoModified)
override;
97 virtual void createAndInitActiveSonarSystem();
100 virtual void destroyActiveSonarSystem();
104 static void setActiveSonarModeCallback(
DtSimMessage *msg,
void * usrData);
108 virtual void processSetActiveSonarMode(
DtSimMessage *msg);
110 static void requestActiveSonarModesCallback(
const DtVrfObjectMessage* msg,
void* usr);
111 virtual void processRequestActiveSonarModes(
const DtUUID& receiver,
123 virtual void updateActiveSonarMode(
const DtString modeToUse =
"");
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual int sensorType() const
Returns DtSensorTypeRadar.
DtActiveSonarSensorPSR * myActiveSonarSensorPSR
DtObjectSensor's myProcessState cast to our PSR type. This class will not new or delete this object...
Definition: activeSonarSensor.h:136
DtActiveSonarSensorDescriptor; descriptor for the DtActiveSonarSensor component.
Definition: activeSonarSensorDescriptor.h:22
virtual void timedTick()
This version of tick checks to see if the time to tick has arrived. It checks to see if myNextTickTim...
DtActiveSonarSensorDescriptor * myDescriptor
Definition: activeSonarSensor.h:138
bool myInitializeSonar
Definition: activeSonarSensor.h:140
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.h:26
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
virtual ContinueDetectingResult continueDetectingObject(DtSimObjectReference object, DtRwSensorContactInfo *contactInfo, bool &contactInfoModified) override
Overridden from DtSignatureObjectSensor to check if the current speed is greater than the maximum eff...
DtVrfActiveSonarSystem * myActiveSonarSystem
Contains the active sonar system publisher.
Definition: activeSonarSensor.h:132
virtual bool detectObject(DtSimObjectReference object, DtRwSensorContactInfo *contactInfo) override
Overridden from DtSignatureObjectSensor to check if the current speed is greater than the maximum eff...
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
const DtPassiveSonarSensor & operator=(const DtPassiveSonarSensor &orig)
assignment operator; not implemented
bool mySkipFirstTick
Definition: activeSonarSensor.h:141
Definition: activeSonarSensor.h:26
File: simMsg.h.
Definition: simMessage.h:35
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
virtual void tick()
Overridden from base class to update myLocalSensorPosition (using localSensorPosition()) at the start...
virtual void setSensorEnabled(bool enabled)
Enables or disables this sensor.
ContinueDetectingResult
Definition: objectSensor.h:69
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
The central class of a DtLocalObject for all communications to and from the object. This class manages all communications on a specific DtLocalObject, though both simulation internal communication, and communication though the simulated radios of the object. All communication is done though the use of the DtVrfObjectMessage class and its subclasses. Callbacks can be registered on this interface which will be called on receipt of a message by this entity. Messages can be sent from this entity by using the message sending functions. These messages may be sent though the SimInternal message mechanism, or the radio message system. Radios will not exist until createRadiosFromDescriptorList() or createRadiosFromDescriptorList(const DtRadioDescriptorList& descList) is called.
Definition: vrfObjectCommunicationInterface.h:40
virtual bool init()
Calls createPSR(), createDetectableObjectList(), createAndInitSensorMonitor() and initSensorGeometry(...
virtual const char * defaultPSRType() const
DtVrfActiveSonarSystem manages a VR-Link active sonar system publisher, and sets all the values assoc...
Definition: vrfActiveSonarSystem.h:33
Process State Repository for the DtActiveSonarSensor component.
Definition: activeSonarSensorPSR.h:21
virtual void preFirstTickInit()
Initializes the component before it is ticked for the first time. It is called by timedTick if myFirs...
DtPassiveSonarSensor.
Definition: passiveSonarSensor.h:31
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86