Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.10.90 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    Vehicle.h
    Go to the documentation of this file.
    1
    2//
    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
    51extern "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
    131typedef struct dwVehicleTorqueLUT
    132{
    135
    138
    143
    146
    149
    151
    156{
    159
    163
    166
    169
    172
    175
    178
    181
    184
    187
    190
    193
    198
    200
    205{
    210
    214
    216
    224
    228typedef struct dwVehicleCabin
    229{
    232
    234
    235/***
    236 * Vehicle trailer description.
    237 */
    238typedef struct dwVehicleTrailer
    239{
    242
    245
    251
    254
    258
    262typedef struct dwGenericVehicle
    263{
    266
    269
    275
    278
    282
    285
    289
    291 uint32_t numTrailers;
    292
    294
    300typedef enum {
    305
    309
    315typedef struct dwVehicle
    316{
    342 DW_DEPRECATED("Will be removed, unused")
    345 DW_DEPRECATED("Will be removed, unused")
    351 DW_DEPRECATED("Will be removed, unused")
    354 DW_DEPRECATED("Will be removed, unused")
    357 DW_DEPRECATED("Will be removed, unused")
    375} dwVehicle;
    376
    377#ifdef __cplusplus
    378}
    379#endif
    380
    382#endif // DW_RIG_VEHICLE_H_
    Defines a three-element floating-point vector.
    Definition: MatrixTypes.h:79
    NVIDIA DriveWorks API: Core Types
    float float32_t
    Specifies POD types.
    Definition: BasicTypes.h:57
    #define DW_DEPRECATED(msg)
    Definition: Exports.h:66
    dwVector3f inertia
    Principal moments of inertia with respect to center of mass [kg m^2].
    Definition: Vehicle.h:91
    float32_t wheelRadius[DW_VEHICLE_NUM_WHEELS]
    Definition: Vehicle.h:365
    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:137
    float32_t height
    Height of the bounding box (vertical dimension, along Z) [m].
    Definition: Vehicle.h:75
    float32_t maxSteeringWheelAngle
    maximum steering wheel [radians]
    Definition: Vehicle.h:370
    float32_t axlebaseFront
    Definition: Vehicle.h:323
    float32_t brakeActuatorTimeConstant
    Time constant for first order + time delay brake system [s].
    Definition: Vehicle.h:171
    dwVector3f centerOfMass
    Position of center of mass in body coordinate system [m].
    Definition: Vehicle.h:86
    dwVehicleAxleProperties axleFront
    Properties of the front (steering) axle [m].
    Definition: Vehicle.h:268
    dwVehicleBodyProperties body
    Properties of the cabin body.
    Definition: Vehicle.h:231
    float32_t centerOfMassToRearAxle
    Definition: Vehicle.h:337
    dwVehicleCabin cabin
    Properties of an optional floating cabin attached to the base body.
    Definition: Vehicle.h:281
    float32_t frontSteeringOffset
    front wheel steering offset [radians].
    Definition: Vehicle.h:371
    float32_t bumperRear
    Definition: Vehicle.h:325
    float32_t frontCorneringStiffness
    Definition: Vehicle.h:335
    float32_t width
    Definition: Vehicle.h:319
    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:134
    dwVehicleTorqueLUT torqueLUT
    Torque lookup tables.
    Definition: Vehicle.h:158
    float32_t rearCorneringStiffness
    Definition: Vehicle.h:336
    float32_t driveByWireDampingRatio
    Damping ratio for second order + time delay drive-by-wire / steer-by-wire [unitless].
    Definition: Vehicle.h:186
    float32_t centerOfMassHeight
    Definition: Vehicle.h:349
    float32_t position
    Position of axle midpoint along X-axis in corresponding vehicle coordinate system (DW_COORDINATE_SYST...
    Definition: Vehicle.h:108
    dwVehicleBodyProperties body
    Properties of the base body (passenger car body, truck tractor chassis)
    Definition: Vehicle.h:265
    float32_t frontalArea
    Definition: Vehicle.h:346
    float32_t steeringWheelToSteeringMap[DW_VEHICLE_STEER_MAP_POLY_DEGREE+1U]
    Polynomial relating steering wheel angle [rad] to steering angle [rad].
    Definition: Vehicle.h:197
    float32_t effectiveMass
    Definition: Vehicle.h:333
    float32_t driveByWireTimeDelay
    Definition: Vehicle.h:339
    dwVehicleAxleProperties axleFront
    Properties of the front (steering) axle [m].
    Definition: Vehicle.h:244
    dwVector3f boundingBoxPosition
    Position of bounding box origin in body coordinate system [m].
    Definition: Vehicle.h:81
    float32_t width
    Width of the bounding box (lateral dimension, along Y) [m].
    Definition: Vehicle.h:68
    float32_t wheelRadiusLeft
    Radius of left wheel, when facing towards the forward direction of the vehicle [m].
    Definition: Vehicle.h:115
    dwVehicleArticulationProperties articulation
    Articulation linking trailer to leading vehicle unit.
    Definition: Vehicle.h:256
    dwVehicleAxleProperties axleRear
    Properties of the rear axle group [m].
    Definition: Vehicle.h:274
    dwVehicleActuationProperties actuation
    Vehicle actuation properties.
    Definition: Vehicle.h:277
    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:148
    float32_t driveByWireTimeConstant
    Definition: Vehicle.h:340
    float32_t corneringStiffness
    Cornering stiffness for a single tire [N/rad].
    Definition: Vehicle.h:122
    float32_t length
    Definition: Vehicle.h:318
    float32_t mass
    Definition: Vehicle.h:329
    float32_t widthWithMirrors
    Definition: Vehicle.h:320
    float32_t driveByWireTimeConstant
    Time constant for first order + time delay drive-by-wire / steer-by-wire [s].
    Definition: Vehicle.h:177
    float32_t throttleActuatorTimeConstant
    Time constant for first order + time delay throttle system [s].
    Definition: Vehicle.h:165
    dwVector3f inertia3D
    Definition: Vehicle.h:331
    float32_t axlebaseRear
    Definition: Vehicle.h:324
    float32_t height
    Definition: Vehicle.h:317
    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 aeroHeight
    Definition: Vehicle.h:352
    float32_t driveByWireNaturalFrequency
    Natural frequency for second order + time delay drive-by-wire / steer-by-wire [hz].
    Definition: Vehicle.h:183
    float32_t track
    Width of the axle, measured between center line of wheels [m].
    Definition: Vehicle.h:111
    float32_t brakeActuatorTimeDelay
    Time delay for first order + time delay brake system [s].
    Definition: Vehicle.h:174
    float32_t throttleActuatorTimeDelay
    Time delay for first order + time delay throttle system [s].
    Definition: Vehicle.h:168
    bool hasCabin
    Indicates presence of a cabin.
    Definition: Vehicle.h:284
    dwVector3f leadingVehicleHingePosition
    Position of leading vehicle hinge attach point in leading vehicle coordinate system (DW_COORDINATE_SY...
    Definition: Vehicle.h:209
    float32_t brakeActuatorTimeConstant
    Definition: Vehicle.h:361
    dwVehicleTorqueLUT torqueLUT
    Definition: Vehicle.h:363
    float32_t mass
    Mass [kg].
    Definition: Vehicle.h:96
    dwVehicleTrailerType type
    Trailer type, either full or semi, indicates presence of front axle.
    Definition: Vehicle.h:253
    dwVehicleBodyProperties body
    Properties of the trailer body.
    Definition: Vehicle.h:241
    float32_t steeringWheelToSteeringMap[DW_VEHICLE_STEER_MAP_POLY_DEGREE+1]
    polynomial coefficents of steering wheel angle to steering angle as given in c0 + c1*x + c2*x^2 + ....
    Definition: Vehicle.h:367
    float32_t driveByWireTimeDelay
    Time delay for first order + time delay drive-by-wire / steer-by-wire [s].
    Definition: Vehicle.h:180
    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:142
    dwVector3f trailingVehicleHingePosition
    Position of trailing vehicle hinge attach point in trailer coordinate system (DW_COORDINATE_SYSTEM_VE...
    Definition: Vehicle.h:213
    float32_t aerodynamicDragCoeff
    Definition: Vehicle.h:343
    float32_t wheelRadiusRight
    Radius of right wheel, when facing towards the forward direction of the vehicle [m].
    Definition: Vehicle.h:119
    float32_t steeringCoefficient
    Definition: Vehicle.h:327
    float32_t centerOfMassToFrontAxle
    Definition: Vehicle.h:348
    float32_t maxEnginePower
    Definition: Vehicle.h:358
    float32_t rollingResistanceCoeff
    Definition: Vehicle.h:355
    float32_t wheelbase
    Definition: Vehicle.h:322
    dwVehicleTrailer trailers[DW_VEHICLE_MAX_NUM_TRAILERS]
    Properties of trailer units.
    Definition: Vehicle.h:288
    float32_t bumperFront
    Definition: Vehicle.h:326
    dwVehicleAxleProperties axleRear
    Properties of the rear axle group [m].
    Definition: Vehicle.h:250
    bool isDriveByWireSecondOrder
    Indicates whether the drive-by-wire / steer-by-wire is second-order or not.
    Definition: Vehicle.h:189
    float32_t widthWithoutMirrors
    Width of the body without any side-mirrors, if applicable, otherwise same as width.
    Definition: Vehicle.h:72
    float32_t maxSteeringWheelAngle
    Maximum steering wheel angle [rad].
    Definition: Vehicle.h:192
    uint32_t numTrailers
    Number of trailer units.
    Definition: Vehicle.h:291
    float32_t length
    Length of the bounding box (longitudinal dimension, along X) [m].
    Definition: Vehicle.h:65
    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:145
    float32_t throttleActuatorTimeConstant
    Definition: Vehicle.h:360
    dwVehicleTrailerType
    Supported trailer types.
    Definition: Vehicle.h:220
    #define DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE
    Definition: Vehicle.h:126
    #define DW_VEHICLE_MAX_NUM_TRAILERS
    Definition: Vehicle.h:55
    #define DW_VEHICLE_STEER_MAP_POLY_DEGREE
    Definition: Vehicle.h:54
    dwVehicleWheels
    Define index for each of the wheels on a 4 wheeled vehicle.
    Definition: Vehicle.h:300
    @ DW_VEHICLE_TRAILER_TYPE_SEMI
    Trailer that has both front and rear axles.
    Definition: Vehicle.h:222
    @ DW_VEHICLE_TRAILER_TYPE_FULL
    Definition: Vehicle.h:221
    @ DW_VEHICLE_WHEEL_REAR_LEFT
    Definition: Vehicle.h:303
    @ DW_VEHICLE_WHEEL_REAR_RIGHT
    Definition: Vehicle.h:304
    @ DW_VEHICLE_WHEEL_FRONT_LEFT
    Definition: Vehicle.h:301
    @ DW_VEHICLE_NUM_WHEELS
    Number of wheels describing the vehicle.
    Definition: Vehicle.h:307
    @ DW_VEHICLE_WHEEL_FRONT_RIGHT
    Definition: Vehicle.h:302
    Vehicle description.
    Definition: Vehicle.h:263
    DEPRECATED: Properties of a passenger car vehicle.
    Definition: Vehicle.h:316
    Vehicle actuation properties.
    Definition: Vehicle.h:156
    Properties of an articulation linking two vehicle units.
    Definition: Vehicle.h:205
    Properties of an axle and its wheels.
    Definition: Vehicle.h:104
    Physical properties of a vehicle body.
    Definition: Vehicle.h:63
    Vehicle cabin description.
    Definition: Vehicle.h:229
    Throttle and brake state (input) to longitudinal force (output) lookup tables.
    Definition: Vehicle.h:132
    人人超碰97caoporen国产