18#include <vrfobjcore/actuatorComponent.h>
23class DtSimulationServices;
26class DtConstrainedAnalogInputPort;
27class DtBooleanInputPort;
66 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
73 virtual const char*
type()
const override;
75 virtual bool init()
override;
81 virtual void tick()
override;
86 static DtSimComponent*
creator(
const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
87 DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
136 makVrf::DtArticulatedPartStateRepository*
myPart;
Stabilized articulated part actuator descriptor for VREngage.
Definition artPartActuatorDescriptor.h:39
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
DtVreSimComponent(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Definition vreSimComponent.h:54
DtVreStabilizedArtPartActuator(const DtVreStabilizedArtPartActuator &orig)
copy constructor; not implemented
const DtVreStabilizedArtPartActuatorDescriptor * myArtPartActuatorDescriptor
Definition artPartActuator.h:132
bool checkStabilizeState()
DtVreStabilizedArtPartActuator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtVector myCueVector
Definition artPartActuator.h:151
const DtVreStabilizedArtPartActuator & operator=(const DtVreStabilizedArtPartActuator &orig)
assignment operator; not implemented
bool myStabilizationOn
Definition artPartActuator.h:149
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool init() override
DtVreStabilizedArtPartActuator()
default constructor; not implemented
DtReal myUpperLimit
Definition artPartActuator.h:146
double getSlewPortInput()
DtReal myLowerLimit
Local copies of the parameters in the turret descriptor, conditioned to be between 0 and 2pi.
Definition artPartActuator.h:145
makVrf::DtArticulatedPartStateRepository * myPart
Definition artPartActuator.h:136
virtual ~DtVreStabilizedArtPartActuator() override
destructor
bool mySlewToCueOverrideActive
Definition artPartActuator.h:152
virtual void tick() override
Calculate new kinematic state.
virtual bool postAddComponentsInit() override
Calls lookupAndCacheProcessSR() and initProcessSR()
double myLastInput
Definition artPartActuator.h:159
virtual bool createPorts() override
Creates the slew port.
double realizeSlew(double &slewRate)
DtArtPartType myPartType
Definition artPartActuator.h:134
bool myRotation360
Cache for the condition for 360 rotation, which is hasFixedAzimuth = false and leftLimit = rightLimit...
Definition artPartActuator.h:141
double calculateSlewToTarget(const DtVector &target)
DtDcm axisOrientation() const
bool myStabilizeButtonDown
Definition artPartActuator.h:148
DtVector getLocalRotationAxis(const DtDcm &orientation)
DtConstrainedAnalogInputPort * mySlewPort
Input Port Name: slew Input Port Description: -1.0 indicates maximum left slew, 1....
Definition artPartActuator.h:122
DtBooleanInputPort * myStabilizePort
Input Port Name: stabilize Input Port Description: Set stabilization on or off for this actuator....
Definition artPartActuator.h:128
bool myRequireNewData
When switching weapon systems, we can't rely on the port to determine if there's been new data sent....
Definition artPartActuator.h:158
virtual const char * type() const override
virtual DtVreMessageResult handleSlewToCue(DtVreMessage *msg)
Defines export macros for the vreVrfmodel library.
#define VREVRFMODEL_DLL
Definition export.h:22
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
const char DtVreStabilizedArtPartActuatorType[]
Definition artPartActuator.h:58
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the base class for all VREngage messages.
Base template class for VR-Engage simulation components.