Depth-First Search (DFS) algorithm based C++ project to task a micro mouse to reach a goal node in a 16X16 maze.
Instructions to run the project:
Clone the repository into your catkin_build workspace:
git clone https://github.com/Madhunc5229/MicroMouse_MazeSolver
Setting up API Simulator:
-
Create a folder where you will download the micromouse controller. Here the folder is created in the home directory but it can be created anywhere else.
mkdir ∼/RWA2_simulator
-
Clone the micromouse simulator in this new folder:
cd ∼/RWA2_simulator
git clone https://github.com/mackorone/mms.git
-
Clone a set of maze files:
git clone https://github.com/micromouseonline/mazefiles.git
-
Clone a test C++ program which simply turns the robot left and right:
git clone https://github.com/mackorone/mms-cpp.git
-
Compile the simulator. • Install QT:
sudo apt-get install qt5-default
• Build the simulator.cd mms/src
qmake && make
-
Run the Simulator
cd ∼/RWA2_simulator/mms/bin
./mms
will open the simulator
Running the package:
- Click on “Edit Algorithm” or edit button in mouse:
- Set the name of the mouse.
- Choose the Directory file as the source folder (src) of the given package.
- Enter the Build Command as “g++ api.cpp main.cpp mouse.cpp node.cpp”.
- Run Command :
./a.out
. - Click on BUILD in the simulator
- Select the maze 2 or maze 4.
- Click on RUN.