45 #ifndef DW_VEHICLEIO_H__ 46 #define DW_VEHICLEIO_H__ 48 #include <dw/core/Config.h> 336 dwVehicleIOHandle_t obj);
370 #endif // DW_VehicleIO_ACTUATORS_H__ dwVehicleIOWheels
Define index for each of the wheels on a 4 wheel vehicle.
dwBool buttonCruiseControlGapDecrement
NVIDIA DriveWorks API: Rig Configuration
dwBool turnSigValid
True if setting turn signal.
DW_API_PUBLIC dwStatus dwVehicleIO_setDrivingMode(dwVehicleIODrivingMode mode, dwVehicleIOHandle_t obj)
Setting driving mode allows to control the behaviour of VehicleIO module with regards to the permitte...
NVIDIA DriveWorks API: Core Types
float float32_t
Specifies POD types.
dwVehicleIODrivingMode drivingMode
float32_t throttleValue
Current thottle value (0..1 ± 0.01 fraction of max pedal depressed, unitless)
dwBool highBeamHeadlights
dwBool buttonCruiseControlReset
dwBool brakeValid
True if setting break.
dwBool throttleValid
True if setting throttle.
dwVehicleIOFaults faults
Faults detected (0 = none)
float32_t brakeCmd
Last acknowledged brake value from a command (0..1 ± 0.01 fraction of max pedal depressed, unitless)
float32_t speed
Vehicle speed (-100 to 100 m/s ± 0.02m/s)
float32_t brakeTorque
torque value in Nm
uint64_t dwTime_t
Specifies a timestamp unit, in microseconds.
float32_t steeringWheelAngle
Steering wheel angle (-10.0 to 10.0 ± 0.01rad)
float32_t brakeTorqueActual
Actual applied brake torque value (Nm)
dwBool gearValid
True if setting gear.
dwBool speedValid
True if setting speed.
NVIDIA DriveWorks API: Core Methods
float32_t brakeTorqueRequested
Requested value of brake torque (Nm)
dwTime_t speedTimestamp
Time at which speed was updated.
DW_API_PUBLIC dwStatus dwVehicleIO_selectDriverOverrides(dwBool throttleOverride, dwBool steeringOverride, dwBool brakeOverride, dwBool gearOverride, dwVehicleIOHandle_t obj)
Select the overrides that the driver can use to disable vehicle control.
dwBool buttonCruiseControlDecrement
NVIDIA DriveWorks API: Core Exports
dwVehicleIOGear gear
Desired gear: 0=UNKNOWN, 1=PARK, 2=REVERSE, 3=NEUTRAL, 4=DRIVE.
dwBool brakePercent
if true, value is in percent, otherwise direct pedal position
dwBool buttonCruiseControlCancel
DW_API_PUBLIC dwStatus dwVehicleIO_sendVehicleCommand(const dwVehicleIOCommand *cmd, dwSensorHandle_t hsensor, dwVehicleIOHandle_t obj)
Send a vehicle command to the VehicleIO.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.
dwStatus
Status definition.
NVIDIA DriveWorks API: Sensors
Safety checks suitable for collision avoidance logic (right now same as NO_SAFETY below)...
float32_t steeringSpeed
Desired speed of the turning command rad/s.
DW_API_PUBLIC dwStatus dwVehicleIO_reset(dwVehicleIOHandle_t obj)
Reset VehicleIO to default state.
float32_t inverseSteeringR
Inverse turning radius of the vehicle on the road.
DW_API_PUBLIC dwStatus dwVehicleIO_release(dwVehicleIOHandle_t *obj)
Release used memory and close all modules.
dwBool buttonCruiseControlGapIncrement
float32_t fuelLevel
(0 to 1 ± 0.01 fraction of tank volume, unitless)
float32_t steeringWheelTorque
Steering wheel torque (0 to 10.0 ± 0.01 Nm)
dwVehicleIOTurnSignal turnSig
Turn signal value.
dwBool buttonLaneAssistOnOff
float32_t brakeValue
Current brake value (0..1 ± 0.01 fraction of max pedal depressed, unitless)
DW_API_PUBLIC dwStatus dwVehicleIO_consume(const dwCANMessage *msg, dwVehicleIOHandle_t obj)
Parse a received CAN message.
NVIDIA DriveWorks API: CAN
dwBool buttonCruiseControlOnOff
dwVehicleIOTurnSignal turnSignal
Turn signal value.
float32_t throttleValue
range 0.0 to 1.0
Comfortable driving is expected (most conservative).
dwVehicleIOGear gearCmd
Last acknowledged gear from a command.
float32_t brakeValue
range 0.0 to 1.0
dwBool throttlePercent
if true, value is in percent, otherwise direct pedal position
struct dwContextObject * dwContextHandle_t
Context handle.
float32_t throttleCmd
Last acknowledged throttle value from a command (0..1 ± 0.01 fraction of max pedal depressed...
dwBool enable
True if we are driving by wire. Has to always be set.
struct dwVehicleIOObject * dwVehicleIOHandle_t
float32_t steering
Desired steering wheel angle (rad)
dwVehicleIOOverrides overrides
Overrides in place (0 = none)
dwBool buttonCruiseControlResetCancel
dwVehicleIOGear gear
Vehicle gear.
dwBool steeringValid
True if setting steering.
DW_API_PUBLIC dwStatus dwVehicleIO_initialize(dwVehicleIOHandle_t *obj, dwVehicleIOType type, const dwVehicle *properties, dwContextHandle_t ctx)
Initialize VehicleIO and prepare all internal structures.
dwBool clearFaults
Setting > 0 clears any canbus faults/errors.
dwBool buttonCruiseControlIncrement
VehicleIO will bypass all safety checks.
DW_API_PUBLIC dwStatus dwVehicleIO_getVehicleState(dwVehicleIOState *state, dwVehicleIOHandle_t obj)
Retrieve current vehicle state.
Properties of the vehicle.
Same as above, but unsafe commands are clamped to safe limits and warnings are isssued.