Isa1asN / line_following_robot_ros2

A line track follower robot with a camera sensor using ros2 and cv2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Line Following Robot using ROS2 and OpenCV

Line Following Robot Video

Setup

Before running the robot, add the model path to the environment:

export GAZEBO_MODEL_PATH=/home/esayas/Desktop/line_follower/src/simple_robot_description/models:$GAZEBO_MODEL_PATH

Launch Gazebo Simulation

To launch the Gazebo simulation, use the following command:

ros2 launch simple_robot_description gazebo.launch.py

View Camera Feed

To view the camera feed, run the following command:

ros2 run image_tools showimage --ros-args --remap image:=/camera1/image_raw

Run Line Follower Script

To execute the line follower script, use the following command:

ros2 run simple_robot_description joint_commander

About

A line track follower robot with a camera sensor using ros2 and cv2


Languages

Language:Python 100.0%