Giter Club home page Giter Club logo

maze_solver's Introduction

Maze Solving in ROS

Solving maze using several state-of-the-art (SOTA) maze-solving approaches: Breadth-first search, Depth-first search, Dijkstra's algorithm, A* search algorithm and Wall-follower algorithm.

I uploaded my work from my internship on: Feb 7, 2023.

Environment

  • Ubuntu 20.04.2LTS 64bit
  • ROS-Noetic
  • Gazebo 11
  • Python 3

To Run

  1. Clone this repository
git clone https://github.com/joewong00/maze_solver.git
  1. Create catkin workspace
mkdir -p catkin_ws/src
  1. Link the respective package to your workspace
sudo ln -fs /path_to_this_repo ~/catkin_ws/src
  1. ROS Setup
cd ~/catkin_ws
catkin_make
source ~/catkin_ws/devel/setup.bash
  1. Make main python file executable
chmod a+x ~/catkin_ws/src/maze_solver/scripts/main.py
  1. Launch python file package for different mazes, change the map config in main.py accordingly (map1.yaml)
roslaunch maze_solver maze1.launch

Demo Video

Maze-Solving in ROS


Creating Own Maze

Create and edit the maze in gazebo, save the maze model in path and change accordingly in world and launch files. To create map, one can use Gazebo plugin like the one in https://github.com/marinaKollmitz/gazebo_ros_2Dmap_plugin.git or any other mapping methods. If the map is not too large, one can hard code the grid value (1 for wall and 0 for passage), convert into pgm and create the map yaml file.

maze_solver's People

Contributors

joewong00 avatar jordanperrin 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.