|
VR-Engage
2.2
|
Classes | |
| class | DtVreRtdGlobal |
| class | DtVreRtdPrinterListener |
| class | DtVreRtdTerrainQueryHighFidelity |
| class | DtVreRtdTickCallback |
| class | DtVreRtdTraitJoyControllerExtension |
| class | DtVreRtdTraitTerrainQuery |
Functions | |
| bool RTD_VRF_BACKEND_PLUGIN_EXPORT | readConfigFile () |
| void | setDeadreckoningThresholds (DtLocalObject *entity, double transThreshold, double rotationThreshold) |
| smVec3r | VRFOriToRTDHPR (const DtTaitBryan &ori) |
| DtTaitBryan | HprToVRFOri (const smVec3r &hpr) |
| smVec3r | VRFWorldOriToRTDWorldHPR (const DtTaitBryan &ori) |
| DtTaitBryan | RTDWorldHprToVRFWorldOri (const smVec3r &hpr) |
| smVec3r | VRFRotVelToRTDRotVelWCS (const DtTaitBryan &entityWorldOrientation, const DtVector &rotationalVelocity) |
| DtVector | RTDRotVelWCSToVRFRotVel (const DtTaitBryan &entityWorldOrientation, const smVec3r &rotationalVelocity) |
| DtTaitBryan | TopoToLocalWrtDatabase (DtPhysicalWorld *physicalWorld, const DtVector &localPosition, const DtTaitBryan &topographicOrientation) |
| DtVector | TopoToLocalWrtDatabase (DtPhysicalWorld *physicalWorld, const DtVector &localPosition, const DtVector &vec) |
| DtTaitBryan | LocalWrtDatabaseToTopo (DtPhysicalWorld *physicalWorld, const DtVector &localPosition, const DtTaitBryan &localOrientation) |
| smReal | compute2DDist (const smVec3r &pnt1, const DtVector &pnt2) |
| smVec3r | getHeadingAlignedSpeedVector (const smVec3r &hpr, smReal speed, bool xyOnly=false) |
| smVec3r | getHeadingAlignedSpeedVector (FixedWingLibCGF::AirplaneBot *bot, smReal speed, bool xyOnly=false) |
| DtVector | getVecMatchingDirection (DtPhysicalWorld *physicalWorld, DtVrfObjectStateRepository *sr, DtReal vecMagnitude) |
| void | applyAltitudeLimit (RTD::VehicleBase *vehicle, const smReal &maxAltitude) |
| void | applySpeedLimit (RTD::VehicleBase *vehicle, const smReal &maxSpeed) |
| void | applyWind (DtPhysicalWorld *physicalWorld, RTD::VehicleBase *vehicle) |
| void | applyWind (RTD::VehicleBase *vehicle, double vrfWindDir, double vrfWindSpeed) |
| bool | computeTerrainHeight (const DtSimulationServices *simMan, const DtVector &localPosition, double &result) |
| double | getTerrainHeight (const DtSimulationServices *simMan, const DtVector &localPosition) |
| double | getHAT (const DtSimulationServices *simMan, const DtGeodeticCoord &pos) |
| bool RTD_VRF_BACKEND_PLUGIN_EXPORT vreRtd::readConfigFile | ( | ) |
Reads the RTD configuration file.
Reads and processes the configuration file for VREngage RTD components, loading parameters and settings that control the real-time dynamics behavior. This function should be called during application initialization before creating any RTD components.
| void vreRtd::setDeadreckoningThresholds | ( | DtLocalObject * | entity, |
| double | transThreshold, | ||
| double | rotationThreshold ) |
Utility functions for VREngage Real-Time Dynamics (RTD) components.
This namespace contains various utility functions for coordinate transformations, terrain queries, and other operations used by the VREngage RTD components.
Sets dead reckoning thresholds for an entity
| entity | The entity to set thresholds for |
| transThreshold | Translational threshold in meters |
| rotationThreshold | Rotational threshold in radians |
Sets the translational and rotational thresholds used for dead reckoning calculations for the specified entity. These thresholds control when position updates are sent across the network.
| smVec3r vreRtd::VRFOriToRTDHPR | ( | const DtTaitBryan & | ori | ) |
Converts from a VRF/DtTaitBryan orientation to RTD/HPR.
| ori | The VRF orientation to convert |
Converts from a VRF/DtTaitBryan orientation to RTD/HPR orientation. DtTaitBryan orientation is expected to be a rotation in the coordinate system with x straight, y right, z down. HPR is expected to be a rotation in the coordinate system with y straight, x right, z up. A DtTaitBryan(0,0,0) is hpr(0,0,0). A DtTaitBryan(pi/2,0,0) is hpr(-90,0,0) for example.
| DtTaitBryan vreRtd::HprToVRFOri | ( | const smVec3r & | hpr | ) |
| smVec3r vreRtd::VRFWorldOriToRTDWorldHPR | ( | const DtTaitBryan & | ori | ) |
Converts airplane world orientation from VRF to RTD HPR.
| ori | The VRF world orientation to convert |
Converts airplane world orientation from VRF to RTD HPR. Even if VRF world coordinate system and RTD world coordinate system are both WGS84, airplanes are differently oriented in their local coordinate systems:
An RTD airplane with zero rotation (in world coordinates) points to WGS84 y-axis with 'up' pointing along WGS84 z-axis. A VRF airplane with zero rotation (in world coordinates) points to WGS84 x-axis with 'up' pointing along WGS84 -z-axis (upside down).
| DtTaitBryan vreRtd::RTDWorldHprToVRFWorldOri | ( | const smVec3r & | hpr | ) |
| smVec3r vreRtd::VRFRotVelToRTDRotVelWCS | ( | const DtTaitBryan & | entityWorldOrientation, |
| const DtVector & | rotationalVelocity ) |
Converts rotational velocity from VRF to RTD world coordinate system.
| entityWorldOrientation | The entity's world orientation |
| rotationalVelocity | The rotational velocity in VRF coordinate system |
Converts a rotational velocity vector from VRF to RTD world coordinate system.
| DtVector vreRtd::RTDRotVelWCSToVRFRotVel | ( | const DtTaitBryan & | entityWorldOrientation, |
| const smVec3r & | rotationalVelocity ) |
Converts rotational velocity from RTD to VRF coordinate system.
| entityWorldOrientation | The entity's world orientation |
| rotationalVelocity | The rotational velocity in RTD world coordinate system |
Converts a rotational velocity vector from RTD world coordinate system to VRF.
| DtTaitBryan vreRtd::TopoToLocalWrtDatabase | ( | DtPhysicalWorld * | physicalWorld, |
| const DtVector & | localPosition, | ||
| const DtTaitBryan & | topographicOrientation ) |
Converts topographic orientation to local orientation.
| physicalWorld | Pointer to the physical world |
| localPosition | The local position to convert at |
| topographicOrientation | The topographic orientation to convert |
Converts a topographic orientation to a local orientation with respect to the database.
| DtVector vreRtd::TopoToLocalWrtDatabase | ( | DtPhysicalWorld * | physicalWorld, |
| const DtVector & | localPosition, | ||
| const DtVector & | vec ) |
Converts topographic vector to local vector.
| physicalWorld | Pointer to the physical world |
| localPosition | The local position to convert at |
| vec | The topographic vector to convert |
Converts a topographic vector to a local vector with respect to the database.
| DtTaitBryan vreRtd::LocalWrtDatabaseToTopo | ( | DtPhysicalWorld * | physicalWorld, |
| const DtVector & | localPosition, | ||
| const DtTaitBryan & | localOrientation ) |
Converts local orientation to topographic orientation.
| physicalWorld | Pointer to the physical world |
| localPosition | The local position to convert at |
| localOrientation | The local orientation to convert |
Converts a local orientation with respect to the database to a topographic orientation.
| smReal vreRtd::compute2DDist | ( | const smVec3r & | pnt1, |
| const DtVector & | pnt2 ) |
Computes the 2D distance between two points.
| pnt1 | The first point |
| pnt2 | The second point |
Computes the 2D distance between two points.
| smVec3r vreRtd::getHeadingAlignedSpeedVector | ( | const smVec3r & | hpr, |
| smReal | speed, | ||
| bool | xyOnly = false ) |
Gets the heading-aligned speed vector.
| hpr | The heading, pitch, and roll of the entity |
| speed | The speed of the entity |
| xyOnly | Whether to only consider the x and y components |
Gets the heading-aligned speed vector for an entity.
| smVec3r vreRtd::getHeadingAlignedSpeedVector | ( | FixedWingLibCGF::AirplaneBot * | bot, |
| smReal | speed, | ||
| bool | xyOnly = false ) |
Gets the heading-aligned speed vector for an airplane.
| bot | The airplane entity |
| speed | The speed of the airplane |
| xyOnly | Whether to only consider the x and y components |
Gets the heading-aligned speed vector for an airplane entity.
| DtVector vreRtd::getVecMatchingDirection | ( | DtPhysicalWorld * | physicalWorld, |
| DtVrfObjectStateRepository * | sr, | ||
| DtReal | vecMagnitude ) |
Gets a vector matching the direction of an entity.
| physicalWorld | Pointer to the physical world |
| sr | Pointer to the object state repository |
| vecMagnitude | The magnitude of the vector |
Gets a vector matching the direction of an entity.
| void vreRtd::applyAltitudeLimit | ( | RTD::VehicleBase * | vehicle, |
| const smReal & | maxAltitude ) |
Applies an altitude limit to a vehicle.
| vehicle | The vehicle to apply the limit to |
| maxAltitude | The maximum altitude |
Applies an altitude limit to a vehicle.
| void vreRtd::applySpeedLimit | ( | RTD::VehicleBase * | vehicle, |
| const smReal & | maxSpeed ) |
Applies a speed limit to a vehicle.
| vehicle | The vehicle to apply the limit to |
| maxSpeed | The maximum speed |
Applies a speed limit to a vehicle.
| void vreRtd::applyWind | ( | DtPhysicalWorld * | physicalWorld, |
| RTD::VehicleBase * | vehicle ) |
Applies wind to a vehicle.
| physicalWorld | Pointer to the physical world |
| vehicle | The vehicle to apply wind to |
Applies wind to a vehicle.
| void vreRtd::applyWind | ( | RTD::VehicleBase * | vehicle, |
| double | vrfWindDir, | ||
| double | vrfWindSpeed ) |
Applies wind to a vehicle.
| vehicle | The vehicle to apply wind to |
| vrfWindDir | The wind direction in VRF coordinates |
| vrfWindSpeed | The wind speed |
Applies wind to a vehicle.
| bool vreRtd::computeTerrainHeight | ( | const DtSimulationServices * | simMan, |
| const DtVector & | localPosition, | ||
| double & | result ) |
Computes the terrain height at a specified local position.
| simMan | Pointer to the simulation services |
| localPosition | Local position to query terrain height at |
| result | Reference where the computed terrain height will be stored |
Uses the terrain provider to compute the height of terrain at the specified local position. Returns false if the terrain query fails or the position is outside the terrain bounds.
| double vreRtd::getTerrainHeight | ( | const DtSimulationServices * | simMan, |
| const DtVector & | localPosition ) |
Gets the terrain height at a specified local position.
| simMan | Pointer to the simulation services |
| localPosition | Local position to query terrain height at |
Convenience function that calls computeTerrainHeight and returns the result directly. Returns 0.0 if the terrain height could not be determined.
| double vreRtd::getHAT | ( | const DtSimulationServices * | simMan, |
| const DtGeodeticCoord & | pos ) |
Gets the height above terrain (HAT) for a geodetic position.
| simMan | Pointer to the simulation services |
| pos | Geodetic position to query HAT for |
Calculates the height above terrain by converting the geodetic position to local coordinates, determining the terrain height at that location, and subtracting it from the position's altitude.