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) 2021 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:
55 
57  DtTaitBryan lastHeading;
60 
61  // These 3 are used for ackerman steering
64 
67 
70 
71  // These are used for skid steering
72  double trackWidth;
73  };
74 
81  {
82  public:
84  std::vector<WheelInfo> wheels;
85  };
86 }
Definition: DtEntityWheelData.h:31
Definition: DtEntityWheelData.h:31
double trackWidth
Definition: DtEntityWheelData.h:72
DtVector lastPos
Definition: DtEntityWheelData.h:54
int numOfSetsOfWheels
The number of sets of wheels this vehicle has.
Definition: DtEntityWheelData.h:63
DtEntityWheelDataCommon commonData
Definition: DtEntityWheelData.h:83
WheelSide wheelSide
Definition: DtEntityWheelData.h:39
std::vector< WheelInfo > wheels
Definition: DtEntityWheelData.h:84
double wheelRadius
Definition: DtEntityWheelData.h:40
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:66
DtTime lastUpdateTime
Definition: DtEntityWheelData.h:53
double distanceBetweenSecondAndRearAxles
The distance between the 2nd set of wheels and rear axles (measured along length) ...
Definition: DtEntityWheelData.h:69
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:80
Contains DLL export macros.
DtTime lastSteeringUpdateTime
The last time the steering was updated.
Definition: DtEntityWheelData.h:59
Structure contained individual wheel information partNum - the articulated part wheel id wheelSet - 1...
Definition: DtEntityWheelData.h:28
int partNum
Definition: DtEntityWheelData.h:37
DtTaitBryan lastHeading
The last heading(steering)
Definition: DtEntityWheelData.h:57

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)