Giter Site home page Giter Site logo

vis6 / acc-control Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.24 MB

In this project, two steering control methods (PID control, reinforcement learning control) are implemented in CARLO simulation environment.

License: MIT License

Python 100.00%
acc-control

acc-control's Introduction

ACC-Control

Description

  • In this project, two steering control methods, PID control and reinforcement learning (Q-learning) control, are implemented.
  • The simulation environment is based on CARLO (circular road). Two cars are placed in the environment.
  • Two main program files are included in the project.
    • "main_pid.py" uses PID steering control.
    • "main_rl.py" uses reinforcement learning for steering control.
  • The implementations of PID control and reinforcement learnning method are in the "steering_control.py" file.

How to run the code

  • You can run the programs either in the command line or in an IDE.
  • PID steering control requires no additional input parameters. The tuned PID parameters have already been given in the program ("steering_control.py").
  • Reinforcement learning steering control requires an additional parameter "rl_mode" whose value is "train" or "test". The parameter needs to be specified in the program.
    • If "rl_mode" is "train", the program will learn a policy for every car and the learned policy will be stored in the current directory with the name of "car#_rl.pkl" (# represents the car number).
    • If "rl_mode" is "test", the program will load pre-learned policies for cars and run the simulation.

Reference

acc-control's People

Contributors

vis6 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

merlynwong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.