Skip to content

C++ code for assisted lane keeping of an Autonomous vehicle using PID controller

Notifications You must be signed in to change notification settings

sumukhpatil/PID-Controller

Repository files navigation

PID Controller for Assisted Lane Keeping of an Autonomous Vehicle

Introduction

In this project, a PID controller is implemented to assist an autonomous vehicle to stay centered in the driving lane. The input to the PID controller is the error parameter called as cross track error. Cross track error is the value that the vehicle is away from the center of the road between two waypoints. The PID controller takes this as an input and manipulates the steering value to keep the vehicle centered in the lane.

A Proportional Integral Derivative (PID) controller is a closed loop controller that uses a feedback loop and is widely used and has application in a variety of industries. The PID control algorithm constantly calculates an error value which is the difference between the setpoint value and the measured process variable. It applies correction based on the Proportional Integral and Derivative gain values. The figure below shows the block diagram of a PID controller.

Project Build Instructions

Ubuntu

git clone https://github.com/sumukhpatil/PID-Controller.git
cd PID-Controller
mkdir build && cd build
cmake ..
make
./pid

Build Dependencies

References

  1. The starter code and the simulator is adopted from the Udacity GitHub Repository
  2. https://en.wikipedia.org/wiki/PID_controller

About

C++ code for assisted lane keeping of an Autonomous vehicle using PID controller

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages