DriveWorks SDK Reference
5.4.5418 Release
For Test and Development only

Vehicle.h
Go to the documentation of this file.
1 //
3 // Notice
4 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8 //
9 // NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10 // information or for any infringement of patents or other rights of third parties that may
11 // result from its use. No license is granted by implication or otherwise under any patent
12 // or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13 // expressly authorized by NVIDIA. Details are subject to change without notice.
14 // This code supersedes and replaces all information previously supplied.
15 // NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16 // components in life support devices or systems without express written approval of
17 // NVIDIA CORPORATION & AFFILIATES.
18 //
19 // SPDX-FileCopyrightText: Copyright (c) 2020-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20 // SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21 //
22 // NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23 // property and proprietary rights in and to this material, related
24 // documentation and any modifications thereto. Any use, reproduction,
25 // disclosure or distribution of this material and related documentation
26 // without an express license agreement from NVIDIA CORPORATION or
27 // its affiliates is strictly prohibited.
28 //
30 
45 #ifndef DW_RIG_VEHICLE_H_
46 #define DW_RIG_VEHICLE_H_
47 
48 #include <dw/core/base/Types.h>
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 #define DW_VEHICLE_STEER_MAP_POLY_DEGREE 5U
55 #define DW_VEHICLE_MAX_NUM_TRAILERS 1U
56 
63 {
66 
69 
73 
76 
82 
87 
92 
97 
99 
104 {
109 
112 
116 
120 
123 
125 
126 #define DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE 15U
127 
131 typedef struct dwVehicleTorqueLUT
132 {
135 
138 
143 
146 
149 
151 
156 {
159 
163 
166 
169 
172 
175 
178 
181 
184 
187 
190 
193 
197  float32_t steeringWheelToSteeringMap[DW_VEHICLE_STEER_MAP_POLY_DEGREE + 1U];
198 
200 
205 {
210 
214 
216 
220 typedef enum dwVehicleTrailerType {
224 
228 typedef struct dwVehicleCabin
229 {
232 
234 
235 /***
236  * Vehicle trailer description.
237  */
238 typedef struct dwVehicleTrailer
239 {
242 
245 
251 
254 
258 
262 typedef struct dwGenericVehicle
263 {
266 
269 
275 
278 
282 
284  bool hasCabin;
285 
289 
291  uint32_t numTrailers;
292 
294 
300 typedef enum {
305 
309 
315 typedef struct dwVehicle
316 {
342  DW_DEPRECATED("Will be removed, unused")
343  float32_t aerodynamicDragCoeff;
345  DW_DEPRECATED("Will be removed, unused")
346  float32_t frontalArea;
348  float32_t centerOfMassToFrontAxle;
349  float32_t centerOfMassHeight;
351  DW_DEPRECATED("Will be removed, unused")
352  float32_t aeroHeight;
354  DW_DEPRECATED("Will be removed, unused")
355  float32_t rollingResistanceCoeff;
357  DW_DEPRECATED("Will be removed, unused")
358  float32_t maxEnginePower;
360  float32_t throttleActuatorTimeConstant;
361  float32_t brakeActuatorTimeConstant;
363  dwVehicleTorqueLUT torqueLUT;
367  float32_t steeringWheelToSteeringMap[DW_VEHICLE_STEER_MAP_POLY_DEGREE + 1];
368  float32_t maxSteeringWheelAngle;
371  float32_t frontSteeringOffset;
372 } dwVehicle;
376 
377 #ifdef __cplusplus
378 }
379 #endif
380 
382 #endif // DW_RIG_VEHICLE_H_
float32_t driveByWireNaturalFrequency
Natural frequency for second order + time delay drive-by-wire / steer-by-wire [hz].
Definition: Vehicle.h:183
NVIDIA DriveWorks API: Core Types
dwVehicleTorqueLUT torqueLUT
Torque lookup tables.
Definition: Vehicle.h:158
float32_t brakeActuatorTimeConstant
Time constant for first order + time delay brake system [s].
Definition: Vehicle.h:171
dwVehicleTrailerType type
Trailer type, either full or semi, indicates presence of front axle.
Definition: Vehicle.h:253
float32_t length
Length of the bounding box (longitudinal dimension, along X) [m].
Definition: Vehicle.h:65
float32_t corneringStiffness
Cornering stiffness for a single tire [N/rad].
Definition: Vehicle.h:122
float float32_t
Specifies POD types.
Definition: Types.h:70
Physical properties of a vehicle body.
Definition: Vehicle.h:62
dwVector3f boundingBoxPosition
Position of bounding box origin in body coordinate system [m].
Definition: Vehicle.h:81
float32_t maxSteeringWheelAngle
Maximum steering wheel angle [rad].
Definition: Vehicle.h:192
Defines a three-element floating-point vector.
Definition: Types.h:323
float32_t wheelbase
Definition: Vehicle.h:322
uint32_t numTrailers
Number of trailer units.
Definition: Vehicle.h:291
dwVector3f inertia
Principal moments of inertia with respect to center of mass [kg m^2].
Definition: Vehicle.h:91
dwVehicleAxleProperties axleRear
Properties of the rear axle group [m].
Definition: Vehicle.h:274
dwVehicleCabin cabin
Properties of an optional floating cabin attached to the base body.
Definition: Vehicle.h:281
float32_t driveByWireDampingRatio
Damping ratio for second order + time delay drive-by-wire / steer-by-wire [unitless].
Definition: Vehicle.h:186
Vehicle description.
Definition: Vehicle.h:262
dwVector3f inertia3D
Definition: Vehicle.h:331
float32_t width
Width of the bounding box (lateral dimension, along Y) [m].
Definition: Vehicle.h:68
float32_t track
Width of the axle, measured between center line of wheels [m].
Definition: Vehicle.h:111
Vehicle actuation properties.
Definition: Vehicle.h:155
float32_t effectiveMass
Definition: Vehicle.h:333
dwVehicleTrailerType
Supported trailer types.
Definition: Vehicle.h:220
float32_t bumperRear
Definition: Vehicle.h:325
float32_t frontCorneringStiffness
Definition: Vehicle.h:335
float32_t centerOfMassToRearAxle
Definition: Vehicle.h:337
bool hasCabin
Indicates presence of a cabin.
Definition: Vehicle.h:284
dwVehicleAxleProperties axleRear
Properties of the rear axle group [m].
Definition: Vehicle.h:250
dwVehicleActuationProperties actuation
Vehicle actuation properties.
Definition: Vehicle.h:277
dwVehicleBodyProperties body
Properties of the base body (passenger car body, truck tractor chassis)
Definition: Vehicle.h:265
dwVector3f leadingVehicleHingePosition
Position of leading vehicle hinge attach point in leading vehicle coordinate system (DW_COORDINATE_SY...
Definition: Vehicle.h:209
dwVehicleAxleProperties axleFront
Properties of the front (steering) axle [m].
Definition: Vehicle.h:244
float32_t driveByWireTimeDelay
Time delay for first order + time delay drive-by-wire / steer-by-wire [s].
Definition: Vehicle.h:180
float32_t height
Height of the bounding box (vertical dimension, along Z) [m].
Definition: Vehicle.h:75
#define DW_VEHICLE_MAX_NUM_TRAILERS
Definition: Vehicle.h:55
float32_t length
Definition: Vehicle.h:318
float32_t driveByWireTimeConstant
Definition: Vehicle.h:340
float32_t mass
Mass [kg].
Definition: Vehicle.h:96
float32_t driveByWireTimeDelay
Definition: Vehicle.h:339
bool isDriveByWireSecondOrder
Indicates whether the drive-by-wire / steer-by-wire is second-order or not.
Definition: Vehicle.h:189
#define DW_DEPRECATED(msg)
Definition: Exports.h:66
Trailer that has both front and rear axles.
Definition: Vehicle.h:222
float32_t axlebaseFront
Definition: Vehicle.h:323
dwVehicleBodyProperties body
Properties of the cabin body.
Definition: Vehicle.h:231
#define DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE
Definition: Vehicle.h:126
dwVector3f trailingVehicleHingePosition
Position of trailing vehicle hinge attach point in trailer coordinate system (DW_COORDINATE_SYSTEM_VE...
Definition: Vehicle.h:213
dwVehicleArticulationProperties articulation
Articulation linking trailer to leading vehicle unit.
Definition: Vehicle.h:256
float32_t bumperFront
Definition: Vehicle.h:326
dwVehicleWheels
Define index for each of the wheels on a 4 wheeled vehicle.
Definition: Vehicle.h:300
dwVehicleBodyProperties body
Properties of the trailer body.
Definition: Vehicle.h:241
#define DW_VEHICLE_STEER_MAP_POLY_DEGREE
Definition: Vehicle.h:54
Properties of an axle and its wheels.
Definition: Vehicle.h:103
Properties of an articulation linking two vehicle units.
Definition: Vehicle.h:204
dwVector3f centerOfMass
Position of center of mass in body coordinate system [m].
Definition: Vehicle.h:86
Number of wheels describing the vehicle.
Definition: Vehicle.h:307
float32_t rearCorneringStiffness
Definition: Vehicle.h:336
float32_t effectiveMass
Effective mass due to rotational inertia (wheel, engine, and other parts of the CVT drivetrain) [kg]...
Definition: Vehicle.h:162
float32_t steeringCoefficient
Definition: Vehicle.h:327
float32_t widthWithMirrors
Definition: Vehicle.h:320
float32_t brakeActuatorTimeDelay
Time delay for first order + time delay brake system [s].
Definition: Vehicle.h:174
float32_t mass
Definition: Vehicle.h:329
float32_t height
Definition: Vehicle.h:317
float32_t position
Position of axle midpoint along X-axis in corresponding vehicle coordinate system (DW_COORDINATE_SYST...
Definition: Vehicle.h:108
Vehicle cabin description.
Definition: Vehicle.h:228
float32_t driveByWireTimeConstant
Time constant for first order + time delay drive-by-wire / steer-by-wire [s].
Definition: Vehicle.h:177
float32_t throttleActuatorTimeDelay
Time delay for first order + time delay throttle system [s].
Definition: Vehicle.h:168
dwVehicleAxleProperties axleFront
Properties of the front (steering) axle [m].
Definition: Vehicle.h:268
float32_t wheelRadiusRight
Radius of right wheel, when facing towards the forward direction of the vehicle [m].
Definition: Vehicle.h:119
Throttle and brake state (input) to longitudinal force (output) lookup tables.
Definition: Vehicle.h:131
float32_t axlebaseRear
Definition: Vehicle.h:324
float32_t throttleActuatorTimeConstant
Time constant for first order + time delay throttle system [s].
Definition: Vehicle.h:165
float32_t width
Definition: Vehicle.h:319
float32_t wheelRadiusLeft
Radius of left wheel, when facing towards the forward direction of the vehicle [m].
Definition: Vehicle.h:115
DEPRECATED: Properties of a passenger car vehicle.
Definition: Vehicle.h:315
float32_t widthWithoutMirrors
Width of the body without any side-mirrors, if applicable, otherwise same as width.
Definition: Vehicle.h:72