VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
contactFusionController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 
17 #include <map>
18 
24 
39 {
40 private:
47  const DtContactFusionController& orig);
48 public:
49 
53  DtSimulationServices* simManager, DtComponentDescriptor* desc=0,
54  DtReaderWriterRegistry *parentRegistry=0);
55 
57  virtual ~DtContactFusionController();
58 
61  virtual bool init();
62 
65  virtual const char* type() const;
66 
70  virtual void tick();
71 
75  static DtSimComponent * creator(const DtString& name,
76  DtLocalObject* owner,
77  DtSimulationServices* simManager,
78  DtComponentDescriptor* desc = 0,
79  DtReaderWriterRegistry* parentRegistry = 0);
80 
81 protected:
82 
85  virtual bool ageRecallContact(const DtTime& simTime,
86  DtRwSensorContactInfo& agingInfo);
87 
90  virtual bool ageRecallContact(const DtRwSensorContactInfo& newInfo,
91  DtRwSensorContactInfo& agingInfo);
92 
100  virtual void reconcileFreshContactsWithFusedContacts(std::map<DtUUID, DtRwSensorContactInfo*>& newContacts);
101 
103  virtual bool createPorts();
104 
111  virtual void fuseSensorContacts();
112 
115  virtual void updateContactInfo(DtRwSensorContactInfo * entry, const DtRwSensorContactInfo * incomingInfo);
116 
119  virtual void checkAndUpdateForceHostility(DtRwSensorContactInfo*) const;
120 
122  virtual bool hasLostContacts() const;
123 
124 protected:
125 
128 
137 
138 
147 
154 };
155 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
A multi-connection input port whose data members are sensor contact lists.
Definition: sensorContactListIOPort.h:46
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtContactFusionController populates the objectContactList in the DtVrfObjectStateRepository by gather...
Definition: contactFusionController.h:38
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
Definition: sensorContactListIOPort.h:71
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
Definition: contactFusionDescriptor.h:21
This class represents the data gathered by a sensor about a particular single sensor contact...
Definition: rwSensorContactInfo.h:68
A reader-writer list of DtRwSensorContactInfo elements. Use the DtRwList::add() and remove() methods ...
Definition: sensorContactInfoList.h:32
virtual bool init() override
Calls setRadio()
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtContactFusionDescriptor * pMyContactFusionDescriptor
pointer to descriptor, can be nullptr
Definition: contactFusionController.h:127
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
DtSensorContactInfoList * myFusedContactsList
This holds the fused list of sensor contacts. (i.e. only one entry per potential target, even if it was spotted by multiple sensors), keyed by name of contact. This list points to the object&#39;s state repository list which is responsible for the creation and destruction of the list.
Definition: contactFusionController.h:153
DtSensorContactListMultiInputPort * myDetectedObjectsInputPort
Input Port Name: detected-objects Input Port Description: List of contacts to send spot reports for...
Definition: contactFusionController.h:145
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)