This project implements an Autonomous Patrol Robot using ROS2. The robot navigates through predefined waypoints in a simulated environment using Gazebo and visualizes its movement in RViz.
The system demonstrates waypoint-based navigation, autonomous movement logic, and logging of visited coordinates.
This project was developed as part of robotics training to understand practical ROS2 navigation workflows.
- Autonomous waypoint-based patrol
- Real-time robot simulation in Gazebo
- Visualization using RViz
- Coordinate logging of visited waypoints
- Structured ROS2 node implementation
- Launch file integration
- ROS2
- Gazebo
- RViz
- Python (rclpy)
- Linux environment
-
Robot Model
- Simulated mobile robot in Gazebo environment
-
Navigation Logic
- Predefined waypoint coordinates
- Robot sequentially navigates to each point
- Continuous patrol loop
-
Logging
- Coordinates of visited waypoints stored in log file
- Timestamped movement tracking
Example visited coordinates:
(1.5, 0.0) (1.5, 1.5) (0.0, 1.5) (0.0, 0.0)
The robot moves sequentially through each coordinate and repeats the cycle continuously.
- Build the workspace:
colcon build
- Source the workspace:
source install/setup.bash
- Launch the patrol system:
ros2 launch patrol_launch.py
- Open RViz (if not auto-launched):
rviz2
- Robot moves autonomously in Gazebo
- RViz shows robot state and movement
- Terminal logs visited coordinates
- Patrol loop continues indefinitely
The repository includes:
- Demo video of Gazebo simulation
- RViz visualization screenshots
- Sample patrol log file
- Understanding ROS2 node structure
- Working with launch files
- Integrating Gazebo simulation
- Visualizing robot movement in RViz
- Implementing waypoint navigation logic
- Logging and debugging ROS2 systems
- Implement SLAM-based navigation
- Add obstacle avoidance using sensors
- Integrate Nav2 stack
- Add real robot hardware implementation
- Multi-robot patrol system
Raghav Sathe
ENTC Engineering Undergraduate
Robotics | Embedded Systems | ROS2
This project demonstrates foundational understanding of ROS2 autonomous navigation and simulation workflows.