PxVehicleCommandValueResponseTable

Defined in include/vehicle2/commands/PxVehicleCommandParams.h

struct PxVehicleCommandValueResponseTable

Each command value may be associated with a table specifying a normalized response as a function of longitudinal speed.

Multiple instances of PxVehicleCommandValueResponseTable allow a normalized response to be authored as a multi-variate piecewise polynomial with normalized command response expressed as a nonlinear function of command value and speed.

Public Types

enum Enum

Values:

enumerator eMAX_NB_SPEED_RESPONSES

Public Members

PxReal commandValue

The command value associated with the table of speed responses.

PxVehicleFixedSizeLookupTable<PxReal, eMAX_NB_SPEED_RESPONSES> speedResponses

A lookup table specifying the normalised response to the specified command value as a function of longitudinal speed.

Note

Each entry in the speedResponses table must be of the form (speed, normalizedResponse).

Note

The longitudinal speeds in the table must form a strictly increasing series.

Note

The normalized responses must be in range [0, 1].