VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
searchRescueSensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
7 
10 
11 #pragma once
12 
15 
17 
28 {
29 private:
32 
35  orig);
36 
38  const DtSearchRescueSensor & operator=(const
39  DtSearchRescueSensor & orig);
40 
41 public:
43 
46  DtSearchRescueSensor(const DtString& name,
47  DtLocalObject* owner,
48  DtSimulationServices* simManager,
49  DtComponentDescriptor* desc = 0,
50  DtReaderWriterRegistry* parentRegistry = 0);
51 
53  virtual ~DtSearchRescueSensor() override;
54 
55  virtual bool init() override;
56 
59  virtual void preFirstTickInit() override;
60 
63  virtual const char* type() const override;
64 
72  virtual int sensorType() const override;
73 
77  virtual void tick() override;
78 
82  static DtSimComponent * creator(const DtString& name,
83  DtLocalObject* owner,
84  DtSimulationServices* simManager,
85  DtComponentDescriptor* desc = 0,
86  DtReaderWriterRegistry* parentRegistry = 0);
87 
88 protected:
89 
90 
93  virtual bool detectObject(DtSimObjectReference object, DtRwSensorContactInfo* contactInfo) override;
94 
100  DtRwSensorContactInfo* contactInfo,
101  bool& contactInfoModified) override;
102 
104  virtual bool updateSensorContactInfo(DtSimObjectReference object,
105  DtRwSensorContactInfo * contactInfo, const int updateLevel) override;
106 
107 protected:
109 };
110 
111 #pragma once
const DtSignatureObjectSensor & operator=(const DtSignatureObjectSensor &orig)
assignment operator; not implemented
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtSearchRescueSensorDescriptor; descriptor for the DtSearchRescueSensor component.
Definition: searchRescueSensorDescriptor.h:26
virtual bool updateSensorContactInfo(DtSimObjectReference object, DtRwSensorContactInfo *contactInfo, const int updateLevel)
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
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:68
virtual void tick() override
Overridden from base class to update myLocalSensorPosition (using localSensorPosition()) at the start...
A sensor component which uses the VR-Forces Sensor Signature model for detecting object.
Definition: signatureObjectSensor.h:41
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool init() override
Calls createPSR(), createDetectableObjectList(), createAndInitSensorMonitor() and initSensorGeometry(...
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
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:96
const DtSearchRescueSensorDescriptor * mySearchDescriptor
Definition: searchRescueSensor.h:108
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
virtual void preFirstTickInit() override
Initializes the component before it is ticked for the first time. It is called by timedTick if myFirs...
A sensor component which uses the VR-Forces Sensor Signature model for detecting object.
Definition: searchRescueSensor.h:27
virtual bool detectObject(DtSimObjectReference object, DtRwSensorContactInfo *contactInfo) override
Returns true if object is detected. Calls apparentSignature to determine what the object's signature ...
virtual void tick() override
Processes only if the simulation is not paused. Calls attemptToActivate() on myDetectedObjectListPort...
virtual int sensorType() const override
Returns the enumerated type of this sensor. It is based on the sensor domain string. "radar" maps to DtSenorTypeRadar. "visual" maps to DtSensorTypeVisual. "sonar" maps to DtSensorTypeSonar. "infrared" maps to DtSensorTypeInfrared. Anything else maps to DtSensorTypeUnknown.
virtual ContinueDetectingResult continueDetectingObject(DtSimObjectReference object, DtRwSensorContactInfo *contactInfo, bool &contactInfoModified) override
Same as detectObject except it is checking for objects we had previously detected. In this case the amount of time that this object has been detected by the sensor will be factored in when determining the identification level. Again returns true if the object is still detected and the contact info is updated. If there were changes in the contact info, contactInfoModified will be true.
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)