15 #include <unordered_map>
19 class DtOsgArticulatedModel;
20 class DtCoordinateSystem;
22 class DtDeadReckonUpdater;
77 virtual void update(
DtTime tNow);
81 virtual void setWheelData(std::unordered_map<DtOsgArticulatedModel*, DtEntityWheelData>* wheelMap);
85 static void setAutoResumeTimeout(
double val);
89 static double autoResumeTimeout();
100 virtual void updateWheels(
DtTime tNow);
114 virtual float calculateDistanceBetweenWheelAxles(
DtOsgArticulatedModel* model,
int firstSet,
int secondSet)
const;
144 ,
double speed,
double angVel)
const;
153 virtual bool isReversing(
const DtVector& entityVelocity,
const DtTaitBryan& entityHeading )
const;
156 virtual void slot_coordinateSystemChanged();
DtDeadReckonUpdater * myDeadReckonUpdater
Definition: DtEntityWheelUpdater.h:177
DtSignalConnectionManager myConnections
Definition: DtEntityWheelUpdater.h:178
std::unordered_map< DtOsgArticulatedModel *, DtEntityWheelData > * myEntityWheelMap
map of entities to corresponding wheel data art parts
Definition: DtEntityWheelUpdater.h:190
double myFirstSetVelocity
psi velocity for the 1st set
Definition: DtEntityWheelUpdater.h:32
This is not a typical updater, instead of the usual 1 updater per entity, the DtEntityWheelManager ad...
Definition: DtEntityWheelUpdater.h:57
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtSceneObject * mySceneObject
Definition: DtEntityWheelUpdater.h:176
DtDeadReckonUpdater is a scene object updater that is given kinematic updates and updates a scene obj...
Definition: DtDeadReckonUpdater.h:28
std::unordered_map< DtOsgArticulatedModel *, DtPerModelWheelUpdaterCache > myPerModelWheelUpdaterCacheMap
Definition: DtEntityWheelUpdater.h:191
double myLeftSpeed
for the left track
Definition: DtEntityWheelUpdater.h:45
An abstract base class for objects that require updates. This object automatically adds itself to a D...
Definition: DtTickable.h:26
DtCoordinateSystem * myCoordinateSystem
Definition: DtEntityWheelUpdater.h:186
An articulated model manipulator for controlling an articulated model. Supports indirect rendering of...
Definition: DtOsgArticulatedModel.h:67
double mySecondSetVelocity
psi velocity for the 2nd set
Definition: DtEntityWheelUpdater.h:34
bool myAreWheelUpdatesFrozen
Definition: DtEntityWheelUpdater.h:179
Definition: DtEntityWheelUpdater.h:174
double myRightSpeed
for the right track
Definition: DtEntityWheelUpdater.h:48
common data structure to store last position/updated These are used to compute the speed if the updat...
Definition: DtEntityWheelData.h:48
static double theAutoResumeTimeout
The amount of time before auto updates will resume after a manual/nework update has been applied to a...
Definition: DtEntityWheelUpdater.h:195
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
double mySpeed
for the vehicle as a whole
Definition: DtEntityWheelUpdater.h:51
DtAckermanSteeringVelocity()
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
Contains the declaration for makVrv::DtTickable.
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:44
brief Structure containing information about all wheel on an entity sceneObj - the scene object for t...
Definition: DtEntityWheelData.h:90
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtDe & myDe
Definition: DtEntityWheelUpdater.h:183
bool myShouldRotate
Definition: DtEntityWheelUpdater.h:187
simple structure to hold velocity (steering or rather psi speed) of the first and optionally the 2nd ...
Definition: DtEntityWheelUpdater.h:26
simple structure to hold skid steering speed for the left, right tracks and the vehicles as a whole ...
Definition: DtEntityWheelUpdater.h:39