DriveWorks SDK Reference
5.20.37 Release
For Test and Development only

Vehicle.h
Go to the documentation of this file.
1
2// This code contains NVIDIA Confidential Information and is disclosed
3// under the Mutual Non-Disclosure Agreement.
4//
5// Notice
6// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS"
7// NVIDIA MAKES NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY,
8// OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY
9// IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A
10// PARTICULAR PURPOSE.
11//
12// NVIDIA Corporation assumes no responsibility for the consequences of use of
13// such information or for any infringement of patents or other rights of third
14// parties that may result from its use. No license is granted by implication or
15// otherwise under any patent or patent rights of NVIDIA Corporation. No third
16// party distribution is allowed unless expressly authorized by NVIDIA. Details
17// are subject to change without notice. This code supersedes and replaces all
18// information previously supplied. NVIDIA Corporation products are not
19// authorized for use as critical components in life support devices or systems
20// without express written approval of NVIDIA Corporation.
21//
22// Copyright (c) 2022-2024 NVIDIA Corporation. All rights reserved.
23//
24// NVIDIA Corporation and its licensors retain all intellectual property and
25// proprietary rights in and to this software and related documentation and any
26// modifications thereto. Any use, reproduction, disclosure or distribution of
27// this software and related documentation without an express license agreement
28// from NVIDIA Corporation is strictly prohibited.
29//
31#ifndef DW_RIG_VEHICLE_H_
32#define DW_RIG_VEHICLE_H_
33// Generated by dwProto from vehicle.proto DO NOT EDIT BY HAND!
34// See //3rdparty/shared/dwproto/README.md for more information
35
51#include <dw/core/base/Types.h>
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57#define DW_VEHICLE_STEER_MAP_POLY_DEGREE 5U
58#define DW_VEHICLE_STEER_MAP_POLY_DEGREE_PLUS_ONE (DW_VEHICLE_STEER_MAP_POLY_DEGREE + 1U)
59#define DW_VEHICLE_MAX_NUM_TRAILERS 1U
60#define DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE 15U
61
67
70typedef enum dwVehicleWheels {
75
79
83{
86
89
93
96
102
107
112
117
121
125
130
133{
138
141
145
149
152
157
163
165typedef struct dwVehicleTorqueLUT
166{
169
172
177
180
184
187{
190
194
197 DW_DEPRECATED("throttleActuatorTimeConstant is deprecated, please use accelerationTimeConstant_s instead.")
199
202 DW_DEPRECATED("throttleActuatorTimeDelay is deprecated, please use accelerationTimeDelay_s instead.")
204
207 DW_DEPRECATED("brakeActuatorTimeConstant is deprecated, please use decelerationTimeConstant_s instead.")
209
212 DW_DEPRECATED("brakeActuatorTimeDelay is deprecated, please use decelerationTimeDelay_s instead.")
214
217 DW_DEPRECATED("driveByWireTimeConstant is deprecated, please use frontWheelAngleTimeConstant_s instead.")
219
222 DW_DEPRECATED("driveByWireTimeDelay is deprecated, please use frontWheelAngleTimeDelay_s instead.")
224
229
234
237 DW_DEPRECATED("driveByWireSecondOrder is deprecated")
239
242
247
251
255
259
263
267
271
275
279
283
288
291{
294
297
300
304
309
312{
316
323
326{
329
332
335
338
342
345{
350
355
357typedef struct dwVehicleCabin
358{
362
364typedef struct dwVehicleTrailer
365{
368
371
377
380
384
386typedef struct dwGenericVehicle
387{
390
393
399
402
405
408
411
415
418
422 uint32_t numTrailers;
424
427typedef struct dwVehicle
428{
447
449 DW_DEPRECATED("Will be removed, unused")
450 float32_t aerodynamicDragCoeff;
451
453 DW_DEPRECATED("Will be removed, unused")
454 float32_t frontalArea;
455 float32_t centerOfMassToFrontAxle;
456 float32_t centerOfMassHeight;
457
459 DW_DEPRECATED("Will be removed, unused")
460 float32_t aeroHeight;
461
463 DW_DEPRECATED("Will be removed, unused")
464 float32_t rollingResistanceCoeff;
465
467 DW_DEPRECATED("Will be removed, unused")
468 float32_t maxEnginePower;
473
478
483 float32_t frontSteeringOffset;
484} dwVehicle;
485
486#ifdef __cplusplus
487}
488#endif
489
493#endif // DW_RIG_VEHICLE_H_
Defines a three-element floating-point vector.
Definition: MatrixTypes.h:76
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: Core Exports
float float32_t
Specifies POD types.
Definition: BasicTypes.h:59
#define DW_DEPRECATED(msg)
Definition: Exports.h:68
dwVector3f inertia
Principal moments of inertia with respect to center of mass [kg m^2].
Definition: Vehicle.h:111
float32_t throttleSpeedInput[DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE]
1-d array of range of vehicle linear speed values (Throttle Look-up Table Input) [m/s]
Definition: Vehicle.h:171
float32_t height
Height of the bounding box (vertical dimension, along Z) [m].
Definition: Vehicle.h:95
float32_t axlebaseFront
Width of the front axle. [meters].
Definition: Vehicle.h:434
float32_t brakeActuatorTimeConstant
Time constant for first order + time delay brake system [s].
Definition: Vehicle.h:208
dwVector3f centerOfMass
Position of center of mass in body coordinate system [m].
Definition: Vehicle.h:106
dwVehicleAxleProperties axleFront
Properties of the front (steering) axle [m].
Definition: Vehicle.h:392
dwVehicleBodyProperties body
Properties of the cabin body.
Definition: Vehicle.h:360
float32_t centerOfMassToRearAxle
Distance between vehicle's CoM (center-of-mass) and center of the rear axle. [meters].
Definition: Vehicle.h:444
dwVehicleCabin cabin
Properties of an optional floating cabin attached to the base body.
Definition: Vehicle.h:414
float32_t bumperRear
Distance rear axle to rear bumper. [meters].
Definition: Vehicle.h:436
int32_t ticksCountMin
Number below which counter rolls under. [-].
Definition: Vehicle.h:296
float32_t decelerationTimeConstant_s
Time constant for first order + time delay deceleration system.
Definition: Vehicle.h:258
float32_t frontCorneringStiffness
front wheel cornering stiffness.
Definition: Vehicle.h:442
float32_t frontWheelAngleTimeDelay_s
Time delay for first order + time delay system for front wheel angle.
Definition: Vehicle.h:278
float32_t width
Width of the vehicle, without side mirrors. [meters].
Definition: Vehicle.h:431
float32_t throttlePedalInput[DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE]
1-d array of range of throttle pedal values (Throttle Look-up Table Input)
Definition: Vehicle.h:168
dwVehicleTorqueLUT torqueLUT
Torque lookup tables.
Definition: Vehicle.h:189
float32_t rearCorneringStiffness
rear wheel cornering stiffness.
Definition: Vehicle.h:443
float32_t driveByWireDampingRatio
Damping ratio for second order + time delay drive-by-wire / steer-by-wire [unitless].
Definition: Vehicle.h:233
float32_t understeerAngleGradient
Understeer angle gradient relating lateral acceleration to steering angle deviation.
Definition: Vehicle.h:321
float32_t position
Position of axle midpoint along X-axis in corresponding vehicle coordinate system (DW_COORDINATE_SYST...
Definition: Vehicle.h:137
dwVehicleBodyProperties body
Properties of the base body (passenger car body, truck tractor chassis)
Definition: Vehicle.h:389
float32_t curvatureTimeDelay_s
Time delay for first order + time delay curvature steering interface.
Definition: Vehicle.h:270
float32_t effectiveMass
effective mass due to vehicle rotational inertia (wheel rotation, engine, and other parts of the CVT ...
Definition: Vehicle.h:441
dwVehicleDynamicsProperties dynamics
Vehicle dynamics properties.
Definition: Vehicle.h:404
float32_t driveByWireTimeDelay
Drive-by-wire (steer-by-wire) time delay. [s].
Definition: Vehicle.h:445
float32_t curvatureTimeConstant_s
Time constant for first order + time delay curvature steering interface.
Definition: Vehicle.h:266
dwVehicleAxleProperties axleFront
Properties of the front (steering) axle [m].
Definition: Vehicle.h:370
dwVector3f boundingBoxPosition
Position of bounding box origin in body coordinate system [m].
Definition: Vehicle.h:101
float32_t width
Width of the bounding box (lateral dimension, along Y) [m].
Definition: Vehicle.h:88
float32_t accelerationTimeConstant_s
Time constant for first order + time delay acceleration system.
Definition: Vehicle.h:250
float32_t wheelRadiusLeft
Radius of left wheel, when facing towards the forward direction of the vehicle [m].
Definition: Vehicle.h:144
dwVehicleArticulationProperties articulation
Articulation linking trailer to leading vehicle unit.
Definition: Vehicle.h:382
float32_t rearWheelAngleTimeDelay_s
Time delay for first order + time delay system for rear wheel angle.
Definition: Vehicle.h:286
dwVehicleAxleProperties axleRear
Properties of the rear axle group [m].
Definition: Vehicle.h:398
float32_t accelerationTimeDelay_s
Time delay for first order + time delay acceleration system.
Definition: Vehicle.h:254
dwVehicleActuationProperties actuation
Vehicle actuation properties.
Definition: Vehicle.h:401
float32_t brakeTorqueOutput[DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE]
1-d torque Table, mapping a given brake pedal position to a torque value (Brake Look-up Table Output)
Definition: Vehicle.h:182
float32_t driveByWireTimeConstant
Drive-by-wire (steer-by-wire) time constant. [s].
Definition: Vehicle.h:446
float32_t nominalWheelRadiusLeft
Nominal value of radius of left wheel, when facing towards the forward direction of the vehicle.
Definition: Vehicle.h:156
int32_t ticksCountInvalid
Invalid tick count, optional value provided by vehicle in case of error, must be outside of [ticksCou...
Definition: Vehicle.h:303
dwTransformation3f rearAxleToRoadLevelCurbMass
Transformation of the ISO23150 vehicle rear-axle coordinate system to the ISO23150 vehicle road-level...
Definition: Vehicle.h:340
float32_t corneringStiffness
Cornering stiffness for a single tire [N/rad].
Definition: Vehicle.h:151
float32_t length
Length of the vehicle. [meters].
Definition: Vehicle.h:430
float32_t mass
vehicle mass [kg].
Definition: Vehicle.h:439
float32_t widthWithMirrors
Width of the vehicle including side mirrors. [meters].
Definition: Vehicle.h:432
float32_t driveByWireTimeConstant
Time constant for first order + time delay drive-by-wire / steer-by-wire [s].
Definition: Vehicle.h:218
float32_t throttleActuatorTimeConstant
Time constant for first order + time delay throttle system [s].
Definition: Vehicle.h:198
dwVector3f inertia3D
vehicle inertia around each axis, w.r.t. its center of mass. [kg m^2]
Definition: Vehicle.h:440
float32_t axlebaseRear
Width of the rear axle. [meters].
Definition: Vehicle.h:435
float32_t speedQuantization
Wheel speed quantization.
Definition: Vehicle.h:307
float32_t rearAxleToBPillar
Distance from rear axle to B pillar [m].
Definition: Vehicle.h:124
float32_t height
Height of the vehicle. [meters].
Definition: Vehicle.h:429
float32_t effectiveMass
Effective mass due to rotational inertia (wheel, engine, and other parts of the CVT drivetrain) [kg].
Definition: Vehicle.h:193
float32_t frontWheelAngleTimeConstant_s
Time constant for first order + time delay system for front wheel angle.
Definition: Vehicle.h:274
int32_t ticksPerTurn
Ticks per wheel turn. [-].
Definition: Vehicle.h:293
float32_t driveByWireNaturalFrequency
Natural frequency for second order + time delay drive-by-wire / steer-by-wire [hz].
Definition: Vehicle.h:228
float32_t track
Width of the axle, measured between center line of wheels [m].
Definition: Vehicle.h:140
float32_t brakeActuatorTimeDelay
Time delay for first order + time delay brake system [s].
Definition: Vehicle.h:213
float32_t throttleActuatorTimeDelay
Time delay for first order + time delay throttle system [s].
Definition: Vehicle.h:203
bool hasCabin
Indicates presence of a cabin.
Definition: Vehicle.h:417
dwVector3f leadingVehicleHingePosition
Position of leading vehicle hinge attach point in leading vehicle coordinate system (DW_COORDINATE_SY...
Definition: Vehicle.h:349
float32_t mass
Mass [kg].
Definition: Vehicle.h:116
float32_t steeringWheelToSteeringMap[DW_VEHICLE_STEER_MAP_POLY_DEGREE_PLUS_ONE]
Polynomial relating steering wheel angle [rad] to steering angle [rad].
Definition: Vehicle.h:246
float32_t rearAxleToAPillar
Distance from rear axle to A pillar [m].
Definition: Vehicle.h:120
dwVehicleTrailerType type
Trailer type, either full or semi, indicates presence of front axle.
Definition: Vehicle.h:379
dwVehicleBodyProperties body
Properties of the trailer body.
Definition: Vehicle.h:367
dwTransformation3f rearAxleToRoadLevelDesignMass
Transformation of the ISO23150 vehicle rear-axle coordinate system to the ISO23150 vehicle road-level...
Definition: Vehicle.h:337
float32_t decelerationTimeDelay_s
Time delay for first order + time delay deceleration system.
Definition: Vehicle.h:262
float32_t pitchAngleGradientBrake
Suspension pitch angle gradient during braking. [deg s^2 / m].
Definition: Vehicle.h:334
float32_t driveByWireTimeDelay
Time delay for first order + time delay drive-by-wire / steer-by-wire [s].
Definition: Vehicle.h:223
float32_t throttleTorqueOutput[DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE][DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE]
2-d torque table, mapping a given throttle pedal position at a given speed to a torque value (Throttl...
Definition: Vehicle.h:176
dwVector3f trailingVehicleHingePosition
Position of trailing vehicle hinge attach point in trailer coordinate system (DW_COORDINATE_SYSTEM_VE...
Definition: Vehicle.h:353
float32_t wheelRadiusRight
Radius of right wheel, when facing towards the forward direction of the vehicle [m].
Definition: Vehicle.h:148
float32_t nominalWheelRadiusRight
Nominal value of radius of right wheel, when facing towards the forward direction of the vehicle.
Definition: Vehicle.h:161
float32_t steeringCoefficient
Steering coefficient for trivial linear mapping between steering wheel and steering angle,...
Definition: Vehicle.h:438
dwVehicleSuspensionProperties suspension
Vehicle suspension properties.
Definition: Vehicle.h:407
float32_t rollAngleGradient
Suspension roll angle gradient. [deg s^2 / m].
Definition: Vehicle.h:328
dwVehicleWheelEncoderProperties wheelEncoder
Wheel encoder properties.
Definition: Vehicle.h:410
float32_t sideSlipAngleGradient
Side slip angle gradient relating lateral acceleration to side slip angle.
Definition: Vehicle.h:315
float32_t rearWheelAngleTimeConstant_s
Time constant for first order + time delay system for rear wheel angle.
Definition: Vehicle.h:282
int32_t ticksCountMax
Number above which counter rolls over. [-].
Definition: Vehicle.h:299
float32_t wheelbase
Distance between the centers of the front and rear wheels. [meters].
Definition: Vehicle.h:433
float32_t bumperFront
Distance front axle to front bumper. [meters].
Definition: Vehicle.h:437
dwVehicleAxleProperties axleRear
Properties of the rear axle group [m].
Definition: Vehicle.h:376
bool isDriveByWireSecondOrder
Indicates whether the drive-by-wire / steer-by-wire is second-order or not.
Definition: Vehicle.h:238
float32_t rearAxleToCPillar
Distance from rear axle to C pillar [m].
Definition: Vehicle.h:128
float32_t widthWithoutMirrors
Width of the body without any side-mirrors, if applicable, otherwise same as width.
Definition: Vehicle.h:92
float32_t maxSteeringWheelAngle
Maximum steering wheel angle [rad].
Definition: Vehicle.h:241
uint32_t numTrailers
Stores the occupied/valid length of trailers.
Definition: Vehicle.h:422
float32_t pitchAngleGradientAccel
Suspension pitch angle gradient during acceleration. [deg s^2 / m].
Definition: Vehicle.h:331
float32_t length
Length of the bounding box (longitudinal dimension, along X) [m].
Definition: Vehicle.h:85
float32_t brakePedalInput[DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE]
1-d array of range of brake pedal values (Brake Look-up Table Input)
Definition: Vehicle.h:179
dwVehicleTrailerType
Supported trailer types.
Definition: Vehicle.h:63
#define DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE
Definition: Vehicle.h:60
#define DW_VEHICLE_MAX_NUM_TRAILERS
Definition: Vehicle.h:59
#define DW_VEHICLE_STEER_MAP_POLY_DEGREE_PLUS_ONE
Definition: Vehicle.h:58
dwVehicleWheels
Define index for each of the wheels on a 4 wheeled vehicle.
Definition: Vehicle.h:70
@ DW_VEHICLE_TRAILER_TYPE_SEMI
Trailer that has both front and rear axles.
Definition: Vehicle.h:65
@ DW_VEHICLE_TRAILER_TYPE_FULL
Definition: Vehicle.h:64
@ DW_VEHICLE_WHEEL_REAR_LEFT
Definition: Vehicle.h:73
@ DW_VEHICLE_WHEEL_REAR_RIGHT
Definition: Vehicle.h:74
@ DW_VEHICLE_WHEEL_FRONT_LEFT
Definition: Vehicle.h:71
@ DW_VEHICLE_NUM_WHEELS
Number of wheels describing the vehicle.
Definition: Vehicle.h:77
@ DW_VEHICLE_WHEEL_FRONT_RIGHT
Definition: Vehicle.h:72
Vehicle description.
Definition: Vehicle.h:387
DEPRECATED: Properties of a passenger car vehicle.
Definition: Vehicle.h:428
Vehicle actuation properties.
Definition: Vehicle.h:187
Properties of an articulation linking two vehicle units.
Definition: Vehicle.h:345
Properties of an axle and its wheels.
Definition: Vehicle.h:133
Physical properties of a vehicle body.
Definition: Vehicle.h:83
Vehicle cabin description.
Definition: Vehicle.h:358
Dynamics properties.
Definition: Vehicle.h:312
Suspension properties.
Definition: Vehicle.h:326
Throttle and brake state (input) to longitudinal force (output) lookup tables.
Definition: Vehicle.h:166
Vehicle trailer description.
Definition: Vehicle.h:365
Wheel encoder parameters.
Definition: Vehicle.h:291
Specifies a 3D rigid transformation.
Definition: MatrixTypes.h:182