35 float RunStep(
float target_speed_kmh,
bool debug =
false);
40 float PidControl(
float target_speed_kmh,
float current_speed_kmh);
101 float max_throttle = 0.75f,
102 float max_brake = 0.30f,
103 float max_steering = 0.80f);
109 float target_speed_kmh,
void ChangeParameters(float K_P, float K_I, float K_D, float dt)
float RunStep(SharedPtr< client::Waypoint > waypoint)
Returns a steering command in the range [-1, 1].
std::deque< float > _e_buffer
SharedPtr< client::Vehicle > _vehicle
void SetOffset(float offset)
Longitudinal PID controller.
float PidControl(float target_speed_kmh, float current_speed_kmh)
SharedPtr< client::Vehicle > _vehicle
std::deque< float > _error_buffer
void ChangeParameters(float K_P, float K_I, float K_D, float dt)
float RunStep(float target_speed_kmh, bool debug=false)
Returns the throttle/brake command (clamped to [-1, 1]).
Combined longitudinal + lateral PID controller.
PIDLongitudinalController _lon_controller
void SetOffset(float offset)
void ChangeLateralPID(const LateralArgs &args)
SharedPtr< client::Vehicle > _vehicle
void ChangeLongitudinalPID(const LongitudinalArgs &args)
PIDLateralController _lat_controller
rpc::VehicleControl RunStep(float target_speed_kmh, SharedPtr< client::Waypoint > wp)
Drives towards wp at target_speed_kmh and returns the resulting VehicleControl.
This file contains definitions of common data structures used in traffic manager.
std::shared_ptr< T > SharedPtr