Skip to content

balasuriyaranganathan/Line_follower_robot_using_ros2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Line Detection and Following

This project implements a line detection and following system using ROS (Robot Operating System) and OpenCV. The system uses a camera to capture images, detects a line in the image using color-based segmentation and contour detection, and controls the robot's movement to follow the detected line.

Prerequisites

  • ROS2 (Robot Operating System)
  • OpenCV
  • Python 3

Installation

  1. Clone the repository into your ROS workspace:
git clone <repository_url> <workspace_dir>/src/line_detection
  1. Colcon build in the workspace
colcon build --symlink-install
  1. launch car_on_track.launch.py file:
ros2 launch prius_line_following car_on_track.launch.py
  1. Run the nodes
./line_following.py

About

Line following robot using ros2 and opencv

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published