VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEntityWheelData.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2024 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <matrix/vlTaitBryan.h>
14 
15 #include <vlutil/vlTime.h>
16 #include <matrix/vlVector.h>
17 
18 #include <vector>
19 
20 namespace makVrv
21 {
28  struct WheelInfo
29  {
32 
33  public:
34  WheelInfo();
35  public:
36  bool steerable;
37  int partNum;
38  int wheelSet;
40  double wheelRadius;
42  double angVel;
43  };
44 
49  {
50  public:
52  public:
53  bool headingValid;
54 
57 
60 
62  DtTaitBryan currentHeading;
63  DtTaitBryan lastHeading;
66 
67  // These 3 are used for ackerman steering
70 
73 
76 
77  // These are used for skid steering
78  double trackWidth;
79  };
80 
87  {
88  public:
90  std::vector<WheelInfo> wheels;
91  };
92 }
Definition: DtEntityWheelData.h:31
Definition: DtEntityWheelData.h:31
double trackWidth
Definition: DtEntityWheelData.h:78
DtTaitBryan currentHeading
The last heading(steering)
Definition: DtEntityWheelData.h:62
DtVector lastPos
Definition: DtEntityWheelData.h:56
int numOfSetsOfWheels
The number of sets of wheels this vehicle has.
Definition: DtEntityWheelData.h:69
DtEntityWheelDataCommon commonData
Definition: DtEntityWheelData.h:89
WheelSide wheelSide
Definition: DtEntityWheelData.h:39
std::vector< WheelInfo > wheels
Definition: DtEntityWheelData.h:90
double wheelRadius
Definition: DtEntityWheelData.h:40
bool headingValid
Definition: DtEntityWheelData.h:53
common data structure to store last position/updated These are used to compute the speed if the updat...
Definition: DtEntityWheelData.h:48
Definition: DtEntityWheelData.h:31
bool steerable
Definition: DtEntityWheelData.h:36
WheelSide
Which side.
Definition: DtEntityWheelData.h:31
double distanceBetweenFirstAndRearAxles
The distance between the 1st set of wheels and rear axles (measured along length) ...
Definition: DtEntityWheelData.h:72
DtTime lastUpdateTime
Definition: DtEntityWheelData.h:55
double distanceBetweenSecondAndRearAxles
The distance between the 2nd set of wheels and rear axles (measured along length) ...
Definition: DtEntityWheelData.h:75
int wheelSet
Definition: DtEntityWheelData.h:38
double angVel
The velocity with which the wheel is turning.
Definition: DtEntityWheelData.h:42
brief Structure containing information about all wheel on an entity sceneObj - the scene object for t...
Definition: DtEntityWheelData.h:86
Contains DLL export macros.
DtTime lastSteeringUpdateTime
The last time the steering was updated.
Definition: DtEntityWheelData.h:65
Structure contained individual wheel information partNum - the articulated part wheel id wheelSet - 1...
Definition: DtEntityWheelData.h:28
int partNum
Definition: DtEntityWheelData.h:37
DtVector currentTopoVelocity
Definition: DtEntityWheelData.h:59
DtVector currentVelocity
Definition: DtEntityWheelData.h:58
DtTaitBryan lastHeading
Definition: DtEntityWheelData.h:63

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)