Code Monkey home page Code Monkey logo

smo-sac's Introduction

SMO-SAC

Code for paper "Safety Enhancement for Reinforcement Learning with Sliding Mode Observer-based Control for Automatic Parking"

And master's thesis "Safety Enhancing for Reinforcement Learning with Sliding Mode Observer-based Control"

SMO-SAC

Sliding mode observer-based soft Soft Actor-Critic

Introduction

A method to improve the security of reinforcement learning with RL combined with a sliding mode observer.

A specific parking environment is designed in the paper. The environment has parking spaces, roads, and cars as obstacles. The algorithm enables the control of vehicle speed, acceleration and steering angle.

After continuous training, the vehicle can eventually park accurately in the target parking space.

Requirements

python 3.9 pythorch 2.0.1

How To Run

  1. Set the main file path
  2. 'pip install -r requirements.txt'
  3. set obstacles in 'obstacle.py'
  4. set obstacle cars in 'obs_car.py'
  5. set the start position and target parking place of ego car in 'bicycle_model.py'
  6. adjust Reward functions in 'bicycle_model.py'
  7. set the plots saving file in 'main.py'
  8. run 'main.py'

Result

To get 5-car scenario, set obs_car with 5 cars. Similarly, to get 4-car or 3-car scenario

smo-sac's People

Contributors

yangzhangx avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.