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();
54 
55  virtual bool init();
56 
59  virtual void preFirstTickInit();
60 
63  virtual const char* type() const;
64 
72  virtual int sensorType() const;
73 
77  virtual void tick();
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
virtual int sensorType() const
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.
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
virtual bool init()
Calls createPSR(), createDetectableObjectList(), createAndInitSensorMonitor() and initSensorGeometry(...
DtSearchRescueSensorDescriptor; descriptor for the DtSearchRescueSensor component.
Definition: searchRescueSensorDescriptor.h:26
The DtSimObjectReference is a shared pointer that can be used amongst many object for access to the u...
Definition: simObjectReference.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
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:68
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 void tick()
Overridden from base class to update myLocalSensorPosition (using localSensorPosition()) at the start...
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:95
const DtSearchRescueSensorDescriptor * mySearchDescriptor
Definition: searchRescueSensor.h:108
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
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()
Processes only if the simulation is not paused. Calls attemptToActivate() on myDetectedObjectListPort...
virtual void preFirstTickInit()
Initializes the component before it is ticked for the first time. It is called by timedTick if myFirs...
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. 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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)