VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
bhaveSim
bhaveMoveDirectionController.h
Go to the documentation of this file.
1
2
/*******************************************************************************
3
** Copyright (c) 2009 MAK Technologies, Inc.
4
** All rights reserved.
5
*******************************************************************************/
6
/*******************************************************************************
7
* Copyright 2009 Autodesk, Inc. All rights reserved.
8
* Use of this software is subject to the terms of the Autodesk license
9
* agreement provided at the time of installation or download, or which otherwise
10
* accompanies this software in either electronic or hard copy form.
11
*******************************************************************************/
12
13
/*******************************************************************************
14
** $RCSfile: bhaveMoveDirectionController.h,v $ $Revision: 1.3 $ $State: Exp $
15
*******************************************************************************/
16
19
20
#pragma once
21
22
#include <
bhaveSim/bhaveSimDefines.h
>
23
#include <
vrfmodel/groundMoveDirectionController.h
>
24
25
class
DtAnalogInputPort
;
26
class
DtBooleanInputPort
;
27
class
DtInputPortGroup
;
28
29
namespace
BHAVE
30
{
31
class
DtGroundMoveDirectionControllerDescriptor
;
32
33
const
char
DtBhaveMoveDirectionControllerType
[] =
"bhave-move-direction-controller"
;
34
39
class
DT_DLL_bhaveSim
DtBhaveMoveDirectionController
:
public
DtGroundMoveDirectionController
40
{
41
private
:
43
DtBhaveMoveDirectionController
();
45
DtBhaveMoveDirectionController
(
const
DtBhaveMoveDirectionController
&
46
orig);
48
const
DtBhaveMoveDirectionController
& operator=(
const
49
DtBhaveMoveDirectionController
& orig);
50
51
public
:
54
DtBhaveMoveDirectionController
(
const
DtString
& name,
55
DtVrfObject
* owner,
56
DtSimManager
* simManager,
57
DtComponentDescriptor
* desc = 0,
58
DtReaderWriterRegistry
* parentRegistry = 0);
59
61
virtual
~
DtBhaveMoveDirectionController
();
62
63
virtual
bool
init
();
64
67
virtual
DtString
type()
const
;
68
70
virtual
double
calculateSteering(
double
currentHeading,
double
71
desiredHeading,
bool
reverseDirection =
false
)
const
;
72
76
static
DtSimComponent
* creator(
const
DtString
& name,
77
DtVrfObject
* owner,
78
DtSimManager
* simManager,
79
DtComponentDescriptor
* desc = 0,
80
DtReaderWriterRegistry
* parentRegistry = 0);
81
82
protected
:
83
86
virtual
bool
createPorts();
87
88
virtual
bool
createTurningDirectionInputPort();
89
91
virtual
void
setControlsForNormalMove();
92
93
virtual
double
approximateThrottle(
double
speed);
94
95
protected
:
96
97
DtBooleanInputPort
*
myTurningDirectionInputPort
;
98
99
};
100
101
}
//namespace BHAVE
102
103
104
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)