VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
swingingPartActuator.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "
vrfobjcore/actCmpnt.h
"
14
#include "
vrfmodel/vrfmodelDefines.h
"
15
16
class
DtString
;
17
class
DtSimManager
;
18
class
DtBooleanInputPort
;
19
class
DtIntegerOutputPort
;
20
class
DtSimObjectBaseObjectStateRepository;
21
class
DtSwingingPartActuatorDescriptor
;
22
class
DtSwingingPartActuatorPSR
;
23
35
class
DT_DLL_vrfmodel
DtSwingingPartActuator
:
public
DtActuatorComponent
36
{
37
38
public
:
39
42
DtSwingingPartActuator
(
const
DtString
& name,
43
DtVrfObject
* owner,
44
DtSimManager
* simManager,
45
DtComponentDescriptor
* desc = 0,
46
DtReaderWriterRegistry
* parentRegistry = 0);
47
49
virtual
~
DtSwingingPartActuator
();
50
51
virtual
bool
init
();
52
54
virtual
bool
postAddComponentsInit
();
55
58
virtual
DtString
type
()
const
;
59
61
virtual
void
tick
();
62
66
static
DtSimComponent
* creator(
const
DtString
& name,
67
DtVrfObject
* owner,
68
DtSimManager
* simManager,
69
DtComponentDescriptor
* desc = 0,
70
DtReaderWriterRegistry
* parentRegistry = 0);
71
72
protected
:
74
virtual
bool
createPorts
();
75
81
virtual
DtSwingingPartActuatorPSR
* createPSR();
82
84
virtual
double
currentPosition();
85
87
virtual
void
setPositionAndRate(
double
newPos,
double
newRate);
88
91
virtual
bool
angleWithinSlewArc(
double
angle);
92
93
private
:
95
DtSwingingPartActuator
();
97
DtSwingingPartActuator
(
const
DtSwingingPartActuator
& orig);
99
const
DtSwingingPartActuator
&
operator=
(
const
100
DtSwingingPartActuator
& orig);
101
102
protected
:
103
106
110
DtIntegerOutputPort
*
myCurrentStateOutputPort
;
111
117
DtBooleanInputPort
*
myRequestedStateInputPort
;
119
121
DtArticulatedPartStateRepository
*
myArtPartStateRep
;
122
123
const
DtSwingingPartActuatorDescriptor
*
myDescriptor
;
124
125
enum
SwingAxis
126
{
127
XAxis
,
128
YAxis
,
129
ZAxis
130
};
131
132
SwingAxis
mySwingAxis
;
133
136
DtSwingingPartActuatorPSR
*
myProcessState
;
137
};
138
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)