16 #include <vlutil/vlString.h>
17 #include <matrix/vlVector.h>
52 virtual const char*
type()
const override;
58 static void followEntityCallback(
DtSimMessage * msg,
void * usrData);
62 virtual void processFollowEntityTask(
DtSimMessage * msg);
66 virtual void processAbsoluteFollowEntityTask(
DtSimMessage* msg);
69 virtual DtUUID entityToFollow()
const;
70 virtual void setEntityToFollow(
const DtUUID& entity);
74 virtual const DtVector& offsetVector()
const;
75 virtual void setOffsetVector(
const DtVector& offsets);
105 virtual void tick()
override;
109 virtual void stop()
override;
123 virtual double findDesiredSpeed(
const DtVector& target,
bool& matchingTarget);
126 virtual bool passedDestination(
const DtVector& target);
129 virtual bool atDestination(
const DtVector& target);
130 virtual bool getCurrentLeaderState(
131 DtVector& localPosition, DtVector& localVelocity,
132 DtTaitBryan& topoOrientation, DtVector& topoRotationRate);
134 virtual double computeHeadingToEntity(
const DtVector& entityLoc)
const;
136 virtual void calculateDesiredVelocity(
double desiredSpeed,
const DtVector& nextPoint);
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'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