22 #include "matrix/coordTransform.h"
50 virtual const char*
type()
const override;
55 virtual void tick()
override;
61 static void followInFormationCallback(
DtSimMessage * msg,
void * usr);
74 void cleanFollowInFormation();
77 virtual void endFollowInFormation(
bool taskSuccess =
true);
96 virtual int adjustStartPoint(
const std::vector<DtVector>& routeVertices,
97 const DtVector& entityLocation);
106 virtual void doMoving();
110 virtual bool checkTaskEndCondition();
113 virtual bool isLeaderCapable()
const;
117 virtual double horizDistBetweenPoints(DtVector, DtVector);
121 virtual double horizDistBetweenPoints(
DtPoint loc1,
DtPoint loc2);
130 virtual int findClosestSegmentIndex(DtVector testPoint, std::vector<DtVector> testRoute,
131 DtPoint& closestSegmentLoc,
double& distanceToSegment,
int indexSegmentFloor = 0);
136 virtual double findDesiredAcceleration(
double targetSpeed,
double targetHeading,
137 double currentHeading,
double disToTarget);
144 virtual bool createFollowerOffsetRoute(
const std::vector<DtVector>& localPoints,
145 float rightOffset,
float forwardOffset,
DtUUID& routeUUID);
148 virtual void processFollowInFormation(
const DtTaskMessage& msg);
155 virtual bool publishFormationRoutes()
const;
169 virtual double distanceBehind(
const DtVector topoRefPos,
170 const DtVector leaderDir,
const DtVector topoCurrentPosition);
171 virtual bool isPastDestination(
const int currentIndex);
UUID is a unique ID wrapper class.
Definition: uuid.h:59
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual void registerTaskMsgCallbacks()
File: lclVecIter.h.
Definition: localVectorIterator.h:25
virtual void clearTask() override
Overridden to deactivate the port group when this controller completes a task.
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
const DtGroundAutoControllerComponent & operator=(const DtGroundAutoControllerComponent &orig)
assignment operator; not implemented
virtual void updateTaskVisualizations()
Called to update task visualizations after every tick. Implemented by subclasses. ...
Definition: simComponent.h:443
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
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
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
DtGroundAutoControllerComponent is a base controller that holds capabilitites common to all automotiv...
Definition: groundAutoControllerComponent.h:34
A locally simulated VRF object.
Definition: localObject.h:98