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() override;
58 
61  virtual bool init() override;
62 
65  virtual const char* type() const override;
66 
70  virtual void tick() override;
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 
94  virtual bool createPorts() override;
95 
102  virtual void fuseSensorContacts();
103 
106  virtual void checkAndUpdateForceHostility(DtRwSensorContactInfo*) const;
107 
109  virtual bool hasLostContacts() const;
110 
111 protected:
112 
115 
124 
125 
134 
141 };
142 
#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
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
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
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:35
virtual bool init() override
Calls setRadio()
DtContactFusionDescriptor * myContactFusionDescriptor
pointer to descriptor, can be nullptr
Definition: contactFusionController.h:114
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
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:140
DtSensorContactListMultiInputPort * myDetectedObjectsInputPort
Input Port Name: detected-objects Input Port Description: List of contacts to send spot reports for...
Definition: contactFusionController.h:132
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)