72 DetectionContinued = 1,
82 psrContactListItem =
nullptr;
115 virtual bool init()
override;
129 virtual const char*
type()
const override;
139 virtual void tick()
override;
150 virtual int sensorType()
const;
156 virtual void enable()
override;
157 virtual void disable()
override;
169 virtual void clearTypesToDetectForTask();
183 static bool setTypesToDetectAttribute(
void* ctrlr,
DtReaderWriter* val);
205 virtual void setSensorEnabled(
bool enabled);
208 virtual bool sensorEnabled()
const;
241 virtual const char* defaultPSRType()
const;
246 virtual void initSensorRangeRing();
254 virtual void updateDetectableObjectsList();
259 virtual bool initSensorGeometry();
264 virtual void setupGeometryForDetection();
269 virtual DtVector localSensorPosition()
const;
274 virtual DtVector bodySensorPosition()
const;
279 virtual DtTaitBryan localSensorOrientation()
const;
284 virtual DtTaitBryan bodySensorOrientation()
const;
288 virtual DtUUID targetObject()
const;
292 virtual DtVector targetObjectOffset()
const;
296 virtual DtVector targetLocation()
const;
308 virtual void processObjects();
340 virtual bool objectWithinSensorGeometry(
const DtSimObject*
object)
const;
346 virtual bool sensorGeometryExtent(
DtExtent& extent)
const;
350 virtual double rangeSquaredToObject(
const DtSimObject*
object)
const;
354 virtual double rangeToObject(
const DtSimObject*
object)
const;
357 virtual void clearObjectRangeCache()
const;
360 virtual void printTargets()
const;
364 virtual void updateDetectedObjectListPort();
367 virtual bool createAndInitSensorMonitors();
370 virtual bool objectInDetectableList(
const DtSimObject*)
const;
374 static void hostilitiesChangedCallback(DtU8 force,
void* usr);
375 virtual void processHostilitiesChanged(DtU8 force);
381 virtual DtTaitBryan worldOrientationOfObject(
const DtSimObject*
object)
const;
385 virtual bool canDetectForceOfObject(
const DtSimObject*);
389 static void setSensorEnabledRequestCallback(
DtSimMessage *msg,
void * usrData);
393 virtual void processSetSensorEnabledRequestMessage(
DtSimMessage *msg);
397 virtual void notifyContactsChanged();
double myMutableObjectRangeSquaredCache
The current range squared to the cached object, if calculated.
Definition: objectSensor.h:514
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtOrientationInputPort * myOrientationInputPort
Input Port Name: orientation Input Port Description: Specifies the orientation of the sensor relative...
Definition: objectSensor.h:437
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:127
std::vector< DtObjectSensorMonitor * > myMonitors
Sends out sensor contact information to listening applications, usually the GUI.
Definition: objectSensor.h:499
Contains the DtCompositePredicate class declaration.
Definition: compositePredicate.h:23
DtInputPortGroup * mySensorOffsetInputPortGroup
Input Port Group Name: sensor-offset Input Port Group Description: Allows an external controller to p...
Definition: objectSensor.h:429
bool myMutableObjectRangeCalculated
Keeps track of whether the range has been calculated for the current cached object.
Definition: objectSensor.h:508
Description: DtNLengthIntegerVector is a named, readable/writable vector of integers of arbitrary len...
Definition: nLengthIntegerVector.h:28
std::shared_ptr< DtProcessObjectsState > myProcessObjectsState
Definition: objectSensor.h:522
bool changesMade
Definition: objectSensor.h:91
DtAimableSystemTrackingMode
Definition: aimableSystemEnums.h:49
DtStringInputPort * myTargetObjectInputPort
Input Port Name: target-object Input Port Description: Specifies the name of the object be targeted b...
Definition: objectSensor.h:455
virtual void setIsEnabled(bool yesNo)
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
DtVectorInputPort * myTargetObjectOffsetInputPort
Input Port Name: target-object-offset Input Port Description: Specifies the location to be targeted b...
Definition: objectSensor.h:463
Filters the contents of a DtManagedObjectList using a spatial organization to generate a list of only...
Definition: localizedManagedObjectList.h:23
class DtRwEntityTypeList:
Definition: rwEntityTypeList.h:23
Definition: readerWriter.h:85
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
DtObjectSensorDescriptor; descriptor for the DtObjectSensor component.
Definition: objectSensorDescriptor.h:27
bool myMutableObjectRangeSquaredCalculated
Keeps track of whether the range squared has been calculated for the current cached object...
Definition: objectSensor.h:512
std::shared_ptr< const DtManagedObjectList > DtManagedObjectListConstPtr
Typedef for a shared pointer to a const DtOrgViewManagedObjectList. These lists are used within VR-Fo...
Definition: managedObjectList.h:35
Definition: readerWriterRegistry.h:39
The DtExtent represents an axis-aligned 3d bounding box.
Definition: extent.h:43
virtual void disable()
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
DtManagedObjectList::const_iterator nextDetectableObject
Definition: objectSensor.h:90
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Definition: objectSensor.h:520
Holds the interal state for the processObjectsSlice()
Definition: objectSensor.h:77
std::shared_ptr< DtLocalizedManagedObjectList > currentlyDetectableObjectList
Definition: objectSensor.h:89
DtObjectSensor is a base level sensor component.
Definition: objectSensor.h:53
DtManagedObjectListConstPtr myDetectableObjectList
Definition: objectSensor.h:491
Interface for a customizable interrupt flag that can be passed into a function to allow the calling c...
Definition: interruptFlag.h:9
virtual void enable()
Is this component enabled or not. If enabled, component's tick function will be called, otherwise it will not. Default is true (enabled).
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
An abstract base class for all evaluators of spatial filters. The evaluation of spatial filters is sp...
Definition: spatialFilterEvaluator.h:31
DtEntityTypesListMultiInputPort * myObjectsToDetectInputPort
Inputs: DtEntityTypesListMultiInputPort : object-types-to-detect Input Port Name: object-types-to-...
Definition: objectSensor.h:422
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
DtListItem * psrContactListItem
The next item in the PSR contact info list to be processed for continueDectectingObject().
Definition: objectSensor.h:88
DtForceType myForceType
The force type the last time the detectable object list was updated.
Definition: objectSensor.h:503
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
DtSpatialFilterEvaluator * mySensorGeometryEvaluator
Definition: objectSensor.h:500
DtVectorInputPort * myTargetLocationInputPort
Input Port Name: target-location Input Port Description: Specifies the location to be targeted by thi...
Definition: objectSensor.h:471
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
DtObjectSensorPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: objectSensor.h:496
ContinueDetectingResult
Definition: objectSensor.h:69
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
std::set< DtSimObjectReference >::const_iterator const_iterator
Definition: managedObjectList.h:101
DtProcessObjectsState()
Make sure new instances of state have variables initialized.
Definition: objectSensor.h:80
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
double myMutableObjectRangeCache
The current range to the cached object, if calculated.
Definition: objectSensor.h:510
DtBooleanInputPort * myTargetAcquiredInputPort
Input Port Name: target-acquired Input Port Description: Specifies whether the sensor was able to acq...
Definition: objectSensor.h:487
Contains the DtSimComponent class declaration.
const DtObjectSensorDescriptor * myObjectSensorDescriptor
Definition: objectSensor.h:492
std::set< DtUUID > TargetSet
Definition: objectSensor.h:92
DtVectorInputPort * myPositionInputPort
Input Port Name: position Input Port Description: Specifies the position of the sensor in body coordi...
Definition: objectSensor.h:447
Class which manages the sending of sensor contact information to the GUI from one particular sensor o...
Definition: objectSensorMonitor.h:26
bool myPrep_invokeNewContactCallbacks
Definition: objectSensor.h:519
bool myGeometrySetup
Whether setupGeometryForDetection() has been called yet.
Definition: objectSensor.h:517
const DtSimObject * myMutableObjectCached
The VrfObject whose range is currently cached.
Definition: objectSensor.h:506
TargetSet checkedTargets
Definition: objectSensor.h:93
DtIntegerInputPort * myTrackingModeInputPort
Input Port Name: tracking-mode Input Port Description: Specifies the tracking mode of the sensor...
Definition: objectSensor.h:479
bool isComplete
Definition: objectSensor.h:94
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
Definition: objectSensorPSR.h:23
A locally simulated VRF object.
Definition: localObject.h:98