19 class DtArticulatedPartStateRepository;
38 namespace makVrfEvents
62 virtual bool init()
override;
68 virtual const char*
type()
const override;
70 virtual void tick()
override;
74 static void setAimLaserLightCallback(
DtSimMessage * msg,
void * usr);
85 virtual std::string
mode()
const;
88 virtual double orientation(
double& elevation)
const;
110 virtual void enable()
override;
111 virtual void disable()
override;
114 virtual bool targetPoint(
const DtTaitBryan& orientation, DtVector& location)
const;
115 virtual DtVector localEyepoint()
const;
127 virtual void initLaserLight();
129 DtVector bodyLaserLightPosition()
const;
131 DtTaitBryan bodyLaserLightOrientation()
const;
135 virtual void restoreDefaultAiming();
138 virtual void aimLaserLightAtPoint(
const DtVector& worldLocation);
141 virtual void trackObject(
const DtSimObject* objectToTrack);
145 virtual void aimLaserLightAtAngle(
double azimuth,
double elevation);
148 virtual void currentPositionAzimuthAndElevation(DtVector&
offset,
double& az,
double& el)
const;
151 virtual void currentWorldLocationAndOrientation(DtVector& location, DtTaitBryan& orientation)
const;
163 virtual bool findLocationOfLaserLightAiming(
const DtVector& laserLocation,
164 const DtTaitBryan& orientation, DtVector& aimingPoint)
const;
167 virtual double minAzimuth()
const;
170 virtual double maxAzimuth()
const;
173 virtual double minElevation()
const;
176 virtual double maxElevation()
const;
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
bool myDataNeededForAimingPoint
Whether the data is not yet loaded to find the aiming point.
Definition: laserLightController.h:201
Instances of DtStringOutputPort are output ports through which data producers can send a DtString obj...
Definition: stringIOPort.h:52
DtAnalogOutputPort * myOrderedElevationPort
Output Port Name: ordered-elevation Output Port Description: Elevation at which to attempt to aim the...
Definition: laserLightController.h:283
DtVrfLaserLight manages a VR-Link laser light publisher, and sets all the values associated with a la...
Definition: vrfLaserLight.h:27
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
This class is responsible for controlling the aiming of a laser light. Uses Descriptor Type: DtCompon...
Definition: laserLightController.h:45
DtAnalogInputPort * myMinElevationPort
Input Port Name: min-elevation Input Port Description: The minimum elevation at which the light can a...
Definition: laserLightController.h:262
DtBooleanOutputPort * myPowerOnPort
Output Port Name: power-on Output Port Description: Specifies whether the laser light is powered on...
Definition: laserLightController.h:297
Instances of DtLaserLightControllerDescriptor are used to specify the parameters for a DtLaserLightCo...
Definition: laserLightControllerDescriptor.h:18
DtInputPortGroup * myLaserLightOffsetInputPortGroup
Input Port Group Name: laser-light-offset Input Port Group Description: Allows the actuator to commun...
Definition: laserLightController.h:223
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
DtBooleanInputPort * myOrientationAchievedInputPort
Input Port Name: orientation-achieved Input Port Description: Specifies whether the laser light was a...
Definition: laserLightController.h:276
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
DtOrientationInputPort * myOrientationInputPort
Input Port Name: orientation Input Port Description: Specifies the orientation of the laser relative ...
Definition: laserLightController.h:231
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
virtual void bindLuaFunctions(lua_State *)=0
Override to bind lua functions.
DtIntegerOutputPort * myAzimuthRotationRatePercentagePort
Output Port Name: azimuth-rotation-rate-percentage Output Port Description: Percentage of maximum rot...
Definition: laserLightController.h:311
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
Definition: bindableLuaComponent.h:56
DtVrfLaserLight * myLaserLight
The field of view of the laser.
Definition: laserLightController.h:198
DtLaserLightControllerPSR * myProcessState
Definition: laserLightController.h:195
DtLaserLightControllerDescriptor * myLaserLightDescriptor
Definition: laserLightController.h:193
Instances of DtAnalogOutputPort are input ports through which data producers can send real numbers...
Definition: analogIOPort.h:45
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: laserLightController.h:314
Instances of DtVectorOutputPort are output ports through which data producers can send a DtVector...
Definition: vectorIOPort.h:52
virtual void disable() override
Overridden to 1) remove any task message callbacks registered by this controller 2) call clear task...
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation frame...
DtAnalogInputPort * myMaxAzimuthPort
Input Port Name: max-azimuth Input Port Description: The maximum azimuth at which the light can aim...
Definition: laserLightController.h:256
DtTaitBryan myWorldOrientationForAimingPoint
World location and orientation for determining the aiming point when data was not initially available...
Definition: laserLightController.h:214
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
virtual bool createPortGroups()
Called by init. Derived classes should override this method to create all their input/output port gro...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
DtVector myWorldLocationForAimingPoint
World location and orientation for determining the aiming point when data was not initially available...
Definition: laserLightController.h:213
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
virtual void enable() override
Overridden to call registerTaskMsgCallbacks().
double myLastSentAzimuth
Last sent azimuth and elevation sent to the actuator. Used to detect false positives with orientation...
Definition: laserLightController.h:206
DtIntegerOutputPort * myElevationRotationRatePercentagePort
Output Port Name: elevation-rotation-rate-percentage Output Port Description: Percentage of maximum r...
Definition: laserLightController.h:304
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
virtual void clearTask() override
If component is currently tasked, calls clearPendingSubtasks(), sets the tasked flag to false...
The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity...
Definition: articulatedPartStateRepository.h:40
const char int mode
Definition: ioapi.h:38
DtInputPortGroup * myLaserLightLimitsPortGroup
Input Port Group Name: laser-light-limits Input Port Group Description: Allows the actuator to commun...
Definition: laserLightController.h:244
DtLaserLightControllerPSR is a process state repository which holds state variables for the DtLaserLi...
Definition: laserLightControllerPSR.h:17
DtAnalogInputPort * myMinAzimuthPort
Input Port Name: min-azimuth Input Port Description: The minimum azimuth at which the light can aim...
Definition: laserLightController.h:250
Instances of DtIntegerOutputPort are output ports through which data producers can send integer value...
Definition: integerIOPort.h:45
virtual void bindLuaGlobals(lua_State *)=0
Override to bind lua globals.
voidpf uLong offset
Definition: ioapi.h:42
DtAnalogInputPort * myMaxElevationPort
Input Port Name: max-elevation Input Port Description: The maximum elevation at which the light can a...
Definition: laserLightController.h:268
DtAnalogOutputPort * myOrderedAzimuthPort
Output Port Name: ordered-azimuth Output Port Description: Azimuth at which to attempt to aim the lig...
Definition: laserLightController.h:290
DtVectorInputPort * myPositionInputPort
Input Port Name: position Input Port Description: Specifies the position of the laser in body coordin...
Definition: laserLightController.h:239
double myLastSentElevation
Last sent azimuth and elevation sent to the actuator. Used to detect false positives with orientation...
Definition: laserLightController.h:207
A locally simulated VRF object.
Definition: localObject.h:98
A location3D is a point in space, i.e. a geocentric coordinate.
Definition: scriptGeometry.h:22