VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
bhaveSim
kynapseLifeformCtrl.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
//
16
//
17
18
#ifndef KYNAPSE_LIFEFORM_CONTROLLER_H
19
#define KYNAPSE_LIFEFORM_CONTROLLER_H
20
21
#include <
bhaveSim/bhaveSimDefines.h
>
22
#include "
bhaveSim/kynapseCtrl.h
"
23
24
class
DtAnalogOutputPort
;
25
class
DtBooleanOutputPort
;
26
class
DtConstrainedIntegerOutputPort
;
27
class
DtConstrainedAnalogOutputPort
;
28
class
DtOutputPortGroup
;
29
class
DtGroundVehicleStateRepository
;
30
class
DtKynapsePSR;
31
class
DtScenario
;
32
class
DtAnalogOutputPort
;
33
class
DtAnalogOutputPort
;
34
class
DtOutputPortGroup
;
35
class
DtSensorContactListInputPort
;
36
class
DtSensorContactInfoList
;
37
38
namespace
BHAVE
39
{
40
41
43
const
char
DtKynapseLifeformControllerType
[] =
"kynapse-lifeform-controller"
;
44
50
class
DT_DLL_bhaveSim
DtKynapseLifeformController
:
public
DtKynapseController
51
{
52
public
:
53
55
DtKynapseLifeformController
(
const
DtString
& name,
DtVrfObject
* owner,
56
DtSimManager
* simManager,
DtComponentDescriptor
* desc = NULL,
57
DtReaderWriterRegistry
* parentRegistry = 0);
58
60
virtual
~
DtKynapseLifeformController
();
61
63
DtKynapseLifeformController
(
const
DtKynapseLifeformController
& orig);
64
66
DtKynapseLifeformController
& operator=(
const
DtKynapseLifeformController
& orig);
67
68
virtual
bool
init
();
69
71
virtual
DtString
type()
const
;
72
74
virtual
void
setComponentDescriptor(
DtComponentDescriptor
* descriptor);
75
77
static
DtSimComponent
* creator(
const
DtString
& name,
78
DtVrfObject
* owner,
DtSimManager
* simManager,
DtComponentDescriptor
* desc,
79
DtReaderWriterRegistry
* parentRegistry);
80
81
protected
:
82
83
virtual
DtBoolean createPortGroups();
86
virtual
DtBoolean createPorts();
87
91
virtual
DtBoolean applyKynapseRecommendations();
92
93
virtual
DtBoolean deactivateOutputControl();
94
95
protected
:
96
99
DtAnalogOutputPort
*
myDirectionOutputPort
;
100
DtAnalogOutputPort
*
myFacingDirectionOutputPort
;
101
DtAnalogOutputPort
*
mySpeedOutputPort
;
102
103
DtOutputPortGroup
*
myMovementControlOutputPortGroup
;
105
};
106
107
#endif
108
109
}
//namespace BHAVE
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)