RavEngine
Loading...
Searching...
No Matches
physx::vehicle2::PxVehicleDirectDriveCommandResponseComponent Class Referenceabstract

Forward the applicable set of control values for a direct drive vehicle to a command response state for each applicable control value.
More...

#include <PxVehicleDrivetrainComponents.h>

Inheritance diagram for physx::vehicle2::PxVehicleDirectDriveCommandResponseComponent:
[legend]
Collaboration diagram for physx::vehicle2::PxVehicleDirectDriveCommandResponseComponent:
[legend]

Public Member Functions

virtual void getDataForDirectDriveCommandResponseComponent (const PxVehicleAxleDescription *&axleDescription, PxVehicleSizedArrayData< const PxVehicleBrakeCommandResponseParams > &brakeResponseParams, const PxVehicleDirectDriveThrottleCommandResponseParams *&throttleResponseParams, const PxVehicleSteerCommandResponseParams *&steerResponseParams, PxVehicleSizedArrayData< const PxVehicleAckermannParams > &ackermannParams, const PxVehicleCommandState *&commands, const PxVehicleDirectDriveTransmissionCommandState *&transmissionCommands, const PxVehicleRigidBodyState *&rigidBodyState, PxVehicleArrayData< PxReal > &brakeResponseStates, PxVehicleArrayData< PxReal > &throttleResponseStates, PxVehicleArrayData< PxReal > &steerResponseStates)=0
 Provide vehicle data items for this component.
 
virtual bool update (const PxReal dt, const PxVehicleSimulationContext &context)
 Compute a per wheel response to the input brake/handbrake/throttle/steer commands
and determine if there is an intention to accelerate the vehicle.
 

Detailed Description

Forward the applicable set of control values for a direct drive vehicle to a command response state for each applicable control value.

Note
The applicable control values are brake, handbrake, throttle and steer.
See also
PxVehicleDirectDriveActuationStateComponent
PxVehicleDirectDrivetrainComponent
PxVehicleBrakeCommandLinearUpdate
PxVehicleDirectDriveThrottleLinearCommandUpdate
PxVehicleSteerCommandLinearUpdate
PxVehicleAckermannSteerUpdate

Member Function Documentation

◆ getDataForDirectDriveCommandResponseComponent()

virtual void physx::vehicle2::PxVehicleDirectDriveCommandResponseComponent::getDataForDirectDriveCommandResponseComponent ( const PxVehicleAxleDescription *&  axleDescription,
PxVehicleSizedArrayData< const PxVehicleBrakeCommandResponseParams > &  brakeResponseParams,
const PxVehicleDirectDriveThrottleCommandResponseParams *&  throttleResponseParams,
const PxVehicleSteerCommandResponseParams *&  steerResponseParams,
PxVehicleSizedArrayData< const PxVehicleAckermannParams > &  ackermannParams,
const PxVehicleCommandState *&  commands,
const PxVehicleDirectDriveTransmissionCommandState *&  transmissionCommands,
const PxVehicleRigidBodyState *&  rigidBodyState,
PxVehicleArrayData< PxReal > &  brakeResponseStates,
PxVehicleArrayData< PxReal > &  throttleResponseStates,
PxVehicleArrayData< PxReal > &  steerResponseStates 
)
pure virtual

Provide vehicle data items for this component.

Parameters
[out]axleDescriptionidentifies the wheels on each axle.
[out]brakeResponseParamsAn array of brake response parameters with a brake response for each brake command.
[out]throttleResponseParamsThe throttle response parameters.
[out]steerResponseParamsThe steer response parameters.
[out]ackermannParamsThe parameters defining Ackermann steering. NULL if no Ackermann steering is desired.
[out]commandsThe throttle, brake, steer etc. command states.
[out]transmissionCommandsThe transmission command state describing the current gear.
[out]rigidBodyStateThe state of the vehicle's rigid body.
[out]brakeResponseStatesThe resulting brake response states given the command input and brake response parameters.
[out]throttleResponseStatesThe resulting throttle response states given the command input and throttle response parameters.
[out]steerResponseStatesThe resulting steer response states given the command input, steer response and (optionally) Ackermann parameters.

Implemented in snippetvehicle2::DirectDriveVehicle.

◆ update()

virtual bool physx::vehicle2::PxVehicleDirectDriveCommandResponseComponent::update ( const PxReal  dt,
const PxVehicleSimulationContext &  context 
)
inlinevirtual

Compute a per wheel response to the input brake/handbrake/throttle/steer commands
and determine if there is an intention to accelerate the vehicle.

Implements physx::vehicle2::PxVehicleComponent.


The documentation for this class was generated from the following file: