VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtAggregatedMovementActuator Class Reference

End User Description: Actuator for moving aggregated aggregates along the ground. More...

Inheritance diagram for DtAggregatedMovementActuator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtAggregatedMovementActuator (const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry=0)
 constructor
virtual ~DtAggregatedMovementActuator ()
 destructor
virtual bool init ()
 Perform any initialization required by the actuator.
virtual DtString type () const
 Returns a string from compTypes.h, identifying the type of component.
virtual void tick ()
 Calculate new kinematic state, and copy it to state repository.

Static Public Member Functions

static DtSimComponentcreator (const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
 Creator function to be registered with the DtSimComponentFactory -- see main.cxx.

Protected Member Functions

virtual DtVector calculateProjectedLocation (const DtVector &oldLocalPosition, const DtVector &newBodyVelocity, double newHeading)
virtual void calculateOrientationAndPosition (const DtVector &newLocalProjectedLocation, double newHeading, DtDcm &newLocalOrientation, DtVector &newLocalPosition)
virtual void groundClamp (double heading, const DtVector &location, DtAttachedTerrain &terrainDatabase, DtVector &newNormal)
virtual void updateRepository (const DtVector &position, const DtVector &velocity, const DtVector &acceleration, const DtTaitBryan &localOrientation, const DtVector &rotationalVelocity)
virtual bool createPorts ()
 Overridden to create the movement control input ports.
virtual bool createPortGroups ()
 Overridden to create the movement control input port group.
 DtAggregatedMovementActuator (const DtAggregatedMovementActuator &orig)
 copy constructor
const
DtAggregatedMovementActuator
operator= (const DtAggregatedMovementActuator &orig)
 assignment operator

Protected Attributes

const
DtActuatorComponentDescriptor
myActuatorDescriptor
Ports and Port Groups
DtAnalogInputPortmyMovementDirectionInputPort
 Input Port Name: desired-movement-direction
Input Port Description: Desired movement direction of the entity in radians.
DtAnalogInputPortmySpeedInputPort
 Input Port Name: desired-speed
Input Port Description: Desired speed of the entity in m/s.
DtInputPortGroupmyMovementControlPortGroupInputPortGroup
 Input Port Group Name: movement-control
Input Port Group Description: Collection of inputs specifying the desired movement of the entity.
DtVrfMovingObjectStateRepositorymyMovingObjectStateRepository
 Convenience pointers to our state repository.
DtVrfAggregateStateRepositorymyAggregateStateRepository
 Convenience pointers to our state repository.

Detailed Description

End User Description: Actuator for moving aggregated aggregates along the ground.

This actuator places the aggregate on the ground, moving it at some speed in the given direction. The aggregate is treated as a point object when moving using this actuator. Uses Descriptor Type: DtActuatorComponentDescriptor


Constructor & Destructor Documentation

DtAggregatedMovementActuator::DtAggregatedMovementActuator ( const DtString name,
DtVrfObject object,
DtSimManager simManager,
DtComponentDescriptor compDescriptor,
DtReaderWriterRegistry parentRegistry = 0 
)

constructor

destructor

copy constructor


Member Function Documentation

Perform any initialization required by the actuator.

Reimplemented from DtActuatorComponent.

virtual DtString DtAggregatedMovementActuator::type ( ) const [virtual]

Returns a string from compTypes.h, identifying the type of component.

Reimplemented from DtSimComponent.

virtual void DtAggregatedMovementActuator::tick ( ) [virtual]

Calculate new kinematic state, and copy it to state repository.

Reimplemented from DtSimComponent.

static DtSimComponent* DtAggregatedMovementActuator::creator ( const DtString name,
DtVrfObject object,
DtSimManager simManager,
DtComponentDescriptor compDescriptor,
DtReaderWriterRegistry parentRegistry 
) [static]

Creator function to be registered with the DtSimComponentFactory -- see main.cxx.

virtual DtVector DtAggregatedMovementActuator::calculateProjectedLocation ( const DtVector oldLocalPosition,
const DtVector newBodyVelocity,
double  newHeading 
) [protected, virtual]
virtual void DtAggregatedMovementActuator::calculateOrientationAndPosition ( const DtVector newLocalProjectedLocation,
double  newHeading,
DtDcm &  newLocalOrientation,
DtVector newLocalPosition 
) [protected, virtual]
virtual void DtAggregatedMovementActuator::groundClamp ( double  heading,
const DtVector location,
DtAttachedTerrain terrainDatabase,
DtVector newNormal 
) [protected, virtual]
virtual void DtAggregatedMovementActuator::updateRepository ( const DtVector position,
const DtVector velocity,
const DtVector acceleration,
const DtTaitBryan &  localOrientation,
const DtVector rotationalVelocity 
) [protected, virtual]
virtual bool DtAggregatedMovementActuator::createPorts ( ) [protected, virtual]

Overridden to create the movement control input ports.

Reimplemented from DtSimComponent.

virtual bool DtAggregatedMovementActuator::createPortGroups ( ) [protected, virtual]

Overridden to create the movement control input port group.

Reimplemented from DtSimComponent.

const DtAggregatedMovementActuator& DtAggregatedMovementActuator::operator= ( const DtAggregatedMovementActuator orig) [protected]

assignment operator


Member Data Documentation

Input Port Name: desired-movement-direction
Input Port Description: Desired movement direction of the entity in radians.


Input Port Range: 0 - 2*pi
Input Port Default Value: N/A
Input Group Parent: movement-control

Input Port Name: desired-speed
Input Port Description: Desired speed of the entity in m/s.


Input Port Range: 0 and up. Input Port Default Value: N/A
Input Group Parent: movement-control

Input Port Group Name: movement-control
Input Port Group Description: Collection of inputs specifying the desired movement of the entity.


Convenience pointers to our state repository.

Convenience pointers to our state repository.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)