VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotaryWingFollowEntityController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
13 
16 #include <vlutil/vlString.h>
17 #include <matrix/vlVector.h>
18 
20 class DtSimMessage;
23 
35 {
36 
37 public:
38 
42  DtLocalObject* owner,
43  DtSimulationServices* simManager,
44  DtComponentDescriptor* desc = 0,
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
48  virtual ~DtRotaryWingFollowEntityController() override;
49 
52  virtual const char* type() const override;
53 
54 
58  static void followEntityCallback(DtSimMessage * msg, void * usrData);
59 
62  virtual void processFollowEntityTask(DtSimMessage * msg);
63 
66  virtual void processAbsoluteFollowEntityTask(DtSimMessage* msg);
67 
69  virtual DtUUID entityToFollow() const;
70  virtual void setEntityToFollow(const DtUUID& entity);
71 
74  virtual const DtVector& offsetVector() const;
75  virtual void setOffsetVector(const DtVector& offsets);
76 
80  static DtSimComponent * creator(const DtString& name,
81  DtLocalObject* owner,
82  DtSimulationServices* simManager,
83  DtComponentDescriptor* desc = 0,
84  DtReaderWriterRegistry* parentRegistry = 0);
85 
86 protected:
90 
93  orig);
94 
98 
100  virtual void registerTaskMsgCallbacks() override;
101 
105  virtual void tick() override;
106 
109  virtual void stop() override;
110 
120  virtual void pilotProperties() override;
121 
123  virtual double findDesiredSpeed(const DtVector& target, bool& matchingTarget);
124 
126  virtual bool passedDestination(const DtVector& target);
127 
129  virtual bool atDestination(const DtVector& target);
130  virtual bool getCurrentLeaderState(
131  DtVector& localPosition, DtVector& localVelocity,
132  DtTaitBryan& topoOrientation, DtVector& topoRotationRate);
133 
134  virtual double computeHeadingToEntity(const DtVector& entityLoc) const;
135 
136  virtual void calculateDesiredVelocity(double desiredSpeed, const DtVector& nextPoint);
137 
138  virtual void updateTaskVisualizations();
139 
140 protected:
141 
144 
146 
148 
151 
160 
165 
167  std::vector<DtVector> myVisLine;
168 };
169 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
double myAbsoluteFollowRelativeAltitude
Absolute follow relative altitude in meters, used when myUseAbsoluteFollowOffset is true...
Definition: rotaryWingFollowEntityController.h:159
DtMovementSimObjectFacade myEntityPointerSimObjectFacade
Definition: rotaryWingFollowEntityController.h:150
This repository holds all information that is common to all the forms of local rotary wing entities w...
Definition: rotaryWingEntityStateRepository.h:27
std::vector< DtVector > myVisLine
For task visualization.
Definition: rotaryWingFollowEntityController.h:167
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void tick() override
Sets the desired position and velocity for use by the parent controller, then calls the parent&#39;s tick...
double myAbsoluteFollowBearing
Absolute follow bearing in radians (world frame), used when myUseAbsoluteFollowOffset is true...
Definition: rotaryWingFollowEntityController.h:155
Holds a position of some form. May be an absolute position, or a reference to another object...
Definition: rwLocationReference.h:25
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
DtRotaryWingEntityStateRepository * myRotaryWingEntityState
Definition: rotaryWingFollowEntityController.h:147
virtual void pilotProperties()
Sets the appropriate properties for the wait controller: The position selector is 1...
DtRotaryWingFollowEntityController is a controller component that models following behavior for rotar...
Definition: rotaryWingFollowEntityController.h:34
DtRotaryWingFollorTaskDescriptor; descriptor for the rotary wing follow task components.
Definition: rotaryWingFollowTaskDescriptor.h:18
const DtRotaryWingFollowTaskDescriptor * myFollowDescriptor
Definition: rotaryWingFollowEntityController.h:145
File: simMsg.h.
Definition: simMessage.h:35
DtSimObjectReference myEntityPointer
Set fresh each frame by setupControlPoint.
Definition: rotaryWingFollowEntityController.h:143
const DtRotaryWingMoveToControllerComponent & operator=(const DtRotaryWingMoveToControllerComponent &orig)
assignment operator; see comments on copy constructor!
virtual void updateTaskVisualizations() override
update visualizations
DtRotaryWingMoveToControllerComponent is a controller used to model the movement of a helicopter alon...
Definition: rotaryWingMoveToControllerComponent.h:27
DtRwLocationReference myAimingPoint
Optional aiming point reference used when myUseAimingPoint is enabled.
Definition: rotaryWingFollowEntityController.h:164
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
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
virtual void stop()
Overridden by DtRotaryWindEmbarkationController.
double myAbsoluteFollowDistance
Absolute follow horizontal distance in meters, used when myUseAbsoluteFollowOffset is true...
Definition: rotaryWingFollowEntityController.h:157
bool myUseAbsoluteFollowOffset
True when using world-frame absolute follow offsets instead of leader-relative offsets.
Definition: rotaryWingFollowEntityController.h:153
DtDcm myLocalToTopoDcm
Definition: rotaryWingFollowEntityController.h:149
virtual void registerTaskMsgCallbacks() override
Overrides this so it can register its interest in MoveTo commands.
A locally simulated VRF object.
Definition: localObject.h:98
bool myUseAimingPoint
True when follow behavior should use an explicit aiming point override.
Definition: rotaryWingFollowEntityController.h:162

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)