Skip to content

About

A Gazebo simulated differential drive robot on ROS2 equipped with 2D LiDAR. It performs autonomous frontier exploration and navigation in a maze using slam-toolbox for localization and mapping.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Autonomous Maze Exploration & Navigation using ROS 2

This repository contains a ROS 2 workspace for a simulated mobile robot with Gazebo, RViz, SLAM, perception, and exploration capabilities. The project is organized as a set of ROS packages that together provide a basic autonomous navigation and exploration stack.

Project Overview

The workspace includes:

  • a simulated robot model and URDF/Xacro description,
  • Gazebo world and maze generation,
  • robot spawning and sensor bridge setup,
  • SLAM integration,
  • camera-based target perception,
  • simple control logic,
  • and frontier-based exploration behavior.

The main packages are:

  • robot_bringup: launch orchestration
  • robot_description: robot model and RViz configuration
  • robot_simulation: Gazebo simulation and robot spawn
  • robot_world: maze world generation
  • robot_slam: SLAM launch
  • robot_perception: visual target detection
  • robot_control: simple target-following control
  • robot_behaviours: exploration, path planning, and path following

Installation

1. Prerequisites

This project is intended to run in a ROS 2 environment. Make sure you have a working ROS 2 installation with the usual desktop or simulation dependencies.

2. Python dependencies

Install Python dependencies from the workspace root:

python3 -m pip install -r requirements.txt

3. Build the workspace

From the workspace root:

colcon build

If you are using a shell environment that requires sourcing the workspace each time, run:

source install/setup.bash

Running the Maze Explorer

The maze explorer is launched in several steps.

Step 1: Start Gazebo and RViz

Run the bringup launch file:

ros2 launch robot_bringup bringup.launch.py

This starts the Gazebo window and RViz.

Step 2: Spawn the robot

In a new terminal, run:

ros2 launch robot_simulation spawn_robot.launch.py

This spawns the robot into the Gazebo world and wires up the simulated sensors.

Step 3: Start SLAM

In another terminal, run:

ros2 launch robot_slam slam.launch.py

Step 4: Start exploration behavior

In another terminal, run:

ros2 launch robot_behaviours exploration.launch.py

This starts the frontier detector, path generator, and path follower nodes.

Useful Notes

  • The most important navigation-related package is robot_behaviours.
  • The robot uses Gazebo + ROS-GZ bridges for simulation and RViz for visualization.
  • If you encounter missing package errors, make sure the workspace has been built and sourced correctly.

About

A Gazebo simulated differential drive robot on ROS2 equipped with 2D LiDAR. It performs autonomous frontier exploration and navigation in a maze using slam-toolbox for localization and mapping.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages