PxVehicleCommandState

Defined in include/vehicle2/commands/PxVehicleCommandStates.h

struct PxVehicleCommandState

A description of the state of commands that are applied to the vehicle.

Note

brakes[0] and brakes[1] may be used to distinguish brake and handbrake controls.

Public Functions

inline void setToDefault()

Public Members

PxReal brakes[2]

The instantaneous state of the brake controllers in range [0,1] with 1 denoting fully pressed and 0 fully depressed.

PxU32 nbBrakes
PxReal throttle

The instantaneous state of the throttle controller in range [0,1] with 1 denoting fully pressed and 0 fully depressed.

PxReal steer

The instantaneous state of the steer controller in range [-1,1].