81 TRACE_CPUPROFILER_EVENT_SCOPE_STR(__FUNCTION__);
98 Control.
Brake = FMath::Clamp(
Brake, 0.0f, 1.0f);
119 float FullStopEpsilon = 0.1;
131 float StandingStillEpsilon = 0.1;
166 ClippingLowerBorder, ClippingUpperBorder);
201 TRACE_CPUPROFILER_EVENT_SCOPE_STR(__FUNCTION__);
207 DeltaTime = Vehicle->GetWorld()->GetDeltaSeconds();
float GetVehicleForwardSpeed() const
Forward speed in cm/s. Might be negative if goes backwards.
float SpeedControlAccelDelta
float LastVehicleAcceleration
void UpdateVehicleControlCommand()
void SetTargetPoint(const FVehicleAckermannControl &AckermannControl)
void RunControlSteering()
float GetMaximumSteerAngle() const
Get the maximum angle at which the front wheel can steer.
void ApplySettings(const FAckermannControllerSettings &Settings)
void RunControlAcceleration()
void UpdateVehiclePhysics(const ACarlaWheeledVehicle *Vehicle)
void UpdateVehicleState(const ACarlaWheeledVehicle *Vehicle)
PID AccelerationController
const FVehicleControl & GetVehicleControl() const
Vehicle control currently applied to this vehicle.
void RunLoop(FVehicleControl &Control)
float AccelControlPedalTarget
void SetTargetPoint(float Point)
FAckermannControllerSettings GetSettings() const
float VehicleAcceleration
bool RunControlFullStop()
FVehicleAckermannControl UserTargetPoint
float Run(float Input, float DeltaTime)
Base class for CARLA wheeled vehicles.
float AccelControlPedalDelta
float SpeedControlAccelTarget