VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfmodel
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
14
#include "
vrfmodel/rotaryWingMoveToControllerComponent.h
"
15
#include <vlutil/vlString.h>
16
#include <matrix/vlVector.h>
17
18
class
DtSimManager
;
19
class
DtSimMessage
;
20
class
DtRotaryWingFollowTaskDescriptor
;
21
class
DtRotaryWingEntityStateRepository
;
22
32
#include "
vrfmodel/vrfmodelDefines.h
"
33
class
DT_DLL_vrfmodel
DtRotaryWingFollowEntityController
:
public
DtRotaryWingMoveToControllerComponent
34
{
35
36
public
:
37
40
DtRotaryWingFollowEntityController
(
const
DtString
& name,
41
DtVrfObject
* owner,
42
DtSimManager
* simManager,
43
DtComponentDescriptor
* desc = 0,
44
DtReaderWriterRegistry
* parentRegistry = 0);
45
47
virtual
~
DtRotaryWingFollowEntityController
();
48
51
virtual
const
char
*
type
()
const
;
52
53
57
static
void
followEntityCallback(
DtSimMessage
* msg,
void
* usrData);
58
61
virtual
void
processFollowEntityTask(
DtSimMessage
* msg);
62
64
virtual
const
DtUUID
& entityToFollow()
const
;
65
virtual
void
setEntityToFollow(
const
DtUUID
& entity);
66
69
virtual
const
DtVector
& offsetVector()
const
;
70
virtual
void
setOffsetVector(
const
DtVector
& offsets);
71
75
static
DtSimComponent
*
creator
(
const
DtString
& name,
76
DtVrfObject
* owner,
77
DtSimManager
* simManager,
78
DtComponentDescriptor
* desc = 0,
79
DtReaderWriterRegistry
* parentRegistry = 0);
80
81
protected
:
84
DtRotaryWingFollowEntityController
();
85
87
DtRotaryWingFollowEntityController
(
const
DtRotaryWingFollowEntityController
&
88
orig);
89
91
const
DtRotaryWingFollowEntityController
&
operator=
(
const
92
DtRotaryWingFollowEntityController
& orig);
93
95
virtual
void
registerTaskMsgCallbacks
();
96
100
virtual
void
tick
();
101
104
virtual
void
stop
();
105
115
virtual
void
pilotProperties
();
116
118
virtual
double
findDesiredSpeed(
const
DtVector
& target,
bool
& matchingTarget);
119
121
virtual
bool
passedDestination(
const
DtVector
& target);
122
124
virtual
bool
atDestination(
const
DtVector
& target);
125
virtual
bool
getCurrentLeaderState(
126
DtVector
& localPosition,
DtVector
& localVelocity,
127
DtTaitBryan& topoOrientation,
DtVector
& topoRotationRate);
128
129
virtual
void
calculateDesiredVelocity(
double
desiredSpeed,
const
DtVector
& nextPoint);
130
131
virtual
void
updateTaskVisualizations
();
132
133
protected
:
134
136
DtVrfObject
*
myEntityPointer
;
137
138
const
DtRotaryWingFollowTaskDescriptor
*
myFollowDescriptor
;
139
140
DtRotaryWingEntityStateRepository
*
myRotaryWingEntityState
;
141
142
DtDcm
myLocalToTopoDcm
;
143
};
144
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)