Git Product home page Git Product logo

door_key's Introduction

Search based Path Planning

Overview

In this project, we are going to implement dynamic programming to search the shortest path for the Door-Key problems. The objective of the agent is to get from start to goal with the least amount of the moves.

Door-key Problem

There are 7 test scenes you have to test and include in the report.

doorkey-5x5-normal
doorkey-6x6-normal doorkey-6x6-direct doorkey-6x6-shortcut
doorkey-8x8-normal doorkey-8x8-direct doorkey-8x8-shortcut

Installation

pip install -r requirements.txt

Instruction

1. doorkey.py

doorkey.py the main entrance of the program.

2. utils.py

You might find some useful tools in utils.py

  • step(): Move your agent
  • generate_random_env(): Generate a random environment for debugging
  • load_env(): Load the test environments
  • save_env(): Save the environment for reproducing results
  • plot_env(): For a quick visualization of your current env, including: agent, key, door, and the goal
  • draw_gif_from_seq(): Draw and save a gif image from a given action sequence.

2. dp.py

  • get_next_state(): Motion model x_t+1 = f(x, u)
  • step_cost(): the cost of action
  • terminal_cost(): cost when reaching the goal
  • DP(): main dynamic programming, computing optimal policy

door_key's People

Contributors

chenfengw avatar

Watchers

 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.